:root {
  color-scheme: dark;
  --rule: color-mix(in srgb, var(--rule-gold) 55%, transparent);
  --display: Anton, Impact, 'Arial Narrow', sans-serif;
  --mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, 'LINE Seed JP', 'Yu Gothic', monospace;
  --sans: 'LINE Seed JP', system-ui, 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  /* 和文の見出し。欧文の字形は横に広いので、和文だけを入れる要素に使う */
  --jp-head: 'Dela Gothic One', 'LINE Seed JP', sans-serif;
  --gutter: clamp(16px, 3.35vw, 56px);
  --header: 64px;
  background: var(--paper);
  color: var(--ink);
  font: 400 100% var(--sans);
  scroll-padding-top: calc(var(--header) + 12px);
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, dl, dd, ol { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
a { color: inherit; text-underline-offset: .2em; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 4px; }
.dark-zone :focus-visible, :is(.project-web, .project-calendar, .project-product) :focus-visible, .not-found :focus-visible { outline-color: var(--gold); }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 20; top: 8px; left: 8px; padding: .75rem; background: var(--paper); }
.display { font-family: var(--display); font-weight: 400; letter-spacing: 0; line-height: .97; }
.mono { font-family: var(--mono); font-size: .715rem; line-height: 1.55; letter-spacing: .075em; }
.shell { max-width: 1640px; padding-inline: var(--gutter); margin-inline: auto; }
.section-band { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 42px; border-block: 1px solid var(--rule); color: var(--copper); }
.section-display { margin-block: .16em .26em; font-size: clamp(5rem, 14vw, 13.5rem); color: var(--umber); }

.site-header { position: sticky; z-index: 10; top: 0; background: var(--paper); color: var(--ink); border-bottom: 1px solid var(--rule); transition: background-color .25s, color .25s; }
.site-header.is-dark { background: var(--night); color: var(--paper); }
.header-grid { display: grid; grid-template-columns: minmax(145px, 1.1fr) minmax(96px, .65fr) minmax(133px, .85fr) minmax(156px, 1fr) minmax(170px, 1.35fr) auto; max-width: 1640px; min-height: var(--header); margin-inline: auto; padding-inline: var(--gutter); font: 500 .69rem/1.4 var(--mono); }
.header-grid > * { display: flex; flex-direction: column; justify-content: center; min-width: 0; gap: 3px; border-right: 1px solid var(--rule); padding: 7px clamp(9px, 1.35vw, 22px); }
.header-grid .brand { position: relative; display: grid; justify-content: start; align-content: center; align-items: center; padding-left: 0; }
.brand img { grid-area: 1 / 1; width: clamp(98px, 9.6vw, 142px); }
.brand-dark, .is-dark .brand-light { visibility: hidden; }
.is-dark .brand-dark { visibility: visible; }
.caption { color: var(--copper); font-size: .61rem; letter-spacing: .095em; font-weight: 500; }
.is-dark .caption { color: var(--gold); }
.status { display: inline-flex; align-items: baseline; gap: 6px; }
.status i, .life-legend i { background: var(--copper); display: inline-block; flex: 0 0 5px; width: 5px; height: 5px; }
.is-dark .status i { background: var(--gold); }
#type-line { white-space: nowrap; }
.header-grid .site-nav { flex-direction: row; align-items: center; border: 0; gap: clamp(9px, 1.4vw, 23px); padding-right: 0; }
.site-nav a { display: flex; gap: .6em; align-items: center; min-height: 38px; text-decoration: none; }
.site-nav a:hover, .footer a:hover, .hero-index a:hover { text-decoration: underline; }
.site-nav .nav-contact, .send { border: 1px solid var(--copper); background: var(--copper); color: var(--paper); padding-inline: .8rem; text-decoration: none; }
.nav-contact:hover, .send:hover { background: var(--umber); }

.hero { --hero-margin: clamp(9px, 1.5vw, 24px); margin: 0 var(--hero-margin); padding-top: var(--hero-margin); }
.hero-plate { position: relative; isolation: isolate; display: grid; grid-template-rows: auto 1fr auto; min-height: calc(100svh - var(--header) - 58px - var(--hero-margin)); border: 1px solid var(--rule); overflow: hidden; background: repeating-linear-gradient(90deg, transparent 0 31px, color-mix(in srgb, var(--rule-gold) 17%, transparent) 31px 32px); }
.hero-plate.scene-ready { background: var(--paper); }
canvas[data-scene] { display: block; position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-plate canvas { z-index: -1; }
.hero-legend, .hero-index { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: 10px clamp(9px, 1.35vw, 22px); }
.hero-legend span, .hero-index a { background: var(--paper); padding-inline: 4px; }
.hero-index a { text-decoration: none; }
.hero-index a span { color: var(--copper); padding-left: .5em; }
.hero-title { align-self: center; padding-inline: clamp(8px, 1.8vw, 28px); }
.hero-title svg { display: block; width: 100%; overflow: visible; }
.hero-title .hero-stacked { display: none; }
.signal { height: 34px; display: grid; grid-template-columns: auto minmax(0, 1fr) 24px; align-items: stretch; border: 1px solid var(--rule); border-top: 0; color: var(--copper); font-size: .62rem; }
.signal > span { display: grid; align-items: center; padding-inline: 9px; }
.signal-window { display: flex; align-items: center; overflow: hidden; border-inline: 1px solid var(--rule); padding-inline: 8px; white-space: nowrap; }

.about { padding-block: clamp(64px, 10vw, 140px); }

.work { position: relative; isolation: isolate; border-block: 1px solid var(--rule); padding-block: clamp(25px, 4vw, 62px) clamp(60px, 9vw, 135px); }
.work-content .section-band > span, .work-content .section-display { width: fit-content; background: var(--paper); padding-inline: 4px; }
.work-stage { position: relative; min-height: 100svh; display: grid; place-items: center; padding-block: clamp(38px, 7vh, 108px); }
.work-stage + .work-stage { margin-top: 2vh; }
.project { width: min(100%, 1180px); background: var(--project-ground); color: var(--project-ink); border: 1px solid var(--project-rule); box-shadow: 7px 9px 0 color-mix(in srgb, var(--night) 21%, transparent); }
:is(.project-web, .project-calendar, .project-product) { --project-ground: var(--night); --project-ink: var(--gold); --project-rule: var(--rule); --project-x: -1.4vw; }
.project-life { --project-ground: var(--paper); --project-ink: var(--umber); --project-rule: var(--rule-gold); --project-x: 1.4vw; }
.project summary { display: block; list-style: none; cursor: pointer; }
.project summary::-webkit-details-marker { display: none; }
.project summary:focus-visible { outline-offset: 5px; }
.project-bar { min-height: 40px; display: flex; align-items: center; justify-content: space-between; gap: .7rem; padding: 8px clamp(12px, 2vw, 30px); border-bottom: 1px solid var(--project-rule); }
.project-bar span:last-child { text-align: right; }
.project-body { position: relative; isolation: isolate; min-height: clamp(380px, 64vh, 650px); display: grid; grid-template-columns: minmax(200px, 1fr) minmax(0, 1.7fr); align-items: stretch; padding: clamp(16px, 3vw, 46px); background-image: linear-gradient(var(--rule) 1px, transparent 1px), linear-gradient(90deg, var(--rule) 1px, transparent 1px); background-size: 42px 42px; }
.project-body::before { content: ''; position: absolute; z-index: -1; inset: 0; background: radial-gradient(ellipse at 70% 47%, color-mix(in srgb, var(--project-ground) 72%, transparent), var(--project-ground) 76%); }
.project-title { z-index: 1; display: flex; flex-direction: column; align-self: start; gap: 12px; }
.project-en { font-size: clamp(2.3rem, 5.5vw, 6.4rem); }
.project-ja { font-family: var(--jp-head); font-size: clamp(1.15rem, 1.7vw, 1.55rem); font-weight: 400; letter-spacing: .02em; }
.life-figure { position: relative; grid-column: 2; grid-row: 1; align-self: center; width: 100%; height: 100%; min-height: 315px; }
.life-figure.scene-ready .life-figure.scene-ready .dial-backup { visibility: hidden; }
.dial-backup { visibility: hidden; }
.project-action { border-top: 1px solid var(--project-rule); border-bottom: 0; }
.project summary:hover .project-action, .project[open] .project-action { background: var(--project-ink); color: var(--project-ground); }
.disclosure { position: relative; width: 15px; height: 15px; }
.disclosure::before, .disclosure::after { content: ''; position: absolute; background: currentColor; top: 7px; left: 1px; width: 13px; height: 1px; }
.disclosure::after { rotate: 90deg; }
.project[open] .disclosure::after { display: none; }
.project-details { padding: clamp(20px, 3.4vw, 54px); border-top: 1px solid var(--project-rule); }
.project-details p { max-width: 41em; font-size: clamp(1.08rem, 1.65vw, 1.5rem); line-height: 1.95; }
:is(.project-web, .project-calendar, .project-product) .project-details p { color: var(--paper); }
.detail-data { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 15px; margin-top: 24px; border-top: 1px solid var(--project-rule); padding-top: 12px; }
.detail-data dt { color: var(--copper); }
:is(.project-web, .project-calendar, .project-product) .detail-data dt { color: var(--gold); }
:is(.project-web, .project-calendar, .project-product) .detail-data dd { color: var(--paper); }
.project-video { width: 100%; margin-top: 24px; background: var(--night); }
.coming { width: min(100%, 370px); margin-inline: auto; display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; align-items: center; justify-content: space-between; padding: 11px 14px; background: var(--paper); border: 1px solid var(--rule-gold); }

.life-figure { height: auto; width: min(100%, 53vh, 540px); aspect-ratio: 1; min-height: 0; justify-self: center; }
.dial-backup { position: absolute; inset: 12%; border: 1px solid var(--rule-gold); border-radius: 50%; background: repeating-radial-gradient(circle, transparent 0 15%, var(--rule) 15.3% 15.55%, transparent 15.8% 22%), repeating-conic-gradient(transparent 0 14.8deg, var(--rule) 15deg, transparent 15.2deg 30deg); }
.dial-label { position: absolute; padding-inline: 3px; background: var(--paper); font-size: clamp(.55rem, 1vw, .75rem); }
.dial-north { top: 2%; left: 50%; translate: -50% 0; }
.dial-south { bottom: 2%; left: 50%; translate: -50% 0; }
.dial-east { right: 0; top: 50%; translate: 0 -50%; }
.dial-west { left: 0; top: 50%; translate: 0 -50%; }
.dial-center { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; }
.dial-center strong { font-size: clamp(1.1rem, 2.8vw, 2.6rem); line-height: 1.08; font-weight: 500; }
.dial-center small { font-size: .56rem; }
.life-legend { position: absolute; left: clamp(16px, 3vw, 46px); bottom: clamp(18px, 4vw, 57px); display: grid; gap: 6px; }
.life-legend span { display: flex; align-items: center; gap: 9px; }
.life-legend span + span i { background: transparent; border: 1px solid var(--rule-gold); }

.dark-zone { position: relative; isolation: isolate; background: var(--night); color: var(--paper); color-scheme: dark; }
.dark-zone .section-band { color: var(--gold); }
.process { display: grid; align-content: center; min-height: 83svh; padding-block: clamp(56px, 9vw, 160px); overflow: clip; }
.steps h3, .steps p { font-size: .82rem; line-height: 1.65; }

.contact { position: relative; isolation: isolate; }
.contact > canvas { z-index: -1; }
.contact-content { --contact-gap: clamp(14px, 3svh, 36px); padding-bottom: clamp(65px, 9vw, 140px); }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr); align-items: start; gap: clamp(20px, 4vw, 64px); padding-block: var(--contact-gap); }
.contact-lead { position: sticky; top: calc(var(--header) + var(--contact-gap)); }
.contact-sign { position: relative; width: 100%; height: clamp(85px, 19svh, 230px); display: grid; place-items: center; border-block: 1px solid var(--rule); background: var(--night); }
.contact-sign img { width: 81%; height: 86%; object-fit: contain; opacity: .95; }
.contact-sign.scene-ready img { opacity: .38; }
.contact-copy { padding-block: clamp(12px, 3svh, 30px); }
.contact h2 { color: var(--gold); font-size: clamp(3.25rem, 8vw, 8.4rem); }
.contact-copy p { font-size: .96rem; margin-top: 12px; line-height: 1.8; }
form { display: grid; gap: 14px; border: 1px solid var(--rule-gold); padding: clamp(15px, 3vw, 38px); background: var(--night); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
form label { display: grid; min-width: 0; gap: 5px; color: var(--gold); }
input, select, textarea { width: 100%; min-width: 0; border: 1px solid var(--rule-gold); border-radius: 0; background: var(--night); color: var(--paper); padding: 9px 11px; font-size: 1rem; }
input, select { min-height: 44px; }
textarea { resize: vertical; min-height: 105px; }
.dark-zone :is(input, select, textarea):focus { outline: 2px solid var(--copper); outline-offset: 0; border-color: var(--copper); }
.form-action { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
#form-status { font-size: .77rem; line-height: 1.65; }
.send { display: inline-flex; align-items: center; justify-content: space-between; flex: 0 0 auto; gap: 1em; min-height: 42px; padding: 8px 14px; margin-left: auto; }
.send:disabled { cursor: wait; opacity: .65; }
.footer { display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; gap: .7rem; min-height: 68px; border-top: 1px solid var(--rule); color: var(--gold); }
.footer a { justify-self: end; text-decoration: none; }

.not-found { background: var(--night); color: var(--paper); }
.not-found main { display: grid; justify-items: start; gap: 20px; padding-block: 8svh; }
.not-found h1 { font-size: clamp(8rem, 40vw, 32rem); color: var(--gold); }
.not-found .send { margin-left: 0; }

@media (min-width: 881px) {
  .about { display: grid; grid-template-rows: auto auto auto 1fr; min-height: clamp(1150px, 190svh, 1800px); }
  .work-heading { min-height: 65svh; }
  .work-stage { min-height: 184svh; align-items: start; padding-top: 54svh; }
  .work-stage + .work-stage { margin-top: 0; }
  .project { width: min(88%, 1240px); transform: perspective(1200px) translate3d(var(--project-x), var(--project-rise, 0px), 0) rotateX(var(--project-angle, 0deg)) scale(var(--project-scale, 1)); }
  .project-body { min-height: clamp(390px, 69svh, 730px); }
  .process { min-height: clamp(1000px, 170svh, 1720px); }
  .contact-layout { min-height: clamp(1000px, 155svh, 1550px); }
  .contact-layout form { margin-top: clamp(160px, 40svh, 420px); }
}

@media (max-width: 1110px) {
  .header-grid { grid-template-columns: minmax(112px, 1fr) minmax(88px, .7fr) minmax(122px, .95fr) minmax(140px, 1fr) minmax(148px, 1.1fr) auto; }
  .site-nav .nav-about { display: none; }
}

@media (max-width: 880px) {
  .header-grid { grid-template-columns: 1fr minmax(88px, .65fr) minmax(122px, 1fr) minmax(137px, 1.16fr) auto; }
  .header-grid .header-focus { display: none; }
  .project-body { min-height: 405px; }
}

@media (max-width: 650px) {
  :root { --header: 78px; }
  .header-grid { grid-template-columns: minmax(0, 1fr) minmax(60px, .68fr) minmax(0, 1.3fr) auto; grid-template-rows: 49px 29px; padding-inline: 9px; }
  .header-grid > * { padding-inline: 6px; }
  .header-grid .brand { grid-column: 1 / 3; grid-row: 1; }
  .header-grid .header-clock { grid-column: 3; grid-row: 1; }
  .header-grid .header-status { grid-column: 1 / 3; grid-row: 2; }
  .header-grid .header-typing { grid-column: 3 / 5; grid-row: 2; border-right: 0; }
  .header-grid .header-status, .header-grid .header-typing { flex-direction: row; justify-content: flex-start; align-items: center; border-top: 1px solid var(--rule); font-size: .6rem; padding-top: 0; padding-bottom: 0; }
  .header-status .caption, .header-typing .caption { display: none; }
  .header-grid .site-nav { grid-column: 4; grid-row: 1; }
  .site-nav > a { min-height: 35px; }
  .hero-plate { min-height: calc(100svh - var(--header) - 57px); }
  .hero-title .hero-wide { display: none; }
  .hero-title .hero-stacked { display: block; }
  .hero-legend, .hero-index { font-size: .59rem; letter-spacing: .035em; }
  .hero-title { padding-inline: 10px; }
  .project { transform: none; box-shadow: 4px 5px 0 color-mix(in srgb, var(--night) 20%, transparent); }
  .project-body { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto; padding: 12px; min-height: 0; }
  .project-title { gap: 6px; }
  .project-en { font-size: clamp(2.3rem, 9.4vw, 4.3rem); }
  .project-en br { display: none; }
  .project-en { word-spacing: .12em; }
  .project-ja { font-size: 1.12rem; }
  .life-figure { grid-column: 1; grid-row: 2; align-self: center; margin-block: 13px 5px; }
  .life-figure { max-width: min(100%, 45svh); }
  .detail-data { grid-template-columns: 1fr 1fr; }
  .detail-data > div:last-child { grid-column: 1 / -1; }
  .process { min-height: 77svh; }
  .process-grid, .contact-layout { grid-template-columns: 1fr; }
  .contact-lead { display: contents; }
  .contact-sign { position: sticky; z-index: 2; top: calc(var(--header) + 9px); height: min(29vw, 15svh, 123px); }
  .contact-sign::after { content: ''; position: absolute; inset: auto 0 100%; height: var(--contact-gap); background: var(--night); pointer-events: none; }
  .contact :is(input, select, textarea, button) { scroll-margin-top: calc(min(29vw, 15svh, 123px) + 8px); }
  .contact h2 { font-size: clamp(3.5rem, 15vw, 7rem); }
  .contact-layout { gap: 4px; }
  .form-row { grid-template-columns: 1fr; }
  .footer { grid-template-columns: 1fr 1fr; padding-block: 12px; }
  .footer a { justify-self: start; }
}

@media (max-width: 360px) {
  .project-en { font-size: 1.9rem; }
  .project-bar { font-size: .61rem; }
  .form-action { flex-wrap: wrap; }
}


  html.reduce-motion *, html.reduce-motion *::before, html.reduce-motion *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  html.reduce-motion .project { transform: none !important; }
  html.reduce-motion .work-heading { min-height: auto; }
  html.reduce-motion .work-stage { min-height: 100svh; align-items: center; padding-top: clamp(38px, 7vh, 108px); }


/* 作品の英字名だけ幅広の極太グロテスク（和文見出しの Dela Gothic One と幅・太さをそろえる）。セクション見出し・巨大文字・WORK の壁は Anton のまま */
.project-en { font-family: 'Archivo', var(--display); font-weight: 900; font-stretch: 125%; letter-spacing: 0; line-height: .95; font-size: clamp(1.6rem, 3.4vw, 4rem); }
@media (max-width: 650px) {
  .project-en { font-size: clamp(1.45rem, 7.4vw, 2.2rem); word-spacing: 0; }
  .project-en br { display: inline; }
  /* 問い合わせ：張り付くロゴの帯の下に見出しも張り付かせ、帯の裏に隠れないようにする */
  .contact-copy { position: sticky; z-index: 2; top: calc(var(--header) + 9px + min(29vw, 15svh, 123px)); background: var(--night); padding-block: 10px 12px; border-bottom: 1px solid var(--rule); }
  .contact h2 { font-size: clamp(2.6rem, 12vw, 4.4rem); }
  .contact-copy p { margin-top: 6px; font-size: .88rem; }
  .contact :is(input, select, textarea, button) { scroll-margin-top: calc(min(29vw, 15svh, 123px) + 150px); }
}
@media (max-width: 360px) {
  .project-en { font-size: 1.3rem; }
}


/* 進め方の後は問い合わせへ直接つなぐ（ロビーは削除）。進め方の高さは画面1枚分に */
@media (min-width: 881px) {
  .process { min-height: 100svh; }
}
/* 進め方と問い合わせの間に、前の空白を詰めたときと同じ程度の間（PC 約360px、スマホ 約190px）を取る */
.contact-content { padding-top: clamp(85px, 12vw, 170px); }

/* Full-width type, signal bands and scroll-linked artwork share the theme. */
:root { overflow-x: clip; }
body { overflow-x: clip; }
.site-header { background: var(--surface); border-color: var(--rule); }
.site-header.is-dark { background: var(--night); color: var(--ink); }
.caption, .is-dark .caption { color: var(--muted); }
.site-nav a[aria-current="location"] { text-decoration: underline; text-underline-offset: .4em; }
.site-nav .nav-contact, .send { color: var(--night); background: var(--copper); border-color: var(--copper); }
.site-nav .nav-contact:hover, .send:hover { color: var(--night); background: var(--gold); border-color: var(--gold); }
.scroll-scale, .process-route { display: flex; align-items: center; justify-content: space-between; position: relative; height: 3px; background: var(--rule); overflow: clip; }
.scroll-scale { position: absolute; inset: auto 0 -2px; pointer-events: none; }
.scroll-scale i, .process-route i, .second-scale::after {
  position: absolute; inset: 0; background: var(--copper);
  transform: scaleX(var(--progress, 0)); transform-origin: left;
}
.scroll-scale b, .process-route b { position: relative; background: var(--gold); width: 3px; height: 100%; }
.scroll-scale b:first-of-type { margin-left: var(--about-mark, 20%); }
.scroll-scale b:nth-of-type(2) { position: absolute; left: var(--work-mark, 40%); }
.scroll-scale b:last-child { position: absolute; left: var(--contact-mark, 85%); }

.hero { --hero-margin: clamp(8px, 1.2vw, 20px); }
.hero-plate, .hero-plate.scene-ready {
  background: radial-gradient(circle, var(--grid-line) 1px, transparent 1.25px) center / 20px 20px, var(--paper);
}
.hero-plate::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(115deg, transparent 20%, var(--wash) 52%, transparent 78%);
}
.hero-register { position: absolute; inset: 13% 5%; pointer-events: none; border-block: 1px dashed var(--rule-gold); }
.hero-register::before, .hero-register::after {
  content: '+'; position: absolute; top: 50%; color: var(--gold); font: 1rem var(--mono); translate: 0 -50%;
}
.hero-register::before { left: 0; }
.hero-register::after { right: 0; }
.hero-legend, .hero-index { z-index: 2; }
.hero-legend span, .hero-index a { padding: 4px 8px; background: var(--surface); border: 1px solid var(--rule); }
.hero-index a:last-child { color: var(--night); background: var(--gold); border-color: var(--gold); }
.hero-index a:last-child span { color: inherit; }
.hero-title {
  position: relative; width: 100%; padding-inline: 4%;
  transform: translate3d(var(--hero-x, 0), var(--hero-y, 0), 0) rotate(var(--hero-angle, -5deg))
    skewX(var(--hero-skew, -6deg)) scale(var(--hero-scale, 1));
}
.hero-title svg { filter: drop-shadow(2px 3px 0 var(--depth)) drop-shadow(3px 4px 0 var(--depth)) drop-shadow(4px 5px 0 var(--depth)); }
.signal { color: var(--muted); }

.belt { overflow: clip; background: var(--copper); color: var(--night); }
.belt-track { display: flex; width: max-content; animation: belt-loop var(--belt-time, 19s) linear infinite; animation-play-state: paused; }
.belt[data-visible] .belt-track { animation-play-state: running; }
.belt-track > div { display: flex; align-items: center; flex: none; }
.belt-track span { font: 900 clamp(1.35rem, 4.2vw, 4.9rem)/1 var(--display); letter-spacing: 0; white-space: nowrap; padding-block: .25em .33em; }
.belt-track i { width: .8em; height: .8em; margin: 0 clamp(16px, 3.3vw, 48px); background: currentColor; rotate: 45deg; }
.belt-title { margin-top: var(--hero-margin, 10px); }
.belt-contact { --belt-time: 27s; background: var(--gold); }
.belt-contact .belt-track { animation-direction: reverse; }
@keyframes belt-loop { to { transform: translate3d(-50%, 0, 0); } }

.about { min-height: 0; display: block; }
.section-display { line-height: .91; }
.about .section-display {
  text-shadow: 2px 3px var(--depth), 4px 6px var(--depth), 6px 9px var(--depth);
  transform-origin: left center;
  transform: translate3d(var(--about-x, 0), 0, 0) rotate(var(--about-angle, 0deg)) scale(var(--about-scale, 1));
}
.second-scale { display: block; height: 5px; margin-top: 7px; position: relative; max-width: 9em; background: repeating-linear-gradient(90deg, var(--rule-gold) 0 1px, transparent 1px 8.33%); }
.second-scale::after { content: ''; height: 2px; margin-top: 3px; --progress: var(--seconds, 0); }

.work { background: var(--night); }
.work-heading { min-height: 0; position: relative; z-index: 1; }
.work-content .section-band { background: var(--surface); padding-inline: 12px; }
.work-content .section-band > span { background: none; padding: 0; }
.work-content .section-display { background: var(--night); padding: .04em .12em .1em; text-shadow: 3px 5px var(--depth), 6px 9px var(--depth); }
.film-stage { min-height: 142svh; position: relative; }
.film-sticky { position: sticky; top: var(--header); height: calc(100svh - var(--header)); min-height: 310px; display: grid; place-items: center; isolation: isolate; }
.film-card {
  --film-ink: var(--gold); --film-bg: var(--film); --film-turn: -10deg;
  position: absolute; display: grid; grid-template-rows: auto 1fr auto; width: min(52vw, 690px);
  color: var(--film-ink); background: var(--film-bg); border: 1px solid var(--film-ink);
  box-shadow: 5px 7px var(--night), 10px 14px var(--depth); text-decoration: none;
  transform: translate3d(var(--film-x, 0), var(--film-y, 0), 0) rotate(calc(var(--film-turn) + var(--film-tilt, 0deg))) scale(var(--film-scale, 1));
}
.film-card:is(:hover, :focus-visible) { z-index: 2; outline: 2px solid var(--light); outline-offset: 4px; }
.film-bar, .film-label { display: flex; justify-content: space-between; padding: .5em .8em; line-height: 1.3; }
.film-label i { font-style: normal; }
.film-image {
  display: grid; place-items: center; position: relative; isolation: isolate; aspect-ratio: 1.9; max-height: 33svh;
  overflow: clip; border-block: 1px solid currentColor;
  background: repeating-linear-gradient(0deg, transparent 0 22px, currentColor 22px 23px), repeating-linear-gradient(90deg, transparent 0 22px, currentColor 22px 23px);
  background-color: var(--film-bg); background-blend-mode: soft-light;
}
.film-image::before { content: ''; position: absolute; inset: 8%; border: 1px dashed currentColor; opacity: .45; }
.film-dial {
  position: absolute; height: 82%; aspect-ratio: 1; border-radius: 50%; border: 2px solid currentColor;
  background: repeating-conic-gradient(currentColor 0 1deg, transparent 1deg 15deg);
  mask-image: radial-gradient(transparent 0 22%, #000 23% 32%, transparent 33% 46%, #000 47% 57%, transparent 58% 62%, #000 63%);
}
.film-time { position: relative; background: var(--film-bg); padding: 3px 6px; }
.film-image video { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--night); }
.film-scan { position: absolute; inset: 0; border-top: 2px solid var(--copper); opacity: .8; transform: translateY(-1%); }
.film-scan { animation: scan 2.55s linear infinite; animation-play-state: paused; }
.film-card[data-visible] .film-scan { animation-play-state: running; }
@keyframes scan { to { transform: translateY(100%); } }

.work-stage { min-height: auto; padding-block: clamp(34px, 8vw, 115px); align-items: center; }
.project {
  --project-x: 0px; width: min(100%, 1080px); box-shadow: 5px 7px var(--night), 10px 13px var(--depth);
  transform: perspective(1200px) translate3d(0, var(--project-rise, 0px), 0)
    rotateX(var(--project-angle, 0deg)) scale(var(--project-scale, 1));
}
.project:is([open], :focus-within) { transform: none; }
:is(.project-web, .project-calendar, .project-product) { --project-ground: var(--surface); --project-ink: var(--gold); --project-rule: var(--rule-gold); }
.project-life { --project-ground: var(--film); --project-ink: var(--light); --project-rule: var(--rule-gold); }
:is(.project-web, .project-calendar, .project-product) .project-details p, :is(.project-web, .project-calendar, .project-product) .detail-data dd { color: var(--ink); }
.dial-label { background: var(--film); }
.project-life .detail-data dt { color: var(--gold); }
.coming { color: var(--ink); background: var(--surface); }
.belt-cut { --belt-time: 14s; transform: rotate(var(--cut-turn, -2deg)) scale(1.08); }
.belt-cut .belt-track { animation-direction: reverse; }

.dark-zone { color: var(--ink); background: var(--night); }
.process { min-height: 0; padding-block: clamp(67px, 12vw, 175px); }
.fragment-a, .fragment-c { color: var(--copper); }

.contact { background: var(--dark-accent); }
.contact-content { padding-top: clamp(50px, 9vw, 125px); }
.contact-layout { min-height: 0; }
.contact-layout form { margin-top: clamp(22px, 7vw, 92px); }
.contact-copy p { color: var(--ink); }
.contact h2 {
  font-weight: 900; text-shadow: 3px 4px var(--depth), 5px 7px var(--depth);
  transform: translateX(var(--contact-x, 0)) skewX(var(--contact-skew, 0deg)); transform-origin: left;
}
input, select, textarea {
  color: var(--ink); background: var(--surface); border-color: color-mix(in srgb, var(--muted) 64%, var(--night));
}
form label:focus-within { color: var(--light); }
.dark-zone :is(input, select, textarea):focus { outline: 2px solid var(--copper); outline-offset: 2px; }
.footer { color: var(--muted); }
.footer a { display: inline-block; padding: .55em .85em; border: 1px solid var(--rule-gold); box-shadow: 2px 3px var(--depth); }
.footer a:active { translate: 2px 3px; box-shadow: none; }
.footer-code { height: 9px; background: repeating-linear-gradient(90deg, var(--copper) 0 2px, transparent 2px 8px, var(--gold) 8px 12px, transparent 12px 19px); background-size: 190px 100%; }
.footer-code[data-visible] { animation: footer-code 4s linear infinite; }
@keyframes footer-code { to { background-position: 190px 0; } }
.not-found { color: var(--ink); }

@media (hover: hover) and (pointer: fine) {
  html:not(.reduce-motion) .nav-contact, html:not(.reduce-motion) .hero-index a:last-child, html:not(.reduce-motion) .send { translate: var(--magnet-x, 0) var(--magnet-y, 0); transition: translate .17s ease-out, background-color .18s; }
  html:not(.reduce-motion) .pointer-reticle { position: fixed; inset: 0 auto auto 0; width: 23px; height: 23px; z-index: 11; pointer-events: none; border: 1px solid var(--gold); background: radial-gradient(circle, var(--copper) 0 2px, transparent 3px); }
}
@media (max-width: 1110px) {
  .header-grid .nav-about { display: flex; }
  .header-grid .header-typing { display: none; }
  .header-grid { grid-template-columns: minmax(112px, 1fr) minmax(88px, .7fr) minmax(122px, .95fr) minmax(140px, 1fr) auto; }
}
@media (max-width: 880px) {
  .header-grid { grid-template-columns: minmax(100px, 1fr) minmax(77px, .7fr) minmax(105px, 1fr) auto; }
}
@media (max-width: 650px) {
  .header-grid { grid-template-columns: minmax(88px, 1fr) auto minmax(0, .8fr) auto; }
  .header-grid .brand { grid-column: 1 / 3; }
  .brand img { width: 90px; }
  .header-grid .header-clock { padding-inline: 4px; }
  .header-clock .caption { font-size: .49rem; white-space: nowrap; }
  .header-grid .header-typing { display: flex; }
  .header-grid .site-nav { gap: 8px; padding-left: 6px; }
  .site-nav .nav-contact { padding-inline: 5px; gap: 2px; }
  .hero-title { padding-inline: 7%; }
  .hero-title svg { filter: drop-shadow(2px 3px 0 var(--depth)) drop-shadow(3px 4px 0 var(--depth)); }
  .about .section-display { font-size: clamp(4.3rem, 17vw, 7rem); }
  .film-stage { min-height: 135svh; }
  .film-card { width: min(68vw, 324px); box-shadow: 4px 5px var(--night), 7px 9px var(--depth); }
  .film-image { aspect-ratio: 1.45; }
  .film-bar, .film-label { font-size: .63rem; }
  .work-stage { padding-block: 9vw; }
  .project { box-shadow: 4px 5px var(--night), 7px 9px var(--depth); }
  .contact-sign, .contact-copy { position: relative; top: auto; z-index: auto; }
  .contact-sign::after { display: none; }
  .contact-copy { background: transparent; }
  .contact :is(input, select, textarea, button) { scroll-margin-top: 14px; }
  .contact-layout form { margin-top: 10px; }
}
@media (max-width: 370px) {
  .header-grid .header-clock { display: none; }
  .header-grid .brand { grid-column: 1 / 4; }
}

  html.reduce-motion .hero-title, html.reduce-motion .about .section-display, html.reduce-motion .contact h2, html.reduce-motion .belt-cut, html.reduce-motion .film-card, html.reduce-motion .fragment, html.reduce-motion .footer a:active { transform: none; translate: none; }
  html.reduce-motion .film-stage { min-height: 0; }
  html.reduce-motion .film-sticky { position: static; height: auto; min-height: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 18px; }
  html.reduce-motion .film-card { position: relative; inset: auto; width: 100%; }
  html.reduce-motion .film-scan, html.reduce-motion .scroll-scale, html.reduce-motion .process-route, html.reduce-motion .second-scale, html.reduce-motion .pointer-reticle { display: none; }
  html.reduce-motion .work-stage { min-height: 0; }

@media (max-width: 650px) {
  html.reduce-motion .film-sticky { grid-template-columns: minmax(0, 1fr); }
}

.hero-title:has(.is-glitch) svg { filter: drop-shadow(-3px 1px 0 var(--gold)) drop-shadow(5px 6px 0 var(--depth)); }


  html:not(.reduce-motion) .hero-title {
    transform: translate3d(calc(var(--hero-x, 0px) + var(--impulse, 0) * -11vw), var(--hero-y, 0), 0)
      rotate(calc(var(--hero-angle, -5deg) + var(--impulse, 0) * 10deg)) skewX(var(--hero-skew, -6deg)) scale(var(--hero-scale, 1));
  }
  html:not(.reduce-motion) .film-card {
    --direction: 1;
    transform: translate3d(calc(var(--film-x, 0px) + var(--direction) * var(--impulse, 0) * 12vw), var(--film-y, 0), 0)
      rotate(calc(var(--film-turn) + var(--film-tilt, 0deg) + var(--direction) * var(--impulse, 0) * 7deg))
      scale(var(--film-scale, 1));
  }
  html:not(.reduce-motion) .film-card:focus-visible { transform: none; }
  html:not(.reduce-motion) .belt-cut { transform: translateX(calc(var(--impulse, 0) * 10vw)) rotate(calc(var(--cut-turn, -2deg) + var(--impulse, 0) * 6deg)) scale(1.32); }
  html:not(.reduce-motion) .contact h2 { transform: translateX(calc(var(--contact-x, 0px) + var(--impulse, 0) * .21em)) skewX(calc(var(--contact-skew, 0deg) + var(--impulse, 0) * -9deg)); }

  html:not(.reduce-motion) .about .section-display {
    transform: translate3d(calc(var(--about-x, 0px) + var(--impulse, 0) * 3vw), 0, 0)
      rotate(calc(var(--about-angle, 0deg) + var(--impulse, 0) * -4deg)) scale(var(--about-scale, 1));
  }
  html:not(.reduce-motion) .about, html:not(.reduce-motion) .process { position: relative; isolation: isolate; overflow: clip; }
  html:not(.reduce-motion) .contact { overflow-x: clip; }
  html:not(.reduce-motion) :is(.about, html:not(.reduce-motion) .process, html:not(.reduce-motion) .contact)::before {
    content: ''; position: absolute; z-index: -1; inset: 0 -18%; pointer-events: none;
    background: linear-gradient(105deg, transparent 10%, var(--surface) 35%, var(--film) 62%, transparent 90%);
    opacity: calc(var(--entry, 0) * .78);
    transform: translate3d(calc(var(--entry, 0) * 63% + var(--impulse, 0) * 4vw), calc(var(--entry, 0) * -18svh), 0)
      rotate(calc(var(--entry, 0) * -19deg + var(--impulse, 0) * 4deg));
  }
  html:not(.reduce-motion) .process::before {
    transform: translate3d(calc(var(--entry, 0) * -63% - var(--impulse, 0) * 4vw), calc(var(--entry, 0) * -18svh), 0)
      rotate(calc(var(--entry, 0) * 19deg - var(--impulse, 0) * 4deg));
  }


/* Profile, capabilities and statement */
.capabilities .section-band { font-weight: 500; }
.capability-list { list-style: none; padding: 0; }
.capability-list > li { position: relative; border-bottom: 1px solid var(--rule); }
.tech-stack ul { display: flex; flex-wrap: wrap; gap: 4px 7px; margin: 10px 0 0; padding: 0; list-style: none; }
.tech-stack li { padding: .36em .64em; border: 1px solid var(--rule-gold); color: var(--gold); }
.about-facts { margin-top: clamp(28px, 5vw, 80px); display: grid; grid-template-columns: 1fr minmax(0, .8fr); background: var(--surface); border: 1px solid var(--rule); }
.tech-stack, .about-meta { min-width: 0; padding: clamp(12px, 3vw, 29px); }
.tech-stack h3, .about-meta dt { color: var(--copper); font-weight: 500; }
.about-meta { border-left: 1px solid var(--rule); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.about-meta dd { margin-top: 5px; }

/* The two project titles open into their respective preview frames. */
.work { overflow: clip; }
.film-stage {
  --direction: 1; position: relative; min-height: 128svh; margin-block: clamp(22px, 6vw, 80px) 0;
  border-block: 1px solid var(--rule-gold);
  background: linear-gradient(var(--rule) 1px, transparent 1px), linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-size: 38px 38px;
}
.film-stage[data-project="life"] { --direction: -1; }
.film-sticky {
  position: sticky; top: var(--header); min-height: 325px; height: calc(100svh - var(--header));
  display: grid; align-items: center; justify-items: stretch; isolation: isolate;
}
.work-plate {
  position: relative; min-width: 0; display: grid; gap: clamp(10px, 1.8vw, 29px); padding: clamp(10px, 3.5vw, 48px);
  background: linear-gradient(140deg, var(--surface), var(--night) 80%);
  border: 1px solid var(--rule-gold); box-shadow: 0 5px 0 var(--depth);
}
.work-plate-index { color: var(--gold); border-bottom: 1px solid var(--rule-gold); padding-bottom: .55em; }
.work-title-art { isolation: isolate; position: relative; display: grid; align-items: center; min-width: 0; }
.work-letters {
  position: relative; grid-area: 1 / 1; min-width: 0; color: var(--copper);
  font-size: clamp(2.2rem, 11.2vw, 11rem); font-weight: 900; letter-spacing: 0; line-height: .9;
  overflow-wrap: anywhere; text-shadow: 2px 3px var(--depth), 4px 6px var(--depth), 6px 9px var(--depth);
}
.work-letters-bottom { display: none; }
.work-caption {
  position: relative; z-index: 3; justify-self: start; width: fit-content; max-width: 100%;
  padding: .7em .9em; border-left: 3px solid var(--gold); background: var(--night);
  color: var(--ink); font-size: clamp(.73rem, 1.35vw, 1rem); overflow-wrap: anywhere;
}
.work-caption [lang] { color: var(--gold); }
.work-extrusion { position: absolute; inset: -8% -7%; width: 114%; height: 116%; pointer-events: none; }
.work-title-art.scene-ready .work-letters { visibility: hidden; }

.film-card {
  position: absolute; z-index: 2; top: 47%; right: -16%; bottom: auto; left: auto;
  width: min(52vw, 682px); --film-turn: -9deg;
}
.film-stage[data-project="life"] .film-card {
  --film-ink: var(--night); --film-bg: var(--gold); --film-turn: 9deg;
  left: -16%; right: auto;
}
.film-card:is(:hover, :focus-visible) { z-index: 4; }
.film-card:focus-visible { left: auto !important; right: 0 !important; transform: translateY(-25%) !important; }
.film-image { display: grid; place-items: center; min-height: 0; }
.match-preview { position: absolute; inset: 11% 10%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); align-items: center; gap: 12%; }
.match-ring {
  display: grid; place-items: center; aspect-ratio: 1; border-radius: 50%; position: relative;
  max-height: 100%; isolation: isolate;
  background: conic-gradient(var(--copper) 0deg 238deg, var(--rule-gold) 238deg 360deg);
}
.match-ring::before { content: ''; position: absolute; z-index: -1; inset: 9%; border-radius: 50%; background: var(--film-bg, var(--surface)); }
.match-ring b { font-size: clamp(.53rem, 1.5vw, .85rem); color: var(--gold); }
.match-vector { display: grid; grid-template-columns: repeat(12, 1fr); align-items: end; gap: 3%; height: 62%; border-bottom: 1px solid currentColor; }
.match-vector i { display: block; height: 52%; background: var(--gold); opacity: .75; }
.match-vector i:nth-child(3n) { height: 82%; background: var(--copper); }
.match-vector i:nth-child(4n+1) { height: 28%; }
.match-monitor {
  position: relative; grid-column: 2; grid-row: 1; min-height: 295px; width: 100%; align-self: center;
  background: var(--surface); overflow: clip; border: 1px solid var(--rule-gold);
}
.match-monitor-label { position: absolute; z-index: 1; color: var(--gold); inset: 9px auto auto 12px; }
.match-monitor.scene-ready .match-preview { visibility: hidden; }
.project-title { min-width: 0; }
.project-en { overflow-wrap: anywhere; }
.project-en small { display: block; font: 500 .74rem/1.45 var(--mono); margin-top: .38em; }
.detail-data { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.project-recording { margin-top: 24px; padding-top: 12px; border-top: 1px solid var(--project-rule); }
.project-recording h3 { color: var(--gold); }


  html:not(.reduce-motion) .work-letters-top {
    clip-path: polygon(-30% -35%, 130% -35%, 130% 49%, 58% 48%, 41% 56%, -30% 50%);
    transform: translate3d(calc(var(--split, 0) * -11vw - var(--direction) * var(--impulse, 0) * 1.5vw + var(--pointer-shift, 0px)), calc(var(--split, 0) * -4svh), 0)
      rotate(calc(var(--split, 0) * -8deg));
  }
  html:not(.reduce-motion) .work-letters-bottom {
    display: block; clip-path: polygon(-30% 50%, 41% 56%, 58% 48%, 130% 49%, 130% 140%, -30% 140%);
    transform: translate3d(calc(var(--split, 0) * 12vw + var(--direction) * var(--impulse, 0) * 1.5vw + var(--pointer-shift, 0px)), calc(var(--split, 0) * 5svh), 0)
      rotate(calc(var(--split, 0) * 9deg));
  }
  html:not(.reduce-motion) .film-card { --direction: 1; }
  html:not(.reduce-motion) .film-stage[data-project="life"] .film-card { --direction: -1; }

@media (max-width: 650px) {
  .about-facts { grid-template-columns: minmax(0, 1fr); }
  .about-meta { border-top: 1px solid var(--rule); border-left: 0; }
  .work-letters { font-size: clamp(1.95rem, 10vw, 4.75rem); }
  .film-stage { min-height: 121svh; }
  .film-sticky { align-items: start; padding-top: min(15svh, 86px); }
  .film-card { top: 53%; width: min(67vw, 330px); right: -12%; }
  .film-stage[data-project="life"] .film-card { left: -12%; }
  .match-monitor { grid-column: 1; grid-row: 2; margin-top: 13px; min-height: 184px; }
  .detail-data { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-data > div:last-child { grid-column: auto; }
}

  html.reduce-motion .film-stage { min-height: 0; }
  html.reduce-motion .film-sticky { position: static; min-height: 0; height: auto; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 0 0 16px; }
  html.reduce-motion .film-card, html.reduce-motion .film-stage[data-project="life"] .film-card { position: relative; inset: auto; width: min(100%, 682px); transform: none; }
  html.reduce-motion .film-card:focus-visible { transform: none !important; }
  html.reduce-motion .work-extrusion { display: none !important; }
  html.reduce-motion .work-title-art.scene-ready .work-letters { visibility: visible; }


/* Large visual fields and a single focal point per section. */
:root { --header: 66px; }
.site-header { color: var(--editorial-ink); background: var(--editorial); border-bottom: 1px solid var(--editorial-rule); }
.site-header.is-dark { color: var(--ink); background: var(--night); border-color: var(--rule-gold); }
.header-grid { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto; padding-inline: var(--gutter); }
.header-grid .brand { grid-column: 1; grid-row: 1; width: max-content; border: 0; }
.header-grid .site-nav { grid-column: 2; grid-row: 1; gap: clamp(9px, 1.9vw, 28px); padding: 0; }
.header-grid .nav-about { display: flex; }
.site-nav a { min-height: 36px; }
.site-nav .nav-contact { color: var(--night); background: var(--accent); border-color: var(--accent); }
.site-nav .nav-contact:hover { color: var(--night); background: var(--gold); border-color: var(--gold); }

.hero { margin: 0; padding: 0; }
.hero-plate, .hero-plate.scene-ready {
  min-height: calc(100svh - var(--header)); border: 0; background: var(--main); color: var(--on-main);
}
.hero-plate::after { content: none; }
canvas[data-effect] { display: block; position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-plate canvas { z-index: -1; }
.hero-legend, .hero-index { padding: 10px var(--gutter); }
.hero-legend { display: none; }
.hero-plate { grid-template-rows: 1fr auto; }
.hero-legend span, .hero-index a {
  color: var(--on-main); background: var(--main);
  border: 1px solid currentColor; padding: .55em .9em;
}
.hero-index a span { color: inherit; }
.hero-index a:last-child { background: var(--on-main); color: var(--main); border-color: var(--on-main); }
.hero-title { padding-inline: 5%; }
.hero-title svg { filter: drop-shadow(3px 5px 0 var(--hero-depth)) drop-shadow(4px 7px 0 var(--hero-depth)); }
.hero-title:has(.is-glitch) svg { filter: drop-shadow(-3px 1px 0 var(--hero-depth)) drop-shadow(5px 6px 0 var(--hero-depth)); }

.about.shell { max-width: none; color: var(--editorial-ink); background: var(--editorial); }
.about::before { content: none !important; }
.about .section-band { color: var(--editorial-accent); border-color: var(--editorial-rule); }
.about .section-display { color: var(--editorial-ink); text-shadow: none; font-size: clamp(5rem, 19vw, 18rem); }
.capability-list > li { border-color: var(--editorial-rule); }
.tech-stack h3, .about-meta dt { color: var(--editorial-accent); }
.tech-stack li {
  color: var(--editorial-accent); border-color: var(--editorial-rule);
}
.about-facts { background: var(--editorial-tint); border-color: var(--editorial-rule); }
.about-meta { border-color: var(--editorial-rule); }
.about .status i, .second-scale::after { background: var(--editorial-accent); }

.work { background: var(--work-bg); }
.work-content.shell { max-width: none; }
.work-content .section-band { background: transparent; }
.work-content .section-display { margin-block: .2em .35em; font-size: clamp(5rem, 21vw, 19rem); color: var(--ink); background: transparent; padding: 0; text-shadow: none; }
.film-stage { min-height: 158svh; border: 0; margin: 0; background: none; }
.film-sticky { justify-items: stretch; align-items: center; min-height: 365px; }
.work-plate { background: none; border: 0; box-shadow: none; padding-inline: 0; }
.work-letters { font-size: clamp(2.7rem, 13.5vw, 13rem); }
.work-caption { font-size: clamp(.81rem, 1.25vw, 1rem); }
.work-decode {
  display: none; position: absolute; inset: 0; place-content: center start;
  color: var(--copper); white-space: pre-wrap; overflow-wrap: anywhere;
  font-size: clamp(2.5rem, 11.7vw, 11rem); line-height: .9;
}
.film-stage[data-decoding] .work-decode { display: grid; }
.film-stage[data-decoding] .work-letters { visibility: hidden; }
.film-stage[data-decoding] .work-extrusion { visibility: hidden !important; }
.film-card, .film-stage[data-project="life"] .film-card {
  position: absolute; inset: 11% 0 auto; width: 100%; max-width: none;
  --film-turn: 0deg; box-shadow: none; overflow: clip;
}
.film-card:is(:hover, :focus-visible) { z-index: 5; }
.film-card:focus-visible { inset: 11% 0 auto !important; transform: none !important; }
.film-card .film-image {
  aspect-ratio: auto; height: min(68svh, 860px); max-height: none;
  border: 0; background: var(--film-bg);
}
.film-image::before { content: none; }
.film-label { background: var(--film-bg); padding: .76em 1.15em; font-size: clamp(.75rem, .88vw, .96rem); border-top: 1px solid currentColor; }
.film-card .match-preview {
  inset: 0; display: grid; place-items: center; grid-template-columns: 1fr;
  background: radial-gradient(ellipse at 50% 100%, var(--work-bg), transparent);
}
.film-card .match-vector { display: none; }
.film-card .match-ring { width: min(57%, 46svh); background: conic-gradient(var(--copper) 0deg 264deg, var(--rule-gold) 264deg 360deg); rotate: -28deg; }
.film-card .match-ring::before { inset: 22%; }
.film-card .film-dial { height: 77%; background: repeating-conic-gradient(currentColor 0 3deg, transparent 3deg 30deg); }
.film-card .film-dial::after { content: ''; position: absolute; width: 42%; height: 19%; top: 40%; left: 8%; background: currentColor; rotate: 30deg; transform-origin: right; }
.work-stage { min-height: 0; padding-block: clamp(18px, 3vw, 45px) clamp(50px, 8vw, 110px); }
.project { width: 100%; }
details.project:not([open]) :is(.match-monitor, .life-figure, .life-legend) { display: none; }
details.project:not([open]) .project-body { min-height: 0; grid-template-columns: 1fr; background: var(--project-ground); }
details.project:not([open]) .project-en { font-size: clamp(1.3rem, 3.8vw, 3.5rem); }
.coming { margin-inline: 0; }

.philosophy { color: var(--ink); overflow: clip; padding-block: clamp(55px, 9vw, 130px); }
.philosophy-intro { padding-block: clamp(35px, 10vw, 125px); }
.philosophy-intro h2 {
  color: var(--gold); font-size: clamp(2.6rem, 13.45vw, 12.5rem); font-weight: 900; letter-spacing: 0;
  overflow-wrap: anywhere;
}
.philosophy-intro p { max-width: 49ch; font-size: clamp(.92rem, 1.5vw, 1.25rem); margin-top: 1.5rem; line-height: 1.8; }
.policy-list { padding: 0; list-style: none; }
.policy-list > li {
  position: relative; display: grid; align-items: center; min-height: calc(100svh - var(--header));
  overflow: clip; border-top: 1px solid var(--rule-gold); padding-block: clamp(32px, 6vw, 88px);
}
.policy-card { display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1fr); gap: clamp(16px, 4vw, 55px); align-items: center; }
.policy-copy { position: relative; min-width: 0; }
.policy-copy h3 { margin: 0; color: var(--ink); font: 400 clamp(2.35rem, 5.4vw, 5.5rem)/1.14 var(--jp-head); overflow-wrap: anywhere; }
.policy-copy p { max-width: 34em; margin-top: clamp(13px, 2.4vw, 36px); font: 400 clamp(.92rem, 1.55vw, 1.28rem)/1.75 var(--sans); color: var(--muted); }

.contact {
  --contact-heading-height: clamp(62px, 19vw, 125px); position: relative; isolation: isolate;
  color: var(--on-contact); background: var(--accent); overflow-x: clip;
}
.contact::before { content: none !important; }
.contact > canvas { z-index: -1; }
.contact-content { padding-block: clamp(70px, 11vw, 160px) clamp(70px, 11vw, 160px); }
.contact-layout { display: block; padding: 0; }
.contact-lead { position: static; }
.contact h2 {
  color: var(--on-contact); font-size: clamp(3.5rem, 18.7vw, 17rem); letter-spacing: 0;
  transform: none; text-shadow: none;
}
.contact-invitation {
  max-width: 780px; margin: clamp(14px, 3vw, 38px) 0 .75rem auto;
  font: 500 clamp(1rem, 1.8vw, 1.4rem)/1.55 var(--sans);
}
.contact-layout form { max-width: 780px; margin: 0 0 0 auto; color: var(--ink); border-color: var(--rule-gold); }
.form-privacy { color: var(--muted); font: 400 .8rem/1.6 var(--sans); }
.form-privacy a { color: var(--gold); }
.footer { grid-template-columns: 1fr auto auto auto; padding-block: 12px; }
.footer a { border: 0; box-shadow: none; color: var(--gold); padding: .25rem 0; text-decoration: underline; }


  html:not(.reduce-motion) .policy-copy { transform: translate3d(0, var(--policy-rise, 0px), 0); }
  html:not(.reduce-motion) .film-card, html:not(.reduce-motion) .film-stage[data-project="life"] .film-card {
    transform: translate3d(calc(var(--film-x, 0px) + var(--direction) * var(--impulse, 0) * 3vw), var(--film-y, 0px), 0)
      rotate(calc(var(--film-tilt, 0deg) + var(--direction) * var(--impulse, 0) * 2deg)) scale(var(--film-scale, 1));
  }
  html:not(.reduce-motion) .film-stage[data-decoding] .film-card:not(:focus-visible) { visibility: hidden; }

@media (max-width: 650px) {
  :root { --header: 58px; }
  .header-grid { grid-template-columns: minmax(0, 1fr) auto; padding-inline: 9px; }
  .brand img { width: clamp(67px, 21vw, 91px); }
  .header-grid .site-nav { font-size: clamp(.58rem, 2.7vw, .7rem); gap: clamp(4px, 1.7vw, 11px); }
  .site-nav .nav-contact { padding-inline: 4px; }
  .site-nav .nav-contact span { display: none; }
  .hero-title { padding-inline: 7%; }
  .hero-plate { min-height: calc(100svh - var(--header)); }
  .work-letters { font-size: clamp(2rem, 11.6vw, 5.2rem); }
  .film-stage { min-height: 145svh; }
  .film-sticky { align-items: center; padding-top: 0; }
  .film-card, .film-stage[data-project="life"] .film-card { inset: 18% 0 auto; }
  .film-card:focus-visible { inset: 18% 0 auto !important; }
  .film-card .film-image { height: 57svh; }
  .film-card .match-ring { width: min(75%, 36svh); }
  .policy-card { grid-template-columns: minmax(0, 1fr); gap: clamp(26px, 6vw, 52px); }
  .policy-copy h3 { font-size: clamp(2.2rem, 9.2vw, 4rem); }
  .contact-lead {
    position: sticky; top: var(--header); z-index: 3; display: grid; align-items: center;
    min-height: var(--contact-heading-height); background: var(--accent); margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter);
  }
  .contact h2 { font-size: clamp(3.2rem, 17.5vw, 7rem); }
  .contact :is(input, textarea, button, a) { scroll-margin-top: calc(var(--contact-heading-height) + 16px); }
  .contact-invitation { margin-top: 12px; }
  .footer { grid-template-columns: 1fr 1fr; gap: .65em; }
  .footer a { justify-self: start; }
}

  html.reduce-motion canvas[data-effect] { display: none !important; }
  html.reduce-motion .film-stage { min-height: 0; }
  html.reduce-motion .film-sticky { position: static; height: auto; min-height: 0; grid-template-columns: minmax(0, 1fr); padding-block: 22px; }
  html.reduce-motion .film-card, html.reduce-motion .film-stage[data-project="life"] .film-card, html.reduce-motion .film-card:focus-visible { position: relative; inset: auto !important; transform: none; }
  html.reduce-motion .work-decode { display: none !important; }
  html.reduce-motion .film-stage[data-decoding] .work-letters { visibility: visible; }
  html.reduce-motion .policy-list > li { min-height: min(65svh, 520px); }


.capability-list { margin-block: 0; margin-inline: calc(-1 * var(--gutter)); }
.tech-stack summary { cursor: pointer; color: var(--editorial-accent); font-weight: 500; }
.tech-stack li { padding: 0; border: 0; }

/* Bleed to the edges of the layout viewport, including on screens with a scrollbar. */
.film-stage {
  margin-inline: calc(-1 * var(--gutter)); min-height: 106svh;
}
.film-sticky { height: min(calc(100svh - var(--header)), 880px); min-height: 325px; }
.work-plate { padding-inline: var(--gutter); }
.film-card, .film-stage[data-project="life"] .film-card { inset: 6% 0 auto; border-inline: 0; }
.film-card:focus-visible { inset: 6% 0 auto !important; outline-offset: -4px; }
.film-card .film-image { height: min(76svh, 780px); }
.film-label { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: .6rem; padding-inline: var(--gutter); }
.film-label span { min-width: 0; overflow-wrap: anywhere; }
.work-stage { padding-block: clamp(16px, 2vw, 30px) clamp(30px, 4.8vw, 68px); }
.work { padding-bottom: clamp(34px, 5.3vw, 82px); }

.philosophy { padding-block: clamp(42px, 6vw, 90px); }
.philosophy-intro { padding-block: clamp(27px, 6.5vw, 90px); }
.policy-list > li {
  min-height: 72svh; padding-block: clamp(24px, 4.2vw, 60px);
}

@media (max-width: 650px) {
  .film-stage { min-height: 104svh; }
  .film-card, .film-stage[data-project="life"] .film-card { inset: 10% 0 auto; }
  .film-card:focus-visible { inset: 10% 0 auto !important; }
  .film-card .film-image { height: 72svh; }
  .film-label { font-size: .72rem; gap: .45rem; }
  .policy-list > li { min-height: 70svh; padding-block: clamp(22px, 4.5vw, 55px); }
}

  html.reduce-motion .film-stage { min-height: 0; }
  html.reduce-motion .film-sticky { height: auto; min-height: 0; }
  html.reduce-motion .film-card, html.reduce-motion .film-stage[data-project="life"] .film-card, html.reduce-motion .film-card:focus-visible { inset: auto !important; }
  html.reduce-motion .policy-list > li { min-height: min(64svh, 510px); }


.work-content .section-display { margin-block: .12em .09em; }
.film-sticky { align-items: start; }
.work-plate { padding-block: clamp(18px, 5.4svh, 60px) 12px; }

/* Use natural glyph widths and enough vertical space for multi-line type. */
.display, .section-display { letter-spacing: .012em; line-height: 1.08; }
.hero-title { text-align: center; padding-inline: 5%; color: var(--on-main); }
.hero-title .hero-wide { display: block; }
.hero-title .hero-stacked { display: none; }
.hero-glyphs {
  display: block; white-space: pre; color: var(--on-main);
  font: 400 clamp(2.1rem, 11.5vw, 11.6rem)/1.11 var(--display); letter-spacing: .019em;
  text-shadow: 0 .035em var(--hero-depth);
}
.hero-glyphs .is-glitch { color: inherit; text-shadow: 0 .055em var(--hero-depth); }
.hero-plate canvas[data-effect="binary"] {
  mask-image: linear-gradient(#000 0 26%, rgb(0 0 0 / 58%) 42% 62%, #000 78%);
}
.capabilities-title { margin: 0 0 .75em; color: var(--editorial-accent); }
.project-en { letter-spacing: .012em; line-height: 1.15; }
.project-bar { min-height: 0; }
.project summary > .project-bar:first-child { justify-content: end; }
.work-letters, .work-decode {
  letter-spacing: .019em; line-height: 1.09; text-shadow: 0 .033em var(--depth);
}
.work-letters { font-size: clamp(2.1rem, 12.15vw, 12.4rem); }
.philosophy-intro h2 { letter-spacing: .011em; line-height: 1.08; font-size: clamp(2.15rem, 12.65vw, 11.8rem); }
.philosophy-subtitle { display: block; color: var(--gold); margin-top: .9rem; font-size: .86rem; }
.policy-card { grid-template-columns: minmax(0, 1fr); gap: clamp(14px, 2vw, 34px); }
.policy-word-box { min-width: 0; overflow: clip; padding-block: .04em .18em; }
.policy-word {
  display: block; color: var(--copper); font-weight: 400; line-height: 1.08; letter-spacing: .015em;
  font-size: clamp(3.25rem, min(19vw, 25svh), 17rem); overflow-wrap: anywhere;
}
.policy-copy h3 { font-size: clamp(1.9rem, 4.4vw, 4.9rem); line-height: 1.27; letter-spacing: .021em; }
.policy-copy p { margin-top: clamp(12px, 1.65vw, 25px); }
.philosophy-care { margin-block: clamp(48px, 9vw, 140px) 0; padding-block: clamp(24px, 4vw, 58px); border-top: 1px solid var(--rule-gold); }
.philosophy-care h3 { color: var(--muted); font: 500 clamp(.85rem, 1.35vw, 1rem)/1.4 var(--mono); margin-bottom: clamp(16px, 3.5vw, 54px); }
.philosophy-care p {
  color: var(--ink); font: 400 clamp(1.6rem, 5.7vw, 5.5rem)/1.56 var(--jp-head);
  letter-spacing: .023em; overflow-wrap: anywhere;
}
.philosophy-care strong { font-weight: 400; }
.contact h2 { letter-spacing: .016em; line-height: 1.08; font-size: clamp(3.15rem, 17.5vw, 16rem); }
.not-found h1 { line-height: 1.08; }


  html:not(.reduce-motion) .policy-word {
    transform: translate3d(calc(var(--policy-x, 0px) + var(--impulse, 0) * 1.1vw), 0, 0)
      rotate(calc(var(--policy-angle, 0deg) + var(--impulse, 0) * 1.5deg)) scale(var(--policy-scale, 1));
    transform-origin: center;
  }
  html:not(.reduce-motion) .philosophy-care strong[data-highlight] { color: var(--gold); text-decoration: underline; text-decoration-thickness: .07em; text-underline-offset: .17em; }
  html:not(.reduce-motion) .work-letters-top { rotate: 0deg; }
  html:not(.reduce-motion) .work-letters-bottom { rotate: 0deg; }

@media (max-width: 650px) {
  .hero-title { padding-inline: 4%; }
  .hero-title .hero-wide { display: none; }
  .hero-title .hero-stacked { display: grid; gap: .075em; }
  .hero-glyphs { font-size: clamp(2.75rem, 18.65vw, 6.4rem); }
  .work-letters { font-size: clamp(2rem, 10.55vw, 4.8rem); }
  .policy-word { font-size: clamp(2.9rem, 16.8vw, 7.2rem); }
  .policy-copy h3 { font-size: clamp(1.7rem, 7.85vw, 3.25rem); }
  .contact h2 { font-size: clamp(3.0rem, 16vw, 6.8rem); }
}

/* The menu has its own full-screen surface and keeps the page behind it still. */
html.menu-open, html.menu-open body { overflow: hidden; overscroll-behavior: none; }
.header-grid .header-actions {
  display: flex; flex-direction: row; align-items: center; gap: clamp(6px, 2vw, 14px);
  padding: 0; border: 0;
}
.sound-toggle {
  appearance: none; flex: 0 0 auto; min-height: 44px; min-width: 7.2em;
  padding: .4em .6em; font-size: .75rem; color: inherit; background: transparent;
  border: 1px solid transparent; border-radius: 0; white-space: nowrap; cursor: pointer;
}
.sound-toggle[hidden] { display: none; }
.sound-toggle[aria-pressed="true"], .sound-toggle:hover { border-color: currentColor; }
.sound-toggle:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.header-grid .menu-toggle {
  grid-column: 2; grid-row: 1; display: inline-flex; flex-direction: row; align-items: center; align-self: center;
  justify-content: space-between; gap: .9rem; min-width: 6.4rem; min-height: 41px; padding: .6rem .9rem;
  border: 1px solid currentColor; color: var(--editorial-ink); background: transparent; font-size: .8rem;
}
.site-header.is-dark .menu-toggle { color: var(--ink); }
@media (max-width: 360px) {
  .header-grid .menu-toggle { min-width: 0; gap: .45rem; padding-inline: .55rem; }
}
.menu-toggle span, .menu-close span { font-size: 1.1rem; line-height: 1; }
.menu-fallback { grid-column: 2; align-self: center; padding: .5rem; }
.menu-fallback a { display: block; min-height: 29px; }

.portal-menu {
  --menu-field: var(--night); --menu-type: var(--ink); --menu-accent: var(--gold);
  position: fixed; inset: 0; width: 100%; height: 100dvh; max-width: none; max-height: none;
  padding: 0; margin: 0; border: 0; overflow: auto; isolation: isolate; overscroll-behavior: contain;
  color: var(--menu-type); background: var(--menu-field);
}
.portal-menu:not([open]) { display: none; }
.portal-menu::backdrop { background: var(--night); }
.portal-menu[data-preview="about"] { --menu-field: var(--editorial); --menu-type: var(--editorial-ink); --menu-accent: var(--editorial-accent); }
.portal-menu[data-preview="work"] { --menu-field: var(--work-bg); --menu-type: var(--ink); --menu-accent: var(--copper); }
.portal-menu[data-preview="philosophy"] { --menu-field: var(--night); --menu-type: var(--ink); --menu-accent: var(--copper); }
.portal-menu[data-preview="contact"] { --menu-field: var(--accent); --menu-type: var(--on-contact); --menu-accent: var(--on-contact); }
.menu-inner { min-height: 100%; display: grid; grid-template-rows: auto 1fr; align-items: center; position: relative; padding: clamp(13px, 2.7vw, 42px) var(--gutter); }
.menu-meta {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: clamp(6px, 2.1vw, 30px); align-items: center;
  padding-bottom: clamp(8px, 2vh, 24px); font-size: clamp(.63rem, 1.1vw, .92rem);
}
.menu-location { min-width: 0; overflow-wrap: anywhere; }
.menu-close {
  display: inline-flex; align-items: center; gap: .65rem; min-height: 41px; color: inherit;
  background: var(--menu-field); border: 1px solid currentColor; padding: .5rem .7rem; cursor: pointer;
}
.portal-links { display: grid; align-content: center; padding-bottom: 2vh; }
.portal-links a {
  display: grid; align-items: center; width: 100%; min-height: 0; padding: .025em 0 .055em;
  border-top: 1px solid currentColor; color: var(--menu-type); text-decoration: none;
  font: 400 clamp(2.1rem, min(13.25vw, 15.9svh), 13rem)/1.08 var(--display); letter-spacing: .013em;
}
.portal-links a:last-child { border-bottom: 1px solid currentColor; }
.portal-links a:is([href="#work"], [href="#contact"]) {
  font-size: clamp(2.6rem, min(17.1vw, 18.8svh), 15.5rem);
}
.portal-links a:is(:hover, :focus-visible) { color: var(--menu-accent); text-decoration: none; }
.portal-links a[aria-current="location"] { text-decoration: underline; text-decoration-thickness: .035em; text-underline-offset: .13em; }
.portal-menu :focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.menu-word { display: block; overflow-wrap: anywhere; transform-origin: left center; }
.menu-preview, .menu-pixels { position: absolute; inset: 0; z-index: -1; overflow: clip; pointer-events: none; }
.menu-preview::after {
  content: ''; position: absolute; inset: 8% -14% -22% 40%; opacity: 0; transform: translateX(14%) rotate(-20deg);
  background: conic-gradient(from 32deg at center, var(--menu-accent) 0deg 130deg, transparent 130deg);
  mask-image: radial-gradient(circle, transparent 43%, #000 44% 65%, transparent 66%);
}
.portal-menu[data-preview] .menu-preview::after { opacity: .28; transform: translateX(0) rotate(0); }
.portal-menu[data-preview="about"] .menu-preview::after {
  background: repeating-linear-gradient(to bottom, var(--menu-accent) 0 2.4vw, transparent 2.4vw 5vw);
  mask-image: none;
}
.portal-menu[data-preview="philosophy"] .menu-preview::after {
  background: repeating-linear-gradient(120deg, var(--menu-accent) 0 2px, transparent 2px 11vw);
  mask-image: none;
}
.portal-menu[data-preview="contact"] .menu-preview::after { background: var(--menu-accent); }
.menu-pixels { display: grid; grid-template-columns: repeat(var(--pixel-columns, 6), minmax(0, 1fr)); grid-template-rows: repeat(7, minmax(0, 1fr)); z-index: 2; }
.menu-pixels i { opacity: 0; background: var(--main); }
.menu-pixels i:nth-child(4n) { background: var(--accent); }
.menu-flight {
  position: fixed; inset: 0; z-index: 5; display: grid; place-items: center; overflow: clip;
  color: var(--menu-type); background: var(--menu-field); pointer-events: none;
}
.menu-flight span {
  display: block; text-align: center; white-space: nowrap;
  font: 400 clamp(2rem, 15vw, 21rem)/1.08 var(--display); letter-spacing: .013em;
}

  html:not(.reduce-motion) .portal-menu[open] .menu-pixels i { animation: menu-tile 340ms var(--tile-delay, 0ms) steps(5, end) both; }
  html:not(.reduce-motion) .portal-menu[open] .menu-inner { animation: menu-inside 410ms ease-out both; }
  html:not(.reduce-motion) .menu-preview::after, html:not(.reduce-motion) .menu-word { transition: transform .25s ease-out, opacity .25s ease-out; }
  html:not(.reduce-motion) .portal-links a:is(:hover, html:not(.reduce-motion) :focus-visible) .menu-word { transform: translateX(clamp(5px, 1.6vw, 22px)) scale(1.025); }
  html:not(.reduce-motion) .portal-menu[data-navigating] .menu-flight span { animation: menu-arrival 470ms cubic-bezier(.35,.05,.78,.4) both; }

@keyframes menu-tile {
  from { opacity: 1; transform: scale(1.02); }
  58% { opacity: .92; }
  to { opacity: 0; transform: translateY(-27%) scale(.66); }
}
@keyframes menu-inside { from { opacity: 0; transform: translateY(3vh); } to { opacity: 1; transform: none; } }
@keyframes menu-arrival {
  from { transform: scale(.85); }
  62% { transform: scale(1.5); opacity: 1; }
  to { transform: scale(2.6); opacity: .25; }
}
@media (max-width: 650px) {
  .menu-meta { font-size: .63rem; }
  .portal-links { align-content: space-evenly; }
  .portal-links a { font-size: clamp(1.8rem, min(12.65vw, 15.9svh), 5.65rem); padding-block: .22em .26em; }
  .menu-preview::after { inset: 4% -75% -4% 10%; }
}

  html.reduce-motion .menu-preview, html.reduce-motion .menu-pixels, html.reduce-motion .menu-flight { display: none !important; }


/* 動きの切り替え（メニューの隅） */
.motion-toggle { appearance: none; background: transparent; color: inherit; border: 1px solid currentColor; border-radius: 0; padding: .45em .8em; font: inherit; cursor: pointer; opacity: .85; }
.motion-toggle[aria-pressed="true"] { background: currentColor; }
.motion-toggle[aria-pressed="true"]::after { content: " ✓"; }
.motion-toggle:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
html.reduce-motion .motion-toggle[aria-pressed="true"] { color: inherit; background: transparent; text-decoration: underline; }

/* メニュー上部：現在地・時計・動きの切り替え・CLOSE を1列に（スマホは2段） */
.menu-meta { grid-template-columns: minmax(0, 1fr) auto auto auto; }
.motion-toggle { min-height: 41px; white-space: nowrap; }
@media (max-width: 650px) {
  .menu-meta { grid-template-columns: minmax(0, 1fr) auto; row-gap: 8px; }
  .motion-toggle { justify-self: start; }
}

/* 3つ目の作品：HONJOUJI WEBSITE（Web制作）。色の組み立ては顔認証と同じ側（.project-face と共通の指定）を使う */
.web-figure { position: relative; grid-column: 2; grid-row: 1; align-self: center; width: 100%; min-height: 315px; display: grid; }
.web-shot { position: relative; display: grid; grid-template-rows: auto 1fr auto; width: 100%; height: 100%; min-height: inherit; color: var(--project-ink, currentColor); border: 1px solid currentColor; background: linear-gradient(135deg, color-mix(in srgb, currentColor 16%, transparent), color-mix(in srgb, currentColor 4%, transparent)); overflow: hidden; }
.web-shot-bar { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-bottom: 1px solid currentColor; font-size: .72rem; letter-spacing: .04em; }
.web-shot-bar i { width: 8px; height: 8px; border-radius: 50%; border: 1px solid currentColor; }
.web-shot-bar span { margin-left: 8px; opacity: .85; }
.web-shot-name { align-self: center; justify-self: start; padding: 0 clamp(14px, 3vw, 40px); font-size: clamp(2.6rem, 7.5vw, 7.5rem); line-height: 1.02; letter-spacing: .01em; }
.web-shot-note { padding: 8px 12px; font-size: .72rem; opacity: .8; }
.film-card .web-shot { position: absolute; inset: 0; min-height: 0; border: 0; }
.film-card .web-shot-name { font-size: clamp(2.4rem, 9vw, 9rem); }
details.project:not([open]) .web-figure { display: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 650px) {
  .web-figure { grid-column: 1; grid-row: 2; margin-block: 13px 5px; min-height: 220px; }
  .web-shot-name { font-size: clamp(2.2rem, 12vw, 3.4rem); }
  .film-card .web-shot-name { font-size: clamp(2.4rem, 13vw, 3.8rem); }
}

/* One capability title per panel, with the editable description always visible. */
.capability-list > .capability-genre {
  position: relative; isolation: isolate; display: grid; align-items: center;
  min-height: clamp(220px, 49svh, 545px); padding-block: clamp(26px, 5vw, 72px);
  border-top: 1px solid var(--editorial-rule); border-bottom: 0; overflow: clip;
  background: var(--editorial); color: var(--editorial-ink);
}
.capability-genre:last-child { border-bottom: 1px solid var(--editorial-rule); }
.capability-list > .genre-automation { background: var(--main); color: var(--on-main); }
.genre-copy { min-width: 0; padding-inline: var(--gutter); }
.genre-title {
  margin: 0; color: inherit; font-size: clamp(2.55rem, var(--genre-size, 14.05vw), min(28rem, 36svh));
  letter-spacing: .01em; line-height: 1.08; text-wrap: balance; overflow-wrap: anywhere;
}
.capability-genre:nth-child(1) { --genre-size: 24vw; }
.capability-genre:nth-child(2) { --genre-size: 42vw; }
.capability-genre:nth-child(3) { --genre-size: 20vw; }
.capability-genre:last-child .genre-title { font-size: clamp(2.35rem, 11.9vw, 13rem); }
.genre-copy p {
  max-width: 70ch; margin: clamp(8px, 1.45vw, 20px) 0 0;
  font: 400 clamp(.87rem, 1.45vw, 1.16rem)/1.7 var(--sans); overflow-wrap: anywhere;
}
.capability-genre > canvas, .policy-list > li > canvas { z-index: 2; }
html:not(.reduce-motion) .genre-design[data-effect-active] .genre-title {
  mask-image: radial-gradient(circle at var(--effect-x) var(--effect-y),
    transparent 0 calc(var(--effect-radius) * .9), #000 var(--effect-radius));
}
html:not(.reduce-motion) .policy-list > li[data-effect-active] .policy-word {
  mask-image: radial-gradient(circle at var(--effect-x) var(--effect-y),
    #000 0 var(--effect-inner), transparent var(--effect-inner) var(--effect-outer), #000 var(--effect-outer));
}
.film-image > canvas[data-effect], .project-body > canvas[data-effect] { z-index: 3; }
.portal-menu > canvas[data-effect] { z-index: 0; }
.portal-menu .menu-inner { z-index: 1; }
.footer-field { position: relative; isolation: isolate; overflow: clip; }
.footer-field > canvas { z-index: -1; }
.footer-field .footer { min-height: clamp(88px, 13svh, 145px); }

@media (max-width: 650px) {
  .capability-list > .capability-genre { min-height: clamp(205px, 39svh, 390px); }
  .genre-title { font-size: clamp(2.25rem, var(--genre-size, 13.9vw), 9.5rem); }
  .capability-genre:last-child .genre-title { font-size: clamp(2.05rem, 11.3vw, 5.45rem); }
}

/* The Work boundary has no layout height. The snow covers the viewport itself. */
.section-cut { height: 0; }
.section-cut > canvas[data-effect="pixels"] {
  position: fixed; inset: 0; z-index: 30; pointer-events: none; width: 100%; height: 100%;
}
.section-cut > canvas[data-effect="pixels"][hidden] { display: none; }

/* The work viewport owns the horizontal overflow. Only its container uses vertical space. */
.work-gallery {
  --work-controls: 52px;
  --work-panel-height: max(280px, calc(100svh - var(--header) - var(--work-controls)));
  --work-step: 36svh;
  margin-inline: calc(-1 * var(--gutter));
  background: var(--work-bg);
}
html:not(.reduce-motion) .work-gallery[data-ready] {
  min-height: calc(var(--work-panel-height) + var(--work-controls) + var(--work-step) * var(--work-steps));
}
html:not(.reduce-motion) .work-gallery[data-ready] .work-gallery-pin {
  position: sticky; top: var(--header);
}
.work-gallery-pin { isolation: isolate; background: var(--work-bg); }
.work-viewport {
  display: flex; height: var(--work-panel-height); width: 100%; min-width: 0;
  overflow-x: auto; overflow-y: hidden; scrollbar-width: none;
  overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
}
.work-viewport::-webkit-scrollbar { display: none; }
.work-gallery[data-ready] .work-viewport { scroll-snap-type: none; touch-action: pan-x pan-y pinch-zoom; }
.work-gallery[data-dragging] .work-viewport { cursor: grabbing; user-select: none; }
.work-viewport:focus-visible { outline-offset: -4px; }
.work-gallery .film-stage, html.reduce-motion .work-gallery .film-stage {
  flex: 0 0 100%; width: 100%; min-width: 0; min-height: 0; height: 100%;
  margin: 0; scroll-snap-align: start; scroll-snap-stop: always;
}
.work-gallery .film-sticky, html.reduce-motion .work-gallery .film-sticky {
  display: block; position: relative; inset: auto; width: 100%; height: 100%; min-height: 0; padding: 0;
}
.work-gallery .work-plate {
  position: absolute; inset: 0 0 auto; z-index: 6; padding: clamp(10px, 2.1vw, 30px) var(--gutter);
  pointer-events: none; overflow: clip; background: linear-gradient(110deg, var(--night) 25%, transparent 95%);
  opacity: 0; transition: opacity .42s ease-out;
}
.work-gallery .film-stage[data-decoding] .work-plate { opacity: 1; transition: none; }
.work-gallery .film-stage .film-card, .work-gallery .film-stage .film-card:focus-visible,
html.reduce-motion .work-gallery .film-stage .film-card {
  display: grid; grid-template-rows: minmax(0, 1fr) auto auto;
  position: relative; inset: auto !important; width: 100%; height: 100%;
  transform: none; box-shadow: none; overflow: clip;
}
html:not(.reduce-motion) .work-gallery .film-stage .film-card { transform: none; }
html:not(.reduce-motion) .work-gallery .film-stage[data-decoding] .film-card:not(:focus-visible) { visibility: visible; }
.work-gallery .film-image { height: auto; min-height: 0; }
.work-gallery[data-ready]:not([data-dragging]) .film-image { cursor: grab; }
.work-gallery .work-caption {
  display: block; z-index: auto; width: 100%; max-width: none; padding: 0 var(--gutter) .8em;
  color: var(--film-ink); background: var(--film-bg); border: 0;
}
.work-gallery-controls {
  display: grid; grid-template-columns: 54px minmax(0,1fr) 54px; align-items: center;
  gap: .65rem; height: var(--work-controls); padding-inline: var(--gutter);
}
.work-arrow {
  padding: 0; width: 46px; height: 38px; color: var(--ink); background: transparent;
  border: 1px solid currentColor; border-radius: 0; font: 400 1.35rem/1 var(--mono);
}
.work-arrow:last-of-type { justify-self: end; }
.work-arrow[aria-disabled="true"] { opacity: .4; cursor: default; }
.work-arrow:not([aria-disabled="true"]):hover { color: var(--night); background: var(--accent); }
.work-indicators { display: flex; justify-content: center; align-items: center; gap: 5px; }
.work-indicators i { width: clamp(22px,4vw,55px); height: 3px; background: var(--rule-gold); }
.work-indicators [data-current] { background: var(--accent); }
html.reduce-motion .work-gallery .work-plate { display: none; }
html:not(.reduce-motion) .policy-word {
  transform: translate3d(var(--policy-x, 0px), 0, 0) rotate(var(--policy-angle, 0deg)) scale(var(--policy-scale, 1));
}
@media (max-width: 650px) {
  .work-gallery {
    --work-step: 27svh;
    --work-panel-height: max(250px, calc(100svh - var(--header) - var(--work-controls)));
  }
  .work-gallery .film-label { grid-template-columns: minmax(0,1fr) auto; }
  .work-gallery .film-label i { display: none; }
  .work-gallery .work-caption { font-size: .74rem; }
}

/* Abstract month grid and themed schedule bands for ISSHO CALENDAR. */
.calendar-figure {
  position: relative; display: grid; align-self: center; grid-column: 2; grid-row: 1;
  width: 100%; min-width: 0; min-height: 302px; background: var(--film); overflow: clip;
}
details.project:not([open]) .calendar-figure { display: none; }
.calendar-art {
  --calendar-grid: color-mix(in srgb, var(--copper) 52%, var(--film));
  position: absolute; inset: 6%; display: grid;
  grid-template: repeat(6, minmax(0, 1fr)) / repeat(7, minmax(0, 1fr));
  align-items: center; border: 1px solid var(--calendar-grid); overflow: clip;
  background:
    linear-gradient(90deg, var(--calendar-grid) 1px, transparent 1px) 0 0 / calc(100% / 7) 100%,
    linear-gradient(var(--calendar-grid) 1px, transparent 1px) 0 0 / 100% calc(100% / 6),
    linear-gradient(140deg, var(--film), var(--surface));
}
.film-card .calendar-art { inset: clamp(12px, 8%, 78px) clamp(12px, 10%, 140px); }
.calendar-art i {
  display: block; margin-inline: clamp(2px,.48vw,7px);
  height: clamp(10px,2.4vw,24px); background: var(--calendar-event, var(--copper));
  transform-origin: left; box-shadow: 0 2px 0 color-mix(in srgb, var(--night) 56%, transparent);
}
.calendar-art i:nth-child(1) { grid-area: 1 / 2 / span 1 / span 2; --slot-delay: 0ms; }
.calendar-art i:nth-child(2) { grid-area: 2 / 1 / span 1 / span 3; --slot-delay: 52ms; }
.calendar-art i:nth-child(3) { grid-area: 2 / 5 / span 1 / span 2; --slot-delay: 104ms; }
.calendar-art i:nth-child(4) { grid-area: 3 / 3 / span 1 / span 4; --slot-delay: 156ms; }
.calendar-art i:nth-child(5) { grid-area: 4 / 2 / span 1 / span 2; --slot-delay: 208ms; }
.calendar-art i:nth-child(6) { grid-area: 4 / 5 / span 1 / span 3; --slot-delay: 260ms; }
.calendar-art i:nth-child(7) { grid-area: 5 / 1 / span 1 / span 3; --slot-delay: 312ms; }
.calendar-art i:nth-child(8) { grid-area: 5 / 6 / span 1 / span 2; --slot-delay: 364ms; }
.calendar-art i:nth-child(9) { grid-area: 6 / 3 / span 1 / span 4; --slot-delay: 416ms; }
.calendar-art i:nth-child(3n + 2) { --calendar-event: var(--accent); }
.calendar-art i:nth-child(3n) { --calendar-event: color-mix(in srgb, var(--copper) 53%, var(--light)); }
.calendar-art i:nth-child(4n) { --calendar-event: color-mix(in srgb, var(--accent) 64%, var(--main)); }
html:not(.reduce-motion) .film-stage:not([data-decoding]) .film-card[data-visible] .calendar-art i,
html:not(.reduce-motion) .calendar-figure[data-visible] .calendar-art i {
  animation: calendar-slot 420ms var(--slot-delay) cubic-bezier(.22,.72,.3,1) both;
}
@keyframes calendar-slot {
  from { opacity: 0; transform: translateX(-8px) scaleX(.05); }
  to { opacity: 1; transform: none; }
}
.calendar-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.calendar-features { margin-top: 1.25rem; }
.calendar-features h3 { color: var(--gold); margin: 0; }
.calendar-features ul { padding-inline-start: 1.3em; margin: .55em 0 0; line-height: 1.7; overflow-wrap: anywhere; }
.calendar-features li + li { margin-top: .3em; }
@media (max-width: 650px) {
  .calendar-figure { grid-column: 1; grid-row: 2; min-height: 218px; margin-top: 13px; }
}

/* The native touch scroll settles on a slide while the vertical driver is suspended. */
.work-gallery[data-ready][data-touch-snap] .work-viewport { scroll-snap-type: x mandatory; }

/* The two products share the project frame and use different abstract diagrams. */
.project-en small:empty { display: none; }
.product-story { margin-top: clamp(32px, 6vw, 100px); border-top: 1px solid var(--project-rule); padding-top: clamp(24px, 4vw, 58px); }
.project-product .project-details p, .product-story p { overflow-wrap: anywhere; }
.product-subtitle { color: var(--gold) !important; }
.product-concept {
  margin: .23em 0 .36em; color: var(--ink);
  font: 400 clamp(2.1rem, 6.8vw, 6.6rem)/1.23 var(--jp-head); letter-spacing: .016em;
  text-wrap: balance; overflow-wrap: anywhere;
}
.product-story-en { margin: 0 0 .24em; font-size: clamp(2.6rem, 9.9vw, 9rem); color: var(--copper); overflow-wrap: anywhere; }
.product-story-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: clamp(20px,5vw,76px); margin-top: clamp(18px,4vw,56px); }
.product-story-grid > section { border-top: 1px solid var(--project-rule); padding-block: clamp(15px,2.5vw,37px); }
.product-story-grid h4 {
  margin: 0 0 .42em; color: var(--gold);
  font: 700 clamp(1.12rem,2.05vw,2rem)/1.35 var(--sans);
}
.product-story-grid p { font-size: clamp(.96rem,1.38vw,1.24rem); line-height: 1.8; }
.product-story .product-environment { font: 500 .79rem/1.8 var(--mono); color: var(--muted); margin-top: 1.1em; }
.product-manage a { color: var(--gold); }
.product-figure {
  position: relative; min-width: 0; width: 100%; grid-column: 2; grid-row: 1; align-self: center;
  min-height: 295px; background: var(--film); overflow: clip; border: 1px solid var(--project-rule);
}
details.project:not([open]) .product-figure { display: none; }
.product-figure-large { margin-top: clamp(15px,3vw,52px); min-height: clamp(300px,56svh,690px); }
.product-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.product-network, .product-sanitize {
  position: absolute; inset: 0; display: grid; min-width: 0; color: var(--ink);
  background: linear-gradient(140deg, var(--film), var(--surface));
}
.product-network {
  container-type: inline-size;
  grid-template-columns: minmax(0,.83fr) minmax(0,1.07fr) minmax(0,1fr);
  grid-template-rows: minmax(0,1fr) auto; align-items: center;
  padding: clamp(14px, 5%, 70px);
}
.network-pcs, .network-wires { display: grid; grid-template-rows: repeat(3,minmax(0,1fr)); height: 90%; align-items: center; }
.network-pcs { justify-items: stretch; gap: clamp(2px,1.2vh,10px); }
.network-pcs b, .network-server {
  min-width: 0; padding: clamp(5px,1.9vw,30px); border: 1px solid var(--copper); background: var(--night);
}
.network-pcs b, .network-server b {
  font: 400 clamp(1.2rem,5.5vw,6.8rem)/1.04 var(--display); letter-spacing: .018em; color: var(--copper);
}
.network-pcs b { text-align: center; }
.network-server { display: grid; gap: .45em; align-content: center; }
.network-server b { font-size: clamp(1.25rem,5.7cqw,6.6rem); overflow-wrap: anywhere; color: var(--gold); }
.network-server small { font: 500 clamp(.58rem,1.1vw,.9rem)/1.42 var(--mono); overflow-wrap: anywhere; }
.network-wires { position: relative; }
.network-wires::before {
  content: ''; position: absolute; top: 16.67%; bottom: 16.67%; left: 50%; width: 1px;
  background: var(--copper);
}
.network-wires i {
  display: block; position: relative; width: 50%; height: clamp(2px,.46vw,6px); overflow: clip; color: var(--copper);
  background: color-mix(in srgb, currentColor 39%, var(--film));
}
.network-wires i:nth-child(2) { width: 100%; }
.network-wires i::after {
  content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 6%, var(--gold) 35% 58%, transparent 86%);
  transform: translateX(20%);
}
.network-layers { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1px; margin-top: clamp(8px,2.5vw,24px); }
.network-layers > span {
  display: block; min-width: 0; padding: .45em .35em; border: 1px solid var(--copper); background: var(--night);
  text-align: center; font: 500 clamp(.63rem,1.45vw,1.15rem)/1.4 var(--mono); overflow-wrap: anywhere;
}
.network-layers > span:nth-child(2) { border-color: var(--gold); }
.network-layers > span:nth-child(3) { color: var(--night); background: var(--gold); border-color: var(--gold); }
html:not(.reduce-motion) :is(.film-card,.product-figure)[data-visible] .network-wires i::after { animation: network-packet 3.4s linear infinite; }
html:not(.reduce-motion) :is(.film-card,.product-figure)[data-visible] .network-wires i:nth-child(2)::after { animation-delay: .55s; }
@keyframes network-packet { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

.product-sanitize { align-content: center; gap: clamp(13px,4.9vh,51px); padding: clamp(13px,7%,104px); overflow: clip; }
.sanitize-line { display: flex; align-items: center; min-width: 0; gap: clamp(6px,2vw,32px); }
.sanitize-line i { flex: 1 1 0; height: clamp(8px,1.6vw,27px); background: color-mix(in srgb, var(--copper) 39%, var(--film)); }
.sanitize-line i:last-child { flex-grow: .63; }
.sanitize-token {
  display: grid; flex: 0 0 auto; min-width: 0; position: relative;
  padding: clamp(5px,1.1vw,15px) clamp(7px,2vw,32px); color: var(--night);
  background: var(--gold); border: 1px solid var(--gold);
  font: 700 clamp(.85rem,4vw,4.2rem)/1.17 var(--mono); white-space: nowrap;
}
.sanitize-line:nth-child(2) .sanitize-token { background: var(--copper); border-color: var(--copper); }
.sanitize-token b { grid-area: 1 / 1; text-align: center; }
.sanitize-token b:first-child { opacity: 0; }
.product-sanitize::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: -5%; width: 5%;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--gold) 32%, transparent) 90%, var(--gold));
  opacity: 0; pointer-events: none;
}
html:not(.reduce-motion) :is(.film-card,.product-figure)[data-visible] .product-sanitize::after {
  animation: sanitize-scan 4.7s linear infinite;
}
html:not(.reduce-motion) :is(.film-card,.product-figure)[data-visible] .sanitize-token b:first-child { animation: sanitize-raw 4.7s linear infinite; }
html:not(.reduce-motion) :is(.film-card,.product-figure)[data-visible] .sanitize-token b:last-child { animation: sanitize-label 4.7s linear infinite; }
@keyframes sanitize-scan {
  0% { transform: translateX(0); opacity: 0; }
  6% { opacity: .88; }
  48% { opacity: .76; }
  50%,100% { transform: translateX(2110%); opacity: 0; }
}
@keyframes sanitize-raw { 0%,16%,93%,100% { opacity: 1; } 23%,86% { opacity: 0; } }
@keyframes sanitize-label { 0%,23%,88%,100% { opacity: 0; } 28%,84% { opacity: 1; } }
.sanitize-flow { display: flex; flex-wrap: wrap; gap: .65em 1em; margin-top: clamp(20px,4vw,55px); }
.sanitize-flow span { display: inline-flex; align-items: center; gap: .7em; color: var(--gold); font: 700 clamp(1rem,2.1vw,1.8rem)/1.42 var(--sans); }
.sanitize-flow span:not(:last-child)::after { content: '→'; font-family: var(--mono); }
@media (max-width: 650px) {
  .product-story-grid { grid-template-columns: minmax(0,1fr); }
  .product-figure { grid-column: 1; grid-row: 2; min-height: 225px; margin-top: 13px; }
  .product-figure-large { min-height: 315px; }
  .network-server b { font-size: clamp(1.04rem,5.3vw,2.4rem); }
}

/* CAPABILITIES uses one color field and one composition per genre. */
.about .capabilities-title.section-display {
  margin-block: .06em .24em; font-size: clamp(2.55rem, 12.4vw, 11.8rem); letter-spacing: .012em; line-height: 1.08; overflow-wrap: anywhere;
}
.capability-list > .capability-genre { --genre-p: 1; --art-accent: var(--editorial-accent); background: var(--genre-field); }
.capability-list > .genre-design { --genre-field: var(--editorial); color: var(--editorial-ink); }
.capability-list > .genre-web { --genre-field: var(--main); color: var(--on-main); --art-accent: var(--on-main); }
.capability-list > .genre-systems { --genre-field: var(--night); color: var(--ink); --art-accent: var(--accent); }
.capability-list > .genre-automation { --genre-field: var(--accent); color: var(--on-contact); --art-accent: var(--on-contact); }
.capability-list > .genre-vision {
  --genre-field: color-mix(in srgb, var(--copper) 48%, var(--editorial)); color: var(--editorial-ink);
}
.genre-copy { position: relative; z-index: 1; }
.genre-copy .genre-title, .genre-copy p { width: fit-content; max-width: 100%; background: var(--genre-field); }
.genre-heading { position: relative; width: fit-content; max-width: 100%; }
.genre-heading-caption { padding-top: 17px; }
.genre-heading > canvas {
  z-index: 2; inset: 0 auto auto -6px; width: calc(100% + 12px); height: calc(100% + 5px);
}
.genre-letter { display: inline-block; }
html:not(.reduce-motion) .genre-heading[data-effect-active] .genre-letter {
  transform: translateY(var(--genre-follow-y, 0px));
}
html:not(.reduce-motion) .genre-systems .genre-heading[data-effect-active] .genre-title {
  -webkit-text-stroke: min(.13vw, 1.3px) currentColor;
  -webkit-text-fill-color: color-mix(in srgb,currentColor calc(100% - var(--genre-outline, 0) * 90%),var(--genre-field));
}
@media (min-width: 651px) {
  .genre-web .genre-heading, .genre-systems .genre-heading { max-width: calc(57% - var(--gutter)); }
  .genre-systems .genre-title { font-size: clamp(2.55rem, 11.5vw, min(28rem, 36svh)); }
}
@media (max-width: 650px) {
  .genre-automation .genre-title { font-size: clamp(2.25rem, 12vw, 5.45rem); }
}
.genre-art {
  position: absolute; inset: 12% var(--gutter) 12% 57%;
  pointer-events: none; overflow: clip; color: var(--art-accent); opacity: .47;
}
.art-design {
  background:
    linear-gradient(90deg, color-mix(in srgb,currentColor 35%,transparent) 1px, transparent 1px) 0 0 / 20% 100%,
    linear-gradient(color-mix(in srgb,currentColor 35%,transparent) 1px, transparent 1px) 0 0 / 100% 25%;
}
.art-design i {
  position: absolute; display: block; width: 24%; height: 35%; left: var(--col); top: var(--row);
  background: currentColor; opacity: var(--weight,.63);
  transform: translate(calc((1 - var(--genre-p)) * var(--from-x)), calc((1 - var(--genre-p)) * var(--from-y)))
    rotate(calc((1 - var(--genre-p)) * var(--tilt)));
}
.art-design i:nth-child(1) { --col: 12%; --row: 10%; --from-x: -160%; --from-y: -60%; --tilt: -28deg; }
.art-design i:nth-child(2) { --col: 43%; --row: 10%; --from-x: 170%; --from-y: -80%; --tilt: 36deg; --weight: .88; }
.art-design i:nth-child(3) { --col: 12%; --row: 56%; --from-x: -150%; --from-y: 72%; --tilt: 32deg; --weight: .38; }
.art-design i:nth-child(4) { --col: 43%; --row: 56%; --from-x: 145%; --from-y: 64%; --tilt: -39deg; }

.genre-browser {
  position: absolute; inset: 10% 7% 10% 4%; display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,2fr);
  grid-template-rows: 12% minmax(0,1fr) minmax(0,.65fr); gap: clamp(4px,1vw,14px);
  padding: clamp(5px,1.3vw,19px); overflow: clip; border: 2px solid currentColor;
  transform: translate3d(calc((1 - var(--genre-p)) * 27%),0,0);
}
.genre-browser::before { content: ''; grid-column: 1 / -1; border-bottom: 1px solid currentColor; }
.genre-browser i { opacity: .57; background: currentColor; transform: translate3d(calc((1 - var(--genre-p)) * var(--panel-slide,200%)),0,0); }
.genre-browser i:first-of-type { grid-row: 2 / 4; --panel-slide: -155%; }
.genre-browser i:nth-of-type(3) { --panel-slide: 290%; opacity: .36; }

.art-systems { display: grid; grid-template-rows: repeat(3,minmax(0,1fr)); padding-inline: 9%; }
.art-systems > span { position: relative; align-self: center; height: 2px; width: 100%; }
.art-systems > span::before {
  content: ''; position: absolute; inset: 0; background: currentColor; transform-origin: left;
  transform: scaleX(clamp(0,calc(var(--genre-p) * 1.55 - var(--node-delay,0)),1));
}
.art-systems > span::after {
  content: ''; position: absolute; inset: 0 0 auto auto; width: 11px; aspect-ratio: 1;
  border: 2px solid currentColor; background: var(--night); transform: translateY(-50%);
}
.art-systems > span:nth-of-type(2) { --node-delay: .17; width: 88%; margin-left: 6%; }
.art-systems > span:nth-of-type(3) { --node-delay: .33; width: 70%; margin-left: 15%; }
.art-systems i {
  display: block; width: 15%; height: clamp(4px,.65vw,10px); background: currentColor;
  transform: translate3d(calc(clamp(0, var(--genre-p) - var(--node-delay,0) * .6,1) * 545%),-40%,0);
}

.art-automation, .art-vision { opacity: 1; font-size: clamp(.72rem,1.15vw,.97rem); }
.art-automation {
  display: grid; grid-template-rows: auto 1fr auto; gap: clamp(6px,1vw,14px);
  padding: clamp(7px,1.25vw,18px); border: 1px solid currentColor;
}
.rpa-controls { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .5em; }
.rpa-input, .rpa-run { display: flex; align-items: center; min-width: 0; min-height: 2.35em; padding: .38em .68em; border: 1px solid currentColor; }
.rpa-input { overflow: clip; white-space: nowrap; }
.rpa-input::after { content: ''; display: inline-block; flex: 0 0 1px; height: 1em; margin-inline-start: .2em; background: currentColor; }
.rpa-run {
  color: var(--accent); background: var(--on-contact); border-color: var(--on-contact);
  transform: scale(calc(1 - var(--rpa-press, 0) * .1));
}
.rpa-jobs { display: grid; grid-template-rows: repeat(3,minmax(0,1fr)); }
.rpa-jobs > span {
  display: grid; grid-template-columns: auto minmax(0,1fr) 4.2em; gap: .65em; align-items: center;
  border-block-end: 1px solid color-mix(in srgb,currentColor 36%,transparent);
}
.rpa-jobs b { text-align: end; white-space: nowrap; }
.rpa-track, .vision-meter {
  display: block; height: 3px; background: color-mix(in srgb,currentColor 20%,transparent);
}
.rpa-track i, .vision-meter i {
  position: relative; display: block; height: 100%; background: currentColor; transform-origin: left;
}
.rpa-track i { transform: scaleX(var(--rpa-fill, 1)); }
.rpa-jobs [data-processing] .rpa-track i::after {
  content: ''; position: absolute; inset: -2px 0 -2px auto; width: min(24%,28px);
  background: linear-gradient(90deg,transparent,color-mix(in srgb,var(--accent) 55%,white));
}
.rpa-total { justify-self: end; font-variant-numeric: tabular-nums; }
.art-automation > * { opacity: var(--demo-opacity, 1); }

.art-vision {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: clamp(7px,1vw,16px); padding: clamp(4px,.85vw,12px);
}
.vision-capture, .vision-output { display: grid; min-width: 0; min-height: 0; gap: 6px; }
.vision-capture { grid-template-rows: auto minmax(0,1fr) auto; }
.vision-output { grid-template-rows: minmax(6em,.85fr) minmax(0,1.15fr); }
.vision-label, .vision-match { color: var(--editorial-ink); }
.vision-sample, .vision-log, .vision-chart { position: relative; overflow: clip; border: 1px solid currentColor; }
.vision-cloud { position: absolute; inset: 0; width: 100%; height: 100%; }
.vision-points {
  fill: currentColor; opacity: calc(.55 + var(--vision-lock, 1) * .4);
  transform-box: fill-box; transform-origin: center;
  transform: scale(calc(1.08 - var(--vision-lock, 1) * .19));
}
.vision-target {
  position: absolute; inset: 18% 15%;
  transform: scale(calc(1.45 - var(--vision-lock, 1) * .45));
}
.vision-target i {
  position: absolute; width: 17%; height: 22%; border: 0 solid currentColor;
  border-top-width: 2px; border-left-width: 2px;
}
.vision-target i:nth-child(2) { right: 0; transform: scaleX(-1); }
.vision-target i:nth-child(3) { bottom: 0; transform: scaleY(-1); }
.vision-target i:nth-child(4) { right: 0; bottom: 0; transform: scale(-1); }
.vision-scan {
  position: absolute; inset: 3% 0 auto; height: 13%;
  border-top: 1px solid currentColor;
  background: linear-gradient(color-mix(in srgb,currentColor 27%,transparent),transparent);
  opacity: calc(var(--vision-scan-opacity, 0) * var(--demo-opacity, 1));
  transform: translateY(calc(var(--vision-scan-y, 0) * 640%));
}
.vision-match {
  display: grid; grid-template-columns: auto minmax(0,1fr) 5ch; align-items: center; gap: .5em;
}
.vision-match b { text-align: end; font-variant-numeric: tabular-nums; }
.vision-meter i { transform: scaleX(var(--vision-match, 1)); }
.vision-log, .vision-chart { min-height: 0; padding: .34em .52em; }
.vision-log-lines { display: grid; gap: .1em; margin-block-start: .23em; }
.vision-log-lines code {
  min-height: 1.22em; font: 400 clamp(.65rem,1vw,.87rem)/1.22 var(--mono); white-space: nowrap;
}
.vision-graph { position: absolute; inset: auto 5% 7%; width: 90%; height: 67%; }
.vision-line {
  fill: none; stroke: currentColor; stroke-width: 1.6px; vector-effect: non-scaling-stroke;
  stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--vision-draw, 1));
}
.vision-area { fill: currentColor; opacity: calc(var(--vision-area, 1) * .19); }
.vision-dot { fill: currentColor; opacity: var(--vision-dot, 1); }
.vision-cloud, .vision-target, .vision-meter, .vision-match b, .vision-log-lines, .vision-graph {
  opacity: var(--demo-opacity, 1);
}
@media (max-width: 650px) {
  .genre-art.art-automation, .genre-art.art-vision { height: clamp(158px,23svh,220px); opacity: 1; }
}

.film-card .network-pcs, .film-card .network-wires { min-height: 0; gap: clamp(4px,1vh,10px); }
.film-card .network-pcs { align-items: stretch; }
.film-card .network-pcs b {
  display: grid; place-items: center; align-self: stretch; min-height: 0; overflow: clip;
  font-size: clamp(.98rem,min(5.5cqw,7svh),5.25rem); padding: min(1.1vh,.22em);
}
@media (max-width: 650px) {
  .about .capabilities-title.section-display { font-size: clamp(2.4rem, 11.8vw, 6.8rem); }
  .capability-list > .capability-genre { align-content: center; }
  .genre-art {
    position: relative; inset: auto; grid-row: 2; height: clamp(92px,16svh,160px);
    margin: 1rem var(--gutter) 0; opacity: .64;
  }
}

/* Compact home and shared detail pages */
.detail-link {
  position: relative; display: inline-flex; align-items: center; gap: .7em;
  width: fit-content; max-width: 100%; padding: .55em 0;
  color: inherit; border-bottom: 1px solid currentColor;
  font-size: .9rem; line-height: 1.4; text-decoration: none;
}
.detail-link:hover { border-bottom-width: 2px; padding-bottom: calc(.55em - 1px); }
.genre-copy .detail-link { background: var(--genre-field); }
.capability-list > .capability-genre { min-height: clamp(225px, 42svh, 480px); }
@media (min-width: 651px) {
  .capability-list > :is(.genre-automation, .genre-vision) .genre-copy { max-width: 57%; }
  .capability-list > :is(.genre-automation, .genre-vision) .genre-title { font-size: clamp(2.25rem, 7.65vw, 10.8rem); }
}
.work-gallery { --work-step: 25svh; --work-panel-height: max(460px, calc(94svh - var(--header) - var(--work-controls))); }
.work-gallery .film-stage .film-card { grid-template-rows: minmax(0, 1fr); }
.work-gallery .film-image.work-cover {
  position: relative; isolation: isolate; width: 100%; height: 100%; aspect-ratio: auto;
  display: grid; justify-items: stretch; align-content: center;
  padding: clamp(14px, 4vw, 64px) var(--gutter);
  color: var(--ink); background: linear-gradient(125deg, var(--night) 18%, var(--film) 100%);
}
.work-cover-inner { position: relative; z-index: 4; display: grid; align-content: center; gap: clamp(.3rem, 1.5svh, 1.1rem); }
.work-gallery [data-has-icon] .work-cover {
  grid-template-columns: minmax(0,1fr) minmax(0,.6fr);
  align-items: center; gap: clamp(1rem,3vw,3.8rem);
}
.work-cover-icon {
  position: relative; z-index: 4; display: grid; place-items: center; justify-self: center;
  width: min(100%, clamp(142px,23vw,350px)); aspect-ratio: 1; border-radius: 18%;
  border: 1px solid color-mix(in srgb,var(--gold) 30%,var(--film));
  background: radial-gradient(ellipse, color-mix(in srgb,var(--gold) 19%,var(--film)), transparent 74%);
}
.work-cover-icon img { width: 78%; height: auto; }
html:not(.reduce-motion) .work-cover-icon img {
  transform: translateY(var(--work-icon-lift, 0px));
}
.work-card-title, .work-card-label, .work-card-concept, .work-card-points { display: block; }
.work-card-title { font-size: clamp(2.5rem, 9.5vw, 11rem); line-height: 1.02; letter-spacing: 0; overflow-wrap: anywhere; }
.work-card-label { color: var(--gold); font: 500 clamp(.88rem, 1.6vw, 1.2rem)/1.5 var(--sans); }
.work-card-concept { font: 400 clamp(1.08rem, 3.4vw, 3.5rem)/1.3 var(--jp-head); }
.work-card-points { display: flex; flex-wrap: wrap; column-gap: clamp(.9rem, 3vw, 3rem); row-gap: .25rem; }
.work-card-points > span { border-top: 1px solid var(--rule-gold); padding-top: .25rem; font-weight: 700; font-size: clamp(.82rem, 1.6vw, 1.2rem); }
.work-cover .detail-link { color: var(--gold); }
.work-gallery .film-card:focus-visible { outline-offset: -4px; }
.philosophy-brief { display: grid; gap: clamp(.75rem, 2vh, 1.5rem); }
.philosophy-brief h2 { font-size: clamp(2.3rem, 12vw, 11rem); line-height: 1.05; letter-spacing: 0; overflow-wrap: anywhere; }
.philosophy-keywords { font-size: clamp(1.3rem, 4vw, 3.6rem); line-height: 1.25; overflow-wrap: anywhere; }
.philosophy-keywords span { display: inline-block; }
.philosophy-keywords span:nth-child(even) { color: var(--gold); }
html:not(.reduce-motion) .philosophy-keywords span:nth-child(odd) { transform: translateX(var(--phi-enter, 0px)); }
html:not(.reduce-motion) .philosophy-keywords span:nth-child(even) { transform: translateX(calc(var(--phi-enter, 0px) * -.4)); }
.detail-page .product-environment { margin-block: clamp(20px, 4vw, 44px); color: var(--muted); font: 500 .82rem/1.8 var(--mono); }

html.detail-open { overflow: hidden; }
.detail-dialog {
  position: fixed; inset: 0; margin: 0; padding: 0; border: 0; max-width: none; max-height: none;
  width: 100%; height: 100dvh; overflow: auto; overscroll-behavior: contain;
  color: var(--ink); background: var(--night); scrollbar-gutter: stable;
}
.detail-dialog::backdrop { background: var(--night); }
.detail-dialog[open] { display: block; }
.detail-dialog:not([open]), .detail-page[hidden] { display: none !important; }
html:not(.reduce-motion) .detail-dialog[open] { animation: detail-unfold .34s cubic-bezier(.15,.78,.23,1) both; }
@keyframes detail-unfold {
  from { clip-path: inset(44% 0 44% 0); transform: translate3d(0, 4vh, 0); }
  to { clip-path: inset(0); transform: translate3d(0, 0, 0); }
}
.detail-toolbar {
  position: sticky; top: 0; z-index: 10; display: flex; justify-content: flex-end;
  padding: max(8px, env(safe-area-inset-top)) var(--gutter) 8px;
  background: var(--night); border-bottom: 1px solid var(--rule-gold);
}
.detail-close {
  min-height: 44px; padding: .4rem .9rem; color: var(--night); background: var(--gold);
  border: 1px solid var(--gold); font-size: .92rem;
}
.detail-close span { margin-left: .3em; }
.detail-sheet { overflow: clip; }
.detail-page { margin: 0; min-height: calc(100dvh - 62px); }
.detail-heading, .detail-body, .detail-page > .project-details {
  width: min(100%, 1330px); margin: 0 auto; padding-inline: var(--gutter);
}
.detail-heading { display: grid; gap: clamp(.65rem, 2vw, 1.7rem); padding-block: clamp(34px, 8vw, 120px) clamp(26px, 5vw, 84px); }
.detail-heading > .mono { color: var(--gold); }
.detail-heading h2 { font-size: clamp(2.4rem, 10vw, 10rem); letter-spacing: 0; line-height: 1.05; overflow-wrap: anywhere; }
.detail-product-title { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(.55rem,2vw,1.6rem); }
.detail-product-title img { width: clamp(38px,7.5vw,84px); height: auto; }
.detail-heading h2:focus-visible { outline-offset: 5px; }
.detail-heading .product-concept { font-size: clamp(1.4rem, 5vw, 5rem); line-height: 1.22; overflow-wrap: anywhere; }
.detail-body, .detail-page > .project-details { padding-block: clamp(17px, 4vw, 56px) clamp(48px, 8vw, 110px); border-top: 1px solid var(--rule-gold); }
.detail-lead { font-size: clamp(1.15rem, 3vw, 2.8rem); line-height: 1.55; }
.detail-capability { background: var(--genre-field); color: var(--genre-ink); }
.detail-capability .detail-heading > .mono { color: inherit; }
.detail-capability .detail-body { border-color: currentColor; }
.detail-capability.genre-design { --genre-field: var(--editorial); --genre-ink: var(--editorial-ink); }
.detail-capability.genre-web { --genre-field: var(--main); --genre-ink: var(--on-main); }
.detail-capability.genre-systems { --genre-field: var(--night); --genre-ink: var(--ink); }
.detail-capability.genre-automation { --genre-field: var(--accent); --genre-ink: var(--on-contact); }
.detail-capability.genre-vision-data { --genre-field: color-mix(in srgb, var(--copper) 48%, var(--editorial)); --genre-ink: var(--editorial-ink); }
.detail-page .about-facts { color: var(--editorial-ink); }
.detail-capability .product-story-grid > section { border-color: currentColor; }
.detail-capability .product-story-grid h3 { font-size: clamp(1.14rem, 2.6vw, 2.15rem); margin-bottom: .35em; }
.statement {
  margin-block-start: clamp(2.4rem, 7vw, 6rem);
  padding-block: clamp(1.2rem, 3.2vw, 2.75rem) clamp(2rem, 5vw, 4.5rem);
  border-block: 1px solid var(--editorial-rule);
}
.statement-label {
  color: var(--editorial-accent); font-size: .78rem; letter-spacing: .08em; line-height: 1.4;
}
.statement-title {
  margin-block: clamp(.9rem, 2.8vw, 2.25rem) clamp(.8rem, 2.5vw, 1.8rem);
  font-size: clamp(1.8rem, 8.5vw, 7.35rem); letter-spacing: 0; line-height: 1.09;
}
.statement-line {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .06em .22em;
}
.statement-line + .statement-line { --line-delay: .3; }
.statement-word { display: inline-grid; min-width: 0; max-width: 100%; overflow: clip; }
.statement-word:nth-child(2) { --word-delay: .14; }
.statement-word:nth-child(3) { --word-delay: .28; }
.statement-word > span { overflow-wrap: anywhere; }
.statement-emphasis { color: var(--editorial-accent); }
html:not(.reduce-motion) .statement-word > span {
  --word-progress: clamp(0, (var(--statement-progress, 1) - var(--line-delay, 0) - var(--word-delay, 0)) * 2.4, 1);
  transform: translateY(calc((1 - var(--word-progress)) * 100%));
}
.statement-caption { font: 400 clamp(1rem, 2.1vw, 1.5rem)/1.6 var(--sans); }
.philosophy-statement {
  max-width: 45rem; margin-block-end: clamp(1.5rem, 3.5vw, 4rem);
  font-size: clamp(1rem, 1.8vw, 1.25rem); line-height: 1.8;
}
.detail-page.project { color: var(--ink); background: var(--night); border: 0; box-shadow: none; }
.detail-page .project-details > h3:not(.mono) { margin-bottom: .65em; font-size: clamp(1.25rem, 3vw, 2.6rem); line-height: 1.23; }
.detail-page .project-details > p { max-width: 68ch; }
.detail-illustration { display: grid; grid-template-columns: minmax(0,1fr); margin-bottom: clamp(24px, 5vw, 60px); }
.detail-illustration > span, .detail-page.project .product-figure { display: block; grid-column: 1; grid-row: 1; width: 100%; }
.detail-illustration > .life-figure { max-width: min(100%, 550px); min-height: 0; }
.detail-illustration > :is(.web-figure, .calendar-figure) { position: relative; inset: auto; min-height: clamp(265px, 45vw, 530px); }
.detail-feature-grid, .lock-flow { display: grid; gap: 1px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-block: clamp(20px, 4vw, 55px); }
.detail-feature-grid > p, .lock-flow > div { padding: clamp(.7rem, 2.3vw, 1.8rem); border: 1px solid var(--rule-gold); margin: 0; }
.lock-flow { overflow: clip; }
.lock-flow > div { --entry: 0; color: var(--ink); background: var(--film); }
.lock-flow > div:nth-child(2) { --entry: .22; }
.lock-flow > div:nth-child(3) { --entry: .46; }
.lock-flow strong { color: var(--gold); font-size: clamp(1rem, 2vw, 1.75rem); }
html:not(.reduce-motion) .lock-flow > div {
  --reveal: clamp(0, (var(--detail-progress, 1) - var(--entry)) * 2.4, 1);
  opacity: calc(.22 + .78 * var(--reveal)); transform: translateY(calc((1 - var(--reveal)) * 40px));
}
html:not(.reduce-motion) .detail-page .network-wires {
  transform: scaleX(var(--detail-progress, 1)); transform-origin: left center;
}
html:not(.reduce-motion) .detail-page .network-layers {
  transform: translateY(calc((1 - var(--detail-progress, 1)) * 22px));
  opacity: calc(.22 + .78 * var(--detail-progress, 1));
}
.detail-philosophy .policy-list { margin-top: 0; }
.detail-philosophy .policy-list > li { min-height: clamp(280px, 55svh, 560px); overflow: clip; }
#manage-policy { scroll-margin-top: 85px; }
@media (max-width: 650px) {
  .work-gallery { --work-step: 18svh; --work-panel-height: max(430px, calc(92svh - var(--header) - var(--work-controls))); }
  .work-gallery [data-has-icon] .work-cover { grid-template-columns: minmax(0,1fr); gap: clamp(.65rem,2vh,1rem); }
  .work-cover-icon { grid-row: 1; justify-self: start; width: clamp(62px,18vw,102px); }
  .work-gallery [data-has-icon] .work-cover-inner { grid-row: 2; }
  .work-card-points > span { font-size: .85rem; }
  .work-card-title, .detail-heading h2 { text-wrap: balance; }
  .detail-capability .product-story-grid { grid-template-columns: minmax(0, 1fr); }
  .detail-feature-grid, .lock-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lock-flow > div:last-child { grid-column: 1 / -1; }
}

/* ヒーローの文字を画面幅いっぱいに */
.hero-title { padding-inline: 2.5%; }
.hero-glyphs { font-size: clamp(2.4rem, 16.4vw, 26rem); line-height: 1.02; }
@media (max-width: 650px) { .hero-title { padding-inline: 3%; } .hero-title .hero-stacked { gap: 23vw; } .hero-glyphs { font-size: 34.5vw; line-height: 1.02; transform: scaleY(1.55); transform-origin: 50% 50%; } }
@media (min-width: 651px) { .hero-glyphs { transform: scaleY(1.5); transform-origin: 50% 50%; } }
/* 化けた単語（DESIGN SYSTEM・SYSTEM など幅の広い語）でも横にはみ出さないよう、少しだけ小さく */
.hero-glyphs { font-size: clamp(2.4rem, 15.8vw, 25rem); }
@media (max-width: 650px) { .hero-glyphs { font-size: 30.8vw; } }

/* 見出しの改行位置を整える（句読点の前後で割らない） */
.product-concept .nb { display: inline-block; }

/* フッターの運営表記：PC は横並び、スマホ幅では2行（名前の途中で改行しない） */
.footer-credit { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .9em; row-gap: .15em; }
.footer-credit > span { white-space: nowrap; }
.footer-credit .footer-operator { opacity: .6; }
@media (max-width: 700px) { .footer-credit { flex-direction: column; align-items: flex-start; } }

/* 追い18：「実行」を押せるボタンに。押すと全画面が一瞬 0/1 で覆われる */
.art-automation .rpa-run { pointer-events: auto; cursor: pointer; font: inherit; position: relative; z-index: 2; }
.binary-flash { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 2147483000; pointer-events: none; }

/* 追い19：ヒーローの巨大文字。STUDIO TAKIJO は塗り、別の単語の間は中抜き（輪郭だけ）。0.2秒で切り替え */
.hero-glyphs { --hero-stroke: 2px; -webkit-text-stroke: var(--hero-stroke) transparent; paint-order: stroke fill; transition: color .2s ease, -webkit-text-stroke-color .2s ease, text-shadow .2s ease; }
.hero-glyphs.is-word, .hero-glyphs.is-word span, .hero-glyphs.is-word .is-glitch { color: transparent; -webkit-text-stroke-color: var(--on-main); text-shadow: none; }
@media (max-width: 650px) { .hero-glyphs { --hero-stroke: 1.5px; } }

/* 追い20：マイログの配慮の注記。控えめに、ただし読みやすく */
.project-details .detail-note { margin-top: 1.1em; padding: .9em 1.1em; border-left: 2px solid var(--rule-gold, currentColor); font-size: .92em; line-height: 1.85; opacity: .82; }

/* 追い20：マイログ詳細の凡例（記録・経過時間）が本文に重ならないよう、図の下に置く */
.detail-illustration > .life-legend { position: static; grid-row: 2; display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; width: auto; }

/* 追い25：るすろっくの実際の画面（角丸・細い枠、スマホは横幅いっぱい） */
.product-screen { margin: clamp(24px,4vw,48px) 0; }
.product-screen figcaption { margin-bottom: .7em; color: var(--gold); }
.product-screen img { display: block; width: 100%; max-width: 1205px; height: auto; border: 1px solid var(--rule-gold, currentColor); border-radius: clamp(8px,1.2vw,16px); background: #fff; }

/* 追い27：動く環境の小さなラベル（カードと詳細） */
.work-card-platform { display: block; margin-top: .15em; font-size: clamp(.7rem, 1vw, .8rem); letter-spacing: .06em; color: var(--gold); opacity: .85; }
.work-card-platform[hidden] { display: none; }
.detail-heading .detail-platform { margin: .4em 0 .2em; font-size: clamp(.72rem, 1vw, .82rem); letter-spacing: .06em; color: var(--gold); }
