/* ============================================================
   TOKORO portfolio — design system
   style: parallax storytelling × oil-paint dark (Barefort世界から導出)
   palette: 純黒回避(#12100d)、骨白、バーントシェンナ、ビリジアン
   type: Shippori Mincho B1 (display) / Noto Sans JP (body) / IBM Plex Mono (utility)
   ============================================================ */

:root {
  --bg: #12100d;
  --bg-2: #1a1612;
  --surface: #211c16;
  --ink: #e9e1d2;
  --ink-muted: #9b8d7a;
  --sienna: #c96f2e;
  --sienna-soft: rgba(201, 111, 46, 0.14);
  --viridian: #7d9271;
  --line: rgba(233, 225, 210, 0.1);
  --serif: "Shippori Mincho B1", serif;
  --sans: "Noto Sans JP", sans-serif;
  --mono: "IBM Plex Mono", monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.9;
  letter-spacing: 0.02em;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--sienna); color: var(--bg); }

/* ===== grain ===== */
.grain {
  position: fixed; inset: -50%;
  width: 200%; height: 200%;
  pointer-events: none; z-index: 9999;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 8s steps(10) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -2%); }
  80% { transform: translate(3%, 3%); }
}

/* ===== drip: 絵の具の垂れ = スクロール進行。色は現在セクションの顔料 ===== */
:root { --sp: 0; --accent-now: #c96f2e; }
.drip {
  position: fixed; left: 10px; top: 0; bottom: 0;
  width: 7px; z-index: 100;
  pointer-events: none;
}
.drip-fill {
  position: absolute; top: 0; left: 0; width: 100%;
  height: calc(var(--sp) * 100%);
  background: linear-gradient(to bottom, transparent, var(--accent-now) 12%);
  border-radius: 0 0 5px 5px;
  transition: background 0.6s;
}
.drip-drop {
  position: absolute; left: 50%;
  top: calc(var(--sp) * 100%);
  width: 13px; height: 16px;
  transform: translate(-50%, -4px);
  background: var(--accent-now);
  border-radius: 46% 54% 62% 38% / 30% 32% 68% 70%;
  transition: background 0.6s;
  animation: dropWobble 2.6s ease-in-out infinite;
}
@keyframes dropWobble {
  0%, 100% { border-radius: 46% 54% 62% 38% / 30% 32% 68% 70%; }
  50% { border-radius: 54% 46% 40% 60% / 36% 30% 70% 64%; }
}

/* ===== nav ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 40px;
  mix-blend-mode: difference;
}
.nav-logo {
  font-family: var(--mono); font-size: 15px; letter-spacing: 0.25em;
}
.nav-logo-sub {
  font-family: var(--sans); font-size: 10px; letter-spacing: 0.2em;
  margin-left: 10px; opacity: 0.55;
}
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.15em;
  text-transform: uppercase; opacity: 0.7; transition: opacity 0.3s;
}
.nav-links a:hover { opacity: 1; }

/* ============================================================
   HERO — 絵の具を削ると現れる
   ============================================================ */
.hero {
  position: relative;
  height: 100vh; height: 100svh;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-under {
  position: relative; z-index: 1;
  padding: 0 8vw;
}
.hero-kicker {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.45em;
  color: var(--sienna); margin-bottom: 28px;
}
.hero-title {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(42px, 8.5vw, 110px);
  line-height: 1.22; letter-spacing: 0.04em;
}
.hero-title .line { display: block; }
.hero-title .accent { color: var(--sienna); }
.hero-name {
  margin-top: 40px;
  font-family: var(--mono); font-size: 14px; letter-spacing: 0.2em;
}
.hero-name-en { margin-left: 14px; opacity: 0.45; font-size: 12px; }
.hero-lede {
  margin-top: 18px; max-width: 460px;
  color: var(--ink-muted); font-size: 14px;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.55;
  filter: saturate(0.85);
}
.hero-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(18, 16, 13, 0.88) 0%, rgba(18, 16, 13, 0.45) 55%, rgba(18, 16, 13, 0.65) 100%),
    linear-gradient(to top, var(--bg) 0%, transparent 30%);
}

/* ===== scrub section (Kling動画×ScrollTrigger) ===== */
.scrub { position: relative; }
.scrub-stage {
  position: relative;
  height: 100vh; height: 100svh;
  overflow: hidden;
  display: grid; place-items: center;
}
.scrub-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.scrub-veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 30%, rgba(18, 16, 13, 0.72) 100%),
    linear-gradient(to bottom, var(--bg) 0%, transparent 14%, transparent 86%, var(--bg) 100%);
}
.scrub-cap {
  position: absolute;
  max-width: 900px; padding: 70px 9vw;
  text-align: center;
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(22px, 3vw, 38px);
  line-height: 2;
  text-shadow:
    0 1px 4px rgba(0, 0, 0, 0.95),
    0 2px 18px rgba(0, 0, 0, 0.9),
    0 4px 60px rgba(0, 0, 0, 0.85);
  background: radial-gradient(closest-side, rgba(18, 16, 13, 0.6), transparent);
  opacity: 0;
}
.scrub-cap-quote span {
  display: block; margin-top: 16px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.3em;
  color: var(--sienna);
}
.hero-scroll {
  position: absolute; z-index: 3; bottom: 36px; right: 40px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.3em;
  color: var(--ink-muted);
  display: flex; align-items: center; gap: 12px;
  pointer-events: none;
}
.hero-scroll span {
  display: block; width: 1px; height: 48px;
  background: linear-gradient(transparent, var(--sienna));
  animation: scrollLine 1.8s var(--ease) infinite;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

.hero-cta { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }

/* ===== palette: 6つの顔料が不規則に置かれる。均等グリッドではない ===== */
.palette {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0;
  row-gap: 34px;
}
.svc { position: relative; padding: 6px; }
/* パレット上の不規則配置と傾き（乾いていない絵の具の塊） */
.svc[data-pigment="s1"] { grid-column: 1 / 7;  transform: rotate(-1.1deg); }
.svc[data-pigment="s2"] { grid-column: 7 / 13; transform: rotate(0.9deg) translateY(58px); }
.svc[data-pigment="s3"] { grid-column: 2 / 8;  transform: rotate(0.6deg); margin-top: 30px; }
.svc[data-pigment="s4"] { grid-column: 8 / 13; transform: rotate(-0.8deg) translateY(74px); }
.svc[data-pigment="s5"] { grid-column: 1 / 6;  transform: rotate(0.8deg); margin-top: 26px; }
.svc[data-pigment="s6"] { grid-column: 6 / 12; transform: rotate(-0.6deg) translateY(48px); }

.svc-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, color-mix(in srgb, var(--core) 16%, transparent), transparent 60%),
    var(--deep);
  border: 1px solid color-mix(in srgb, var(--core) 30%, transparent);
  border-radius: 58% 42% 55% 45% / 48% 55% 45% 52%;
  animation: blobMorph 11s ease-in-out infinite alternate;
  transition: filter 0.6s var(--ease);
}
.svc[data-pigment="s2"] .svc-bg { animation-delay: -2s; }
.svc[data-pigment="s3"] .svc-bg { animation-delay: -4s; }
.svc[data-pigment="s4"] .svc-bg { animation-delay: -6s; }
.svc[data-pigment="s5"] .svc-bg { animation-delay: -8s; }
.svc[data-pigment="s6"] .svc-bg { animation-delay: -10s; }
@keyframes blobMorph {
  0%   { border-radius: 58% 42% 55% 45% / 48% 55% 45% 52%; }
  50%  { border-radius: 45% 55% 42% 58% / 55% 44% 56% 45%; }
  100% { border-radius: 52% 48% 60% 40% / 42% 58% 42% 58%; }
}
.svc:hover .svc-bg { filter: saturate(1.5) brightness(1.15); }
.svc-in { position: relative; padding: 52px 56px 46px; }
.svc-no {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em;
  color: var(--core);
}
.svc h3 {
  font-family: var(--serif); font-size: 24px; font-weight: 600;
  letter-spacing: 0.04em; margin: 10px 0 4px;
}
.svc-stack {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em;
  color: color-mix(in srgb, var(--core) 75%, var(--ink));
  margin-bottom: 14px;
}
.svc-desc { color: var(--ink-muted); font-size: 13px; }
.svc-proof {
  margin-top: 16px; padding-top: 14px;
  border-top: 1px dashed color-mix(in srgb, var(--core) 35%, transparent);
  font-size: 12px; color: var(--ink);
  line-height: 1.85;
}
.svc-foot {
  margin-top: 130px; max-width: 760px;
  font-family: var(--serif); font-size: clamp(16px, 1.8vw, 21px);
  line-height: 2.2; font-weight: 500;
}

/* 顔料チップ(領域カラーの凡例マーク) */
.cat-chip {
  display: inline-block; width: 14px; height: 14px;
  margin-right: 10px; vertical-align: -1px;
  background: var(--core, var(--sienna));
  border-radius: 46% 54% 62% 38% / 55% 42% 58% 45%;
}

/* paint-title: 1文字ずつ筆で置かれる(JSでspan分割) */
.paint-title .ch { display: inline-block; }

/* ===== featured work ===== */
.featured {
  display: grid; grid-template-columns: 1fr 1fr; gap: 50px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 44px;
  margin-bottom: 26px;
}
.featured-img img { width: 100%; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0,0,0,0.5); }
.featured-tag {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em;
  color: var(--sienna); margin-bottom: 12px;
}
.featured-body h3 {
  font-family: var(--serif); font-size: clamp(28px, 3vw, 42px);
  font-weight: 700; letter-spacing: 0.05em; margin-bottom: 14px;
}
.featured-desc { color: var(--ink-muted); font-size: 13.5px; margin-bottom: 22px; }
.featured-gallery {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
  margin-bottom: 40px;
}
.featured-gallery figure { overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16/10; }
.featured-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.featured-gallery figure:hover img { transform: scale(1.04); }

/* ============================================================
   chapters
   ============================================================ */
.chapter {
  position: relative;
  padding: 140px 8vw 120px;
  border-top: 1px solid var(--line);
}
.chapter-head { margin-bottom: 70px; }
.chapter-no {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.3em;
  color: var(--sienna);
}
.chapter-title {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(36px, 5vw, 64px);
  letter-spacing: 0.06em;
  margin-top: 6px;
}
.chapter-sub {
  color: var(--ink-muted); font-size: 13px; margin-top: 12px;
  letter-spacing: 0.08em;
}

/* reveal (GSAP制御。no-js/reduced-motionでは表示) */
.reveal { opacity: 1; }
html.js .reveal { opacity: 0; transform: translateY(36px); }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1 !important; transform: none !important; }
  .grain { animation: none; }
}

/* ===== about ===== */
.about-grid {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 60px;
  align-items: start;
}
.about-lead {
  font-family: var(--serif); font-size: clamp(22px, 2.6vw, 32px);
  line-height: 2; font-weight: 500;
  margin-bottom: 54px;
}
.about-items { display: grid; gap: 34px; }
.about-item h3 {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.3em;
  color: var(--sienna); margin-bottom: 8px;
}
.about-item p { color: var(--ink-muted); font-size: 14px; max-width: 480px; }
.model-viewer {
  width: 100%; aspect-ratio: 3 / 4;
  background: radial-gradient(ellipse at 50% 40%, var(--surface), var(--bg-2) 75%);
  border: 1px solid var(--line);
}
.model-caption {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em;
  color: var(--ink-muted); margin-top: 12px; line-height: 1.7;
}

.stats {
  margin-top: 100px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.stat {
  padding: 36px 26px 30px;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: none; }
.stat-num {
  font-family: var(--serif); font-size: clamp(34px, 3.6vw, 52px);
  font-weight: 700; color: var(--ink);
}
.stat-unit { font-family: var(--serif); font-size: 20px; margin-left: 4px; color: var(--sienna); }
.stat-label {
  display: block; margin-top: 12px;
  font-size: 11.5px; color: var(--ink-muted); line-height: 1.8;
}

/* ===== barefort ===== */
.chapter-barefort { background: var(--bg-2); overflow: hidden; }
.bf-bg {
  position: absolute; inset: -10% -5%;
  background: url("assets/uploads/barefort.png") center / cover no-repeat;
  opacity: 0.07; filter: saturate(0.8);
  pointer-events: none;
}
.chapter-barefort > * { position: relative; }
.bf-hero {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  align-items: center;
}
.bf-capsule {
  width: 100%;
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.bf-concept {
  font-family: var(--serif); font-size: clamp(26px, 3vw, 40px);
  font-weight: 700; line-height: 1.5;
  margin-bottom: 24px;
}
.bf-copy p { color: var(--ink-muted); font-size: 14px; margin-bottom: 16px; }
.bf-copy .bf-concept { color: var(--ink); }
.bf-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 28px 0; }
.bf-meta {
  list-style: none;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em;
  color: var(--ink-muted);
}
.bf-meta li { padding: 8px 0; border-top: 1px dashed var(--line); }
.bf-gallery {
  margin-top: 80px;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px;
}
.bf-gallery figure { overflow: hidden; border: 1px solid var(--line); }
.bf-gallery img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.bf-gallery figure:hover img { transform: scale(1.04); }
.bf-quote {
  margin: 90px auto 10px; max-width: 720px;
  font-family: var(--serif); font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 500; text-align: center; line-height: 2;
}
.bf-quote span {
  display: block; margin-top: 14px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.3em;
  color: var(--sienna);
}

/* ===== buttons ===== */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border: 1px solid var(--line);
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s;
}
.btn:hover { border-color: var(--sienna); color: var(--sienna); }
.btn-primary { background: var(--sienna); border-color: var(--sienna); color: var(--bg); }
.btn-primary:hover { background: transparent; color: var(--sienna); }

/* ===== works ===== */
.works-cat {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.35em;
  text-transform: uppercase; color: var(--core, var(--sienna));
  margin: 90px 0 34px;
  display: flex; align-items: baseline; gap: 16px;
}
.works-cat:first-of-type { margin-top: 0; }
.works-cat-sub { font-size: 10px; color: var(--ink-muted); letter-spacing: 0.15em; }
.works-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px;
}
.works-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition: border-color 0.5s var(--ease), transform 0.5s var(--ease);
}
.card:hover { border-color: color-mix(in srgb, var(--core, var(--sienna)) 50%, transparent); transform: translateY(-4px); }
.card-img { aspect-ratio: 16 / 9; overflow: hidden; }
.card-img-tall { aspect-ratio: 4 / 3; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 26px 28px 30px; }
.card-top {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 12px; margin-bottom: 10px;
}
.card-top h4 {
  font-family: var(--serif); font-size: 21px; font-weight: 600;
  letter-spacing: 0.04em;
}
.card-tags {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em;
  color: var(--core, var(--viridian)); white-space: nowrap;
}
.card-award {
  font-family: var(--mono); font-size: 11px;
  color: var(--sienna); margin-bottom: 10px; letter-spacing: 0.04em;
}
.card-body > p:not(.card-award) { color: var(--ink-muted); font-size: 13px; }
.card-links { margin-top: 16px; display: flex; gap: 18px; flex-wrap: wrap; }
.card-links a {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
  color: var(--ink); border-bottom: 1px solid var(--sienna);
  padding-bottom: 2px; transition: color 0.3s;
}
.card-links a:hover { color: var(--sienna); }
.card-plugin .card-body { padding: 22px 24px; }

/* ============================================================
   gallery: アトリエの壁。作品=額装された絵。クリックで近づく
   ============================================================ */
.legend {
  display: flex; gap: 26px; flex-wrap: wrap;
  margin-bottom: 60px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em;
  color: var(--ink-muted);
}
.legend .cat-chip { width: 11px; height: 11px; margin-right: 7px; }

.gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 44px 34px;
  align-items: start;
}
.gcanvas {
  position: relative;
  cursor: pointer;
  transform: perspective(900px) rotate(var(--tilt, 0deg)) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.25s ease-out;
  will-change: transform;
}
/* 額縁 = 厚塗りのマット */
.gframe {
  position: relative;
  background: linear-gradient(160deg, #241f18, #1b1712);
  border: 1px solid rgba(233, 225, 210, 0.14);
  padding: 13px;
  box-shadow:
    0 22px 50px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(233, 225, 210, 0.08);
}
.gframe::after { /* ギャラリーのスポットライト(カーソル追従) */
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 20%), rgba(233, 225, 210, 0.13), transparent 65%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.gcanvas:hover .gframe::after { opacity: 1; }
.gimg { width: 100%; aspect-ratio: var(--ar, 16/10); object-fit: cover; display: block; }
/* 画像のない作品 = 顔料の無地キャンバスに言葉 */
.gtext {
  width: 100%; aspect-ratio: var(--ar, 16/10);
  display: grid; place-content: center; gap: 6px;
  background:
    radial-gradient(ellipse at 30% 25%, color-mix(in srgb, var(--core) 24%, transparent), transparent 65%),
    #1d1914;
  padding: 20px; text-align: center;
}
.gtext strong {
  font-family: var(--serif); font-size: clamp(17px, 1.6vw, 23px);
  font-weight: 600; line-height: 1.7; color: var(--ink);
}
.gtext em {
  font-style: normal; font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.15em; color: var(--core);
}
/* 美術館のラベルプレート */
.gplate {
  display: inline-flex; align-items: baseline; gap: 9px;
  margin-top: 13px; padding: 6px 12px;
  background: linear-gradient(170deg, #262019, #1a1611);
  border: 1px solid rgba(233, 225, 210, 0.1);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em;
}
.gplate .cat-chip { width: 9px; height: 9px; margin-right: 0; align-self: center; }
.gplate b { font-weight: 500; color: var(--ink); }
.gplate span { color: var(--ink-muted); font-size: 9.5px; }
/* サイズ・掛け方のばらつき(サロン掛け) */
.gcanvas[data-size="xl"] { grid-column: span 4; --ar: 16/9; }
.gcanvas[data-size="l"]  { grid-column: span 3; --ar: 16/10; }
.gcanvas[data-size="m"]  { grid-column: span 2; --ar: 4/3; }
.gcanvas[data-size="s"]  { grid-column: span 2; --ar: 16/10; }
.gcanvas[data-size="t"]  { grid-column: span 2; --ar: 21/9; }
.gcanvas:nth-child(3n)   { --tilt: 0.7deg; }
.gcanvas:nth-child(3n+1) { --tilt: -0.6deg; }
.gcanvas:nth-child(5n)   { --tilt: 1deg; }
.gcanvas:nth-child(4n+2) { margin-top: 34px; }
.gcanvas:nth-child(7n)   { margin-top: -18px; }

/* ===== modal: 絵に近づく ===== */
.wm { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; }
.wm[hidden] { display: none; }
.wm-backdrop {
  position: absolute; inset: 0;
  background: rgba(10, 8, 6, 0.82);
  backdrop-filter: blur(6px);
}
.wm-panel {
  position: relative;
  width: min(1060px, 94vw);
  max-height: 90vh;
  overflow-y: auto;
  background: linear-gradient(165deg, #1e1913, #151210);
  border: 1px solid rgba(233, 225, 210, 0.14);
  border-top: 3px solid var(--core, var(--sienna));
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.7);
  clip-path: inset(0 0 0 0);
}
.wm-close {
  position: sticky; top: 14px; left: calc(100% - 58px); z-index: 2;
  width: 44px; height: 44px;
  background: rgba(18, 16, 13, 0.8);
  border: 1px solid rgba(233, 225, 210, 0.2);
  border-radius: 50%;
  color: var(--ink); font-size: 20px; cursor: pointer;
  transition: border-color 0.3s, color 0.3s;
}
.wm-close:hover { border-color: var(--core, var(--sienna)); color: var(--core, var(--sienna)); }
.wm-stage { padding: 0 48px; margin-top: -30px; }
.wm-stage img { width: 100%; max-height: 56vh; object-fit: contain; background: #0d0b09; border: 1px solid rgba(233,225,210,0.08); }
.wm-thumbs { display: flex; gap: 10px; padding: 14px 48px 0; flex-wrap: wrap; }
.wm-thumbs img {
  width: 84px; height: 54px; object-fit: cover; cursor: pointer;
  border: 1px solid rgba(233, 225, 210, 0.15); opacity: 0.55;
  transition: opacity 0.3s, border-color 0.3s;
}
.wm-thumbs img.on, .wm-thumbs img:hover { opacity: 1; border-color: var(--core, var(--sienna)); }
.wm-body { padding: 26px 48px 46px; }
.wm-domain { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; color: var(--core, var(--sienna)); }
.wm-body h3 { font-family: var(--serif); font-size: clamp(26px, 3vw, 38px); font-weight: 700; letter-spacing: 0.05em; margin: 8px 0 4px; }
.wm-award { font-family: var(--mono); font-size: 12px; color: var(--core, var(--sienna)); margin-bottom: 14px; }
.wm-desc { color: var(--ink-muted); font-size: 14px; white-space: pre-line; }
.wm-links { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 24px; }

/* ===== music ===== */
.tracks { display: grid; gap: 2px; }
.track {
  display: grid;
  grid-template-columns: 48px 220px 1fr auto;
  align-items: center; gap: 24px;
  padding: 26px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: background 0.4s var(--ease), border-color 0.4s;
}
.track:hover { background: color-mix(in srgb, var(--core, var(--sienna)) 12%, transparent); border-color: color-mix(in srgb, var(--core, var(--sienna)) 45%, transparent); }
.track-play {
  width: 40px; height: 40px;
  border: 1px solid var(--line); border-radius: 50%;
  display: grid; place-items: center;
  font-size: 10px; color: var(--sienna);
  transition: border-color 0.3s;
}
.track:hover .track-play { border-color: var(--sienna); }
.track-title { font-family: var(--serif); font-size: 19px; font-weight: 600; letter-spacing: 0.05em; }
.track-desc { color: var(--ink-muted); font-size: 12.5px; }
.track-sc { font-family: var(--mono); font-size: 10px; letter-spacing: 0.15em; color: var(--ink-muted); }
.music-note { margin-top: 34px; color: var(--ink-muted); font-size: 13px; font-family: var(--mono); letter-spacing: 0.04em; }

/* ===== contact ===== */
.chapter-contact { min-height: 70vh; }
.contact-lede { font-family: var(--serif); font-size: clamp(18px, 2vw, 24px); margin-bottom: 40px; }
.contact-links { display: flex; gap: 14px; flex-wrap: wrap; }
.footer { margin-top: 120px; }
.footer p { font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; color: var(--ink-muted); }

/* ===== responsive ===== */
.pc { display: inline; }
@media (max-width: 900px) {
  .pc { display: none; }
  .nav { padding: 18px 20px; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 10px; }
  .nav-logo-sub { display: none; }
  .chapter { padding: 90px 6vw 80px; }
  .hero-under { padding: 0 6vw; }
  .about-grid { grid-template-columns: 1fr; gap: 50px; }
  .palette { grid-template-columns: 1fr; row-gap: 22px; }
  .gallery { grid-template-columns: 1fr; gap: 30px; }
  .gcanvas, .gcanvas[data-size] { grid-column: 1 / -1; margin-top: 0 !important; }
  .wm-stage, .wm-thumbs, .wm-body { padding-left: 20px; padding-right: 20px; }
  .svc, .svc[data-pigment] { grid-column: 1 / -1 !important; transform: none !important; margin-top: 0 !important; }
  .svc-in { padding: 36px 30px; }
  .featured { grid-template-columns: 1fr; padding: 26px; gap: 30px; }
  .featured-gallery { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { border-bottom: 1px solid var(--line); }
  .bf-hero { grid-template-columns: 1fr; gap: 40px; }
  .bf-gallery { grid-template-columns: 1fr; }
  .works-grid, .works-grid-3 { grid-template-columns: 1fr; }
  .track { grid-template-columns: 40px 1fr; grid-template-rows: auto auto; row-gap: 6px; }
  .track-desc { grid-column: 2; }
  .track-sc { display: none; }
}
