:root {
  --ink: #101311;
  --paper: #f0f1ea;
  --white: #fbfcf6;
  --acid: #c8ff45;
  --muted: #777d76;
  --line: rgba(16, 19, 17, 0.18);
  --mono: "DM Mono", monospace;
  --sans: "Manrope", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.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; }
.skip-link { position: fixed; top: -60px; left: 16px; z-index: 100; background: var(--acid); padding: 10px 16px; transition: top .2s; }
.skip-link:focus { top: 12px; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: 76px;
  padding: 0 clamp(22px, 4vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid transparent;
  transition: background .25s, border-color .25s;
}
.site-header.scrolled { background: rgba(240,241,234,.9); backdrop-filter: blur(14px); border-color: var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.04em; font-size: 20px; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid currentColor; border-radius: 50%; font-size: 14px; font-family: var(--mono); }
.brand-dot { color: #6c940d; }
nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 44px); font: 500 13px/1 var(--mono); text-transform: uppercase; }
nav a:not(.nav-cta) { position: relative; }
nav a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 1px; background: var(--ink); transition: right .2s; }
nav a:hover::after { right: 0; }
.nav-cta { background: var(--ink); color: var(--white); padding: 12px 18px; border-radius: 999px; }
.menu-button { display: none; border: 0; background: transparent; padding: 8px; }
.menu-button span:not(.sr-only) { width: 23px; height: 1px; background: var(--ink); display: block; margin: 5px 0; }

.hero { min-height: 100vh; display: grid; grid-template-columns: 1.12fr .88fr; align-items: center; gap: 5vw; padding: 130px clamp(22px, 6vw, 96px) 58px; position: relative; }
.hero::before { content: ""; position: absolute; inset: 76px 50% 0 auto; border-left: 1px solid var(--line); }
.eyebrow, .section-index { font: 500 12px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #7baa12; margin-right: 10px; box-shadow: 0 0 0 5px rgba(123,170,18,.15); }
h1 { font-size: clamp(50px, 7.2vw, 110px); line-height: .94; letter-spacing: -.075em; max-width: 980px; margin: 24px 0 32px; font-weight: 600; }
h1 em, .contact h2 em { font-family: Georgia, serif; font-weight: 400; }
.hero-intro { max-width: 620px; font-size: clamp(17px, 1.5vw, 21px); color: #464b47; }
.hero-actions { display: flex; align-items: center; gap: 30px; margin-top: 38px; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; padding: 16px 22px; border-radius: 2px; font: 500 13px/1 var(--mono); text-transform: uppercase; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-3px); }
.button-primary { background: var(--ink); color: var(--white); }
.button-primary span { color: var(--acid); }
.text-link, .project-link { font: 500 13px/1 var(--mono); text-transform: uppercase; border-bottom: 1px solid currentColor; padding-bottom: 4px; }

.hero-visual { aspect-ratio: 1; position: relative; border-radius: 50%; background: var(--ink); max-width: 660px; width: 100%; justify-self: center; overflow: hidden; box-shadow: 0 30px 80px rgba(16,19,17,.2); }
.hero-visual::before, .hero-visual::after { content: ""; position: absolute; background: rgba(255,255,255,.1); }
.hero-visual::before { width: 1px; height: 100%; left: 50%; }
.hero-visual::after { height: 1px; width: 100%; top: 50%; }
.orbit { position: absolute; border: 1px solid rgba(200,255,69,.45); border-radius: 50%; top: 50%; left: 50%; transform: translate(-50%,-50%); }
.orbit-one { width: 76%; height: 76%; }
.orbit-two { width: 52%; height: 52%; border-style: dashed; animation: rotate 18s linear infinite; }
.orbit-three { width: 98%; height: 32%; transform: translate(-50%,-50%) rotate(-24deg); border-color: rgba(255,255,255,.18); }
.robot-core { position: absolute; width: 31%; height: 31%; top: 50%; left: 50%; transform: translate(-50%,-50%); border-radius: 50%; background: var(--acid); display: grid; place-items: center; box-shadow: 0 0 70px rgba(200,255,69,.25); }
.core-ring { width: 62%; height: 62%; border: 1px solid var(--ink); border-radius: 50%; }
.core-eye { position: absolute; width: 20%; height: 20%; background: var(--ink); border-radius: 50%; }
.node { position: absolute; width: 14px; height: 14px; border: 3px solid var(--acid); background: var(--ink); border-radius: 50%; }
.node-one { top: 20%; left: 27%; }.node-two { right: 15%; top: 52%; }.node-three { bottom: 13%; left: 43%; }
.coordinate-label { position: absolute; color: rgba(255,255,255,.55); font: 10px var(--mono); letter-spacing: .08em; }
.label-x { top: 17%; right: 18%; }.label-y { bottom: 25%; left: 11%; }
.visual-caption { position: absolute; display: flex; justify-content: space-between; left: 12%; right: 12%; bottom: 9%; color: white; font: 9px var(--mono); letter-spacing: .12em; }
@keyframes rotate { to { transform: translate(-50%,-50%) rotate(360deg); } }
.hero-meta { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--line); padding-top: 22px; margin-top: 12px; }
.hero-meta div { display: flex; flex-direction: column; gap: 4px; }
.hero-meta span, .credentials span { font: 10px var(--mono); letter-spacing: .12em; color: var(--muted); }
.hero-meta strong { font-size: 14px; font-weight: 600; }

.marquee { overflow: hidden; background: var(--acid); padding: 15px 0; transform: rotate(-1deg) scale(1.02); }
.marquee-track { display: flex; width: max-content; align-items: center; gap: 28px; animation: scroll 28s linear infinite; font: 500 13px var(--mono); letter-spacing: .08em; }
.marquee i { font-style: normal; }
@keyframes scroll { to { transform: translateX(-50%); } }

.section { padding: 140px clamp(22px, 6vw, 96px); }
.section-heading { display: grid; grid-template-columns: minmax(160px, .38fr) 1.1fr .55fr; gap: 4vw; align-items: start; margin-bottom: 70px; }
.section-heading h2 { font-size: clamp(38px, 5vw, 72px); line-height: 1.04; letter-spacing: -.055em; margin: 0; max-width: 800px; }
.section-heading > p:last-child { color: var(--muted); margin: 8px 0 0; }

.project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.project-card { min-height: 610px; background: var(--white); border: 1px solid var(--line); display: grid; grid-template-rows: 1fr auto; overflow: hidden; transition: transform .25s, box-shadow .25s; }
.project-card:hover { transform: translateY(-6px); box-shadow: 0 20px 45px rgba(16,19,17,.09); }
.project-featured { grid-column: 1 / -1; min-height: 610px; grid-template-columns: 1.25fr .75fr; grid-template-rows: 1fr; }
.project-art { min-height: 330px; background-color: #171a18; position: relative; overflow: hidden; background-image: linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px); background-size: 32px 32px; }
.project-content { padding: clamp(28px, 4vw, 54px); display: flex; flex-direction: column; align-items: flex-start; }
.project-number { font: 10px var(--mono); color: var(--muted); letter-spacing: .1em; }
.project-content h3 { font-size: clamp(27px, 3vw, 46px); line-height: 1.05; letter-spacing: -.04em; margin: 20px 0; }
.project-content p { color: var(--muted); max-width: 530px; margin: 0 0 24px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 34px; }
.tag-row span { border: 1px solid var(--line); padding: 6px 10px; border-radius: 999px; font: 10px var(--mono); text-transform: uppercase; }
.project-link { margin-top: auto; }
.video-links { width: 100%; margin: 0 0 30px; border-top: 1px solid var(--line); }
.video-links-label { display: block; padding: 12px 0 10px; color: var(--muted); font: 500 10px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.video-links a { display: grid; grid-template-columns: 28px 1fr auto; gap: 8px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); font: 500 11px/1.35 var(--mono); transition: color .2s, padding-left .2s; }
.video-links a:hover { color: #658b09; padding-left: 5px; }
.video-links a span { color: var(--muted); }
.video-links a b { font-size: 14px; font-weight: 400; }
.repository-link { margin-top: 0; }
.project-note { margin-top: auto; color: var(--muted); font: 500 10px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.calligraphy-art { display: grid; place-items: center; }
.calligraphy-character { color: rgba(255,255,255,.09); font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif; font-size: clamp(180px, 26vw, 420px); line-height: 1; transform: translateY(-2%); }
.stroke-path { position: absolute; inset: 8% 4%; width: 92%; height: 84%; }
.stroke-path text { fill: none; stroke: var(--acid); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 7 8; font: 400 410px "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif; filter: drop-shadow(0 0 8px rgba(200,255,69,.35)); }
.tracking-readout { position: absolute; left: 5%; right: 5%; bottom: 5%; display: flex; justify-content: space-between; color: rgba(255,255,255,.6); font: 10px var(--mono); letter-spacing: .12em; }
.tracking-readout span:last-child::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--acid); margin-right: 8px; }
.project-image-art img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .45s ease; }
.project-card:hover .project-image-art img { transform: scale(1.025); }
.video-cover { position: absolute; inset: 0; width: 100%; border: 0; padding: 0; background: transparent; color: inherit; cursor: pointer; }
.video-cover:focus-visible { outline: 3px solid var(--acid); outline-offset: -3px; }
.teach-art img { object-position: center center; }
.teach-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.72)); pointer-events: none; }
.teach-art.is-playing::after { display: none; }
.teach-art iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play { position: absolute; inset: 50% auto auto 50%; z-index: 2; width: 58px; height: 58px; display: grid; place-items: center; transform: translate(-50%,-50%); border-radius: 50%; background: var(--acid); color: var(--ink); font-size: 18px; padding-left: 4px; box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.image-caption { position: absolute; z-index: 2; left: 22px; bottom: 18px; color: #fff; font: 500 10px/1 var(--mono); letter-spacing: .1em; }

.experience { background: var(--ink); color: var(--white); }
.experience .section-heading > p:last-child { color: rgba(255,255,255,.55); }
.timeline { border-top: 1px solid rgba(255,255,255,.2); }
.timeline-item { display: grid; grid-template-columns: .55fr 1fr .8fr; gap: 4vw; padding: 34px 0; border-bottom: 1px solid rgba(255,255,255,.2); }
.timeline-year { font: 12px var(--mono); color: var(--acid); }
.timeline h3 { font-size: clamp(20px, 2.2vw, 30px); line-height: 1.2; margin: 0 0 8px; letter-spacing: -.025em; }
.company, .timeline-summary { color: rgba(255,255,255,.55); margin: 0; font-size: 14px; }

.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 7vw; }
.about-grid .section-heading { display: block; }
.about-grid .section-heading h2 { margin-top: 25px; }
.large-copy { font-size: clamp(25px, 3vw, 40px); line-height: 1.3; letter-spacing: -.03em; margin-top: 0; }
.about-copy > p:not(.large-copy) { color: var(--muted); max-width: 680px; }
.skills-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-left: 1px solid var(--line); margin-top: 55px; }
.skills-grid div { display: flex; flex-direction: column; padding: 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.skills-grid span { font: 10px var(--mono); color: var(--muted); }
.skills-grid strong { margin-top: 30px; }
.skills-grid small { color: var(--muted); }
.credentials { margin-top: 110px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1.4fr .6fr; }
.credential-main { padding: 44px 5vw 44px 0; border-right: 1px solid var(--line); }
.credential-main h3 { font-size: clamp(24px, 3vw, 38px); line-height: 1.25; letter-spacing: -.03em; margin: 12px 0 10px; }
.credential-main p, .credential-list p { color: var(--muted); margin: 0; }
.education-entry { padding: 28px 0 4px; }
.education-entry + .education-entry { border-top: 1px solid var(--line); margin-top: 28px; }
.education-status { display: inline-block; color: var(--ink) !important; background: var(--acid); padding: 5px 9px; margin-bottom: 8px !important; font: 500 10px/1 var(--mono); letter-spacing: .1em; }
.education-focus { color: var(--ink) !important; font-family: var(--mono); font-size: 13px; margin-top: 10px !important; }
.credential-list { display: grid; }
.credential-list div { padding: 30px; }
.credential-list div:first-child { border-bottom: 1px solid var(--line); }
.credential-list p { margin-top: 12px; }

.contact { min-height: 750px; padding: 120px clamp(22px, 8vw, 130px); background: var(--acid); position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.contact h2 { font-size: clamp(65px, 11vw, 170px); line-height: .82; letter-spacing: -.08em; margin: 32px 0 46px; max-width: 1200px; font-weight: 600; position: relative; z-index: 1; }
.contact-copy { max-width: 530px; font-size: 18px; position: relative; z-index: 1; }
.contact-links { display: flex; align-items: center; gap: 30px; margin-top: 26px; position: relative; z-index: 1; font: 500 13px var(--mono); text-transform: uppercase; }
.button-light { background: var(--white); }
.contact-orbit { width: 620px; height: 620px; border: 1px solid rgba(16,19,17,.25); border-radius: 50%; position: absolute; right: -60px; bottom: -170px; }
.contact-orbit::before,.contact-orbit::after { content: ""; position: absolute; border: 1px solid rgba(16,19,17,.2); border-radius: 50%; inset: 90px; }
.contact-orbit::after { inset: 210px; background: var(--ink); box-shadow: 0 0 0 30px rgba(16,19,17,.05); }

footer { background: var(--ink); color: var(--white); padding: 32px clamp(22px, 6vw, 96px); display: flex; justify-content: space-between; align-items: center; font: 11px var(--mono); text-transform: uppercase; }
footer p { margin: 0; color: rgba(255,255,255,.55); }

.reveal { opacity: 0; transform: translateY(25px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .hero::before { display: none; }
  .hero-copy { padding-top: 30px; }
  .hero-visual { max-width: 560px; }
  .section-heading { grid-template-columns: 1fr; }
  .section-heading > p:last-child { max-width: 580px; }
  .project-featured { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .about-grid { grid-template-columns: 1fr; }
  .timeline-item { grid-template-columns: .45fr 1fr; }
  .timeline-summary { grid-column: 2; }
}

@media (max-width: 680px) {
  .site-header { height: 66px; }
  .menu-button { display: block; z-index: 2; }
  nav { position: fixed; inset: 0; background: var(--acid); flex-direction: column; align-items: flex-start; justify-content: center; padding: 70px 10vw; gap: 30px; font-size: 24px; transform: translateX(100%); transition: transform .3s ease; }
  nav.open { transform: none; }
  .nav-cta { background: var(--ink); }
  .hero { padding-top: 110px; }
  h1 { font-size: clamp(46px, 15vw, 72px); }
  .hero-meta { grid-template-columns: 1fr; gap: 14px; }
  .hero-meta div { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 20px; }
  .section { padding-top: 90px; padding-bottom: 90px; }
  .project-grid { grid-template-columns: 1fr; }
  .project-featured { grid-column: auto; }
  .project-card { min-height: 560px; }
  .timeline-item { grid-template-columns: 1fr; gap: 12px; }
  .timeline-summary { grid-column: auto; }
  .skills-grid { grid-template-columns: 1fr; }
  .credentials { grid-template-columns: 1fr; }
  .credential-main { border-right: 0; border-bottom: 1px solid var(--line); padding-right: 0; }
  .contact { min-height: 640px; }
  .contact h2 { font-size: clamp(58px, 20vw, 95px); }
  .contact-links { align-items: flex-start; flex-direction: column; }
  footer { flex-direction: column; gap: 18px; text-align: center; }
}

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