:root {
  --ink: #080b0f;
  --ink-2: #111720;
  --paper: #f1f2ee;
  --paper-2: #e4e6e0;
  --white: #f9faf7;
  --muted: #79818c;
  --line: #cfd3ce;
  --signal: #71f6cd;
  --signal-dark: #08795d;
  --shell: min(1240px, calc(100% - 72px));
  --sans: "Aptos", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif;
  --mono: "SFMono-Regular", "Roboto Mono", "Cascadia Code", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
body.admin-bar .site-header { top: 32px; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { max-width: 100%; height: auto; }
.shell { width: var(--shell); margin-inline: auto; }

.site-header {
  height: 84px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid rgb(255 255 255 / 16%);
  position: absolute;
  z-index: 30;
  left: 50%;
  transform: translateX(-50%);
  color: white;
}
.brand { display: flex; align-items: center; gap: 4px; width: max-content; font-weight: 720; font-size: 21px; letter-spacing: -.07em; }
.brand i { color: var(--signal); font-style: normal; font-weight: 300; }
.site-header nav { display: flex; gap: 32px; font: 11px var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.site-header nav a { opacity: .65; transition: opacity .2s ease, color .2s ease; }
.site-header nav a:hover, .site-header nav a:focus-visible { opacity: 1; color: var(--signal); }
.top-actions { justify-self: end; display: flex; align-items: center; gap: 22px; }
.status { display: flex; align-items: center; gap: 8px; font: 9px var(--mono); text-transform: uppercase; letter-spacing: .09em; opacity: .68; }
.status i { width: 6px; height: 6px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 4px rgb(113 246 205 / 12%), 0 0 16px var(--signal); }
.language { border: 1px solid rgb(255 255 255 / 25%); color: white; background: transparent; padding: 7px 9px; cursor: pointer; display: flex; gap: 7px; align-items: center; font: 9px var(--mono); }
.language b { color: var(--signal); }
.language span { opacity: .45; }

.hero { min-height: 860px; background: var(--ink); color: white; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 75% 42%, rgb(113 246 205 / 8%), transparent 32%), linear-gradient(90deg, transparent 49.96%, rgb(255 255 255 / 4%) 50%, transparent 50.04%); pointer-events: none; }
.hero-grid { position: absolute; inset: 0; opacity: .11; background-image: linear-gradient(rgb(255 255 255 / 11%) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / 11%) 1px, transparent 1px); background-size: 72px 72px; mask-image: linear-gradient(to bottom, black, transparent 86%); }
.hero-copy { min-height: 810px; padding-top: 154px; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; position: relative; z-index: 2; }
.hero-text { padding-bottom: 54px; }
.eyebrow { margin: 0 0 38px; color: #abb3bd; font: 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.eyebrow span { display: inline-block; color: var(--signal); margin-right: 18px; }
.eyebrow b { font-weight: 400; }
.hero h1 { margin: 0; font-size: clamp(72px, 8.3vw, 132px); line-height: .81; letter-spacing: -.085em; font-weight: 610; position: relative; z-index: 4; }
.hero h1 span, .hero h1 em { display: block; white-space: nowrap; }
.hero h1 em { color: transparent; -webkit-text-stroke: 1px rgb(255 255 255 / 75%); font-style: normal; font-weight: 400; transform: translateX(7%); }
.hero-intro { max-width: 570px; margin: 50px 0 0; color: #98a2ae; font-size: 16px; line-height: 1.75; }
.hero-actions { display: flex; gap: 26px; align-items: center; margin-top: 40px; }
.cta { display: inline-flex; min-width: 205px; justify-content: space-between; align-items: center; gap: 26px; padding: 16px 18px; font-size: 12px; transition: transform .2s ease, background .2s ease, color .2s ease; }
.cta-light { background: var(--signal); color: var(--ink); }
.cta:hover, .cta:focus-visible { transform: translateY(-3px); background: white; }
.text-link { display: inline-flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid rgb(255 255 255 / 45%); color: #d4d8dd; font-size: 12px; }

.portrait-stage { --mx: 0; --my: 0; height: 650px; position: relative; align-self: end; transform-style: preserve-3d; }
.portrait-stage::before { content: ""; position: absolute; width: 450px; aspect-ratio: 1; border: 1px solid rgb(113 246 205 / 18%); border-radius: 50%; left: 46%; top: 48%; transform: translate(calc(-50% + var(--mx) * 8px), calc(-50% + var(--my) * 8px)); box-shadow: inset 0 0 80px rgb(113 246 205 / 4%); transition: transform .2s ease-out; }
.portrait-stage::after { content: ""; position: absolute; inset: 14% 3% 7% 12%; border: 1px solid rgb(255 255 255 / 12%); clip-path: polygon(0 0, 30% 0, 30% 1px, 100% 1px, 100% 70%, calc(100% - 1px) 70%, calc(100% - 1px) 100%, 60% 100%, 60% calc(100% - 1px), 0 calc(100% - 1px)); }
.portrait { position: absolute; width: 670px; max-width: 126%; right: -13%; bottom: -2%; z-index: 4; filter: drop-shadow(0 24px 50px rgb(0 0 0 / 55%)); transform: translate(calc(var(--mx) * -7px), calc(var(--my) * -5px)); transition: transform .15s ease-out; }
.portrait.ghost { z-index: 3; opacity: 0; filter: sepia(1) saturate(8) hue-rotate(105deg); animation: glitch 7s steps(1) infinite; transform: translate(calc(var(--mx) * -7px + 7px), calc(var(--my) * -5px)); }
@keyframes glitch { 0%, 88%, 91%, 100% { opacity: 0; clip-path: inset(0); } 89% { opacity: .6; clip-path: inset(12% 0 63% 0); } 90% { opacity: .35; clip-path: inset(61% 0 17% 0); } }
.scanline { position: absolute; z-index: 8; left: 14%; right: 3%; height: 1px; top: 18%; background: linear-gradient(90deg, transparent, var(--signal), transparent); box-shadow: 0 0 12px var(--signal); animation: scan 5.5s ease-in-out infinite; opacity: .7; }
@keyframes scan { 0%, 100% { top: 18%; opacity: 0; } 12%, 80% { opacity: .72; } 88% { top: 85%; opacity: 0; } }
.orbit { position: absolute; border: 1px solid rgb(113 246 205 / 22%); border-radius: 50%; z-index: 2; animation: rotate 24s linear infinite; }
.orbit-one { width: 520px; height: 520px; left: 2%; top: 12%; }
.orbit-two { width: 365px; height: 365px; left: 17%; top: 23%; animation-direction: reverse; animation-duration: 17s; border-style: dashed; }
.orbit span { position: absolute; padding: 5px 8px; background: var(--ink); color: var(--signal); font: 8px var(--mono); letter-spacing: .08em; border: 1px solid rgb(113 246 205 / 24%); }
.orbit-one span:nth-child(1) { top: -13px; left: 45%; }
.orbit-one span:nth-child(2) { right: -25px; top: 48%; }
.orbit-one span:nth-child(3) { bottom: 8%; left: 13%; }
.orbit-two span:nth-child(1) { top: 13%; left: 2%; }
.orbit-two span:nth-child(2) { bottom: -12px; left: 55%; }
@keyframes rotate { to { transform: rotate(360deg); } }
.portrait-code { position: absolute; z-index: 9; color: #87909c; font: 8px/1.7 var(--mono); letter-spacing: .08em; }
.code-a { right: 2%; top: 16%; text-align: right; }
.code-b { left: 5%; bottom: 15%; }
.portrait-caption { position: absolute; bottom: 4%; right: 0; z-index: 10; display: flex; gap: 18px; align-items: center; font: 8px var(--mono); letter-spacing: .12em; }
.portrait-caption span { color: var(--signal); }
.ticker { position: absolute; bottom: 0; left: 0; right: 0; height: 50px; background: var(--signal); color: var(--ink); display: flex; align-items: center; overflow: hidden; z-index: 10; font: 10px var(--mono); letter-spacing: .14em; }
.ticker div { white-space: nowrap; min-width: max-content; animation: marquee 24s linear infinite; word-spacing: 2.2em; }
.ticker div::after { content: "GO · JAVA · KOTLIN · DISTRIBUTED SYSTEMS · PERFORMANCE · RELIABILITY · AI WORKFLOWS · "; }
@keyframes marquee { to { transform: translateX(-50%); } }

.section { padding: 126px 0; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.metrics div { padding: 48px 32px 42px; border-right: 1px solid var(--line); }
.metrics div:first-child { padding-left: 0; }
.metrics div:last-child { border-right: 0; }
.metrics strong { display: block; font-size: 46px; letter-spacing: -.07em; font-weight: 590; }
.metrics span { display: block; margin-top: 7px; color: var(--muted); font: 10px var(--mono); text-transform: uppercase; letter-spacing: .07em; }
.section-head { display: flex; justify-content: space-between; padding-bottom: 17px; border-bottom: 1px solid var(--line); color: #626b75; font: 9px var(--mono); text-transform: uppercase; letter-spacing: .13em; }
.section-head.light { border-color: #323943; color: #87909b; }
.profile-lead, .work-intro { display: grid; grid-template-columns: 1.3fr .7fr; gap: 10%; align-items: end; padding: 74px 0 86px; }
.profile-lead h2, .work-intro h2 { margin: 0; font-size: clamp(52px, 6.3vw, 91px); line-height: .94; letter-spacing: -.07em; font-weight: 560; }
.profile-lead h2 span, .work-intro h2 span, .contact h2 span { display: block; }
.profile-lead p, .work-intro p { margin: 0; color: #68717c; font-size: 15px; line-height: 1.85; }
.capability-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.capability-grid article { min-height: 310px; padding: 29px 28px 32px; border-right: 1px solid var(--line); display: flex; flex-direction: column; position: relative; overflow: hidden; }
.capability-grid article:first-child { padding-left: 0; }
.capability-grid article:last-child { border-right: 0; }
.cap-index { color: var(--signal-dark); font: 9px var(--mono); }
.capability-grid h3 { margin: auto 0 16px; max-width: 190px; font-size: 22px; line-height: 1.12; letter-spacing: -.035em; font-weight: 590; }
.capability-grid p { margin: 0; color: #6d7680; font-size: 13px; line-height: 1.7; }
.cap-line { position: absolute; left: 0; top: 0; height: 2px; width: 0; background: var(--signal-dark); transition: width .8s ease .2s; }
.is-visible .cap-line { width: 100%; }
.tech-rail { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 7px; }
.tech-rail span { border: 1px solid #c7cbc6; padding: 8px 12px; color: #68717b; font: 9px var(--mono); }

.experience { background: var(--ink); color: white; }
.role-row { display: grid; grid-template-columns: .35fr 1.15fr 1.6fr; gap: 36px; padding: 43px 0 48px; border-bottom: 1px solid #2a313a; transition: background .25s ease, padding .25s ease; }
.role-row:hover { background: #0d1219; padding-inline: 18px; }
.role-number { color: var(--signal); font: 9px var(--mono); }
.role-meta > span { color: #798390; font: 9px var(--mono); }
.role-meta h3 { margin: 14px 0 4px; font-size: 34px; letter-spacing: -.05em; font-weight: 550; }
.role-meta small { color: #8f99a5; font-size: 11px; }
.role-story p { margin: 0 0 22px; color: #abb3bd; font-size: 14px; line-height: 1.8; }
.role-story b { color: var(--signal); font: 9px var(--mono); letter-spacing: .04em; font-weight: 500; }

.work-intro { padding-bottom: 72px; }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.project-card { min-height: 430px; background: #e3e5df; padding: 20px; display: flex; flex-direction: column; transition: transform .35s cubic-bezier(.2,.8,.2,1), background .25s ease; }
.project-card:hover { transform: translateY(-10px); background: var(--ink); color: white; }
.project-top, .project-bottom { display: flex; justify-content: space-between; align-items: center; }
.project-top { color: #6e7680; font: 9px var(--mono); }
.project-screen { margin: auto 0; aspect-ratio: 16/10; border: 1px solid #bfc4be; display: grid; place-content: center; position: relative; overflow: hidden; background: linear-gradient(135deg, rgb(8 11 15 / 4%), transparent); }
.project-card:hover .project-screen { border-color: #313944; background: linear-gradient(145deg, #111820, #090d12); }
.project-screen::before, .project-screen::after { content: ""; position: absolute; background: currentColor; opacity: .12; }
.project-screen::before { width: 1px; top: 0; bottom: 0; left: 50%; }
.project-screen::after { height: 1px; left: 0; right: 0; top: 50%; }
.project-screen i { width: 10px; height: 10px; border-radius: 50%; background: var(--signal-dark); box-shadow: 0 0 0 10px rgb(8 121 93 / 10%); margin: 0 auto 18px; animation: breathe 2.3s ease-in-out infinite; }
@keyframes breathe { 50% { box-shadow: 0 0 0 20px rgb(113 246 205 / 0%); } }
.project-screen b { font-size: 16px; letter-spacing: -.03em; }
.project-screen small { margin-top: 6px; text-align: center; color: #7d858e; font: 7px var(--mono); letter-spacing: .1em; }
.project-bottom h3 { margin: 0; font-size: 17px; font-weight: 560; }
.project-bottom span { color: #6e7680; font-size: 10px; }
.ai-panel { margin-top: 18px; padding: 43px; background: var(--signal); display: grid; grid-template-columns: .7fr 1.05fr 1.25fr; gap: 40px; align-items: start; }
.ai-panel > div:first-child { display: flex; align-items: center; gap: 13px; font: 9px var(--mono); text-transform: uppercase; }
.ai-pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 0 rgb(8 11 15 / 30%); animation: darkPulse 2s infinite; }
@keyframes darkPulse { 70% { box-shadow: 0 0 0 12px rgb(8 11 15 / 0%); } }
.ai-panel h3 { margin: -7px 0 0; font-size: 35px; line-height: 1; letter-spacing: -.055em; font-weight: 590; }
.ai-panel p { margin: 0; font-size: 13px; line-height: 1.75; }
.workflow { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr auto 1fr auto 1fr auto 1fr auto; align-items: center; padding-top: 33px; border-top: 1px solid rgb(8 11 15 / 23%); color: #12372d; font: 8px var(--mono); letter-spacing: .08em; }
.workflow i { height: 1px; background: rgb(8 11 15 / 34%); position: relative; }
.workflow i::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--ink); position: absolute; right: 0; top: -2px; }

.writing { background: var(--paper-2); }
.writing-lead { display: grid; grid-template-columns: 1.2fr .8fr; gap: 10%; align-items: end; padding: 70px 0 64px; }
.writing-lead h2 { margin: 0; font-size: clamp(56px, 7vw, 105px); line-height: .86; letter-spacing: -.075em; font-weight: 570; }
.writing-lead p { margin: 0; color: #68717b; line-height: 1.8; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #bec3bc; }
.post-card { min-height: 330px; border-right: 1px solid #bec3bc; }
.post-card:last-child { border-right: 0; }
.post-card > a, .post-empty { height: 100%; padding: 28px 28px 32px; display: flex; flex-direction: column; transition: background .25s ease, color .25s ease; }
.post-card > a:hover { background: var(--ink); color: white; }
.post-card-meta { display: flex; justify-content: space-between; color: var(--signal-dark); font: 8px var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.post-card h3 { margin: auto 0 18px; font-size: 29px; line-height: 1.06; letter-spacing: -.05em; font-weight: 560; }
.post-card p { margin: 0; color: #6d7680; font-size: 13px; line-height: 1.7; }
.post-card > a:hover p { color: #9fa8b2; }
.post-read { display: block; margin-top: 25px; font: 9px var(--mono); color: var(--signal-dark); text-transform: uppercase; }

.contact { background: var(--ink); color: white; padding-bottom: 38px; }
.contact-label { color: var(--signal); font: 9px var(--mono); text-transform: uppercase; letter-spacing: .13em; }
.contact h2 { margin: 55px 0 68px; font-size: clamp(67px, 9.2vw, 142px); line-height: .82; letter-spacing: -.085em; font-weight: 570; }
.contact h2 span:last-child { color: transparent; -webkit-text-stroke: 1px rgb(255 255 255 / 55%); margin-left: 9%; }
.contact-link { display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 30px; padding: 27px 0; border-top: 1px solid #343b45; border-bottom: 1px solid #343b45; transition: color .2s ease; }
.contact-link:hover { color: var(--signal); }
.contact-link span { color: #89929d; font-size: 12px; }
.contact-link b { font-size: 22px; font-weight: 480; }
.contact footer, .article-footer .shell { margin-top: 95px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; color: #77818d; font: 8px var(--mono); text-transform: uppercase; letter-spacing: .09em; }
.contact footer div, .article-footer .shell div { display: flex; gap: 28px; color: #c0c6cd; }
.contact footer > span:last-child, .article-footer .shell > span:last-child { justify-self: end; }

.journal, .article-page { background: var(--paper); min-height: 100vh; }
.journal-hero, .article-hero { background: var(--ink); color: white; padding: 180px 0 110px; position: relative; overflow: hidden; }
.journal-hero::after, .article-hero::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgb(255 255 255 / 6%) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / 6%) 1px, transparent 1px); background-size: 72px 72px; mask-image: linear-gradient(to bottom, black, transparent); pointer-events: none; }
.journal-hero .shell, .article-hero .shell { position: relative; z-index: 1; }
.journal-kicker, .back-to-journal, .article-meta { color: var(--signal); font: 9px var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.journal-hero h1 { margin: 35px 0; font-size: clamp(70px, 9vw, 140px); line-height: .82; letter-spacing: -.085em; font-weight: 590; }
.journal-hero h1 em { color: transparent; -webkit-text-stroke: 1px rgb(255 255 255 / 65%); font-style: normal; }
.journal-hero > .shell > p:last-child { max-width: 620px; color: #98a2ae; line-height: 1.8; }
.journal-list { padding: 70px 0 120px; }
.journal-row { border-top: 1px solid var(--line); }
.journal-row:last-of-type { border-bottom: 1px solid var(--line); }
.journal-row > a { display: grid; grid-template-columns: .5fr 1.5fr auto; gap: 50px; align-items: center; padding: 42px 0; transition: padding .25s ease, background .25s ease; }
.journal-row > a:hover { padding-inline: 24px; background: #e6e8e2; }
.journal-meta { display: flex; flex-direction: column; gap: 8px; color: var(--signal-dark); font: 8px var(--mono); text-transform: uppercase; }
.journal-row h2 { margin: 0 0 10px; font-size: clamp(27px, 3vw, 45px); line-height: 1.05; letter-spacing: -.05em; font-weight: 570; }
.journal-row p { margin: 0; color: #6d7680; line-height: 1.7; }
.journal-arrow { font-size: 28px; }
.pagination { margin-top: 50px; }
.nav-links { display: flex; gap: 10px; }
.page-numbers { border: 1px solid var(--line); padding: 10px 13px; font: 10px var(--mono); }
.page-numbers.current { background: var(--ink); color: white; }

.article-shell { max-width: 980px; }
.article-meta { margin: 52px 0 25px; display: flex; gap: 28px; color: #8c96a2; }
.article-hero h1 { margin: 0; max-width: 1000px; font-size: clamp(55px, 7.5vw, 112px); line-height: .9; letter-spacing: -.075em; font-weight: 590; }
.article-deck { max-width: 740px; margin: 38px 0 0; color: #a9b2bc; font-size: 19px; line-height: 1.65; }
.article-cover { margin-top: 60px; }
.article-cover img { display: block; width: 100%; max-height: 640px; object-fit: cover; }
.article-content { max-width: 820px; padding: 95px 0 110px; font-size: 18px; line-height: 1.85; color: #27303a; }
.article-content > * { max-width: 760px; margin-left: auto; margin-right: auto; }
.article-content h2, .article-content h3 { color: var(--ink); letter-spacing: -.04em; line-height: 1.15; }
.article-content h2 { margin-top: 2.4em; font-size: 40px; }
.article-content h3 { margin-top: 2em; font-size: 27px; }
.article-content a { color: var(--signal-dark); text-decoration: underline; text-underline-offset: 3px; }
.article-content blockquote { border-left: 3px solid var(--signal-dark); padding: 10px 0 10px 28px; color: #4e5965; font-size: 21px; }
.article-content pre, .article-content .wp-block-code { max-width: 900px; overflow-x: auto; background: var(--ink); color: #d8fff4; padding: 28px; font: 14px/1.7 var(--mono); }
.article-content code { font-family: var(--mono); background: #e1e4df; padding: .15em .35em; }
.article-content pre code { background: transparent; padding: 0; }
.article-content figure { max-width: 980px; }
.article-content figcaption { color: #7a838d; font-size: 12px; text-align: center; }
.article-content table { width: 100%; border-collapse: collapse; font-size: 15px; }
.article-content th, .article-content td { border-bottom: 1px solid var(--line); padding: 13px 10px; text-align: left; }
.article-end { max-width: 820px; display: flex; justify-content: space-between; padding: 30px 0 90px; border-top: 1px solid var(--line); color: var(--signal-dark); font: 9px var(--mono); text-transform: uppercase; letter-spacing: .1em; }
.article-footer { background: var(--ink); padding: 38px 0; }
.article-footer .shell { margin-top: 0; }

[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 4px; }

@media (max-width: 980px) {
  :root { --shell: min(100% - 44px, 1240px); }
  .site-header { grid-template-columns: 1fr auto; }
  .site-header nav, .status { display: none; }
  .hero { min-height: auto; }
  .hero-copy { min-height: 960px; padding-top: 130px; grid-template-columns: 1fr; align-items: start; }
  .hero-text { position: relative; z-index: 12; }
  .hero h1 { font-size: clamp(66px, 13vw, 108px); }
  .hero h1 em { transform: none; }
  .portrait-stage { height: 580px; margin-top: -80px; width: min(680px, 100%); justify-self: end; opacity: .82; }
  .metrics, .capability-grid { grid-template-columns: repeat(2, 1fr); }
  .capability-grid article:nth-child(2) { border-right: 0; }
  .capability-grid article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .profile-lead, .work-intro, .writing-lead { grid-template-columns: 1fr; gap: 40px; }
  .role-row { grid-template-columns: .3fr 1fr; }
  .role-story { grid-column: 2; }
  .project-grid, .post-grid { grid-template-columns: 1fr; }
  .project-card { min-height: 340px; }
  .post-card { border-right: 0; border-bottom: 1px solid #bec3bc; }
  .ai-panel { grid-template-columns: 1fr 1fr; }
  .ai-panel p { grid-column: 1 / -1; }
  .journal-row > a { grid-template-columns: .45fr 1.5fr auto; gap: 28px; }
}

@media (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}

@media (max-width: 640px) {
  :root { --shell: calc(100% - 30px); }
  .site-header { height: 68px; }
  .hero-copy { min-height: 840px; padding-top: 110px; }
  .eyebrow { line-height: 1.7; margin-bottom: 25px; }
  .eyebrow span { display: block; }
  .hero h1 { font-size: clamp(52px, 16vw, 76px); line-height: .88; }
  .hero-intro { margin-top: 34px; font-size: 14px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 14px; }
  .portrait-stage { height: 440px; margin-top: -20px; width: 108%; }
  .portrait { width: 480px; right: -18%; }
  .orbit-one { width: 380px; height: 380px; }
  .orbit-two { width: 270px; height: 270px; }
  .portrait-caption, .code-a { display: none; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .metrics div { padding: 30px 15px; border-bottom: 1px solid var(--line); }
  .metrics div:nth-child(2) { border-right: 0; }
  .metrics strong { font-size: 35px; }
  .section { padding: 86px 0; }
  .profile-lead, .work-intro, .writing-lead { padding: 52px 0 60px; }
  .profile-lead h2, .work-intro h2, .writing-lead h2 { font-size: 48px; }
  .capability-grid { grid-template-columns: 1fr; }
  .capability-grid article { min-height: 235px; border-right: 0; border-bottom: 1px solid var(--line); padding-inline: 0; }
  .role-row { grid-template-columns: 1fr; gap: 15px; padding: 34px 0; }
  .role-story { grid-column: 1; }
  .role-meta h3 { font-size: 29px; }
  .project-card { min-height: 300px; }
  .ai-panel { padding: 28px 22px; grid-template-columns: 1fr; }
  .ai-panel p { grid-column: 1; }
  .workflow { display: none; }
  .contact h2 { margin-block: 45px; font-size: 58px; }
  .contact h2 span:last-child { margin-left: 0; }
  .contact-link { grid-template-columns: 1fr auto; }
  .contact-link span:first-child { display: none; }
  .contact-link b { font-size: 15px; }
  .contact footer, .article-footer .shell { grid-template-columns: 1fr; gap: 24px; margin-top: 70px; }
  .contact footer > span:last-child, .article-footer .shell > span:last-child { justify-self: start; }
  .journal-hero, .article-hero { padding: 130px 0 75px; }
  .journal-hero h1 { font-size: 57px; }
  .journal-row > a { grid-template-columns: 1fr auto; gap: 20px; }
  .journal-meta { grid-column: 1 / -1; flex-direction: row; }
  .journal-row h2 { font-size: 31px; }
  .article-meta { flex-wrap: wrap; gap: 12px 22px; }
  .article-hero h1 { font-size: 51px; }
  .article-content { padding: 70px 0; font-size: 17px; }
  .article-content h2 { font-size: 32px; }
  .article-end { padding-bottom: 65px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
