@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&display=swap');

/* Shared palette and type */
:root { --bg:#141613; --panel:#1b2019; --text:#f0f0e9; --muted:#a2a79b; --line:#33382e; --green:#c7ee91; --serif:Georgia,'Times New Roman',serif; --sans:'DM Sans',Arial,sans-serif; }
* { box-sizing:border-box; }
html { scroll-behavior:smooth; scroll-padding-top:40px; }
body { margin:0 auto; max-width:1600px; background:var(--bg); color:var(--text); font:16px/1.7 var(--sans); -webkit-font-smoothing:antialiased; }
a { color:inherit; text-decoration:none; }
a:hover { color:var(--green); }
button,input { font:inherit; }
button { cursor:pointer; }
a,button,input { -webkit-tap-highlight-color:transparent; }
:focus-visible { outline:2px solid var(--green); outline-offset:5px; }
::selection { background:var(--green); color:var(--bg); }
h1,h2,h3,p { margin-top:0; }
h1 { margin-bottom:0; font:clamp(68px,6.95vw,110px)/1.04 var(--serif); letter-spacing:-4px; }
h2 { margin:0; font:48px/1.15 var(--serif); letter-spacing:-1.7px; }
h3 { margin-bottom:14px; font-size:22px; font-weight:500; line-height:1.4; letter-spacing:-.5px; }
em { color:var(--green); font-weight:400; }
.header-note,.eyebrow,.hero-foot,.section-label,.visual-top,.visual-bottom,.card-number,.tag,.chapter,.time,.pub-venue,.company-heading>span,.life-symbol { font-size:12px; font-weight:500; letter-spacing:1.4px; }
.tag,.chapter,.pub-venue { color:var(--green); }
.chapter { display:block; margin-bottom:18px; }
.section { margin:0 5%; padding:86px 0; border-bottom:1px solid var(--line); }
.section-label { display:flex; justify-content:space-between; gap:20px; margin-bottom:48px; color:var(--muted); }
.section-label span:last-child { text-align:right; }
.section-heading { display:flex; justify-content:space-between; align-items:flex-end; gap:35px; margin-bottom:44px; }
.section-heading p { margin:0; color:var(--muted); font-size:14px; }
.text-link { color:var(--green); font-size:14px; }

/* Header and introduction */
.header { min-height:98px; margin:0 5%; display:flex; align-items:center; justify-content:space-between; gap:24px; border-bottom:1px solid var(--line); }
.wordmark { font-size:27px; font-weight:600; letter-spacing:-2px; }
.wordmark span { color:var(--green); font-weight:400; }
.header nav { display:flex; gap:26px; font-size:14px; }
.header-note { color:var(--muted); }
.hero { margin:0 5%; padding-top:77px; display:grid; grid-template-columns:1fr 1fr; gap:24px; }
.hero-copy { position:relative; z-index:1; min-width:0; }
.eyebrow { display:flex; align-items:center; gap:12px; color:var(--green); margin-bottom:26px; }
.small-line { width:24px; height:1px; flex-shrink:0; background:var(--green); }
.intro { color:var(--muted); margin:30px 0 26px; line-height:1.85; }
.name { color:var(--text); }
.primary-link { display:inline-flex; align-items:center; gap:44px; padding-bottom:10px; border-bottom:1px solid var(--green); font-size:14px; }
.primary-link span { color:var(--green); font-size:22px; transition:transform .3s; }
.primary-link:hover span { transform:translate(3px,-3px); }
.social-links,.contact-links { display:flex; flex-wrap:wrap; gap:24px; font-size:14px; }
.social-links { margin-top:25px; color:var(--muted); }
.visual { position:relative; min-width:0; height:560px; align-self:center; background:radial-gradient(ellipse at center,#29351e55,transparent 67%); }
canvas { display:block; width:100%; height:100%; }
.visual-top,.visual-bottom { position:absolute; left:12px; right:12px; display:flex; justify-content:space-between; color:#a3ae97; font-size:10px; }
.visual-top { top:0; }
.visual-bottom { bottom:0; align-items:center; }
.visual-bottom button { border:0; background:none; color:var(--muted); font-size:12px; min-height:44px; }
.visual-bottom button span { margin-left:6px; }
.cross { position:absolute; color:#66705d; font:20px monospace; }
.cross-a { left:9px; top:40px; }
.cross-b { right:9px; bottom:48px; }
.hero-foot { grid-column:1/-1; display:flex; justify-content:space-between; align-items:center; gap:20px; margin-top:50px; padding:24px 0; border-top:1px solid var(--line); color:var(--muted); font-size:10px; }
.hero-foot a { color:var(--text); }
.hero-foot a span { margin-left:22px; }
.about-main,.journey-main { display:grid; grid-template-columns:1fr 1fr; gap:70px; }
.about-copy { max-width:510px; }
.about-copy p { color:var(--muted); font-size:17px; margin-bottom:20px; }
.about-copy p:first-child { color:var(--text); font-size:21px; }
.about-copy a { text-decoration:underline; text-underline-offset:4px; }
.signature { display:flex; justify-content:space-between; gap:20px; margin-top:32px; padding-top:24px; border-top:1px solid var(--line); font-size:14px; }
.signature span { color:var(--green); }
.focus-grid { display:grid; grid-template-columns:repeat(3,1fr); border:1px solid var(--line); }
.focus-grid article { padding:30px; transition:background .3s; }
.focus-grid article:hover { background:var(--panel); }
.focus-grid article+article { border-left:1px solid var(--line); }
.card-number { color:var(--muted); }
.mini-mark { height:120px; display:flex; align-items:center; color:var(--green); font:48px var(--serif); }
.mini-mark span { color:#6a765d; }
.math { font-style:italic; }
.focus-grid p { color:var(--muted); font-size:16px; margin-bottom:28px; }

/* Research and timeline */
.publications article { display:grid; grid-template-columns:190px 1fr; gap:24px; padding:30px 0; border-top:1px solid var(--line); }
.publications h3 { max-width:850px; line-height:1.5; }
.publications p { font-size:14px; color:var(--muted); margin:0; }
.timeline article { display:grid; grid-template-columns:108px 1fr; gap:10px; padding-bottom:35px; }
.timeline article+article { padding-top:35px; border-top:1px solid var(--line); }
.timeline article:last-child { padding-bottom:0; }
.time { color:var(--muted); font-size:11px; padding-top:4px; }
.timeline h3 { font-size:24px; margin-bottom:7px; }
.timeline p { color:var(--muted); margin-bottom:15px; }
.detail { color:var(--muted); font-size:14px; }

/* Playground: one local drawing and two concept notes */
.experiment { display:grid; grid-template-columns:1fr 1.15fr; border:1px solid var(--line); }
.experiment-controls { padding:36px; }
.experiment-controls h3 { font:34px/1.2 var(--serif); }
.experiment-controls p { color:var(--muted); }
.experiment label { display:block; font-size:14px; }
.input-row { display:flex; margin:10px 0 24px; border:1px solid #5b6652; }
.input-row input { min-width:0; width:100%; padding:12px; background:transparent; border:0; color:var(--text); font-size:16px; }
.input-row button { flex-shrink:0; border:0; background:var(--green); color:var(--bg); padding:10px 14px; font-size:14px; }
.experiment .range-label { display:flex; justify-content:space-between; color:var(--muted); }
#art-chaos { width:100%; margin:16px 0 22px; accent-color:var(--green); cursor:pointer; }
.art-actions { display:flex; flex-wrap:wrap; gap:24px; }
.art-actions button { padding:5px 0; color:var(--green); background:none; border:0; border-bottom:1px solid #59634d; font-size:14px; min-height:44px; }
.experiment .experiment-note { margin:25px 0 0; font-size:12px; line-height:1.7; }
.art-stage { position:relative; min-height:500px; background:#10140f; overflow:hidden; }
#word-art { position:absolute; inset:0; }
.art-caption { position:absolute; bottom:20px; left:24px; right:24px; display:flex; justify-content:space-between; align-items:flex-end; gap:20px; color:#b4c5a8; font-size:12px; pointer-events:none; }
#art-title { max-width:75%; overflow-wrap:anywhere; }
#art-number { white-space:nowrap; font-size:10px; letter-spacing:1px; }
.idea-grid { display:grid; grid-template-columns:1fr 1fr; gap:50px; margin-top:42px; }
.idea-grid article { padding-top:28px; border-top:1px solid var(--line); }
.idea-grid h3 { font:32px/1.2 var(--serif); }
.idea-grid p { color:var(--muted); max-width:490px; }

/* Life, and industry work grouped by company */
.life-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:30px; }
.life-grid article { border-top:1px solid var(--line); padding-top:24px; }
.life-symbol { display:block; color:var(--green); margin-bottom:45px; }
.life-grid h3 { font:28px/1.25 var(--serif); }
.life-grid p { color:var(--muted); font-size:15px; }
.life-grid .tag { font-size:11px; }
.company-group { display:grid; grid-template-columns:1fr 2fr; gap:60px; border-top:1px solid var(--line); padding-top:38px; margin-top:45px; }
.company-heading h3 { font:32px/1.2 var(--serif); }
.company-heading>span { color:var(--green); font-size:11px; }
.company-heading p { color:var(--muted); font-size:14px; margin-top:20px; }
.work-item { padding-bottom:32px; }
.work-item+article { padding-top:32px; border-top:1px solid var(--line); }
.work-item h3 { font-size:24px; }
.work-item p { color:var(--muted); margin-bottom:22px; }
.results { display:flex; flex-wrap:wrap; gap:22px 45px; margin:26px 0; }
.results span { color:var(--muted); font-size:13px; max-width:300px; }
.results strong { display:block; color:var(--text); font:34px/1.4 var(--serif); }
.work-item .work-tools { font-size:12px; letter-spacing:.6px; margin:22px 0 0; }
footer { padding:85px 5% 0; }
.footer-title { font:72px/1.1 var(--serif); letter-spacing:-2px; }
.cursor { font-size:58px; color:var(--green); margin-left:6px; animation:blink 1.3s step-end infinite; }
.contact-links { margin-top:35px; }
.footer-base { display:flex; justify-content:space-between; align-items:center; gap:20px; border-top:1px solid var(--line); margin-top:65px; padding:25px 0; }
.footer-base>span { color:var(--muted); font-size:12px; overflow-wrap:anywhere; }
.footer-base>a:last-child { font-size:10px; letter-spacing:1px; }
.skip { position:absolute; top:-100px; left:20px; padding:12px; background:var(--green); color:var(--bg); z-index:5; }
.skip:focus { top:15px; }
@keyframes blink { 50% { opacity:0; } }
.reveal { opacity:0; transform:translateY(22px); transition:opacity .8s,transform .8s; }
.reveal.visible { opacity:1; transform:none; }

/* Responsive layouts and motion preferences */
@media(max-width:1100px) {
  .header-note { display:none; }
  .about-main,.journey-main { gap:35px; }
  h2 { font-size:40px; }
  .focus-grid article { padding:24px; }
  .life-grid { grid-template-columns:1fr 1fr; }
  .experiment-controls { padding:26px; }
  .company-group { gap:35px; }
}
@media(max-width:760px) {
  .header { min-height:78px; margin:0 6%; gap:20px; }
  .header nav { gap:18px; font-size:13px; }
  .hero { margin:0 6%; grid-template-columns:1fr; padding-top:45px; gap:0; }
  h1 { font-size:clamp(54px,12vw,84px); letter-spacing:-3px; }
  .eyebrow { font-size:10px; }
  .intro { font-size:16px; }
  .visual { width:100%; height:370px; margin-top:35px; }
  .hero-foot { margin-top:24px; font-size:9px; }
  .hero-foot>span { max-width:145px; }
  .hero-foot a span { margin-left:8px; }
  .section { margin:0 6%; padding:58px 0; }
  .section-label { margin-bottom:35px; font-size:10px; }
  .about-main,.journey-main,.company-group,.experiment { grid-template-columns:1fr; gap:30px; }
  h2 { font-size:38px; }
  .about-copy p:first-child { font-size:20px; }
  .about-copy p { font-size:16px; }
  .section-heading { display:block; }
  .section-heading p { margin-top:20px; }
  .section-heading>.text-link { display:inline-block; margin-top:24px; }
  .focus-grid { grid-template-columns:1fr; }
  .focus-grid article+article { border-left:0; border-top:1px solid var(--line); }
  .mini-mark { height:95px; }
  .publications article { grid-template-columns:1fr; gap:16px; }
  .publications h3 { font-size:20px; }
  .timeline article { grid-template-columns:88px 1fr; }
  .time { font-size:10px; }
  .experiment { gap:0; }
  .art-stage { min-height:390px; }
  .idea-grid { grid-template-columns:1fr; gap:30px; }
  .life-grid { gap:30px 24px; }
  .life-grid h3 { font-size:25px; }
  .company-group { gap:20px; }
  .company-heading { padding-bottom:12px; }
  footer { padding:58px 6% 0; }
  .footer-title { font-size:53px; }
  .cursor { font-size:40px; }
  .footer-base { flex-wrap:wrap; margin-top:45px; }
  .footer-base>span { order:3; width:100%; }
}
@media(max-width:390px) {
  .header { flex-wrap:wrap; padding:18px 0; gap:12px; }
  .header nav { gap:16px; }
  .life-grid { grid-template-columns:1fr; }
  .life-symbol { margin-bottom:22px; }
  .social-links { gap:16px; }
}
@media(prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto; }
  *,*:before,*:after { animation:none!important; transition:none!important; }
  .reveal { opacity:1; transform:none; }
}

/* The activity rail sits beside the reading column, below the hero. */
.site-layout { display:grid; grid-template-columns:minmax(0,1fr) 235px; gap:44px; margin:0 5%; }
.main-sections { min-width:0; }
.main-sections .section { margin:0; }
.activity { padding:86px 0 40px 26px; border-left:1px solid var(--line); }
.activity-inner { position:sticky; top:32px; }
.activity h2 { font-size:38px; }
.activity-intro { color:var(--muted); font-size:13px; margin:24px 0 32px; }
#activity-list { list-style:none; padding:0; margin:0 0 30px; font-size:14px; }
#activity-list li { position:relative; border-left:1px solid var(--line); padding:0 0 28px 18px; }
#activity-list li:before { content:''; position:absolute; width:5px; height:5px; border-radius:50%; background:var(--green); top:8px; left:-3px; }
#activity-list time { font-size:11px; letter-spacing:1px; color:var(--green); }
#activity-list p { margin:8px 0 0; color:var(--muted); line-height:1.8; overflow-wrap:anywhere; }
#activity-list a,.activity-contact { font-size:13px; color:var(--green); display:inline-block; margin-top:10px; }
.site-layout .about-main,.site-layout .journey-main { grid-template-columns:.9fr 1.1fr; gap:35px; }
.site-layout .section-heading { align-items:flex-start; }
.site-layout h2 { font-size:40px; }
.site-layout .section-heading p { max-width:220px; }
.site-layout .experiment { grid-template-columns:1fr; }
.site-layout .art-stage { min-height:460px; }
.site-layout .publications article { grid-template-columns:135px 1fr; }
.site-layout .life-grid { grid-template-columns:1fr 1fr; }
.site-layout .company-group { grid-template-columns:1fr; gap:18px; }
@media(min-width:1400px) { .site-layout .experiment { grid-template-columns:1fr 1fr; } }
@media(max-width:1100px) {
  .site-layout { grid-template-columns:minmax(0,1fr) 210px; gap:30px; }
  .site-layout .about-main,.site-layout .journey-main { grid-template-columns:1fr; }
  .site-layout .focus-grid { grid-template-columns:1fr; }
  .site-layout .focus-grid article+article { border-left:0; border-top:1px solid var(--line); }
  .site-layout .section-heading { display:block; }
  .site-layout .section-heading p { margin-top:22px; max-width:none; }
}
@media(max-width:760px) {
  .site-layout { display:flex; flex-direction:column; gap:0; margin:0 6%; }
  .activity { order:-1; padding:40px 0 12px; border-left:0; border-bottom:1px solid var(--line); }
  .activity-inner { position:static; }
  .activity h2 br { display:none; }
  .activity h2 em:before { content:' '; }
  .activity-intro { margin:16px 0 26px; }
  .activity-contact { margin-bottom:24px; }
  .site-layout h2 { font-size:38px; }
  .site-layout .publications article { grid-template-columns:1fr; }
  .site-layout .art-stage { min-height:360px; }
}
@media(max-width:390px) { .site-layout .life-grid { grid-template-columns:1fr; } }
