:root {
  color-scheme: light;
  --paper: #f5f4ef;
  --ink: #1d211e;
  --muted: #737770;
  --line: #deded5;
  --lime: #d3f26a;
  --orange: #f26a45;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "DM Sans", sans-serif;
  --display: "Manrope", sans-serif;
  --mono: "DM Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
body.dialog-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
::selection { color: var(--ink); background: var(--lime); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.page-grain { position: fixed; inset: 0; z-index: 20; pointer-events: none; opacity: .14; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.87' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E"); }
.section-wrap, .site-header { width: min(1190px, calc(100% - 88px)); margin-inline: auto; }
.site-header { height: 88px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); position: relative; z-index: 10; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { width: 35px; height: 35px; display: grid; place-items: center; border: 1px solid var(--ink); border-radius: 50%; font: 800 17px var(--display); letter-spacing: -2px; }
.brand-mark span { color: var(--orange); }
.brand-name { font: 700 14px var(--display); letter-spacing: -.3px; }
.primary-nav { display: flex; align-items: center; gap: 37px; font-size: 13px; font-weight: 600; }
.primary-nav a { transition: opacity .2s ease; }
.primary-nav a:hover { opacity: .55; }
.primary-nav .nav-contact { background: var(--ink); color: var(--paper); border-radius: 30px; padding: 13px 18px; }
.nav-contact span { margin-left: 12px; color: var(--lime); }
.menu-toggle { display: none; }

.hero { min-height: 675px; position: relative; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; padding-top: 26px; padding-bottom: 84px; }
.hero-copy { position: relative; z-index: 2; padding-top: 16px; }
.eyebrow, .hero-footnote, .scroll-cue, .work-count, .project-year, .journal-meta, .journal-art-index, .contact-top > span, .contact-bottom > span, .site-footer > span { font: 500 10px var(--mono); letter-spacing: 1.1px; }
.eyebrow { margin: 0 0 27px; color: var(--muted); }
.status-dot, .contact-top i { display: inline-block; width: 7px; height: 7px; margin-right: 9px; background: #f54927; border-radius: 50%; box-shadow: 0 0 0 4px #f549271e; }
h1, h2, h3, p { margin-top: 0; }
.hero h1 { font: 600 clamp(56px, 7.1vw, 96px)/.99 var(--display); letter-spacing: -.085em; margin: 0 0 27px; }
.highlight-word { position: relative; color: var(--orange); font-family: var(--serif); font-weight: 400; font-style: italic; letter-spacing: -.075em; }
.highlight-spark { position: absolute; right: -37px; top: 0; color: var(--ink); font: 24px var(--sans); }
.hero-intro { max-width: 410px; color: #5e625c; font-size: 16px; line-height: 1.75; margin-bottom: 30px; }
.hero-actions { display: flex; align-items: center; gap: 27px; }
.button { min-height: 49px; display: inline-flex; align-items: center; justify-content: center; gap: 28px; border-radius: 3px; padding: 0 19px; font-size: 12px; font-weight: 600; transition: transform .25s ease, background .25s ease, color .25s ease; }
.button:hover { transform: translateY(-3px); }
.button-dark { color: var(--paper); background: var(--ink); }
.button-dark:hover { background: var(--orange); }
.button-dark span, .button-light span { color: var(--lime); font-size: 17px; }
.text-link { font-size: 12px; font-weight: 600; border-bottom: 1px solid #b9bab1; padding-bottom: 6px; }
.text-link span { margin-left: 10px; }
.hero-footnote { display: flex; gap: 26px; margin-top: 73px; color: var(--muted); font-size: 9px; }
.hero-art { min-height: 500px; position: relative; isolation: isolate; display: grid; place-items: center; }
.art-sun { position: absolute; width: 335px; height: 335px; top: 85px; right: 33px; border-radius: 50%; z-index: -1; background: var(--lime); }
.art-orbit { position: absolute; border: 1px solid #c8c9bc; border-radius: 50%; transform: rotate(-35deg); }
.orbit-one { width: 530px; height: 235px; top: 159px; right: -27px; }
.orbit-two { width: 480px; height: 290px; top: 143px; right: 2px; transform: rotate(45deg); }
.art-card { position: absolute; width: 265px; height: 340px; padding: 24px; box-shadow: 0 25px 60px #292a2026; }
.art-card-back { z-index: 1; top: 77px; left: 61px; transform: rotate(-10deg); background: var(--orange); display: flex; flex-direction: column; justify-content: space-between; color: #fff3e7; font: 800 33px/.92 var(--display); letter-spacing: -2px; }
.art-card-back i { font: normal 10px var(--mono); letter-spacing: 1px; }
.art-card-front { z-index: 2; top: 124px; right: 30px; transform: rotate(7deg); background: #232a25; color: #f6f3eb; display: flex; flex-direction: column; justify-content: space-between; }
.art-card-label, .art-card-bottom { font: 9px var(--mono); letter-spacing: 1px; }
.art-card-label { color: var(--lime); }
.art-card-title { font: 500 37px/1.05 var(--display); letter-spacing: -2px; }
.art-card-bottom { display: flex; justify-content: space-between; align-items: center; color: #a7ada2; }
.art-card-bottom span:last-child { color: var(--lime); font-size: 23px; }
.art-sticker { position: absolute; z-index: 3; right: 3px; bottom: 59px; width: 100px; height: 100px; border-radius: 50%; display: grid; place-content: center; background: var(--paper); border: 1px solid var(--ink); text-align: center; font: 700 10px/1.25 var(--mono); transform: rotate(10deg); }
.art-sticker b { color: var(--orange); font-size: 16px; }
.art-caption { position: absolute; left: 11px; bottom: 40px; font: italic 14px/1.4 var(--serif); }
.scroll-cue { position: absolute; left: 0; bottom: 25px; display: flex; align-items: center; gap: 13px; color: var(--muted); font-size: 9px; }
.scroll-cue span { width: 35px; height: 1px; background: var(--ink); }

.section-space { padding-top: 113px; padding-bottom: 116px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 45px; }
.section-heading .eyebrow { margin-bottom: 17px; }
.section-heading h2, .about-copy h2 { margin: 0; font: 600 clamp(37px, 4.5vw, 58px)/1.08 var(--display); letter-spacing: -.065em; }
.section-heading h2 span, .about-copy h2 span { color: var(--orange); font: italic 400 1.03em var(--serif); letter-spacing: -.06em; }
.section-note { margin: 0 0 4px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.work-section { border-top: 1px solid var(--line); }
.work-toolbar { padding: 15px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; margin-bottom: 25px; }
.work-count { color: var(--muted); font-size: 9px; }
.filter-group { display: flex; gap: 7px; }
.filter-button { cursor: pointer; border: 1px solid transparent; border-radius: 30px; background: transparent; padding: 8px 11px; color: #777a72; font-size: 11px; transition: .2s ease; }
.filter-button span { margin-left: 5px; font: 9px var(--mono); opacity: .65; }
.filter-button:hover, .filter-button.is-active { color: var(--ink); border-color: var(--ink); }
.filter-button.is-active { background: var(--ink); color: var(--paper); }
.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 38px 28px; }
.project-card { display: block; min-width: 0; transition: opacity .2s ease, transform .2s ease; }
.project-card[hidden] { display: none; }
.project-card:hover .project-image img { transform: scale(1.035); }
.project-card:hover .project-open { transform: rotate(45deg); background: var(--lime); }
.project-image { height: 285px; position: relative; overflow: hidden; display: grid; place-items: center; background: #e8e4d9; }
.project-large .project-image { height: 370px; }
.project-image img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: top center; transition: transform .65s cubic-bezier(.2,.7,.2,1); }
.image-ways { background: #d2e0d4; }.image-stay { background: #e5d7c6; }.image-orbit { background: #d4d5e0; }.image-helios { background: #dddccd; }.image-nerds { background: #e2d9d4; }.image-ecs { background: #d6dfdc; }
.project-open { position: absolute; right: 16px; top: 16px; display: grid; place-items: center; width: 41px; height: 41px; border-radius: 50%; background: var(--paper); font-size: 19px; transition: transform .25s ease, background .25s ease; }
.project-meta { display: flex; justify-content: space-between; padding-top: 15px; }
.project-meta h3 { font: 600 19px var(--display); letter-spacing: -.6px; margin: 0 0 5px; }
.project-meta p { color: var(--muted); font-size: 11px; margin: 0; }
.project-year { color: var(--muted); font-size: 9px; }
.work-outro { border-top: 1px solid var(--line); padding-top: 19px; margin: 49px 0 0; color: var(--muted); font-size: 12px; display: flex; justify-content: space-between; }
.work-outro a { color: var(--ink); font-weight: 600; }
.work-outro a span { color: var(--orange); margin-left: 7px; }

.about-section { background: #eae9e1; }
.about-layout { display: grid; grid-template-columns: .8fr 1.4fr .65fr; gap: 64px; align-items: center; }
.about-stamp { min-height: 330px; position: relative; padding: 28px; display: flex; flex-direction: column; justify-content: center; background: var(--lime); transform: rotate(-4deg); }
.about-stamp > span { font: 800 31px/.95 var(--display); letter-spacing: -2px; }
.about-stamp b { position: absolute; top: 21px; right: 23px; font-size: 32px; font-weight: 400; }
.about-stamp small { position: absolute; bottom: 22px; left: 28px; font: 9px var(--mono); letter-spacing: .3px; }
.about-copy .eyebrow { margin-bottom: 19px; }
.about-copy h2 { font-size: clamp(36px, 4vw, 52px); margin-bottom: 24px; }
.about-copy > p:not(.eyebrow) { color: #666b63; font-size: 13px; line-height: 1.9; margin-bottom: 16px; }
.about-copy .about-lead { color: var(--ink) !important; font-size: 15px !important; }
.skill-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 27px; }
.skill-list span { padding: 8px 10px; border: 1px solid #c9c9bf; border-radius: 2px; font: 9px var(--mono); letter-spacing: .3px; }
.about-aside { align-self: stretch; display: flex; flex-direction: column; justify-content: center; gap: 40px; }
.stat-card { border-left: 1px solid #bfc0b6; padding-left: 22px; }
.stat-card strong { display: block; font: 600 55px/.9 var(--display); letter-spacing: -5px; }
.stat-card strong span { color: var(--orange); }
.stat-card p { color: #676a63; font-size: 12px; line-height: 1.6; margin: 11px 0 16px; }
.stat-line { display: block; height: 1px; background: #c9c9bf; }
.stat-card small { font: 8px var(--mono); color: var(--muted); letter-spacing: .6px; display: block; margin-top: 11px; }
.aside-note { position: relative; border-top: 1px solid #c9c9bf; padding-top: 14px; }
.note-number { color: var(--muted); font: 9px var(--mono); }
.aside-note p { margin: 14px 0 0; font: italic 23px/1.35 var(--serif); }
.note-spark { position: absolute; right: 4px; bottom: 10px; color: var(--orange); font-size: 25px; }

.journal-section { border-bottom: 1px solid var(--line); }
.journal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.journal-card { min-width: 0; }
.journal-art { height: 226px; padding: 20px; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.journal-art-one { background: var(--orange); color: #fff1e9; }
.journal-art-two { background: #282f29; color: var(--lime); }
.journal-art-three { background: #dce5ca; color: var(--ink); }
.journal-art::before, .journal-art::after { content: ""; position: absolute; border: 1px solid currentColor; border-radius: 50%; width: 220px; height: 220px; opacity: .26; }
.journal-art::before { transform: translate(-75px, 75px); }
.journal-art::after { transform: translate(95px, -85px); }
.journal-art-type { position: relative; z-index: 1; text-align: center; font: 800 32px/.91 var(--display); letter-spacing: -2px; }
.journal-art-type span { display: inline-block; margin-left: 10px; font-size: 19px; }
.journal-art-index { position: absolute; bottom: 16px; left: 18px; font-size: 9px; opacity: .7; }
.journal-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 8px; padding: 15px 0 11px; }
.journal-card h3 { font: 600 19px var(--display); letter-spacing: -.6px; margin: 0 0 8px; }
.journal-card > p { min-height: 40px; color: var(--muted); font-size: 12px; line-height: 1.65; margin: 0 0 15px; }
.read-note { cursor: pointer; border: 0; border-bottom: 1px solid #b9bab1; background: none; padding: 0 0 6px; font-size: 11px; font-weight: 600; }
.read-note span { margin-left: 13px; color: var(--orange); font-size: 15px; }

.contact-section { margin-top: 96px; padding: 34px 40px 23px; color: #f5f4ef; background: var(--ink); }
.contact-top, .contact-bottom { display: flex; justify-content: space-between; align-items: center; }
.contact-top .eyebrow { color: #a9aea3; margin: 0; }
.contact-top > span { color: #a9aea3; font-size: 9px; }
.contact-top i { width: 6px; height: 6px; margin: 0 0 0 7px; background: var(--lime); }
.contact-main { display: flex; justify-content: space-between; align-items: end; padding: 65px 0 76px; }
.contact-main h2 { margin: 0; font: 600 clamp(56px, 7vw, 86px)/.95 var(--display); letter-spacing: -.085em; }
.contact-main h2 span { color: var(--lime); font: italic 400 1.05em var(--serif); letter-spacing: -.07em; }
.contact-cta { width: 250px; }
.contact-cta p { color: #a9aea3; font-size: 12px; line-height: 1.7; margin: 0 0 20px; }
.button-light { color: var(--ink); background: var(--paper); }
.button-light:hover { background: var(--lime); }
.button-light span { color: var(--orange); }
.contact-bottom { border-top: 1px solid #4a504a; padding-top: 19px; }
.contact-bottom > a { font-size: 11px; }
.contact-bottom > span { color: #a9aea3; font-size: 8px; }
.contact-bottom > a:last-child { font: 9px var(--mono); }
.site-footer { min-height: 90px; display: flex; justify-content: space-between; align-items: center; }
.site-footer .brand-mark { width: 28px; height: 28px; font-size: 14px; }
.site-footer .brand-name { font-size: 12px; }
.site-footer > span { color: var(--muted); font-size: 8px; }

.note-dialog { width: min(560px, calc(100% - 32px)); max-height: min(720px, calc(100% - 32px)); position: relative; border: 0; padding: 52px clamp(25px, 7vw, 64px) 57px; background: var(--paper); color: var(--ink); box-shadow: 0 20px 100px #0005; }
.note-dialog::backdrop { background: #171a17bc; backdrop-filter: blur(5px); }
.dialog-close { cursor: pointer; position: absolute; top: 15px; right: 18px; width: 35px; height: 35px; border: 1px solid var(--line); border-radius: 50%; background: transparent; font-size: 24px; line-height: 1; }
.note-dialog .eyebrow { margin: 0 0 17px; }
.note-dialog h2 { max-width: 390px; margin: 0 0 24px; font: 600 clamp(33px, 8vw, 49px)/1.05 var(--display); letter-spacing: -.065em; }
.note-dialog p:not(.eyebrow) { color: #60645d; font-size: 14px; line-height: 1.85; }
.dialog-spark { position: absolute; right: 30px; bottom: 20px; color: var(--orange); font-size: 26px; }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.65,.25,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (min-width: 1400px) { .hero { min-height: 735px; } }
@media (max-width: 1000px) {
  .section-wrap, .site-header { width: min(100% - 56px, 820px); }
  .hero { min-height: 600px; grid-template-columns: 1fr .9fr; }
  .hero h1 { font-size: clamp(54px, 8vw, 78px); }
  .hero-art { transform: scale(.85); transform-origin: center right; margin-left: -35px; }
  .art-card-back { left: 40px; }
  .art-card-front { right: 5px; }
  .project-image { height: 240px; }
  .project-large .project-image { height: 300px; }
  .about-layout { grid-template-columns: .72fr 1.4fr; gap: 40px; }
  .about-aside { grid-column: 2; flex-direction: row; align-items: start; gap: 35px; }
  .stat-card, .aside-note { flex: 1; }
}
@media (max-width: 700px) {
  html { scroll-padding-top: 70px; }
  .section-wrap, .site-header { width: calc(100% - 40px); }
  .site-header { height: 72px; }
  .menu-toggle { display: flex; width: 40px; height: 40px; border: 1px solid var(--line); background: transparent; border-radius: 50%; align-items: center; justify-content: center; }
  .menu-toggle::before, .menu-toggle::after { content: ""; display: block; width: 14px; height: 1px; background: var(--ink); transition: transform .2s ease; }
  .menu-toggle::before { transform: translateY(3px); }
  .menu-toggle::after { transform: translateY(-3px); }
  .menu-toggle[aria-expanded="true"]::before { transform: translateY(1px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"]::after { transform: translateY(0) rotate(-45deg); }
  .primary-nav { display: none; position: absolute; top: 62px; left: 0; right: 0; align-items: stretch; flex-direction: column; gap: 0; padding: 10px 18px 17px; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 16px 25px #1d211e14; }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { padding: 13px 0; }
  .primary-nav .nav-contact { margin-top: 8px; text-align: center; padding: 13px; }
  .hero { display: flex; flex-direction: column; align-items: stretch; padding-top: 54px; padding-bottom: 80px; min-height: 0; }
  .hero h1 { font-size: clamp(57px, 14vw, 83px); }
  .hero-intro { max-width: 350px; font-size: 14px; }
  .hero-footnote { margin-top: 37px; gap: 14px; font-size: 8px; }
  .hero-art { min-height: 390px; transform: scale(.82); transform-origin: top center; width: 122%; margin: 7px 0 -49px -11%; }
  .art-sun { width: 280px; height: 280px; top: 35px; right: calc(50% - 155px); }
  .orbit-one { width: 430px; height: 200px; top: 115px; right: calc(50% - 225px); }
  .orbit-two { width: 390px; height: 240px; top: 88px; right: calc(50% - 195px); }
  .art-card { width: 230px; height: 295px; padding: 20px; }
  .art-card-back { top: 27px; left: calc(50% - 143px); }
  .art-card-front { top: 64px; right: calc(50% - 145px); }
  .art-card-title { font-size: 32px; }
  .art-sticker { right: calc(50% - 180px); bottom: 15px; }
  .art-caption { left: calc(50% - 185px); bottom: -3px; }
  .scroll-cue { bottom: 27px; }
  .section-space { padding-top: 76px; padding-bottom: 78px; }
  .section-heading { align-items: start; flex-direction: column; gap: 17px; margin-bottom: 31px; }
  .section-heading h2, .about-copy h2 { font-size: clamp(38px, 10vw, 52px); }
  .section-note br { display: none; }
  .work-toolbar { align-items: start; flex-direction: column; gap: 13px; }
  .filter-group { flex-wrap: wrap; }
  .filter-button { padding: 7px 10px; }
  .project-grid { grid-template-columns: 1fr; gap: 29px; }
  .project-image, .project-large .project-image { height: clamp(230px, 67vw, 350px); }
  .work-outro { display: block; line-height: 1.7; margin-top: 35px; }
  .work-outro a { display: block; }
  .about-layout { grid-template-columns: 1fr; gap: 36px; }
  .about-stamp { width: min(270px, 75%); min-height: 265px; justify-self: center; }
  .about-copy h2 br { display: none; }
  .about-aside { grid-column: auto; gap: 25px; }
  .journal-grid { grid-template-columns: 1fr; gap: 34px; }
  .journal-art { height: clamp(225px, 63vw, 330px); }
  .journal-card > p { min-height: 0; }
  .contact-section { margin-top: 42px; padding: 25px 20px 19px; width: calc(100% - 24px); }
  .contact-top { align-items: start; gap: 12px; }
  .contact-top > span { font-size: 7px; text-align: right; }
  .contact-main { align-items: start; flex-direction: column; gap: 28px; padding: 54px 0 48px; }
  .contact-main h2 { font-size: clamp(57px, 15vw, 82px); }
  .contact-cta { width: min(100%, 290px); }
  .contact-bottom { align-items: start; flex-wrap: wrap; gap: 14px 20px; }
  .contact-bottom > span { order: 3; width: 100%; }
  .contact-bottom > a { font-size: 10px; }
  .site-footer { min-height: 90px; flex-wrap: wrap; gap: 8px; padding-block: 18px; }
  .site-footer > span:last-child { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* The site is treated like a living field notebook, not a portfolio template. */
:root {
  --paper: #101311;
  --ink: #e7eadf;
  --muted: #939b91;
  --line: #333a34;
  --lime: #f54927;
  --orange: #f54927;
}
body { background-color: var(--paper); color: var(--ink); }
.page-grain { opacity: .21; mix-blend-mode: screen; }
.site-header { border-color: var(--line); }
.brand-mark { border-color: var(--lime); color: var(--lime); }
.brand-mark span { color: var(--lime); }
.primary-nav .nav-contact { background: var(--lime); color: #141712; }
.primary-nav .nav-contact span { color: #141712; }
.hero { min-height: 740px; grid-template-columns: 1fr 1.05fr; padding-top: 40px; }
.hero-copy { padding-top: 0; }
.eyebrow, .hero-footnote, .scroll-cue, .work-count, .project-year, .journal-meta, .journal-art-index, .contact-top > span, .contact-bottom > span, .site-footer > span { color: #9da69a; }
.status-dot { background: var(--lime); box-shadow: 0 0 14px #f5492799; }
.hero h1 { font-size: clamp(53px, 6vw, 82px); line-height: .96; letter-spacing: -.09em; }
.highlight-word { color: var(--lime); }
.highlight-spark { color: var(--lime); animation: spark-turn 12s linear infinite; }
.hero-intro { color: #aeb5a9; max-width: 370px; }
.button-dark { color: #101311; background: var(--lime); }
.button-dark:hover { background: #e5ffa0; }
.button-dark span { color: #101311; }
.text-link { border-color: #596159; }
.hero-art { min-height: 540px; overflow: hidden; background-image: linear-gradient(#ffffff08 1px, transparent 1px), linear-gradient(90deg, #ffffff08 1px, transparent 1px); background-size: 34px 34px; border: 1px solid #333a34; }
.hero-art::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 50%, #f549270e, transparent 61%); pointer-events: none; }
.signal-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.art-orbit { border-color: #6b796b; }
.orbit-one { width: 530px; height: 215px; top: 154px; right: 3px; animation: orbit-drift 23s ease-in-out infinite alternate; }
.orbit-two { width: 480px; height: 260px; top: 139px; right: 19px; transform: rotate(45deg); animation: orbit-drift-two 29s ease-in-out infinite alternate; }
.art-core { position: absolute; top: 50%; left: 50%; width: 205px; height: 205px; display: grid; place-items: center; border: 1px solid var(--lime); border-radius: 50%; background: #f549270c; transform: translate(-50%, -50%); box-shadow: inset 0 0 50px #f5492713, 0 0 60px #f5492714; animation: core-breathe 5s ease-in-out infinite; }
.art-core::before, .art-core::after { content: ""; position: absolute; border: 1px solid #f5492752; border-radius: 50%; }
.art-core::before { inset: 12px; }
.art-core::after { inset: 28px; border-color: #f5492725; }
.core-cross { color: var(--lime); font-size: 54px; font-weight: 400; animation: spark-turn 22s linear infinite; }
.core-label { position: absolute; bottom: 34px; font: 9px/1.35 var(--mono); color: #cad3c4; letter-spacing: 1px; text-align: center; }
.art-node { position: absolute; z-index: 2; padding: 8px 10px; border: 1px solid #536050; background: #101311dc; font: 9px var(--mono); letter-spacing: .7px; color: #e6ecdc; }
.art-node span { color: var(--lime); margin-right: 7px; }
.node-one { left: 13%; top: 25%; transform: rotate(-8deg); }
.node-two { right: 12%; top: 33%; transform: rotate(8deg); }
.node-three { left: 30%; bottom: 21%; transform: rotate(5deg); }
.art-coordinate { position: absolute; z-index: 1; color: #a6b0a3; font: 8px/1.7 var(--mono); letter-spacing: .4px; }
.coordinate-one { left: 15px; top: 14px; }
.coordinate-two { right: 14px; top: 14px; text-align: right; }
.art-terminal { position: absolute; z-index: 2; bottom: 15px; left: 15px; display: flex; align-items: center; gap: 7px; color: #bdc5b8; font: 8px var(--mono); letter-spacing: .7px; }
.terminal-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--lime); animation: terminal-pulse 1.7s ease infinite; }
.art-terminal b { color: var(--lime); font-weight: 400; }
.art-caption { z-index: 1; left: auto; right: 16px; bottom: 14px; color: #c8d0c3; font-size: 12px; }
.art-sticker { right: 10%; bottom: 21%; width: 79px; height: 79px; background: var(--lime); color: #101311; border: 0; font-size: 9px; }
.art-sticker b { color: #101311; }
.scroll-cue span { background: var(--lime); }
.work-section { border-color: var(--line); }
.section-heading h2 span, .about-copy h2 span { color: var(--lime); }
.work-toolbar { border-color: var(--line); }
.filter-button { color: #a4aca0; }
.filter-button:hover, .filter-button.is-active { color: var(--ink); border-color: var(--lime); }
.filter-button.is-active { background: var(--lime); color: #11150f; }
.workbench { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(270px, .75fr); min-height: 505px; border: 1px solid var(--line); }
.project-stage { min-width: 0; background: #171b18; border-right: 1px solid var(--line); }
.stage-image { height: 410px; position: relative; overflow: hidden; background: #242a25; }
.stage-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #080a08a6, transparent 28%, transparent 76%, #080a0852); pointer-events: none; }
.stage-image img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .75s cubic-bezier(.2,.7,.2,1), opacity .25s ease; }
.stage-image.is-changing img { opacity: .2; transform: scale(1.035); }
.stage-index { position: absolute; z-index: 1; top: 17px; left: 18px; font: 9px var(--mono); color: #e4ecdc; letter-spacing: 1px; }
.stage-index i { color: #a0aa9a; font-style: normal; }
.project-open { z-index: 2; right: 17px; top: 15px; text-decoration: none; }
.stage-caption { display: flex; justify-content: space-between; align-items: end; padding: 19px 22px 23px; }
.stage-kicker { color: #9da69a; font: 8px var(--mono); letter-spacing: 1px; }
.stage-caption h3 { margin: 7px 0 0; font: 600 27px var(--display); letter-spacing: -1px; }
.stage-visit { color: var(--lime); font: 9px var(--mono); letter-spacing: .7px; }
.stage-visit span { margin-left: 6px; font-size: 15px; }
.project-index { display: flex; flex-direction: column; padding: 10px 19px; }
.project-select { cursor: pointer; min-height: 61px; display: grid; grid-template-columns: 26px 1fr 18px; grid-template-rows: 1fr 1fr; align-items: center; text-align: left; column-gap: 9px; padding: 8px 6px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); transition: background .2s ease, padding .2s ease; }
.project-select:hover, .project-select.is-selected { padding-left: 12px; background: #f549270c; }
.project-select[hidden] { display: none; }
.project-select-no { grid-row: 1 / 3; color: #8e988d; font: 9px var(--mono); }
.project-select-name { align-self: end; font: 600 13px var(--display); }
.project-select-type { align-self: start; color: #8e988d; font: 7px var(--mono); letter-spacing: .5px; }
.project-select-arrow { grid-column: 3; grid-row: 1 / 3; color: #8e988d; font-size: 15px; }
.project-select.is-selected .project-select-no, .project-select.is-selected .project-select-arrow { color: var(--lime); }
.index-note { display: flex; justify-content: space-between; margin-top: auto; padding: 19px 6px 6px; color: #8e988d; font: 7px var(--mono); letter-spacing: .6px; }
.index-note b { color: var(--lime); font-size: 12px; font-weight: 400; }
.work-outro { border-color: var(--line); color: #9da69a; }
.work-outro a { color: var(--lime); }
.work-outro a span { color: var(--lime); }
.about-section { overflow: hidden; position: relative; background: var(--lime); color: #12160f; }
.about-section::before { content: "MUSTAFA / MUSTAFA / MUSTAFA /"; position: absolute; right: -40px; top: -25px; color: #141a1010; font: 800 70px var(--display); letter-spacing: -5px; white-space: nowrap; transform: rotate(-6deg); }
.about-stamp { min-height: 350px; background: #171c17; color: var(--lime); transform: rotate(-5deg); box-shadow: 13px 15px 0 #11150f20; }
.about-stamp > span { font-size: 35px; }
.about-stamp b { color: #f5f4ef; }
.about-stamp small { color: #afb7a8; font-size: 7px; }
.about-copy .eyebrow, .about-copy > p:not(.eyebrow) { color: #47503f; }
.about-copy .about-lead { color: #171c17 !important; }
.about-copy h2 span { color: #9b2b18; }
.skill-list span { border-color: #c83d23; }
.stat-card { border-color: #c83d23; }
.stat-card p, .stat-card small { color: #47503f; }
.stat-card strong span, .note-spark { color: #5a760e; }
.stat-line, .aside-note { border-color: #c83d23; }
.aside-note p { color: #1b2117; }
.note-number { color: #47503f; }
.section-note { color: #9da69a; }
.journal-section { border-color: var(--line); }
.journal-art { background-color: #222822; }
.journal-art-one { background-color: var(--lime); color: #171c17; }
.journal-art-two { background-color: #252d28; color: var(--lime); }
.journal-art-three { background-color: #333043; color: #d6ceff; }
.journal-card h3 { color: var(--ink); }
.journal-card > p { color: #9da69a; }
.read-note { color: var(--ink); border-color: #596159; }
.read-note span { color: var(--lime); }
.contact-section { border: 1px solid #414a3f; background-color: #191f19; }
.contact-main h2 span { color: var(--lime); }
.button-light { color: #11150f; background: var(--lime); }
.button-light span { color: #11150f; }
.contact-bottom { border-color: #414a3f; }
.site-footer .brand-mark { border-color: var(--lime); color: var(--lime); }
.site-footer .brand-mark span { color: var(--lime); }
.note-dialog { background: #171c17; color: var(--ink); border: 1px solid #44503e; }
.note-dialog .eyebrow { color: #9da69a; }
.note-dialog p:not(.eyebrow) { color: #b6beb1; }
.dialog-close { color: var(--ink); border-color: #44503e; }
.dialog-spark { color: var(--lime); }
.reveal { transform: translateY(28px); }
@keyframes spark-turn { to { transform: rotate(360deg); } }
@keyframes orbit-drift { from { transform: rotate(-32deg) translateX(-8px); } to { transform: rotate(-39deg) translateX(10px); } }
@keyframes orbit-drift-two { from { transform: rotate(42deg) translateY(-7px); } to { transform: rotate(49deg) translateY(9px); } }
@keyframes core-breathe { 0%, 100% { box-shadow: inset 0 0 50px #f5492713, 0 0 26px #f549270c; } 50% { box-shadow: inset 0 0 60px #f549271d, 0 0 65px #f549271e; } }
@keyframes terminal-pulse { 50% { opacity: .35; } }

@media (max-width: 1000px) {
  .hero { min-height: 670px; }
  .workbench { grid-template-columns: minmax(0, 1.35fr) minmax(240px, .8fr); }
  .stage-image { height: 360px; }
  .project-index { padding-inline: 12px; }
}
@media (max-width: 700px) {
  .primary-nav { background: #101311; border-color: var(--line); }
  .menu-toggle { border-color: var(--line); }
  .menu-toggle::before, .menu-toggle::after { background: var(--ink); }
  .hero { min-height: 0; padding-top: 45px; }
  .hero h1 { font-size: clamp(50px, 13.1vw, 76px); }
  .highlight-spark { right: -26px; font-size: 19px; }
  .hero-art { width: 100%; min-height: 350px; transform: none; margin: 22px 0 0; }
  .art-sun { display: none; }
  .orbit-one { width: 370px; height: 160px; top: 102px; right: calc(50% - 185px); }
  .orbit-two { width: 340px; height: 190px; top: 85px; right: calc(50% - 170px); }
  .art-core { width: 155px; height: 155px; }
  .core-cross { font-size: 39px; }
  .core-label { bottom: 23px; font-size: 7px; }
  .node-one { left: 6%; top: 26%; }
  .node-two { right: 5%; top: 31%; }
  .node-three { left: 21%; bottom: 18%; }
  .art-sticker { right: 8%; bottom: 16%; width: 64px; height: 64px; font-size: 7px; }
  .art-caption { right: 10px; bottom: 10px; font-size: 10px; }
  .coordinate-one { left: 9px; top: 9px; font-size: 6px; }
  .coordinate-two { right: 9px; top: 9px; font-size: 6px; }
  .art-terminal { left: 9px; bottom: 10px; font-size: 6px; }
  .workbench { grid-template-columns: 1fr; }
  .project-stage { border-right: 0; border-bottom: 1px solid var(--line); }
  .stage-image { height: clamp(220px, 64vw, 350px); }
  .project-index { padding: 8px 16px 13px; }
  .project-select { min-height: 57px; }
  .index-note { padding-top: 15px; }
  .about-section::before { font-size: 40px; top: 0; }
  .about-stamp { min-height: 235px; }
  .about-stamp > span { font-size: 29px; }
  .contact-section { background-color: #191f19; }
  .note-dialog { padding-top: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  .highlight-spark, .orbit-one, .orbit-two, .art-core { animation: none; }
}

/* ============================================================
   V2 — custom probe cursor, engineer mode, hardware section
   ============================================================ */

/* ---------- Scroll "signal level" meter ---------- */
.scroll-meter { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; pointer-events: none; }
.scroll-meter span { display: block; height: 100%; width: 100%; background: var(--lime); box-shadow: 0 0 10px var(--lime); transform-origin: left; transform: scaleX(0); }

/* ---------- Custom cursor (fine pointers only) ---------- */
.cursor, .cursor-trail { display: none; }
html.has-cursor, html.has-cursor * { cursor: none !important; }
html.has-cursor input { cursor: text !important; }
html.has-cursor .cursor, html.has-cursor .cursor-trail { display: block; }
.cursor-trail { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 98; pointer-events: none; mix-blend-mode: screen; }
.cursor { position: fixed; left: 0; top: 0; z-index: 100; pointer-events: none; }
.cursor-dot { position: fixed; left: -3px; top: -3px; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px var(--lime); transition: transform .2s ease, opacity .2s ease; }
.cursor-ring { position: fixed; left: -18px; top: -18px; width: 36px; height: 36px; border: 1px solid color-mix(in srgb, var(--lime) 70%, transparent); border-radius: 50%; transition: width .35s cubic-bezier(.2,.8,.2,1), height .35s cubic-bezier(.2,.8,.2,1), left .35s cubic-bezier(.2,.8,.2,1), top .35s cubic-bezier(.2,.8,.2,1), border-radius .35s ease, background .3s ease, border-color .3s ease; }
/* crosshair ticks on the ring — reads like a measurement probe */
.cursor-ring i { position: absolute; background: var(--lime); transition: opacity .25s ease; }
.cursor-ring i:nth-child(1), .cursor-ring i:nth-child(2) { width: 1px; height: 7px; left: 50%; }
.cursor-ring i:nth-child(1) { top: -9px; } .cursor-ring i:nth-child(2) { bottom: -9px; }
.cursor-ring i:nth-child(3), .cursor-ring i:nth-child(4) { height: 1px; width: 7px; top: 50%; }
.cursor-ring i:nth-child(3) { left: -9px; } .cursor-ring i:nth-child(4) { right: -9px; }
.cursor-label { position: fixed; left: 0; top: 0; transform: translate(-50%, -50%) scale(.6); color: #101311; font: 600 9px var(--mono); letter-spacing: 1px; opacity: 0; white-space: nowrap; transition: opacity .2s ease, transform .3s cubic-bezier(.2,.8,.2,1); }
.cursor-readout { position: fixed; left: 22px; top: 18px; color: color-mix(in srgb, var(--lime) 80%, #fff); font: 8px/1.5 var(--mono); letter-spacing: .6px; opacity: .75; white-space: pre; transition: opacity .2s ease; }
/* hovering anything clickable: ring locks on */
.cursor.is-hover .cursor-ring { left: -26px; top: -26px; width: 52px; height: 52px; border-color: var(--lime); background: color-mix(in srgb, var(--lime) 10%, transparent); }
.cursor.is-hover .cursor-ring i { opacity: 0; }
.cursor.is-hover .cursor-dot { transform: scale(.4); }
/* hovering something with a label: ring becomes a filled pill */
.cursor.has-label .cursor-ring { left: -42px; top: -42px; width: 84px; height: 84px; background: var(--lime); border-color: var(--lime); }
.cursor.has-label .cursor-label { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.cursor.has-label .cursor-dot, .cursor.is-hover .cursor-readout, .cursor.has-label .cursor-readout { opacity: 0; }
.cursor.is-down .cursor-ring { transform: scale(.82); }
.cursor.is-hidden { opacity: 0; }
.cursor-ring { transform-origin: center; }
.cursor-ping { position: fixed; z-index: 99; width: 10px; height: 10px; margin: -5px 0 0 -5px; border: 1px solid var(--lime); border-radius: 50%; pointer-events: none; animation: cursor-ping .7s cubic-bezier(.1,.7,.3,1) forwards; }
@keyframes cursor-ping { to { transform: scale(9); opacity: 0; } }
.magnetic { will-change: transform; transition: transform .25s cubic-bezier(.2,.8,.2,1), background .25s ease, color .25s ease; }

/* ---------- Designer / Engineer toggle ---------- */
.mode-toggle { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 30px; padding: 7px 10px; background: transparent; font: 500 8px var(--mono); letter-spacing: 1px; color: var(--muted); cursor: pointer; }
.mode-track { position: relative; width: 26px; height: 14px; border-radius: 10px; background: #2a302b; }
.mode-thumb { position: absolute; top: 2px; left: 2px; width: 10px; height: 10px; border-radius: 50%; background: var(--lime); transition: transform .35s cubic-bezier(.2,.8,.2,1), background .35s ease; }
.mode-design { color: var(--ink); }
html[data-mode="engineer"] .mode-thumb { transform: translateX(12px); }
html[data-mode="engineer"] .mode-design { color: var(--muted); }
html[data-mode="engineer"] .mode-engineer { color: var(--ink); }

/* Engineer mode: phosphor-green on a PCB substrate */
html[data-mode="engineer"] { --lime: #3dff9a; --orange: #3dff9a; --paper: #070d0a; --line: #1d3326; --ink: #d8ffe9; --muted: #7fa892; }
html[data-mode="engineer"] body { background-image: linear-gradient(#3dff9a0a 1px, transparent 1px), linear-gradient(90deg, #3dff9a0a 1px, transparent 1px); background-size: 24px 24px; font-family: var(--mono); }
html[data-mode="engineer"] .hero h1, html[data-mode="engineer"] h2 { font-family: var(--mono); letter-spacing: -.06em; }
html[data-mode="engineer"] .highlight-word, html[data-mode="engineer"] .section-heading h2 span, html[data-mode="engineer"] .contact-main h2 span { font-family: var(--mono); font-style: normal; text-shadow: 0 0 18px #3dff9a80; }
html[data-mode="engineer"] .highlight-word::after { content: "_"; animation: terminal-pulse 1s steps(1) infinite; }
html[data-mode="engineer"] .art-core { background: #3dff9a0c; box-shadow: inset 0 0 50px #3dff9a18, 0 0 60px #3dff9a1a; }
html[data-mode="engineer"] .art-core::before { border-color: #3dff9a52; }
html[data-mode="engineer"] .art-core::after { border-color: #3dff9a25; }
html[data-mode="engineer"] .hero-art, html[data-mode="engineer"] .workbench, html[data-mode="engineer"] .project-stage { border-color: #1d3326; }
html[data-mode="engineer"] .hero-art { background-color: #040906; background-image: linear-gradient(#3dff9a14 1px, transparent 1px), linear-gradient(90deg, #3dff9a14 1px, transparent 1px); }
html[data-mode="engineer"] .project-stage, html[data-mode="engineer"] .contact-section, html[data-mode="engineer"] .note-dialog { background-color: #0a140e; }
html[data-mode="engineer"] .project-select:hover, html[data-mode="engineer"] .project-select.is-selected { background: #3dff9a0d; }
html[data-mode="engineer"] .about-section { background: #0d1a12; color: var(--ink); }
html[data-mode="engineer"] .about-section::before { color: #3dff9a0d; content: "0x4D 0x55 0x53 0x54 0x41 0x46 0x41"; }
html[data-mode="engineer"] .about-copy .eyebrow, html[data-mode="engineer"] .about-copy > p:not(.eyebrow), html[data-mode="engineer"] .stat-card p, html[data-mode="engineer"] .stat-card small, html[data-mode="engineer"] .note-number { color: var(--muted); }
html[data-mode="engineer"] .about-copy .about-lead, html[data-mode="engineer"] .aside-note p { color: var(--ink) !important; }
html[data-mode="engineer"] .about-copy h2 span, html[data-mode="engineer"] .stat-card strong span, html[data-mode="engineer"] .note-spark { color: var(--lime); }
html[data-mode="engineer"] .skill-list span, html[data-mode="engineer"] .stat-card, html[data-mode="engineer"] .stat-line, html[data-mode="engineer"] .aside-note { border-color: #2b5a3f; }
html[data-mode="engineer"] .about-stamp { background: #3dff9a; color: #04110a; }
html[data-mode="engineer"] .about-stamp b { color: #04110a; }
html[data-mode="engineer"] .about-stamp small { color: #0b3a21; }
html[data-mode="engineer"] .journal-art-two, html[data-mode="engineer"] .journal-art-three { background-color: #0d1a12; color: var(--lime); }
html[data-mode="engineer"] .stage-image img { filter: grayscale(1) contrast(1.1) brightness(.85) sepia(1) hue-rotate(80deg) saturate(2.2); }
html[data-mode="engineer"] .page-grain { opacity: .3; }
html.mode-switching body::after { content: ""; position: fixed; inset: 0; z-index: 200; pointer-events: none; background: repeating-linear-gradient(0deg, #3dff9a22 0 2px, transparent 2px 4px); animation: crt-flash .45s ease-out forwards; }
@keyframes crt-flash { 0% { opacity: 1; transform: scaleY(.02); } 40% { opacity: 1; transform: scaleY(1); } 100% { opacity: 0; } }
html { transition: background-color .4s ease; }

/* ---------- Hardware section ---------- */
.hardware-section { border-top: 1px solid var(--line); }
.hw-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 22px; }
.hw-diagram, .hw-spec, .hw-console { border: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 88%, #fff 2%); }
.hw-diagram { display: flex; flex-direction: column; }
.hw-diagram-head { display: flex; justify-content: space-between; align-items: center; padding: 11px 15px; border-bottom: 1px solid var(--line); color: var(--muted); font: 8px var(--mono); letter-spacing: 1px; }
.hw-diagram svg { flex: 1; width: 100%; padding: 24px 18px; background-image: radial-gradient(color-mix(in srgb, var(--lime) 22%, transparent) 1px, transparent 1px); background-size: 20px 20px; }
.hw-traces path, .hw-pins path { fill: none; stroke: color-mix(in srgb, var(--lime) 55%, transparent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hw-traces path { stroke-dasharray: 400; stroke-dashoffset: 400; transition: stroke-dashoffset 1.6s cubic-bezier(.4,0,.2,1); }
.hw-diagram.is-visible .hw-traces path { stroke-dashoffset: 0; }
.hw-pins path { stroke-width: 1.5; stroke: var(--muted); }
.hw-pulses circle { fill: var(--lime); filter: drop-shadow(0 0 4px var(--lime)); }
.hw-blocks rect { fill: var(--paper); stroke: var(--muted); stroke-width: 1; rx: 3; transition: stroke .3s ease, fill .3s ease; }
.hw-blocks rect:hover { stroke: var(--lime); fill: color-mix(in srgb, var(--lime) 8%, var(--paper)); }
.hw-blocks .hw-mcu { stroke: var(--lime); stroke-width: 1.5; }
.hw-blocks text, .hw-labels text { fill: var(--ink); font: 600 12px var(--mono); letter-spacing: 1px; text-anchor: middle; dominant-baseline: middle; pointer-events: none; }
.hw-blocks .hw-small { fill: var(--muted); font-size: 8px; font-weight: 400; }
.hw-labels text { fill: var(--lime); font-size: 9px; font-weight: 400; }
.hw-side { display: grid; gap: 22px; grid-template-rows: auto 1fr; min-width: 0; }
.hw-spec dl { margin: 0; padding: 4px 15px 8px; }
.hw-spec dl > div { display: grid; grid-template-columns: 95px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.hw-spec dl > div:last-child { border-bottom: 0; }
.hw-spec dt { color: var(--muted); font: 8px var(--mono); letter-spacing: 1px; text-transform: uppercase; padding-top: 2px; }
.hw-spec dd { margin: 0; font-size: 12px; }
.hw-console { display: flex; flex-direction: column; min-height: 220px; background: #050806; }
.hw-led { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 8px var(--lime); animation: terminal-pulse 1.2s steps(2) infinite; }
.console-log { flex: 1; max-height: 210px; overflow-y: auto; padding: 12px 15px 4px; color: #b9e8cc; font: 11px/1.7 var(--mono); }
.console-log p { margin: 0; white-space: pre-wrap; }
.console-log .is-cmd { color: var(--lime); }
.console-log .is-dim { color: #5f7d6c; }
.console-log a { color: var(--lime); border-bottom: 1px dotted; }
.console-form { display: flex; align-items: center; gap: 8px; padding: 9px 15px 12px; color: var(--lime); font: 11px var(--mono); border-top: 1px solid #16241b; }
.console-form input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: #e7ffef; font: inherit; caret-color: var(--lime); }
.console-form input::placeholder { color: #4b6457; }

/* scramble-in headings */
.scramble-char { color: var(--lime); opacity: .8; }

@media (max-width: 1000px) {
  .hw-grid { grid-template-columns: 1fr; }
  .primary-nav { gap: 22px; }
}
@media (max-width: 700px) {
  .mode-toggle { justify-content: center; margin-top: 8px; padding: 11px; }
  .hw-diagram svg { padding: 14px 6px; }
  .hw-spec dl > div { grid-template-columns: 80px 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .hw-pulses { display: none; }
  .hw-traces path { stroke-dashoffset: 0; transition: none; }
  html.mode-switching body::after { display: none; }
}

/* ---------- About section on red: white / off-white / light-brown text ---------- */
html:not([data-mode="engineer"]) .about-section { --about-white: #ffffff; --about-soft: #fff3e8; --about-sand: #ffd9bf; --about-line: #ffe6d266; color: var(--about-white); }
html:not([data-mode="engineer"]) .about-section::before { color: #ffffff12; }
html:not([data-mode="engineer"]) .about-copy h2 { color: var(--about-white); }
html:not([data-mode="engineer"]) .about-copy h2 span { color: var(--about-sand); }
html:not([data-mode="engineer"]) .about-copy .eyebrow,
html:not([data-mode="engineer"]) .note-number,
html:not([data-mode="engineer"]) .stat-card small { color: var(--about-sand); opacity: .9; }
html:not([data-mode="engineer"]) .about-copy .about-lead { color: var(--about-white) !important; }
html:not([data-mode="engineer"]) .about-copy > p:not(.eyebrow):not(.about-lead) { color: var(--about-soft); opacity: .88; }
html:not([data-mode="engineer"]) .skill-list span { color: var(--about-soft); border-color: var(--about-line); background: #ffffff0d; }
html:not([data-mode="engineer"]) .about-copy .text-link { color: var(--about-white); border-color: var(--about-line); }
html:not([data-mode="engineer"]) .stat-card strong { color: var(--about-white); }
html:not([data-mode="engineer"]) .stat-card strong span,
html:not([data-mode="engineer"]) .note-spark { color: var(--about-sand); }
html:not([data-mode="engineer"]) .stat-card p { color: var(--about-soft); }
html:not([data-mode="engineer"]) .stat-card,
html:not([data-mode="engineer"]) .aside-note { border-color: var(--about-line); }
html:not([data-mode="engineer"]) .stat-line { background: var(--about-line); }
html:not([data-mode="engineer"]) .aside-note p { color: var(--about-soft); }

/* Cursor turns white over the red About section so it stays visible */
.cursor.on-accent .cursor-dot { background: #fff; box-shadow: 0 0 12px #ffffffb3; }
.cursor.on-accent .cursor-ring { border-color: #ffffffcc; }
.cursor.on-accent .cursor-ring i { background: #fff; }
.cursor.on-accent .cursor-readout { color: #fff3e8; }
.cursor.on-accent.is-hover .cursor-ring { border-color: #fff; background: #ffffff1f; }
.cursor.on-accent.has-label .cursor-ring { background: #fff; border-color: #fff; }
.cursor.on-accent .cursor-label { color: #c8361b; }
.cursor-ping.on-accent { border-color: #fff; }

/* ---------- Career journey ---------- */
.journey-section { border-top: 1px solid var(--line); }
.journey-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.3fr); gap: 70px; align-items: start; }
.journey-intro { position: sticky; top: 110px; }
.journey-intro h2 { margin: 0 0 22px; font: 600 clamp(37px, 4.5vw, 58px)/1.08 var(--display); letter-spacing: -.065em; }
.journey-intro h2 span { color: var(--lime); font: italic 400 1.03em var(--serif); letter-spacing: -.06em; }
.journey-lead { max-width: 380px; color: var(--muted); font-size: 14px; line-height: 1.8; margin-bottom: 34px; }
.journey-counter { display: flex; align-items: flex-start; gap: 4px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.journey-counter strong { font: 600 72px/.85 var(--display); letter-spacing: -5px; }
.journey-counter > span { color: var(--lime); font: 600 40px/1 var(--display); }
.journey-counter small { margin: 8px 0 0 16px; color: var(--muted); font: 9px/1.6 var(--mono); letter-spacing: 1px; }
.journey-roots { margin-top: 28px; }
.journey-roots-title { color: var(--muted); font: 9px var(--mono); letter-spacing: 1px; margin-bottom: 12px; }
.journey-degree { display: grid; grid-template-columns: 74px 1fr; column-gap: 12px; padding: 12px 14px; margin-bottom: 8px; border: 1px solid var(--line); border-left: 2px solid var(--lime); background: color-mix(in srgb, var(--lime) 4%, transparent); }
.journey-degree b { grid-row: 1 / 3; color: var(--lime); font: 500 12px var(--mono); padding-top: 2px; }
.journey-degree span { font-size: 13px; font-weight: 600; }
.journey-degree small { color: var(--muted); font-size: 11px; margin-top: 3px; }

.journey-track { position: relative; list-style: none; margin: 0; padding: 0 0 0 46px; }
.journey-trace { position: absolute; left: 9px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.journey-trace-fill { position: absolute; inset: 0 0 auto 0; height: 100%; background: var(--lime); box-shadow: 0 0 12px var(--lime); transform-origin: top; transform: scaleY(var(--journey-progress, 0)); }
.journey-item { position: relative; padding: 0 0 46px; opacity: .45; transition: opacity .5s ease; }
.journey-item:last-child { padding-bottom: 0; }
.journey-item.is-lit { opacity: 1; }
.journey-pin { position: absolute; left: -43px; top: 3px; width: 16px; height: 16px; border: 2px solid var(--line); border-radius: 3px; background: var(--paper); transition: border-color .4s ease, box-shadow .4s ease, transform .4s cubic-bezier(.2,.8,.2,1); }
.journey-pin::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--line); transition: background .4s ease; }
.journey-item.is-lit .journey-pin { border-color: var(--lime); box-shadow: 0 0 16px color-mix(in srgb, var(--lime) 60%, transparent); transform: rotate(45deg); }
.journey-item.is-lit .journey-pin::after { background: var(--lime); }
.journey-item.is-now .journey-pin::before { content: ""; position: absolute; inset: -8px; border: 1px solid var(--lime); border-radius: 4px; animation: journey-pulse 2s ease-out infinite; }
@keyframes journey-pulse { from { opacity: .8; transform: scale(.7); } to { opacity: 0; transform: scale(1.5); } }
.journey-when { display: flex; align-items: center; gap: 10px; color: var(--muted); font: 10px var(--mono); letter-spacing: 1.1px; margin-bottom: 10px; }
.journey-now { padding: 3px 7px; border-radius: 20px; background: var(--lime); color: #101311; font-weight: 500; font-size: 8px; }
.journey-body { padding: 20px 22px; border: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 90%, #fff 3%); transition: border-color .3s ease, transform .3s cubic-bezier(.2,.8,.2,1); }
.journey-item:hover .journey-body { border-color: color-mix(in srgb, var(--lime) 60%, var(--line)); transform: translateX(6px); }
.journey-body h3 { margin: 0 0 4px; font: 600 20px var(--display); letter-spacing: -.6px; }
.journey-company { margin: 0 0 12px; color: var(--lime); font-size: 12px; font-weight: 600; }
.journey-body p:not(.journey-company) { margin: 0 0 14px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.journey-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.journey-tags span { padding: 5px 8px; border: 1px solid var(--line); font: 8px var(--mono); letter-spacing: .6px; color: var(--muted); }

@media (max-width: 1000px) {
  .journey-layout { grid-template-columns: 1fr; gap: 50px; }
  .journey-intro { position: static; }
}
@media (max-width: 700px) {
  .journey-track { padding-left: 36px; }
  .journey-pin { left: -33px; }
  .journey-body { padding: 16px; }
  .journey-counter strong { font-size: 58px; }
}
@media (prefers-reduced-motion: reduce) {
  .journey-item { opacity: 1; }
  .journey-item.is-now .journey-pin::before { animation: none; }
}

/* ---------- Project brief form ---------- */
.brief-dialog { width: min(760px, calc(100% - 24px)); max-height: calc(100% - 24px); padding: 0; border: 1px solid var(--line); background: var(--paper); color: var(--ink); box-shadow: 0 30px 120px #000a; overflow: auto; }
.brief-dialog[open] { animation: brief-in .5s cubic-bezier(.2,.8,.2,1); }
.brief-dialog::backdrop { background: #070908cc; backdrop-filter: blur(6px); }
@keyframes brief-in { from { opacity: 0; transform: translateY(24px) scale(.98); clip-path: inset(0 0 100% 0); } to { opacity: 1; transform: none; clip-path: inset(0 0 0 0); } }
.brief-form, .brief-done { position: relative; padding: 0 clamp(20px, 5vw, 46px) clamp(24px, 4vw, 38px); background-image: radial-gradient(color-mix(in srgb, var(--lime) 14%, transparent) 1px, transparent 1px); background-size: 22px 22px; background-position: -11px -11px; }
.brief-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 16px; margin: 0 calc(-1 * clamp(20px, 5vw, 46px)) 30px; padding: 14px clamp(20px, 5vw, 46px); border-bottom: 1px solid var(--line); background: var(--paper); }
.brief-eyebrow { display: inline-flex; align-items: center; gap: 9px; color: var(--muted); font: 9px var(--mono); letter-spacing: 1.1px; }
.brief-led { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px var(--lime); animation: terminal-pulse 1.4s steps(2) infinite; }
.brief-ticket { margin-left: auto; color: var(--lime); font: 9px var(--mono); letter-spacing: 1px; }
.brief-close { width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink); font-size: 20px; line-height: 1; cursor: pointer; transition: transform .3s ease, border-color .3s ease; }
.brief-close:hover { transform: rotate(90deg); border-color: var(--lime); }
.brief-dialog h2 { margin: 0 0 10px; font: 600 clamp(36px, 6vw, 58px)/1 var(--display); letter-spacing: -.07em; }
.brief-dialog h2 span { color: var(--lime); font: italic 400 1.04em var(--serif); letter-spacing: -.05em; }
.brief-intro { max-width: 430px; color: var(--muted); font-size: 13px; line-height: 1.7; margin-bottom: 28px; }
.brief-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.brief-wide { grid-column: 1 / -1; }

.brief-field { position: relative; }
.brief-field input, .brief-field textarea { width: 100%; padding: 26px 46px 10px 14px; border: 1px solid var(--line); border-radius: 0; background: color-mix(in srgb, var(--paper) 85%, #000); color: var(--ink); font: 15px var(--sans); outline: none; transition: border-color .25s ease, box-shadow .25s ease; }
.brief-field textarea { resize: vertical; min-height: 130px; padding-top: 30px; line-height: 1.6; }
.brief-field label { position: absolute; left: 15px; top: 18px; color: var(--muted); font-size: 14px; pointer-events: none; transform-origin: left top; transition: transform .25s cubic-bezier(.2,.8,.2,1), color .25s ease, font .25s ease; }
.brief-field input:focus + label, .brief-field input:not(:placeholder-shown) + label,
.brief-field textarea:focus + label, .brief-field textarea:not(:placeholder-shown) + label { transform: translateY(-10px); font: 9px var(--mono); letter-spacing: 1px; text-transform: uppercase; color: var(--lime); }
.brief-field input:focus, .brief-field textarea:focus { border-color: var(--lime); box-shadow: 0 0 0 3px color-mix(in srgb, var(--lime) 18%, transparent), inset 3px 0 0 var(--lime); }
.brief-index { position: absolute; right: 13px; top: 15px; color: var(--muted); font: 9px var(--mono); opacity: .7; }
.brief-field.is-valid .brief-index { color: var(--lime); opacity: 1; }
.brief-field.is-valid .brief-index::after { content: " ✓"; }
.brief-bytes { position: absolute; right: 13px; bottom: 12px; color: var(--muted); font: 8px var(--mono); letter-spacing: .8px; }
.brief-bytes b { color: var(--ink); font-weight: 400; }
.brief-error { display: block; min-height: 0; color: #ff8a6b; font: 9px var(--mono); letter-spacing: .5px; }
.brief-error:not(:empty) { margin-top: 6px; }
.brief-field.is-invalid input, .brief-field.is-invalid textarea { border-color: #ff8a6b; animation: brief-shake .35s ease; }
@keyframes brief-shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

.brief-types { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 4px; padding: 0; border: 0; }
.brief-types legend, .brief-human legend { margin-bottom: 11px; padding: 0; color: var(--muted); font: 9px var(--mono); letter-spacing: 1.1px; text-transform: uppercase; }
.brief-types legend em { font-style: normal; opacity: .6; text-transform: none; }
.brief-types label { position: relative; cursor: pointer; }
.brief-types input { position: absolute; opacity: 0; inset: 0; }
.brief-types span { display: inline-block; padding: 9px 13px; border: 1px solid var(--line); border-radius: 30px; color: var(--muted); font-size: 12px; transition: all .2s ease; }
.brief-types label:hover span { border-color: var(--lime); color: var(--ink); }
.brief-types input:checked + span { background: var(--lime); border-color: var(--lime); color: #101311; }
.brief-types input:checked + span::before { content: "● "; font-size: 8px; vertical-align: 2px; }
.brief-types input:focus-visible + span { outline: 2px solid var(--lime); outline-offset: 2px; }

.brief-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.brief-human { margin: 22px 0 0; padding: 16px 18px 18px; border: 1px dashed color-mix(in srgb, var(--lime) 45%, var(--line)); background: #050806; }
.brief-human legend { padding: 0 8px; margin-left: -8px; background: #050806; }
.human-copy { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.human-copy p { margin: 0; color: #cfd6cb; font-size: 13px; }
.human-target { display: inline-block; min-width: 30px; padding: 2px 8px; margin-left: 4px; border: 1px solid var(--lime); color: var(--lime); font: 500 14px var(--mono); text-align: center; }
.human-new { border: 0; background: none; color: var(--muted); font: 9px var(--mono); letter-spacing: .8px; cursor: pointer; }
.human-new:hover { color: var(--lime); }
.human-board { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.human-switches { display: flex; gap: 10px; padding: 10px 12px; border-radius: 4px; background: #b3261a; box-shadow: inset 0 -3px 0 #0004, 0 4px 0 #6d140c; }
html[data-mode="engineer"] .human-switches { background: #0d6b3a; box-shadow: inset 0 -3px 0 #0004, 0 4px 0 #063a1f; }
.human-switch { display: grid; justify-items: center; gap: 5px; padding: 0; border: 0; background: none; cursor: pointer; }
.switch-body { position: relative; width: 22px; height: 40px; border-radius: 2px; background: #f4f1e8; box-shadow: inset 0 2px 4px #0005; }
.switch-knob { position: absolute; left: 3px; right: 3px; bottom: 3px; height: 15px; border-radius: 1px; background: #2a2d2a; box-shadow: 0 2px 0 #000; transition: transform .22s cubic-bezier(.3,1.6,.5,1); }
.human-switch[aria-pressed="true"] .switch-knob { transform: translateY(-19px); }
.human-switch b { color: #fff3e8; font: 500 10px var(--mono); }
.human-switch:focus-visible .switch-body { outline: 2px solid #fff; outline-offset: 3px; }
.human-readout { display: flex; align-items: center; gap: 12px; color: #cfd6cb; font: 13px var(--mono); }
.human-bits { color: var(--lime); font: 500 22px var(--mono); letter-spacing: 6px; }
.human-sum { color: var(--muted); min-width: 40px; }
.human-led { width: 14px; height: 14px; border-radius: 50%; background: #3a1a14; box-shadow: inset 0 -2px 3px #0008; transition: background .3s ease, box-shadow .3s ease; }
.brief-human.is-verified { border-style: solid; border-color: #4dff9a; }
.brief-human.is-verified .human-led { background: #4dff9a; box-shadow: 0 0 6px #4dff9a, 0 0 22px #4dff9a; }
.brief-human.is-verified .human-sum::after { content: " ✓ HUMAN"; color: #4dff9a; font-size: 10px; letter-spacing: 1px; }

.brief-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.brief-status { margin: 0; color: var(--muted); font: 9px var(--mono); letter-spacing: 1px; }
.brief-submit { position: relative; overflow: hidden; border: 0; cursor: pointer; min-width: 190px; }
.brief-progress { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: #101311; transform: scaleX(0); transform-origin: left; }
.brief-form.is-sending .brief-progress { transition: transform 1.4s cubic-bezier(.4,0,.2,1); transform: scaleX(1); }
.brief-form.is-sending .brief-submit { pointer-events: none; }

.brief-done { padding-top: 46px; text-align: left; }
.done-wave svg { width: 220px; height: 44px; }
.done-wave path { fill: none; stroke: var(--lime); stroke-width: 2; stroke-dasharray: 300; stroke-dashoffset: 300; filter: drop-shadow(0 0 6px var(--lime)); animation: done-draw 1.2s ease forwards; }
@keyframes done-draw { to { stroke-dashoffset: 0; } }
.brief-done h2 { margin-top: 14px; }
.done-copy { max-width: 440px; color: var(--muted); font-size: 14px; line-height: 1.7; margin-bottom: 26px; }

@media (max-width: 600px) {
  .brief-grid { grid-template-columns: 1fr; }
  .brief-foot { flex-direction: column-reverse; align-items: stretch; }
  .brief-submit { width: 100%; }
  .human-copy { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .brief-dialog[open], .brief-field.is-invalid input, .brief-field.is-invalid textarea { animation: none; }
  .done-wave path { animation: none; stroke-dashoffset: 0; }
}

/* ---------- Journey: bullet points & minor degrees ---------- */
.journey-points { margin: 0 0 14px; padding: 0; list-style: none; }
.journey-points li { position: relative; padding-left: 16px; margin-bottom: 6px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.journey-points li::before { content: ""; position: absolute; left: 0; top: .7em; width: 7px; height: 1px; background: var(--lime); }
.journey-points a { color: var(--ink); border-bottom: 1px solid var(--lime); }
.journey-degree.is-minor { border-left-color: var(--line); background: transparent; padding-block: 9px; }
.journey-degree.is-minor b { color: var(--muted); }
.journey-degree.is-minor span { font-size: 12px; font-weight: 500; }
.journey-intro { position: static; }
@media (min-width: 1001px) and (min-height: 900px) { .journey-intro { position: sticky; top: 100px; } }

/* ---------- What I build ---------- */
.build-section { border-top: 1px solid var(--line); }
.build-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.build-card { position: relative; min-height: 290px; padding: 18px 18px 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; overflow: hidden; transition: background .35s ease; }
.build-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--lime) 16%, transparent), transparent 60%); opacity: 0; transition: opacity .35s ease; pointer-events: none; }
.build-card:hover::before { opacity: 1; }
.build-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 34px; }
.build-code { color: var(--muted); font: 9px var(--mono); letter-spacing: 1px; }
.build-led { width: 6px; height: 6px; border-radius: 50%; background: var(--line); transition: background .3s ease, box-shadow .3s ease; }
.build-card:hover .build-led { background: var(--lime); box-shadow: 0 0 10px var(--lime); }
.build-icon { width: 38px; height: 38px; margin-bottom: 22px; fill: none; stroke: var(--lime); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s cubic-bezier(.2,.8,.2,1), filter .3s ease; }
.build-icon * { stroke-dasharray: 80; stroke-dashoffset: 0; }
.build-card:hover .build-icon { transform: translateY(-4px) scale(1.08); filter: drop-shadow(0 0 6px color-mix(in srgb, var(--lime) 70%, transparent)); }
.build-card:hover .build-icon * { animation: icon-draw .9s ease; }
@keyframes icon-draw { from { stroke-dashoffset: 80; } to { stroke-dashoffset: 0; } }
.build-card h3 { margin: 0 0 9px; font: 600 18px/1.15 var(--display); letter-spacing: -.5px; }
.build-card p { margin: 0 0 16px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.build-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: auto; }
.build-tags span { padding: 4px 6px; border: 1px solid var(--line); color: var(--muted); font: 7px var(--mono); letter-spacing: .6px; }
.build-pins { position: absolute; left: 18px; right: 18px; bottom: -1px; display: flex; justify-content: space-between; }
.build-pins i { width: 6px; height: 5px; background: var(--line); transition: background .3s ease, transform .3s ease; }
.build-card:hover .build-pins i { background: var(--lime); transform: scaleY(1.6); }
.build-card:hover .build-pins i:nth-child(2) { transition-delay: .04s; } .build-card:hover .build-pins i:nth-child(3) { transition-delay: .08s; }
.build-card:hover .build-pins i:nth-child(4) { transition-delay: .12s; } .build-card:hover .build-pins i:nth-child(5) { transition-delay: .16s; }
.build-card:hover .build-pins i:nth-child(6) { transition-delay: .2s; }
.build-grid .build-card.reveal:nth-child(5n+2) { transition-delay: .06s; } .build-grid .build-card.reveal:nth-child(5n+3) { transition-delay: .12s; }
.build-grid .build-card.reveal:nth-child(5n+4) { transition-delay: .18s; } .build-grid .build-card.reveal:nth-child(5n) { transition-delay: .24s; }

/* skill meters — segmented like a VU / signal meter */
.skill-meters { margin-top: 34px; border: 1px solid var(--line); }
.meters-head { display: flex; justify-content: space-between; padding: 11px 16px; border-bottom: 1px solid var(--line); color: var(--muted); font: 8px var(--mono); letter-spacing: 1px; }
.meters-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; padding: 10px 16px 14px; }
.meter { display: grid; grid-template-columns: 130px 1fr 44px; align-items: center; gap: 14px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.meter-name { font-size: 12px; font-weight: 600; }
.meter-bar { position: relative; height: 12px; background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 9px); }
.meter-bar::after { content: ""; position: absolute; inset: 0; width: calc(var(--level) * 1%); background: repeating-linear-gradient(90deg, var(--lime) 0 6px, transparent 6px 9px); filter: drop-shadow(0 0 4px color-mix(in srgb, var(--lime) 60%, transparent)); clip-path: inset(0 100% 0 0); transition: clip-path 1.4s cubic-bezier(.3,.7,.2,1); }
.skill-meters.is-visible .meter-bar::after { clip-path: inset(0 0 0 0); }
.meter-value { color: var(--lime); font: 11px var(--mono); text-align: right; }

@media (max-width: 1100px) { .build-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1000px) { .primary-nav { gap: 16px; font-size: 12px; } }
@media (max-width: 700px) {
  .build-grid { grid-template-columns: 1fr 1fr; }
  .build-card { min-height: 0; padding: 15px 14px 22px; }
  .build-top { margin-bottom: 20px; }
  .meters-grid { grid-template-columns: 1fr; }
  .meter { grid-template-columns: 110px 1fr 38px; gap: 10px; }
}
@media (max-width: 420px) { .build-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .meter-bar::after { clip-path: none; transition: none; } }

/* ---------- Full-screen panels ---------- */
dialog.panel-dialog:modal, .panel-dialog { inset: 0; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--paper); color: var(--ink); overflow-y: auto; overscroll-behavior: contain; }
.panel-dialog::backdrop { background: transparent; }
.panel-dialog[open] { animation: panel-open .75s cubic-bezier(.7,0,.2,1) both; }
.panel-dialog.is-closing { animation: panel-close .5s cubic-bezier(.7,0,.3,1) both; }
@keyframes panel-open { from { clip-path: circle(0 at var(--ox, 50%) var(--oy, 50%)); } to { clip-path: circle(150% at var(--ox, 50%) var(--oy, 50%)); } }
@keyframes panel-close { from { clip-path: circle(150% at var(--ox, 50%) var(--oy, 50%)); } to { clip-path: circle(0 at var(--ox, 50%) var(--oy, 50%)); } }
.panel-dialog > section { border-top: 0; padding-top: 50px; padding-bottom: 160px; }
.panel-dialog[open] > section .reveal { transition-delay: .35s; }
.panel-bar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 14px; height: 60px; padding: 0 max(16px, calc((100vw - 1190px) / 2)); border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); }
.panel-code { display: inline-flex; align-items: center; gap: 9px; color: var(--muted); font: 9px var(--mono); letter-spacing: 1.2px; }
.panel-switch { margin-left: auto; border: 1px solid var(--line); border-radius: 30px; padding: 9px 14px; background: transparent; color: var(--ink); font-size: 12px; font-weight: 600; cursor: pointer; transition: border-color .2s ease, color .2s ease; }
.panel-switch span { color: var(--lime); margin-left: 6px; }
.panel-switch:hover { border-color: var(--lime); }
.panel-close { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border: 1px solid var(--lime); border-radius: 30px; background: var(--lime); color: #101311; font-size: 18px; line-height: 1; cursor: pointer; transition: transform .25s ease; }
.panel-close span { font: 500 8px var(--mono); letter-spacing: 1px; }
.panel-close:hover { transform: rotate(-4deg) scale(1.04); }
.panel-dialog .journey-intro { top: 90px; }

@media (max-width: 520px) {
  .panel-code { display: none; }
  .panel-bar { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .panel-dialog[open], .panel-dialog.is-closing { animation: none; }
}

/* ---------- Control panel launcher: big editorial rows ---------- */
.launch-section { border-top: 1px solid var(--line); }
.launch-list { border-top: 1px solid var(--line); }
.launch-row { position: relative; isolation: isolate; width: 100%; display: grid; grid-template-columns: 70px minmax(0, 1fr) 90px 128px; align-items: center; gap: 24px; padding: 40px 28px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); text-align: left; font: inherit; cursor: pointer; overflow: hidden; }
.launch-fill { position: absolute; inset: 0; z-index: -1; background: var(--lime); clip-path: inset(0 100% 0 0); transition: clip-path .7s cubic-bezier(.7,0,.2,1); }
.launch-row:hover .launch-fill, .launch-row:focus-visible .launch-fill, .launch-row.is-pressed .launch-fill { clip-path: inset(0 0 0 0); }
.launch-row:focus-visible { outline: 2px solid var(--lime); outline-offset: -2px; }

.launch-marquee { position: absolute; z-index: -1; left: 0; top: 50%; transform: translateY(-50%); white-space: nowrap; pointer-events: none; opacity: .07; transition: opacity .5s ease; }
.launch-marquee > span { display: inline-block; font: 800 clamp(70px, 10vw, 150px)/1 var(--display); letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1px var(--ink); animation: launch-marquee 38s linear infinite; }
.launch-marquee i { font-style: normal; font-weight: 400; color: var(--ink); -webkit-text-stroke: 0; font-size: .5em; vertical-align: middle; }
.launch-row:nth-child(2) .launch-marquee > span { animation-direction: reverse; }
.launch-row:hover .launch-marquee { opacity: .22; }
.launch-row:hover .launch-marquee > span { -webkit-text-stroke-color: #101311; animation-duration: 14s; }
.launch-row:hover .launch-marquee i { color: #101311; }
@keyframes launch-marquee { to { transform: translateX(-50%); } }

.launch-index { align-self: start; color: var(--muted); font: 500 13px var(--mono); letter-spacing: 1px; padding-top: 8px; transition: color .4s ease; }
.launch-index::before { content: "["; } .launch-index::after { content: "]"; }
.launch-text { display: grid; gap: 12px; min-width: 0; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.launch-row:hover .launch-text { transform: translateX(16px); }
.launch-kicker { color: var(--muted); font: 9px var(--mono); letter-spacing: 1.3px; transition: color .4s ease; }
.launch-title { font: 600 clamp(40px, 6.4vw, 92px)/.95 var(--display); letter-spacing: -.075em; transition: color .4s ease; }
.launch-title em { color: var(--lime); font: italic 400 1.04em var(--serif); letter-spacing: -.05em; transition: color .4s ease; }
.launch-desc { max-width: 520px; color: var(--muted); font-size: 13px; line-height: 1.6; transition: color .4s ease; }
.launch-meta { justify-self: end; color: var(--muted); font: 10px/1.6 var(--mono); letter-spacing: 1px; text-align: right; transition: color .4s ease; }
.launch-row:hover :is(.launch-index, .launch-kicker, .launch-title, .launch-title em, .launch-desc, .launch-meta) { color: #101311; }

.launch-badge { position: relative; justify-self: end; width: 118px; height: 118px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); transition: background .5s ease, border-color .5s ease, transform .6s cubic-bezier(.2,.8,.2,1); }
.launch-badge svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: badge-spin 16s linear infinite; overflow: visible; }
.launch-badge text { fill: var(--ink); font: 500 8.5px var(--mono); letter-spacing: 1px; transition: fill .4s ease; }
.launch-arrow { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); color: #101311; font-size: 20px; transition: transform .6s cubic-bezier(.2,.8,.2,1), background .4s ease, color .4s ease; }
.launch-row:hover .launch-badge { background: #101311; border-color: #101311; transform: scale(1.06) rotate(-8deg); }
.launch-row:hover .launch-badge svg { animation-duration: 4s; }
.launch-row:hover .launch-badge text { fill: var(--lime); }
.launch-row:hover .launch-arrow { transform: rotate(45deg) scale(1.1); }
.launch-row.is-pressed .launch-badge { transform: scale(.9); }
@keyframes badge-spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .launch-row { grid-template-columns: minmax(0, 1fr) 96px; padding: 30px 18px; gap: 16px; }
  .launch-index, .launch-meta { display: none; }
  .launch-badge { width: 96px; height: 96px; }
  .launch-arrow { width: 38px; height: 38px; font-size: 17px; }
  .launch-row:hover .launch-text { transform: none; }
}
@media (max-width: 520px) {
  .launch-row { grid-template-columns: minmax(0, 1fr) 74px; padding: 26px 4px 26px 14px; }
  .launch-badge { width: 74px; height: 74px; }
  .launch-badge text { font-size: 10px; }
  .launch-arrow { width: 30px; height: 30px; font-size: 14px; }
  .launch-desc { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .launch-marquee > span, .launch-badge svg { animation: none; }
}

/* ---------- Hero core: simple red M. with an arc-reactor glow ---------- */
.art-core .core-label { bottom: 16px; }
.reactor { position: relative; display: grid; place-items: center; width: 140px; height: 140px; margin-top: -26px; }
.reactor > span { position: absolute; border-radius: 50%; }
/* the big soft light that fades in and out behind everything */
.reactor-glow { inset: -30px; background: radial-gradient(circle, color-mix(in srgb, var(--lime) 55%, transparent) 0%, color-mix(in srgb, var(--lime) 18%, transparent) 38%, transparent 68%); animation: reactor-breathe 3.6s ease-in-out infinite; }
.reactor-ring { border: 1px solid color-mix(in srgb, var(--lime) 60%, transparent); }
.reactor-outer { inset: 0; box-shadow: 0 0 14px color-mix(in srgb, var(--lime) 45%, transparent), inset 0 0 14px color-mix(in srgb, var(--lime) 30%, transparent); animation: reactor-ring 3.6s ease-in-out infinite; }
.reactor-inner { inset: 30px; border-width: 2px; border-color: color-mix(in srgb, var(--lime) 80%, transparent); box-shadow: 0 0 12px var(--lime), inset 0 0 12px color-mix(in srgb, var(--lime) 60%, transparent); animation: reactor-ring 3.6s ease-in-out infinite .3s; }
/* ten glowing coil segments, like the arc reactor */
.reactor-segments { inset: 9px; background: repeating-conic-gradient(from 9deg, var(--lime) 0 26deg, transparent 26deg 36deg); -webkit-mask: radial-gradient(circle, transparent 0 66%, #000 67% 86%, transparent 87%); mask: radial-gradient(circle, transparent 0 66%, #000 67% 86%, transparent 87%); filter: drop-shadow(0 0 6px var(--lime)); animation: reactor-spin 14s linear infinite, reactor-segment-fade 3.6s ease-in-out infinite; }
.reactor-core { inset: 38px; background: radial-gradient(circle, color-mix(in srgb, var(--lime) 30%, #fff) 0%, color-mix(in srgb, var(--lime) 45%, transparent) 45%, transparent 72%); filter: blur(2px); animation: reactor-breathe 3.6s ease-in-out infinite .15s; }
.reactor-m { position: relative; z-index: 1; color: var(--lime); font: 800 56px/1 var(--display); letter-spacing: -4px; text-shadow: 0 0 10px color-mix(in srgb, var(--lime) 90%, transparent), 0 0 26px color-mix(in srgb, var(--lime) 70%, transparent), 0 0 50px color-mix(in srgb, var(--lime) 45%, transparent); animation: reactor-m 3.6s ease-in-out infinite; }
.reactor-m i { font-style: normal; color: #fff3ee; margin-left: 1px; text-shadow: 0 0 8px var(--lime), 0 0 16px var(--lime); }
.art-core:hover .reactor-glow, .art-core:hover .reactor-core { animation-duration: 1.4s; }
.art-core:hover .reactor-segments { animation-duration: 4s, 1.4s; }
@keyframes reactor-breathe { 0%, 100% { opacity: .35; transform: scale(.92); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes reactor-ring { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
@keyframes reactor-segment-fade { 0%, 100% { opacity: .35; } 50% { opacity: .95; } }
@keyframes reactor-spin { to { transform: rotate(360deg); } }
@keyframes reactor-m { 0%, 100% { text-shadow: 0 0 6px color-mix(in srgb, var(--lime) 70%, transparent), 0 0 16px color-mix(in srgb, var(--lime) 40%, transparent); } 50% { text-shadow: 0 0 12px var(--lime), 0 0 32px color-mix(in srgb, var(--lime) 85%, transparent), 0 0 60px color-mix(in srgb, var(--lime) 55%, transparent); } }
@media (max-width: 700px) {
  .reactor { transform: scale(.74); margin-top: -30px; }
  .art-core .core-label { bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .reactor-glow, .reactor-outer, .reactor-inner, .reactor-segments, .reactor-core, .reactor-m { animation: none; }
}
/* reactor: dark centre so the red M pops */
.reactor-core { inset: 34px; filter: none; background: radial-gradient(circle, #0d0706 0 56%, color-mix(in srgb, var(--lime) 40%, #0d0706) 72%, transparent 76%); box-shadow: 0 0 18px color-mix(in srgb, var(--lime) 50%, transparent); animation: reactor-ring 3.6s ease-in-out infinite .15s; }
.reactor-inner { inset: 32px; }
.reactor-m { color: color-mix(in srgb, var(--lime) 88%, #fff); }

/* Remove the big outer circle around the reactor + label */
.art-core { border: 0 !important; background: none !important; box-shadow: none !important; animation: none !important; }
.art-core::before, .art-core::after { display: none !important; }

/* The "." after M: red, blinking like a text cursor waiting for typing */
.reactor-m i { color: var(--lime); text-shadow: 0 0 6px var(--lime), 0 0 14px color-mix(in srgb, var(--lime) 70%, transparent); animation: cursor-blink 1s steps(1, end) infinite; }
@keyframes cursor-blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .reactor-m i { animation: cursor-blink 1s steps(1, end) infinite; } }

/* Header + footer logo: keep "M." together inside the circle, and blink the dot like a cursor */
.brand-mark { display: inline-flex; align-items: center; justify-content: center; letter-spacing: -1px; }
.brand-mark span { display: inline-block; animation: cursor-blink 1s steps(1, end) infinite; text-shadow: 0 0 6px color-mix(in srgb, var(--lime) 70%, transparent); }
/* Logo without the circle: just "M." */
.brand-mark, .site-footer .brand-mark { width: auto; height: auto; border: 0 !important; border-radius: 0; font-size: 24px; letter-spacing: -1.5px; }
.site-footer .brand-mark { font-size: 20px; }

/* Hero M: no rings — just the M with its soft breathing glow */
.reactor-outer, .reactor-inner, .reactor-segments, .reactor-core { display: none !important; }
.reactor-glow { inset: -10px; }
/* Two ovals crossing in an X around the M, each with a rocket-flame comet */
.m-orbits { position: absolute; left: 50%; top: 50%; width: 230px; height: 230px; transform: translate(-50%, -50%); overflow: visible; pointer-events: none; }
.orbit-path { fill: none; stroke: color-mix(in srgb, var(--lime) 30%, transparent); stroke-width: .8; }
.comet { fill: none; stroke-linecap: round; animation-duration: 3.2s; animation-timing-function: linear; animation-iteration-count: infinite; }
.comet-b { animation-duration: 4.4s; animation-delay: -1.3s; }
/* shooting-star tail: many thin red layers, longer = thinner + fainter, so it fades smoothly to transparent */
.t0 { stroke: var(--lime); stroke-width: 0.5; opacity: 0.1; stroke-dasharray: 42 58; animation-name: st0; }
@keyframes st0 { from { stroke-dashoffset: 42; } to { stroke-dashoffset: -58; } }
.t1 { stroke: var(--lime); stroke-width: 0.7; opacity: 0.12; stroke-dasharray: 36 64; animation-name: st1; }
@keyframes st1 { from { stroke-dashoffset: 36; } to { stroke-dashoffset: -64; } }
.t2 { stroke: var(--lime); stroke-width: 0.9; opacity: 0.14; stroke-dasharray: 30 70; animation-name: st2; }
@keyframes st2 { from { stroke-dashoffset: 30; } to { stroke-dashoffset: -70; } }
.t3 { stroke: var(--lime); stroke-width: 1.1; opacity: 0.16; stroke-dasharray: 25 75; animation-name: st3; }
@keyframes st3 { from { stroke-dashoffset: 25; } to { stroke-dashoffset: -75; } }
.t4 { stroke: var(--lime); stroke-width: 1.4; opacity: 0.18; stroke-dasharray: 20 80; animation-name: st4; }
@keyframes st4 { from { stroke-dashoffset: 20; } to { stroke-dashoffset: -80; } }
.t5 { stroke: var(--lime); stroke-width: 1.7; opacity: 0.2; stroke-dasharray: 16 84; animation-name: st5; }
@keyframes st5 { from { stroke-dashoffset: 16; } to { stroke-dashoffset: -84; } }
.t6 { stroke: var(--lime); stroke-width: 2.0; opacity: 0.24; stroke-dasharray: 12 88; animation-name: st6; }
@keyframes st6 { from { stroke-dashoffset: 12; } to { stroke-dashoffset: -88; } }
.t7 { stroke: var(--lime); stroke-width: 2.3; opacity: 0.28; stroke-dasharray: 9 91; animation-name: st7; }
@keyframes st7 { from { stroke-dashoffset: 9; } to { stroke-dashoffset: -91; } }
.t8 { stroke: var(--lime); stroke-width: 2.6; opacity: 0.34; stroke-dasharray: 6 94; animation-name: st8; }
@keyframes st8 { from { stroke-dashoffset: 6; } to { stroke-dashoffset: -94; } }
.t9 { stroke: var(--lime); stroke-width: 2.9; opacity: 0.45; stroke-dasharray: 4 96; animation-name: st9; }
@keyframes st9 { from { stroke-dashoffset: 4; } to { stroke-dashoffset: -96; } }
.t10 { stroke: var(--lime); stroke-width: 3.1; opacity: 0.6; stroke-dasharray: 2.4 97.6; animation-name: st10; }
@keyframes st10 { from { stroke-dashoffset: 2.4; } to { stroke-dashoffset: -97.6; } }
.star { stroke: #fff; stroke-width: 3.4; stroke-dasharray: .6 99.4; animation-name: st-star; filter: drop-shadow(0 0 2px #fff) drop-shadow(0 0 6px var(--lime)) drop-shadow(0 0 12px var(--lime)); }
@keyframes st-star { from { stroke-dashoffset: .6; } to { stroke-dashoffset: -99.4; } }
.t0, .t1, .t2, .t3 { stroke-linecap: butt; }
.art-core:hover .comet-a { animation-duration: 1.4s; }
.art-core:hover .comet-b { animation-duration: 1.9s; }
@media (max-width: 700px) { .m-orbits { width: 200px; height: 200px; } }
@media (prefers-reduced-motion: reduce) { .comet { animation: none; } }
/* shooting-star head: red instead of white */
.star { stroke: color-mix(in srgb, var(--lime) 85%, #fff); filter: drop-shadow(0 0 2px var(--lime)) drop-shadow(0 0 6px var(--lime)) drop-shadow(0 0 12px var(--lime)); }
