/* =================================================================
   LAYOUT — nav, intro, heroes, works, about, contact, tweaks
   ================================================================= */

/* ---------- rich loader (0 → 100, every integer) ---------- */
.loader { position: fixed; inset: 0; z-index: 9500; overflow: hidden; }
.ld-panels { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(7, 1fr); }
.ld-panels span { background: var(--bg); border-right: 1px solid var(--line-soft);
  transform: translateY(0); transition: transform 1s var(--ease-in-out); }
.ld-panels span:last-child { border-right: none; }
.loader.exit .ld-panels span { transform: translateY(-100%); transition-delay: calc(var(--ci) * 70ms); }

.ld-content { position: absolute; inset: 0; padding: var(--pad);
  display: flex; flex-direction: column; justify-content: space-between;
  transition: opacity .45s var(--ease); }
.loader.exit .ld-content { opacity: 0; transition-duration: .3s; }

.ld-top { display: flex; justify-content: space-between; align-items: baseline; }

.ld-center { display: flex; flex-direction: column; gap: clamp(24px, 5vh, 54px); }
.ld-name { font-family: var(--serif); font-size: clamp(48px, 12vw, 168px); line-height: 0.9;
  letter-spacing: -0.02em; display: flex; flex-wrap: wrap; }
.ld-ch { display: inline-block; opacity: 0.12; transform: translateY(0.08em);
  transition: opacity .35s var(--ease), transform .35s var(--ease); }
.ld-ch.on { opacity: 1; transform: none; }

.ld-manifest { list-style: none; display: flex; flex-direction: column; gap: 2px; max-width: 560px; }
.ld-mf { display: grid; grid-template-columns: 18px minmax(0, auto) 1fr auto; align-items: center;
  gap: 12px; padding: 7px 0; opacity: 0.3; transition: opacity .4s var(--ease); }
.ld-mf.on { opacity: 1; }
.ld-mf-mark { font-size: 9px; color: var(--muted); }
.ld-mf.on .ld-mf-mark { color: var(--accent); }
.ld-mf-label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em; }
.ld-mf-dots { height: 1px; background: repeating-linear-gradient(to right, var(--faint) 0 2px, transparent 2px 6px); align-self: center; }
.ld-mf-count { color: var(--muted); }

.ld-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.ld-track { flex: 1; height: 2px; background: var(--line); overflow: hidden; }
.ld-fill { display: block; width: 100%; height: 100%; background: var(--fg);
  transform-origin: left; transform: scaleX(0); }
.ld-pct { display: flex; align-items: baseline; gap: 4px; }
.ld-pct-n { font-family: var(--serif); font-size: clamp(40px, 7vw, 84px); line-height: 1; letter-spacing: -0.01em; }
.ld-pct-sym { color: var(--muted); }

/* ---------- transition curtain ---------- */
.curtain { position: fixed; inset: 0; z-index: 700; display: grid;
  grid-template-columns: repeat(7, 1fr); pointer-events: none; }
.curtain .cpanel { background: var(--bg-2); border-right: 1px solid var(--line-soft);
  transform: scaleY(0); transform-origin: bottom; transition: transform .52s var(--ease-in-out);
  transition-delay: calc(var(--ci) * 36ms); }
.curtain.ph-cover { pointer-events: auto; }
.curtain.ph-cover .cpanel { transform: scaleY(1); }
.curtain.ph-reveal .cpanel { transform: scaleY(0); transform-origin: top; }
.curtain.ph-idle .cpanel { transform: scaleY(0); transition: none; }
.curtain-mark { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: var(--muted); letter-spacing: 0.25em; opacity: 0; transition: opacity .3s var(--ease); }
.curtain.ph-cover .curtain-mark { opacity: 1; transition-delay: .28s; }

/* ---------- stage reveal ---------- */
.stage.lock { opacity: 0; }
.stage.go { opacity: 1; transition: opacity .8s var(--ease) .1s; }
.route-main { display: block; }
.page { animation: pageIn .7s var(--ease) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- nav ---------- */
.nav { position: fixed; top: 0; left: 0; width: 100%; z-index: 600;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--pad); mix-blend-mode: difference;
  transition: background .4s var(--ease), padding .4s var(--ease); }
.nav.solid { mix-blend-mode: normal; background: var(--nav-bg);
  backdrop-filter: blur(14px); padding: 13px var(--pad);
  border-bottom: 1px solid var(--line-soft); }
.nav-brand { display: flex; align-items: baseline; gap: 10px; }
.nav-brand-en { font-family: var(--serif); font-size: 20px; letter-spacing: 0.01em; color: #fff; }
.nav.solid .nav-brand-en { color: var(--fg); }
.nav-brand-jp { font-size: 11px; color: var(--muted); white-space: nowrap; }
.nav.solid .nav-brand-jp { display: inline; }
.nav-right { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 30px); }
.nav-link { font-size: 12px; letter-spacing: 0.06em; color: #fff; position: relative; padding: 4px 0; }
.nav.solid .nav-link { color: var(--fg); }
.nav-link::after { content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-link.on::after { transform: scaleX(1); }
.nav-link.on { opacity: 1; }
.lang { display: flex; align-items: center; gap: 6px; padding: 6px 10px; margin: -6px -4px;
  border: none; background: none; transition: opacity .3s var(--ease); }
.lang:hover { opacity: 0.8; }
.lang:hover .lang-b { color: #fff; }
.nav.solid .lang:hover .lang-b { color: var(--fg); }
.lang-b { font-size: 11px; letter-spacing: 0.1em; color: rgba(255,255,255,0.5);
  transition: color .3s var(--ease); }
.nav.solid .lang-b { color: var(--faint); }
.lang-b.on { color: #fff; }
.nav.solid .lang-b.on { color: var(--fg); }
.lang-sep { color: var(--faint); font-size: 11px; }

/* ============================================================
   HERO shared
   ============================================================ */
.hero { min-height: 100svh; padding: 0 var(--pad); position: relative;
  display: flex; flex-direction: column; }

.scrollcue { display: flex; align-items: center; gap: 12px; }
.scrollcue-line { width: 60px; height: 1px; background: var(--line);
  position: relative; overflow: hidden; }
.scrollcue-line::after { content: ''; position: absolute; inset: 0; background: var(--fg);
  transform: translateX(-100%); animation: cue 2.4s var(--ease-in-out) infinite; }
@keyframes cue { 0%{transform:translateX(-100%);} 45%{transform:translateX(0);}
  55%{transform:translateX(0);} 100%{transform:translateX(100%);} }

.split { display: inline-flex; }
.split-ch { display: inline-block; transform: translateY(110%); opacity: 0;
  animation: chIn .9s var(--ease) forwards; animation-delay: var(--d); }
@keyframes chIn { to { transform: none; opacity: 1; } }

/* ---------- A · INDEX ---------- */
.hero-index { justify-content: center; gap: clamp(28px, 5vh, 56px); padding-top: 120px; padding-bottom: 60px; }
.hx-top { position: absolute; top: 96px; left: var(--pad); right: var(--pad);
  display: flex; justify-content: space-between; }
.hx-name { display: flex; flex-direction: column; }
.hx-name-en { font-family: var(--serif); font-weight: 400;
  font-size: clamp(56px, 15vw, 220px); line-height: 0.92; letter-spacing: -0.02em; overflow: hidden; }
.hx-name-jp { font-size: clamp(16px, 2.4vw, 28px); color: var(--muted);
  letter-spacing: 0.3em; margin-top: 14px; padding-left: 4px; }
.hx-tag { font-family: var(--serif); font-style: italic; font-size: clamp(20px, 3.2vw, 38px);
  color: var(--fg); max-width: 16ch; line-height: 1.2; }
.hx-index { list-style: none; max-width: 600px; }
.hx-idx-row { display: grid; grid-template-columns: 38px 1fr auto 24px; align-items: center;
  gap: 16px; padding: 14px 0; position: relative; transition: padding-left .45s var(--ease); }
.hx-idx-row:hover { padding-left: 10px; }
.hx-idx-label { font-size: clamp(15px, 1.6vw, 19px); letter-spacing: 0.02em; }
.hx-idx-count { color: var(--muted); }
.hx-idx-arr { text-align: right; color: var(--muted); opacity: 0; transform: translateX(-6px);
  transition: opacity .4s var(--ease), transform .4s var(--ease); }
.hx-idx-row:hover .hx-idx-arr { opacity: 1; transform: none; color: var(--fg); }
.hx-idx-rule { position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: var(--line-soft); }
.hero-index .scrollcue { position: absolute; bottom: 40px; right: var(--pad); }

/* ---------- B · REEL ---------- */
.hero-reel { justify-content: center; align-items: center; overflow: hidden; text-align: center; }
.hr-marquees { position: absolute; inset: 0; display: flex; flex-direction: column;
  justify-content: center; gap: clamp(30px, 9vh, 90px); opacity: 0.10; pointer-events: none; }
.mq { white-space: nowrap; overflow: hidden; }
.mq-track { display: inline-flex; will-change: transform; animation: mqmove var(--sp) linear infinite; }
.mq.rev .mq-track { animation-direction: reverse; }
.mq-item { font-family: var(--serif); font-size: clamp(48px, 11vw, 150px); letter-spacing: -0.02em;
  display: inline-flex; align-items: center; }
.mq-dot { margin: 0 0.35em; font-style: normal; color: var(--faint); }
@keyframes mqmove { to { transform: translateX(-33.333%); } }
.hr-center { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.hr-role { animation: fadeUp .9s var(--ease) .2s both; }
.hr-name { font-family: var(--serif); font-weight: 400; font-size: clamp(54px, 13vw, 190px);
  line-height: 0.9; letter-spacing: -0.02em; }
.hr-jp { font-size: clamp(14px, 2vw, 22px); letter-spacing: 0.4em; color: var(--muted);
  animation: fadeUp .9s var(--ease) .9s both; }
.hr-tag { font-family: var(--serif); font-style: italic; font-size: clamp(17px, 2.4vw, 26px);
  color: var(--fg); margin-top: 8px; animation: fadeUp .9s var(--ease) 1.1s both; }
.hr-bottom { position: absolute; left: var(--pad); right: var(--pad); bottom: 38px;
  display: flex; align-items: center; justify-content: space-between;
  animation: fadeUp .9s var(--ease) 1.3s both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* ---------- C · VAULT ---------- */
.hero-vault { justify-content: flex-start; padding-top: 100px; padding-bottom: 30px; gap: clamp(16px, 2.4vh, 26px); }
.hv-bar { display: flex; justify-content: space-between; padding-bottom: 14px;
  border-bottom: 1px solid var(--line); }
.hv-term { padding: 2px 0; }
.hv-prompt { font-size: clamp(13px, 1.8vw, 18px); color: var(--fg); letter-spacing: 0.04em; }
.caret { display: inline-block; width: 9px; height: 1.1em; background: var(--fg);
  margin-left: 4px; vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hv-name { display: flex; align-items: baseline; gap: 20px; flex-wrap: wrap; line-height: 0.95; }
.hv-name-en { font-family: var(--serif); font-size: clamp(40px, 7.5vw, 92px); line-height: 0.95;
  letter-spacing: -0.02em; white-space: nowrap; animation: fadeUp .9s var(--ease) .3s both; }
.hv-name-jp { font-size: clamp(13px, 1.6vw, 19px); color: var(--muted); letter-spacing: 0.3em;
  white-space: nowrap; animation: fadeUp .9s var(--ease) .5s both; }
.hv-tag { color: var(--muted); letter-spacing: 0.05em; font-size: 13px;
  animation: fadeUp .9s var(--ease) .7s both; }
.hv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0; border-top: 1px solid var(--line); margin-top: clamp(8px, 2vh, 20px); }
.hv-cell { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center;
  padding: 9px 14px 9px 0; border-bottom: 1px solid var(--line-soft);
  border-right: 1px solid var(--line-soft); opacity: 0;
  animation: cellIn .6s var(--ease) forwards; animation-delay: calc(.9s + var(--d)); }
.hv-cell-t { font-size: 13px; letter-spacing: 0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@keyframes cellIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.hero-vault .scrollcue { margin-top: clamp(14px, 3vh, 30px); padding: 6px 0 0; }

/* ============================================================
   WORKS
   ============================================================ */
.works { padding: clamp(60px, 12vh, 140px) var(--pad) clamp(40px, 8vh, 90px); }
.works-head { display: flex; flex-direction: column; gap: 26px; margin-bottom: clamp(28px, 5vh, 56px); }
.sec-meta { display: flex; justify-content: space-between; align-items: center; }

/* tabs */
.tabs { position: relative; display: flex; gap: clamp(20px, 4vw, 56px);
  border-bottom: 1px solid var(--line); padding-bottom: 18px; flex-wrap: wrap; }
.tab { display: flex; align-items: baseline; gap: 10px; opacity: 0.42;
  transition: opacity .4s var(--ease); }
.tab:hover { opacity: 0.75; }
.tab.on { opacity: 1; }
.tab-no { font-size: 10px; }
.tab-label { font-family: var(--serif); font-size: clamp(24px, 4vw, 46px); letter-spacing: -0.01em; }
.tab-count { font-size: 11px; color: var(--muted); align-self: flex-start; margin-top: 4px; }
.tab-ink { position: absolute; bottom: -1px; height: 2px; background: var(--accent);
  transition: left .5s var(--ease), width .5s var(--ease); }

/* rows */
.rows { display: flex; flex-direction: column; }
.rows.phase-in .row { animation: rowIn .7s var(--ease) both; animation-delay: calc(var(--i) * 60ms); }
.rows.phase-out { opacity: 0; transform: translateY(10px); transition: opacity .22s var(--ease), transform .22s var(--ease); }
@keyframes rowIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

.row { position: relative; }
.row-head { width: 100%; display: grid;
  grid-template-columns: 54px minmax(0,1fr) minmax(0,1.1fr) 70px 30px;
  align-items: center; gap: 16px; padding: clamp(18px, 2.6vw, 30px) 0; text-align: left; }
.row-num { color: var(--muted); }
.row-title { font-family: var(--serif); font-size: clamp(26px, 4.4vw, 56px); letter-spacing: -0.01em;
  line-height: 1; transition: transform .5s var(--ease), color .4s var(--ease); }
.row-head:hover .row-title { transform: translateX(14px); }
.row-role { font-size: 12px; color: var(--muted); letter-spacing: 0.04em; }
.row-year { font-size: 13px; color: var(--muted); text-align: right; }
.row-mark { font-size: 18px; color: var(--muted); text-align: center; font-weight: 300;
  transition: transform .5s var(--ease), color .4s var(--ease), opacity .4s var(--ease);
  opacity: 0; transform: translateX(-8px); }
.row-head:hover .row-mark { color: var(--fg); opacity: 1; transform: none; }
.row-rule { height: 1px; background: var(--line-soft); transition: background .4s var(--ease); }
.row:hover .row-rule { background: var(--line); }

/* inline detail */
.wd { overflow: hidden; height: 0; transition: height .6s var(--ease-in-out); }
.wd-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(24px, 4vw, 60px);
  padding: 8px 0 clamp(34px, 5vw, 56px); opacity: 0; transform: translateY(16px);
  transition: opacity .6s var(--ease) .12s, transform .6s var(--ease) .12s; }
.wd-inner.is-open { opacity: 1; transform: none; }
.wd-media { position: relative; }
.wd-body { display: flex; flex-direction: column; gap: 26px; padding-top: 4px; }
.wd-overview { font-size: clamp(15px, 1.5vw, 18px); line-height: 1.65; color: var(--fg);
  font-weight: 300; max-width: 42ch; }
.wd-specs { display: flex; flex-direction: column; gap: 0; }
.wd-specs > div { display: grid; grid-template-columns: 110px 1fr; gap: 14px;
  padding: 11px 0; border-top: 1px solid var(--line-soft); }
.wd-specs dd { font-size: 13.5px; color: var(--fg); letter-spacing: 0.01em; }
.wd-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.wd-link { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px;
  border: 1px solid var(--line); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease); }
.wd-link:hover { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.wd-link .arr { font-size: 13px; }

/* vimeo */
.vimeo-wrap { position: relative; width: 100%; aspect-ratio: 16/9; background: #000;
  overflow: hidden; border: 1px solid var(--line-soft); }
.vimeo-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.vimeo-skel { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: repeating-linear-gradient(45deg, #0c0c0e 0 12px, #101013 12px 24px); }

/* placeholder (app/web) */
.ph { position: relative; width: 100%; aspect-ratio: 16/10; background: var(--bg-2);
  overflow: hidden; border: 1px solid var(--line-soft); }
.ph-stripes { position: absolute; inset: 0;
  background: repeating-linear-gradient(135deg, var(--line-soft) 0 2px, transparent 2px 26px); }
.ph-meta { position: absolute; left: 22px; bottom: 20px; display: flex; flex-direction: column; gap: 6px; }
.ph-label { font-size: 14px; color: var(--muted); }
.ph-corner { position: absolute; width: 12px; height: 12px; border-color: var(--line); }
.ph-tl { top: 14px; left: 14px; border-top: 1px solid; border-left: 1px solid; }
.ph-tr { top: 14px; right: 14px; border-top: 1px solid; border-right: 1px solid; }
.ph-bl { bottom: 14px; left: 14px; border-bottom: 1px solid; border-left: 1px solid; }
.ph-br { bottom: 14px; right: 14px; border-bottom: 1px solid; border-right: 1px solid; }

/* ============================================================
   ABOUT
   ============================================================ */
.about { padding: clamp(60px, 12vh, 140px) var(--pad); border-top: 1px solid var(--line-soft); }
.about-grid { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(28px, 6vw, 90px); }
.about-body { font-family: var(--serif); font-size: clamp(22px, 3vw, 38px); line-height: 1.45;
  letter-spacing: -0.005em; text-wrap: pretty; }
.facts { display: flex; flex-direction: column; margin-top: clamp(28px, 4vw, 48px); max-width: 480px; }
.fact { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 14px 0;
  border-top: 1px solid var(--line-soft); }
.fact dd { font-size: 14px; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { padding: clamp(70px, 14vh, 170px) var(--pad) clamp(40px, 8vh, 80px);
  border-top: 1px solid var(--line-soft); }
.contact-inner { display: flex; flex-direction: column; gap: clamp(26px, 4vw, 44px); }
.contact-mail { font-family: var(--serif); font-size: clamp(34px, 8vw, 110px); line-height: 0.98;
  letter-spacing: -0.02em; display: inline-flex; align-items: flex-start; gap: 0.1em;
  word-break: break-word; transition: color .4s var(--ease); width: fit-content; }
.contact-mail .contact-arr { font-size: 0.35em; margin-top: 0.3em;
  transition: transform .5s var(--ease); }
.contact-mail:hover .contact-arr { transform: translate(8px, -8px); }
.socials { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  border-top: 1px solid var(--line); }
.social { display: flex; flex-direction: column; gap: 8px; padding: 24px 0;
  border-bottom: 1px solid var(--line-soft); position: relative; transition: padding-left .4s var(--ease); }
.social:hover { padding-left: 16px; }
.social-label { font-size: 17px; letter-spacing: 0.02em; }
.social-handle { color: var(--muted); }
.foot { display: flex; justify-content: space-between; padding-top: 30px; gap: 16px; }
.foot .mono-label { white-space: nowrap; }

/* ============================================================
   PAGE SHELL
   ============================================================ */
:root { --nav-h: 66px; }
.page { min-height: 100vh; }

/* category rows stagger in */
.cat-rows .row, .hi-list .hi-cat { }
.cat-rows .row { opacity: 0; animation: rowIn .7s var(--ease) both; animation-delay: calc(var(--i) * 55ms + .15s); }
@keyframes rowIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* ============================================================
   HOME — index + about teaser
   ============================================================ */
.home-index { padding: clamp(60px, 11vh, 130px) var(--pad) clamp(30px, 6vh, 70px); }
.hi-head { display: flex; justify-content: space-between; align-items: baseline;
  border-bottom: 1px solid var(--line); padding-bottom: 18px; margin-bottom: 8px; }
.hi-list { display: flex; flex-direction: column; }
.hi-cat { display: grid; grid-template-columns: 60px minmax(0,1fr) 70px 30px; align-items: center;
  gap: clamp(14px, 2.5vw, 30px); padding: clamp(26px, 4vw, 46px) 0;
  border-bottom: 1px solid var(--line-soft); position: relative; transition: padding-left .5s var(--ease); }
.hi-cat:hover { padding-left: 14px; }
.hi-cat::after { content: ''; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.hi-cat:hover::after { transform: scaleX(1); }
.hi-no { color: var(--muted); align-self: start; padding-top: 0.5em; }
.hi-main { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.hi-label { font-family: var(--serif); font-size: clamp(34px, 6vw, 78px); line-height: 0.98;
  letter-spacing: -0.015em; transition: transform .5s var(--ease); }
.hi-cat:hover .hi-label { transform: translateX(8px); }
.hi-sample { color: var(--faint); font-size: 12px; letter-spacing: 0.04em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hi-count { color: var(--muted); text-align: right; align-self: start; padding-top: 0.7em; }
.hi-arr { font-size: 22px; color: var(--muted); text-align: right; opacity: 0; transform: translateX(-10px);
  transition: opacity .45s var(--ease), transform .45s var(--ease); align-self: center; }
.hi-cat:hover .hi-arr { opacity: 1; transform: none; color: var(--fg); }

.home-about { padding: clamp(40px, 8vh, 90px) var(--pad) clamp(50px, 9vh, 110px);
  border-top: 1px solid var(--line-soft); }
.ha-inner { display: flex; flex-direction: column; gap: 24px; max-width: 920px; }
.ha-line { font-family: var(--serif); font-size: clamp(20px, 2.8vw, 34px); line-height: 1.45;
  letter-spacing: -0.005em; text-wrap: pretty; color: var(--fg); }
.ha-more { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); width: fit-content; transition: color .35s var(--ease), letter-spacing .35s var(--ease); }
.ha-more:hover { color: var(--fg); letter-spacing: 0.22em; }

/* ============================================================
   FOOTER (global)
   ============================================================ */
.ft { padding: clamp(50px, 9vh, 110px) var(--pad) 34px; border-top: 1px solid var(--line); }
.ft-cta { display: flex; flex-direction: column; gap: 14px; width: fit-content; margin-bottom: clamp(40px, 7vh, 80px); }
.ft-cta-lead { color: var(--muted); }
.ft-cta-mail { font-family: var(--serif); font-size: clamp(30px, 6vw, 84px); line-height: 0.98;
  letter-spacing: -0.02em; display: inline-flex; align-items: flex-start; word-break: break-word;
  transition: color .4s var(--ease); }
.ft-arr { font-style: normal; font-size: 0.32em; margin-top: 0.4em; margin-left: 0.1em;
  transition: transform .5s var(--ease); }
.ft-cta:hover .ft-arr { transform: translate(8px, -8px); }
.ft-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px;
  flex-wrap: wrap; padding-top: 26px; border-top: 1px solid var(--line-soft); }
.ft-nav { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.ft-link { font-size: 13px; letter-spacing: 0.02em; color: var(--muted); position: relative;
  transition: color .3s var(--ease); }
.ft-link:hover { color: var(--fg); }
.ft-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.ft-top { color: var(--muted); transition: color .3s var(--ease); }
.ft-top:hover { color: var(--fg); }

/* ============================================================
   CATEGORY page
   ============================================================ */
.page-cat { padding-top: calc(var(--nav-h) + 20px); }
.cat-tabs-wrap { padding: 0 var(--pad); }
.cat-tabs-wrap .tabs { border-bottom: 1px solid var(--line); }
.cat-head { padding: clamp(40px, 7vh, 90px) var(--pad) clamp(24px, 4vh, 44px);
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "title count" "desc count";
  gap: 10px 40px; align-items: end; }
.cat-head-l { grid-area: title; display: flex; align-items: baseline; gap: 18px; }
.cat-no { color: var(--muted); }
.cat-title { font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 9vw, 130px);
  line-height: 0.92; letter-spacing: -0.02em; }
.cat-desc { grid-area: desc; color: var(--muted); font-size: clamp(13px, 1.5vw, 16px);
  max-width: 46ch; line-height: 1.6; }
.cat-count { grid-area: count; color: var(--muted); }
.cat-rows { padding: 0 var(--pad) clamp(30px, 6vh, 70px); }

/* ============================================================
   WORK detail page
   ============================================================ */
.page-work { padding: calc(var(--nav-h) + 24px) var(--pad) 0; }
.wk-back { display: inline-flex; align-items: center; gap: 10px; font-size: 12px;
  letter-spacing: 0.06em; color: var(--muted); margin-bottom: clamp(28px, 5vh, 56px);
  transition: color .35s var(--ease); }
.wk-back:hover { color: var(--fg); }
.wk-back-arr { transition: transform .4s var(--ease); display: inline-block; }
.wk-back:hover .wk-back-arr { transform: translateX(-6px); }
.wk-head { margin-bottom: clamp(28px, 5vh, 50px); }
.wk-index { color: var(--muted); margin-bottom: 14px; }
.wk-title { font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 11vw, 168px);
  line-height: 0.9; letter-spacing: -0.025em; margin-bottom: 18px; }
.wk-metaline { display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  font-size: clamp(13px, 1.5vw, 16px); color: var(--muted); }
.wk-dot { color: var(--faint); }
.wk-media { margin-bottom: clamp(34px, 6vh, 64px); }
.wk-body { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(30px, 6vw, 80px);
  padding-bottom: clamp(40px, 7vh, 80px); border-bottom: 1px solid var(--line-soft); }
.wk-overview-col { display: flex; flex-direction: column; gap: 22px; }
.wk-overview { font-family: var(--serif); font-size: clamp(20px, 2.6vw, 30px); line-height: 1.5;
  letter-spacing: -0.005em; text-wrap: pretty; max-width: 24ch; }
.wk-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.wk-link { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px;
  border: 1px solid var(--line); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease); }
.wk-link:hover { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.wk-specs { display: flex; flex-direction: column; }
.wk-specs > div { display: grid; grid-template-columns: 110px 1fr; gap: 14px;
  padding: 14px 0; border-top: 1px solid var(--line-soft); }
.wk-specs > div:first-child { border-top: none; }
.wk-specs dd { font-size: 14px; color: var(--fg); letter-spacing: 0.01em; }

.wk-pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 20px; padding: clamp(30px, 5vh, 54px) 0; }
.wk-pg { display: flex; flex-direction: column; gap: 8px; }
.wk-pg-next { text-align: right; align-items: flex-end; }
.wk-pg-t { font-family: var(--serif); font-size: clamp(18px, 2.4vw, 28px); letter-spacing: -0.01em;
  transition: transform .45s var(--ease); }
.wk-pg-prev:hover .wk-pg-t { transform: translateX(-8px); }
.wk-pg-next:hover .wk-pg-t { transform: translateX(8px); }
.wk-pg-all { color: var(--muted); letter-spacing: 0.14em; transition: color .3s var(--ease); }
.wk-pg-all:hover { color: var(--fg); }
.wk-missing { padding: clamp(60px, 14vh, 160px) 0; display: flex; flex-direction: column; gap: 18px; }

/* ============================================================
   ABOUT page
   ============================================================ */
.page-about { padding: calc(var(--nav-h) + 40px) var(--pad) 0; }
.ab-head { margin-bottom: clamp(56px, 9vh, 104px); display: flex; flex-direction: column; gap: 22px; }
.ab-name { display: flex; align-items: baseline; gap: 22px; flex-wrap: wrap; }
.ab-name-en { font-family: var(--serif); font-weight: 400; font-size: clamp(42px, 7vw, 104px);
  line-height: 1.0; letter-spacing: -0.025em; white-space: nowrap; }
.ab-name-jp { font-size: clamp(15px, 2vw, 24px); color: var(--muted); letter-spacing: 0.3em; white-space: nowrap; }
.ab-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(30px, 6vw, 90px);
  padding-bottom: clamp(40px, 7vh, 80px); }
.ab-body { font-family: var(--serif); font-size: clamp(22px, 3vw, 40px); line-height: 1.45;
  letter-spacing: -0.005em; text-wrap: pretty; }
.ab-side { display: flex; flex-direction: column; gap: 30px; }
.ab-link { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); width: fit-content; transition: color .35s var(--ease), letter-spacing .35s var(--ease); }
.ab-link:hover { color: var(--fg); letter-spacing: 0.22em; }

/* ============================================================
   CONTACT page
   ============================================================ */
.page-contact { padding: calc(var(--nav-h) + 50px) var(--pad) 0; }
.ct-inner { display: flex; flex-direction: column; gap: clamp(26px, 4vw, 44px);
  padding-bottom: clamp(40px, 8vh, 90px); }
.ct-mail { font-family: var(--serif); font-size: clamp(34px, 8vw, 118px); line-height: 0.98;
  letter-spacing: -0.02em; display: inline-flex; align-items: flex-start; gap: 0.05em;
  word-break: break-word; transition: color .4s var(--ease); width: fit-content; }
.ct-mail .ct-arr { font-size: 0.32em; margin-top: 0.3em; transition: transform .5s var(--ease); }
.ct-mail:hover .ct-arr { transform: translate(8px, -8px); }

/* ============================================================
   TWEAKS note
   ============================================================ */
.tw-note { font-size: 11px; line-height: 1.5; color: var(--faint);
  padding: 2px 0 12px; font-family: var(--mono); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  .wk-body { grid-template-columns: 1fr; gap: 30px; }
  .ab-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .cat-head { grid-template-columns: 1fr; grid-template-areas: "title" "count" "desc"; gap: 14px; align-items: start; }
  .cat-head-l { align-items: baseline; }
  .row-head { grid-template-columns: 40px 1fr 28px; }
  .row-role, .row-year { display: none; }
  .hi-cat { grid-template-columns: 44px 1fr auto; }
  .hi-arr { display: none; }
  .wk-pager { grid-template-columns: 1fr; gap: 18px; text-align: left; }
  .wk-pg-next { text-align: left; align-items: flex-start; }
  .nav-link { display: none; }
  .nav-brand-jp { display: none; }
  .nav.solid .nav-brand-jp { display: none; }
}
@media (max-width: 520px) {
  .hx-top { position: static; margin-bottom: 30px; }
  .hero-index { padding-top: 100px; }
  .ld-mf-label { font-size: 11px; letter-spacing: 0.12em; }
  .wk-metaline { font-size: 12px; }
}
