:root {
  color-scheme: dark;
  --bg: #080f13;
  --surface: #0c191e;
  --raised: #102228;
  --line: #29444a;
  --text: #edfff4;
  --muted: #a8bdb7;
  --green: #79ffba;
  --green-deep: #36df9a;
  --cyan: #69dfeb;
  --violet: #b48aff;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-width: 0; margin: 0; background: var(--bg); color: var(--text); font: 400 1rem/1.65 var(--body); -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(circle at 86% 8%, rgba(66, 203, 164, .075), transparent 34%), radial-gradient(circle at 3% 64%, rgba(92, 115, 183, .045), transparent 35%); }
::selection { color: #06130d; background: var(--green); }
a { color: inherit; text-decoration: none; }
img, video, iframe { display: block; max-width: 100%; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 4px; }
.skip-link { position: absolute; top: -100px; left: 16px; z-index: 50; padding: 10px 16px; color: #06150d; background: var(--green); font-weight: 750; }
.skip-link:focus { top: 12px; }
.shell { width: min(calc(100% - 72px), 1240px); margin-inline: auto; }
.eyebrow { margin: 0; color: var(--green); font: 700 .7rem/1.5 var(--mono); letter-spacing: .17em; text-transform: uppercase; }
.signal { display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 16px rgba(121,255,186,.5); vertical-align: 1px; }
.period { color: var(--violet); }
.inline-link { display: inline-flex; gap: 12px; align-items: center; padding-bottom: 4px; border-bottom: 1px solid var(--green); color: var(--green); font: 700 .78rem/1.5 var(--mono); letter-spacing: .03em; }
.inline-link:hover { color: var(--text); border-color: var(--text); }
.button { display: inline-flex; min-height: 52px; align-items: center; justify-content: space-between; gap: 32px; padding: 12px 18px; font: 700 .78rem var(--mono); }
.button-primary { color: #07190f; background: var(--green); }
.button-primary:hover { background: #a6ffd0; }
.button-quiet { border: 1px solid var(--line); color: var(--text); }
.button-quiet:hover { border-color: var(--green); color: var(--green); }
.site-header { border-bottom: 1px solid var(--line); background: rgba(8, 15, 19, .95); }
.header-inner { min-height: 78px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 12px; font: 800 .76rem var(--mono); letter-spacing: .1em; white-space: nowrap; }
.brand-symbol { display: grid; width: 39px; height: 39px; place-items: center; border: 1px solid var(--green); color: var(--green); font: 800 1rem var(--mono); letter-spacing: -.15em; padding-right: 4px; }
.brand-symbol span { color: var(--cyan); }
.brand b { color: var(--green); }
.site-nav { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: clamp(12px, 2vw, 28px); margin-left: auto; }
.site-nav a, .portfolio-link { color: var(--muted); font: 700 .69rem var(--mono); letter-spacing: .04em; white-space: nowrap; }
.site-nav a small, .portfolio-link small { display: block; margin-top: 2px; color: var(--text); font: 500 .65rem/1.2 var(--body); letter-spacing: 0; }
.site-nav a:hover, .site-nav a[aria-current="page"], .portfolio-link:hover { color: var(--green); }
.portfolio-link { padding: 9px 11px; border: 1px solid var(--line); color: var(--text); }
.home-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(340px, .9fr); gap: clamp(26px, 4vw, 60px); align-items: center; padding-top: clamp(45px, 6vw, 85px); padding-bottom: clamp(65px, 8vw, 105px); }
.hero-copy h1 { display: flex; flex-direction: column; margin: 26px 0 36px; font: 900 clamp(3.5rem, 8.4vw, 8.7rem)/.85 var(--body); letter-spacing: -.087em; overflow-wrap: anywhere; }
.hero-copy h1 > span { color: var(--green); }
.hero-copy h1 em { margin-top: 16px; font-style: normal; letter-spacing: -.06em; }
.hero-lede { max-width: 25ch; margin: 0 0 16px; font: 750 clamp(1.35rem, 2.5vw, 2.2rem)/1.28 var(--body); letter-spacing: -.025em; }
.hero-description { max-width: 56ch; margin: 0; color: var(--muted); }
.hero-ja { max-width: 39ch; margin: 0 0 12px; color: var(--text); font-weight: 650; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }
.button small { display: block; margin-top: 2px; font: 600 .7rem/1.3 var(--body); }
.hero-film { min-width: 0; padding: 14px; border: 1px solid #3d7464; background: linear-gradient(145deg, #10272a, #0a171b 75%); scroll-margin-top: 20px; }
.hero-film-head, .hero-film-foot { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.hero-film-head { padding: 4px 5px 14px; color: var(--green); font: 700 .65rem var(--mono); letter-spacing: .08em; }
.hero-film-head small { font-size: .65rem; letter-spacing: 0; }
.hero-film video { width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; border: 1px solid var(--line); }
.hero-film-foot { align-items: flex-start; flex-direction: column; padding: 14px 5px 3px; }
.hero-film-foot strong { font-size: 1.15rem; line-height: 1.25; }
.hero-film-foot a { color: var(--green); border-bottom: 1px solid var(--green); font: 700 .7rem/1.5 var(--mono); }
.hero-film-foot a:hover { color: var(--text); border-color: var(--text); }
.hero-aside { min-height: 420px; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; padding: 26px; border: 1px solid #3d7464; background: radial-gradient(circle at 50% 40%, rgba(82,220,164,.12), transparent 46%), linear-gradient(145deg, #10272a, #0a171b 75%); }
.corner-label { color: var(--green); font: 700 .67rem var(--mono); letter-spacing: .15em; }
.orbit-mark { position: relative; display: flex; align-self: center; width: 210px; height: 210px; align-items: center; justify-content: center; border: 1px solid rgba(121,255,186,.75); border-radius: 50%; color: var(--text); font: 900 4.8rem var(--mono); letter-spacing: -.23em; padding-right: 24px; box-shadow: 0 0 0 18px rgba(121,255,186,.025), 0 0 0 45px rgba(121,255,186,.018); }
.orbit-mark::before, .orbit-mark::after { content: ""; position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.orbit-mark::before { top: 12px; left: 30px; }
.orbit-mark::after { right: 9px; bottom: 25px; }
.orbit-mark span:last-child { color: var(--green); }
.hero-aside p { margin: 0; color: var(--muted); font: 700 .61rem/1.8 var(--mono); letter-spacing: .03em; }
.hero-aside p span { color: var(--green); }
.hero-aside strong { max-width: 25ch; font-size: 1.05rem; line-height: 1.35; }
.home-section { padding-bottom: clamp(90px, 10vw, 145px); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 25px; margin-bottom: 26px; }
.section-heading h2 { max-width: 23ch; margin: 8px 0 0; font-size: clamp(1.9rem, 3vw, 3.1rem); line-height: 1.12; letter-spacing: -.045em; }
.case-card { min-width: 0; border: 1px solid var(--line); background: var(--surface); }
.case-card-link { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(290px, .65fr); height: 100%; }
.case-card:hover, .case-card:focus-within { border-color: var(--green); }
.case-card-image { position: relative; min-width: 0; overflow: hidden; background: #081517; }
.case-card-image img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 9; }
.image-label { position: absolute; left: 15px; bottom: 15px; padding: 5px 9px; background: rgba(8,20,21,.88); border: 1px solid var(--green); color: var(--green); font: 700 .64rem var(--mono); text-transform: uppercase; }
.case-card-copy { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: clamp(24px, 3vw, 46px); }
.case-card-copy .eyebrow { color: var(--muted); }
.case-card-copy .eyebrow span { color: var(--green); }
.case-card-copy h3 { margin: 16px 0 11px; font-size: clamp(1.65rem, 3vw, 2.8rem); line-height: 1.08; letter-spacing: -.045em; }
.case-card-copy p { max-width: 49ch; margin: 0 0 20px; color: var(--muted); }
.case-card-copy .case-summary-ja { margin-top: -12px; color: var(--text); font-size: .92rem; line-height: 1.55; }
.tag-list { display: flex; flex-wrap: wrap; gap: 7px; padding: 0; margin: 0; list-style: none; }
.tag-list li { padding: 3px 8px; border: 1px solid var(--line); color: #d5ecdf; font: 600 .65rem var(--mono); }
.card-action { display: flex; width: 100%; justify-content: space-between; gap: 14px; margin-top: auto; padding-top: 28px; border-bottom: 1px solid var(--green); color: var(--green); font: 700 .74rem var(--mono); }
.spec-strip { display: flex; flex-wrap: wrap; gap: 20px 35px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--muted); font: 700 .7rem var(--mono); letter-spacing: .12em; }
.split-section { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.knowledge-panel, .example-panel { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; min-height: 480px; padding: clamp(25px, 4vw, 52px); border: 1px solid var(--line); background: var(--surface); }
.knowledge-panel h2, .example-panel h2 { margin: 18px 0 8px; font-size: clamp(1.9rem, 3vw, 3rem); line-height: 1.08; letter-spacing: -.04em; }
.knowledge-panel p:not(.eyebrow), .example-panel p:not(.eyebrow) { max-width: 52ch; color: var(--muted); }
.knowledge-panel .inline-link, .example-panel .inline-link { margin-top: auto; }
.link-list { width: 100%; padding: 0; margin: 22px 0 32px; list-style: none; }
.link-list li { border-top: 1px solid var(--line); }
.link-list li:last-child { border-bottom: 1px solid var(--line); }
.link-list a { display: flex; justify-content: space-between; gap: 18px; padding: 10px 0; font-weight: 650; }
.link-list a:hover { color: var(--green); }
.example-art { display: flex; width: 100%; min-height: 180px; align-items: center; justify-content: center; gap: clamp(12px, 4vw, 38px); margin: 25px 0 5px; border: 1px solid #316653; background: radial-gradient(circle at 50% 50%, #153a32, #0a1a1e 74%); overflow: hidden; }
.example-actor { position: relative; width: 58px; height: 78px; flex: 0 0 58px; border: 4px solid #0a2820; border-radius: 40% 40% 28% 28%; background: var(--green); box-shadow: inset -10px -7px 0 var(--green-deep); }
.example-actor::before { content: "•  •"; position: absolute; top: 10px; left: 11px; color: #0a2820; font-size: 21px; letter-spacing: 5px; white-space: nowrap; }
.example-arrow { color: var(--green); font: 700 .68rem var(--mono); white-space: nowrap; }
.example-ui { padding: 12px 15px; border: 2px solid var(--green); color: var(--green); font: 700 .7rem var(--mono); white-space: nowrap; }
.about-section { padding: clamp(70px, 9vw, 130px) 0; border-top: 1px solid var(--line); background: linear-gradient(110deg, #0d2927, #101a22 70%); }
.about-inner h2 { margin: 16px 0 20px; font-size: clamp(2.5rem, 6vw, 6rem); line-height: 1.03; letter-spacing: -.06em; }
.about-inner h2 span { color: var(--green); }
.about-inner > p:not(.eyebrow) { max-width: 68ch; color: var(--muted); }
.about-inner .inline-link { margin-top: 16px; }
.about-links { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; padding-top: 42px; padding-bottom: 52px; }
.footer-inner strong { color: var(--green); font: 800 .75rem var(--mono); letter-spacing: .14em; }
.footer-inner p { margin: 7px 0 0; color: var(--muted); font-size: .87rem; }
.footer-inner nav { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 13px 24px; font: 650 .71rem var(--mono); }
.footer-inner a:hover { color: var(--green); }
.listing-page { padding-top: clamp(65px, 8vw, 115px); padding-bottom: 120px; }
.listing-header { padding-bottom: 40px; border-bottom: 1px solid var(--line); margin-bottom: 35px; }
.listing-header h1 { margin: 12px 0 18px; font-size: clamp(3.5rem, 9vw, 8rem); line-height: .95; letter-spacing: -.075em; overflow-wrap: anywhere; }
.listing-header h1 span { color: var(--green); }
.listing-header > p:last-child { max-width: 61ch; margin: 0; color: var(--muted); font-size: 1.1rem; }
.case-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.case-grid .case-card-link { display: flex; flex-direction: column; }
.case-grid .case-card-image img { height: auto; }
.case-grid .case-card-copy { flex: 1; min-height: 295px; }
.case-grid.single-case { grid-template-columns: 1fr; }
.case-grid.single-case .case-card-link { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(290px, .65fr); }
.case-grid.single-case .case-card-image img { height: 100%; }
.listing-outro { max-width: 62ch; margin: 40px 0 0; color: var(--muted); }
.knowledge-list { padding: 0; margin: 0; list-style: none; }
.knowledge-list li { border-bottom: 1px solid var(--line); }
.knowledge-list a { display: grid; grid-template-columns: 58px minmax(0, 1fr) 24px; align-items: center; gap: 16px; padding: 20px 10px; }
.knowledge-list a:hover { background: var(--surface); }
.knowledge-number { color: var(--green); font: 700 .7rem var(--mono); }
.knowledge-list strong { display: block; font-size: clamp(1.1rem, 2vw, 1.55rem); line-height: 1.25; }
.knowledge-list small { display: block; margin-top: 5px; color: var(--muted); font-size: .83rem; overflow-wrap: anywhere; }
.knowledge-arrow { color: var(--green); text-align: right; }
.example-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.example-item { padding: clamp(22px, 3vw, 38px); border: 1px solid var(--line); background: var(--surface); }
.example-item h2 { font-size: clamp(1.5rem, 2.5vw, 2.3rem); line-height: 1.18; }
.example-item > p { color: var(--muted); }
.example-item .inline-link { margin-top: 18px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 36px; color: var(--muted); font: 650 .72rem var(--mono); }
.breadcrumb a:hover { color: var(--green); }
.breadcrumb [aria-current] { color: var(--text); }
.case-page, .article-shell { padding-bottom: 110px; }
.case-hero { max-width: 1080px; padding: clamp(32px, 4vw, 55px) 0 18px; }
.case-hero h1, .article-header h1 { margin: 12px 0 17px; font-size: clamp(3rem, 7.5vw, 7.5rem); line-height: .98; letter-spacing: -.07em; overflow-wrap: anywhere; }
.case-lede, .article-header > p:not(.eyebrow) { max-width: 66ch; color: var(--muted); font-size: clamp(1rem, 1.7vw, 1.3rem); }
.case-lede-ja { max-width: 66ch; margin: 8px 0 0; color: var(--text); font-weight: 600; }
.case-facts { display: flex; flex-wrap: wrap; gap: 15px 35px; padding: 14px 0 0; margin: 20px 0 0; border-top: 1px solid var(--line); list-style: none; }
.case-facts li { display: flex; flex-direction: column; gap: 2px; }
.case-facts b { font: 750 .96rem var(--mono); }
.case-facts span { color: var(--muted); font: 700 .61rem var(--mono); letter-spacing: .13em; }
.case-poster { margin: 0; border: 1px solid var(--line); background: #061317; }
.case-poster img { width: 100%; height: auto; }
.case-poster figcaption { padding: 7px 13px; color: var(--muted); font: 650 .61rem var(--mono); }
.film-section { padding-top: 0; scroll-margin-top: 24px; }
.film-section .section-heading { margin-bottom: 12px; }
.film-subtitle { margin: 6px 0 0; color: var(--muted); font-size: .9rem; }
.film-section video { width: 100%; height: auto; aspect-ratio: 16 / 9; border: 1px solid var(--line); background: #000; }
.film-note { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin: 10px 0 0; color: var(--muted); font: 650 .69rem var(--mono); }
.case-body-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 270px); gap: clamp(30px, 5vw, 85px); padding-top: clamp(70px, 8vw, 115px); }
.case-aside { align-self: start; border-top: 1px solid var(--green); }
.case-aside > div { padding: 22px 0; border-bottom: 1px solid var(--line); }
.case-aside .eyebrow { margin-bottom: 14px; }
.case-aside a { display: block; margin: 9px 0; color: var(--text); font-size: .86rem; }
.case-aside a:hover { color: var(--green); }
.next-link { margin-top: 65px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--green); font: 700 .75rem var(--mono); }
.article-shell { max-width: 1240px; }
.article-header { max-width: 950px; padding: clamp(65px, 8vw, 110px) 0 40px; }
.article-header h1 { font-size: clamp(2.65rem, 6vw, 5.5rem); }
.article-header .inline-link { margin-top: 15px; }
.prose { min-width: 0; max-width: 70ch; color: #d6e9e0; line-height: 1.82; overflow-wrap: anywhere; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin: 2.5em 0 .6em; color: var(--text); font-size: clamp(1.45rem, 2.2vw, 2rem); line-height: 1.25; letter-spacing: -.025em; }
.prose h2::before { content: "/ "; color: var(--green); font: 700 .75em var(--mono); }
.prose h3 { margin: 2em 0 .5em; color: var(--text); font-size: 1.25rem; }
.prose p, .prose li { max-width: 70ch; }
.prose a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--text); }
.prose img { width: auto; max-width: 100%; height: auto; margin: 24px 0; border: 1px solid var(--line); }
.prose blockquote { margin: 24px 0; padding: 5px 20px; border-left: 3px solid var(--green); color: var(--muted); }
.prose pre { max-width: 100%; padding: 18px; border: 1px solid var(--line); background: var(--surface); white-space: pre-wrap; overflow-wrap: anywhere; }
.prose code { font-family: var(--mono); font-size: .88em; overflow-wrap: anywhere; }
.prose :not(pre) > code { padding: .1em .3em; background: var(--surface); }
.prose table { display: block; max-width: 100%; border-collapse: collapse; overflow-x: auto; }
.prose th, .prose td { padding: 9px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; min-width: 100px; }
.prose th { color: var(--text); background: var(--surface); }
.prose li::marker { color: var(--green); }
.demo-section { max-width: 950px; margin: 0 0 55px; padding: 25px; border: 1px solid var(--line); background: var(--surface); }
.demo-section h2 { margin: 0; font-size: 1.65rem; }
.demo-section p { color: var(--muted); }
.demo-viewport { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--line); background: #07151a; }
.demo-viewport iframe { width: 1280px; height: 720px; max-width: none; border: 0; transform-origin: 0 0; }
.demo-controls { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 15px; }
.demo-controls button, .demo-controls a { padding: 7px 13px; border: 1px solid var(--line); background: var(--raised); color: var(--text); font: 700 .72rem var(--mono); cursor: pointer; }
.demo-controls button:hover, .demo-controls a:hover { border-color: var(--green); color: var(--green); }
@media (max-width: 1050px) {
  .header-inner { flex-wrap: wrap; gap: 10px 20px; padding-top: 14px; padding-bottom: 14px; }
  .site-nav { order: 3; width: 100%; justify-content: flex-start; margin-left: 0; }
  .portfolio-link { margin-left: auto; }
  .hero-copy h1 { font-size: clamp(3.5rem, 8.4vw, 6.3rem); }
}
@media (max-width: 760px) {
  .shell { width: min(calc(100% - 34px), 1240px); }
  .home-hero, .split-section, .case-body-grid { grid-template-columns: 1fr; }
  .home-hero { padding-top: 42px; gap: 30px; }
  .hero-copy h1 { margin: 18px 0 20px; }
  .hero-description { display: none; }
  .hero-actions { margin-top: 22px; }
  .hero-aside { min-height: 290px; }
  .orbit-mark { width: 150px; height: 150px; font-size: 3.5rem; }
  .case-card-link, .case-grid.single-case .case-card-link { display: flex; flex-direction: column; }
  .case-card-image img, .case-grid.single-case .case-card-image img { height: auto; }
  .case-grid, .example-grid { grid-template-columns: 1fr; }
  .knowledge-panel, .example-panel { min-height: 420px; }
  .case-aside { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}
@media (max-width: 480px) {
  .brand { font-size: .67rem; }
  .brand-symbol { width: 34px; height: 34px; }
  .portfolio-link { padding: 5px 7px; font-size: .58rem; }
  .site-nav { gap: 9px 17px; }
  .site-nav a { font-size: .66rem; }
  .hero-copy h1 { font-size: clamp(3.1rem, 15.1vw, 4.7rem); }
  .hero-description { font-size: .91rem; }
  .hero-film-head { font-size: .58rem; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .listing-header h1 { font-size: clamp(3.15rem, 14vw, 5rem); }
  .case-aside { grid-template-columns: 1fr; }
  .case-facts { gap: 16px 22px; }
  .footer-inner { flex-direction: column; }
  .example-art { min-height: 150px; gap: 10px; }
  .example-actor { width: 42px; height: 58px; flex-basis: 42px; }
  .example-actor::before { top: 6px; left: 6px; font-size: 16px; letter-spacing: 2px; }
  .example-arrow { font-size: .56rem; }
  .example-ui { padding: 8px; font-size: .53rem; }
  .knowledge-list a { grid-template-columns: 30px minmax(0, 1fr) 18px; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
