/* ============================================================
   Starving Effort — v2 (眠らないスタジオ)
   Palette: ink / paper / brass only. No pink, no purple, no neon.
   Structural approach borrowed from rebrand.css; the "--energy"
   gradient and any glow/neon language are intentionally absent.
   ============================================================ */

:root {
  /* pre-baked noise PNG - SVG feTurbulence hangs headless capture and costs filter rasterization */
  --noise: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAQAAAAAYLlVAAAVf0lEQVR42i3ZCbxP1doH8G2o0JVEDlJkHuqoe6QcZMoypKMMRSqpKCVjMhYpSUiGcJSXDOUks64hdQrpxpXMimsmUyVDpsr73ft9P+dzztn/tdd6ht/v9zxr7f2PaoR/hJHhldAzNArVwm1hZ7g+FAhVQ7fQJ+QPHcP20D0cDu+EXOEh9+a5ah66hk/NrRpWhTvD0rAgDAtFwolQJ3wdKoYJYXl4KpQJKeGlMN7nPiHNvHfC0bAitAxfhM/CC+GtUDY8wmfLcDJEq8LbXHwUSoTeXH8YNoTh4dbQxVWXcCWsC8dDEw4ahVfDm2FX+A/z3UMIf4bUUDTcEzKSsEqFb8Lq8FsYHK4K6czPCzUEsic8yG0O69qF6mGSZDJCdmgRojArXAp5zVkepoSof7g5DBBplXBB3HVDvXAmtOJypwA6halcZod94edQWwi9uJob8gm1O0TKhltclRZ2lut+srwQXgwNwukw0O8PoUO4A0K75bwzbBbeTeGfoWT4noW7wyAodYBsoxDtDI9betJQ+XDAlGLhGuD2C62ZuBD+YHIDR63AmCN8K7CjYSyDFxHRIUxE1M2MTvO3WDgr45tDpdBeIqVDX67ioAsb2Q7PoeE58/qzsE6QmZD9MJQLuUN0HEfluBlmeJGlr+BpDFP7wmS3M8Nd4T73agKxeRgR3sXgfKaGAXFwKC7UnWEUBeQIn4T6wG4hiZ+sqyGdZuEGtu6HQb1wI7BXCGap9YPo5zPpNZdmyxA9GraQYTsGNrv1Fk7vxmehcCr0QMGJsDh8QE49zXkKHbOhVcbvYtdZ4TqBDbV2mPl343yBHPca+wY6Q4S1F9/PcLzb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v46OA1A5D9W5usQJve4P42+Q22oI9pbaFlZzC2iQMq4a/hf7fmnsWTyjUwAAAABJRU5ErkJggg==");

  --ink: #14121c;
  --ink-2: #1b1826;
  --ink-3: #262232;
  --paper: #f5f1e9;
  --paper-2: #ece6da;
  --surface: #fffdf8;
  --text: #1a1722;
  --text-soft: #423d4d;
  --muted: #847d70;
  --muted-2: #a9a294;
  --brass: #8b7355;
  --brass-lt: #b89868;
  --brass-deep: #7c6038;
  --line: #e1dbce;
  --line-2: #eae4d9;
  --line-dark: rgba(245, 241, 233, 0.10);

  --font-display: "Shippori Mincho B1", "Noto Serif JP", Georgia, serif;
  --font-serif: "Noto Serif JP", Georgia, serif;
  --font-sans: "Noto Sans JP", "Inter", system-ui, sans-serif;
  --font-accent: "Inter", system-ui, sans-serif;

  --max-w: 1200px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --radius: 16px;
  --radius-lg: 22px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 16px; line-height: 1.85;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; }
::selection { background: rgba(139, 115, 85, .18); }

/* Film grain — subtle, ink-only multiply layer */
.grain {
  position: fixed; inset: 0; z-index: 9998; pointer-events: none;
  opacity: .22; mix-blend-mode: multiply;
  background-image: var(--noise);
}

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 40px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease), transform 1s var(--ease); will-change: opacity, transform; }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .09s; }
.reveal[data-delay="2"] { transition-delay: .18s; }
.reveal[data-delay="3"] { transition-delay: .27s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Section index header ---------- */
.idx { display: flex; align-items: baseline; gap: 18px; margin-bottom: 14px; }
.idx__num {
  font-family: var(--font-accent); font-size: 13px; font-weight: 600;
  letter-spacing: .14em; color: var(--brass);
  font-variant-numeric: tabular-nums;
}
.idx__line { flex: 0 0 40px; height: 1px; background: var(--brass); opacity: .45; transform: translateY(-4px); }
.idx__label { font-family: var(--font-accent); font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.display {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(30px, 4.6vw, 52px); line-height: 1.24; letter-spacing: .01em;
}
.display em { font-style: normal; color: var(--brass-deep); }
.lead { color: var(--muted); font-size: 15.5px; line-height: 1.95; margin-top: 18px; max-width: 560px; }
.clause { display: inline-block; }

/* ---------- NAV ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(245, 241, 233, 0); transition: background .35s, box-shadow .35s, border-color .35s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(245, 241, 233, .82);
  -webkit-backdrop-filter: blur(18px) saturate(1.1); backdrop-filter: blur(18px) saturate(1.1);
  border-bottom-color: var(--line); box-shadow: 0 1px 22px rgba(20, 18, 28, .05);
}
.nav.is-hero { color: var(--paper); }
.nav__inner { max-width: var(--max-w); margin: 0 auto; padding: 0 40px; height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__logo { display: flex; align-items: center; gap: 11px; font-family: var(--font-accent); font-weight: 600; font-size: 15px; letter-spacing: .18em; text-transform: uppercase; }
.nav__logo-mark { width: 9px; height: 9px; border-radius: 2px; background: var(--brass); transform: rotate(45deg); }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a { position: relative; font-size: 13.5px; color: inherit; opacity: .68; transition: opacity .2s; }
.nav__links a:hover { opacity: 1; }
.nav__links a.is-accent { color: var(--brass-lt); opacity: .95; font-weight: 600; }
.nav.is-hero .nav__links a.is-accent { color: var(--brass-lt); }
.nav:not(.is-hero) .nav__links a.is-accent { color: var(--brass-deep); }
.nav__cta { padding: 9px 22px; border: 1px solid currentColor; border-radius: 999px; font-size: 12.5px !important; letter-spacing: .04em; opacity: .9 !important; transition: background .25s, color .25s, transform .2s; }
.nav.is-hero .nav__cta:hover { background: var(--paper); color: var(--ink); transform: translateY(-1px); }
.nav:not(.is-hero) .nav__cta { color: var(--ink); }
.nav:not(.is-hero) .nav__cta:hover { background: var(--ink); color: var(--paper); transform: translateY(-1px); }
.nav__toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 4px; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: currentColor; border-radius: 2px; }

/* Language toggle */
.nav__lang { display: flex; align-items: center; gap: 2px; border: 1px solid currentColor; border-radius: 999px; padding: 3px; opacity: .9; }
.nav__lang-btn { font-family: var(--font-accent); font-size: 11.5px; font-weight: 600; letter-spacing: .06em; padding: 5px 12px; border-radius: 999px; background: transparent; border: none; color: inherit; cursor: pointer; transition: background .2s, color .2s; }
.nav.is-hero .nav__lang-btn.is-active { background: var(--paper); color: var(--ink); }
.nav:not(.is-hero) .nav__lang-btn.is-active { background: var(--ink); color: var(--paper); }

/* ---------- HERO ---------- */
.hero {
  position: relative; min-height: 100vh; display: flex; flex-direction: column;
  justify-content: space-between;
  background: radial-gradient(135% 120% at 74% -8%, var(--ink-3) 0%, var(--ink-2) 52%, var(--ink) 100%);
  color: var(--paper); overflow: hidden; padding: 132px 0 0;
}

/* Ledger root — hosts the "Living Ledger" WebGL treatment (ledger.js).
   Stays an inert, accessible-hidden container; the static ink background
   + grain above/below it is the permanent fallback when WebGL is off,
   unavailable, or prefers-reduced-motion is set. */
#ledger-root {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
}
.ledger-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
}

/* Living Ledger hover tooltip — plain text, brass accent, no chrome.
   Positioned by ledger.js in JS pixel coordinates relative to the hero. */
.ledger-tooltip {
  position: absolute; z-index: 3; top: 0; left: 0;
  transform: translate(-50%, calc(-100% - 14px));
  pointer-events: none;
  font-family: var(--font-accent); font-size: 12px; font-weight: 500; letter-spacing: .01em;
  color: var(--paper);
  background: rgba(20, 18, 28, .82);
  border: 1px solid rgba(184, 152, 104, .35);
  border-radius: 8px;
  padding: 7px 12px;
  white-space: nowrap;
  max-width: min(70vw, 360px);
  overflow: hidden; text-overflow: ellipsis;
  opacity: 0; visibility: hidden;
  transition: opacity .35s var(--ease);
}
.ledger-tooltip.is-visible { opacity: 1; visibility: visible; }

.hero__glow {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(58% 48% at 80% 6%, rgba(139, 115, 85, .16), transparent 70%),
    radial-gradient(46% 42% at 10% 16%, rgba(184, 152, 104, .12), transparent 72%);
}
.hero__grain-fine {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .5; mix-blend-mode: overlay;
  background-image: var(--noise);
}

.hero__mark {
  position: absolute; z-index: 2; top: 118px;
  font-family: var(--font-accent); font-size: 11px; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase; color: rgba(245, 241, 233, .42);
}
.hero__mark--tl { left: 40px; }
.hero__mark--tr { right: 40px; }

.hero__grid {
  position: relative; z-index: 2; flex: 1 1 auto;
  width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 24px 40px 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
}
.hero__lead { max-width: 720px; display: flex; flex-direction: column; align-items: center; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 14px; font-family: var(--font-accent); font-size: 12px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--brass-lt); margin-bottom: 30px; }
.hero__eyebrow span[aria-hidden] { width: 42px; height: 1px; background: linear-gradient(90deg, var(--brass-lt), transparent); }
.hero__eyebrow span.is-mirror { background: linear-gradient(270deg, var(--brass-lt), transparent); }

.hero__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(38px, 5.2vw, 74px); line-height: 1.22; letter-spacing: .01em; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero__title .line > span { display: block; }

.hero__wordmark { position: relative; z-index: 1; width: 100%; overflow: hidden; margin-top: 30px; line-height: .92; }
.hero__wordmark .line { display: block; overflow: hidden; }
.hero__wordmark .line > span {
  display: block; white-space: nowrap;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(64px, 15vw, 240px); letter-spacing: -.022em; padding: 0 38px;
  color: var(--paper);
  opacity: .96;
}

.hero__tagline { margin-top: 26px; font-family: var(--font-serif); font-size: clamp(16px, 1.7vw, 20px); color: rgba(245, 241, 233, .74); }

.hero__cta-row { margin-top: 42px; display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* ---------- BUTTONS ---------- */
.btn { display: inline-flex; align-items: center; gap: 9px; padding: 15px 32px; border-radius: 999px; font-size: 14px; font-weight: 500; letter-spacing: .02em; cursor: pointer; border: 1.5px solid transparent; transition: transform .2s var(--ease), background .2s, color .2s, border-color .2s, box-shadow .2s; }
.btn--light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--light:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0, 0, 0, .3); }
.btn--ghost { background: transparent; color: var(--paper); border-color: rgba(245, 241, 233, .32); }
.btn--ghost:hover { border-color: var(--paper); transform: translateY(-2px); }
.btn--dark { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--dark:hover { background: var(--brass-deep); border-color: var(--brass-deep); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(20, 18, 28, .22); }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--outline:hover { border-color: var(--ink); transform: translateY(-2px); }

/* ---------- PULSE STRIP ---------- */
.pulse { position: relative; z-index: 2; border-top: 1px solid var(--line-dark); background: rgba(20, 18, 28, .5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.pulse__inner { max-width: var(--max-w); margin: 0 auto; padding: 0 40px; display: grid; grid-template-columns: repeat(3, 1fr); }
.pulse__cell { display: flex; flex-direction: column; gap: 6px; padding: 22px 24px; border-right: 1px solid var(--line-dark); }
.pulse__cell:last-child { border-right: none; }
.pulse__label { font-family: var(--font-accent); font-size: 10.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: rgba(245, 241, 233, .48); }
.pulse__value { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--paper); }
.pulse__dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--brass-lt); margin-right: 8px; vertical-align: middle; }
@media (prefers-reduced-motion: no-preference) {
  .pulse__dot { animation: pulseGlow 2.6s ease-in-out infinite; }
}
@keyframes pulseGlow { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

/* ---------- ABOUT ---------- */
.about { padding: 120px 0; background: var(--paper); }
.about__top { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: end; margin-bottom: 64px; }
.about__statement { font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.5; }
.about__statement .hl { color: var(--brass-deep); }
.about__note { color: var(--muted); font-size: 15px; line-height: 2; }
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.principal { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 40px 38px 34px; overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.principal::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--brass); opacity: 0; transition: opacity .4s; }
.principal:hover { transform: translateY(-6px); box-shadow: 0 24px 60px rgba(20, 18, 28, .10); }
.principal:hover::after { opacity: .8; }
.principal__head { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.principal__avatar { width: 76px; height: 76px; border-radius: 50%; overflow: hidden; flex-shrink: 0; box-shadow: 0 6px 18px rgba(20, 18, 28, .16); background: var(--ink); }
.principal__avatar img { width: 100%; height: 100%; object-fit: cover; }
.principal__name { font-family: var(--font-display); font-size: 24px; font-weight: 700; line-height: 1.2; }
.principal__role { font-family: var(--font-accent); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 5px; }
.principal__bio { color: var(--muted); font-size: 14.5px; line-height: 1.95; margin-bottom: 22px; }
.tags { display: flex; gap: 9px; flex-wrap: wrap; }
.tag-btn { font-family: var(--font-accent); font-size: 12.5px; font-weight: 600; padding: 8px 18px; border-radius: 999px; background: transparent; color: var(--text); border: 1px solid var(--ink); transition: transform .2s, background .2s, border-color .2s, color .2s; }
.tag-btn:hover { transform: translateY(-1px); background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tag-btn--accent { background: #ff2d8a; color: #fff; border-color: transparent; box-shadow: 0 3px 14px rgba(255, 45, 138, .26); }
.tag-btn--accent:hover { background: var(--brass-deep); color: #fff; }

/* ---------- WORK (typography-led editorial panels, paper/ink alternating) ---------- */
.work { background: var(--paper); }
.work__head { padding: 120px 0 64px; background: var(--paper); }

.panel {
  position: relative;
  display: block;
  min-height: 52vh;
  padding: 80px 0; display: flex; align-items: center; }
.panel--paper { background: var(--paper); color: var(--text); }
.panel--ink { background: var(--ink); color: var(--paper); }
.panel--paper .panel__eyebrow,
.panel--paper .panel__cat { color: var(--muted); }
.panel--ink .panel__eyebrow,
.panel--ink .panel__cat { color: rgba(245, 241, 233, .58); }
.panel--paper .panel__idx-num { color: var(--brass-deep); }
.panel--ink .panel__idx-num { color: var(--brass-lt); }
.panel--paper .panel__idx-line { background: var(--brass-deep); }
.panel--ink .panel__idx-line { background: var(--brass-lt); }

.panel__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
}
.panel:nth-child(even) .panel__inner { direction: rtl; }
.panel:nth-child(even) .panel__inner > * { direction: ltr; }

.panel__copy { grid-column: 1; }
.panel__media { grid-column: 2; }

.panel__idx { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.panel__idx-num { font-family: var(--font-accent); font-size: 13px; font-weight: 600; letter-spacing: .14em; font-variant-numeric: tabular-nums; }
.panel__idx-line { width: 40px; height: 1px; opacity: .5; }

.panel__eyebrow { display: block; font-family: var(--font-accent); font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; margin-bottom: 14px; }
.panel__name { font-family: var(--font-display); font-size: clamp(36px, 4.5vw, 64px); font-weight: 700; line-height: 1.2; }
.panel__cat { margin-top: 18px; font-size: 16px; line-height: 1.9; max-width: 420px; }
.panel__go {
  display: inline-block; margin-top: 30px; font-family: var(--font-accent); font-size: 20px;
  transition: transform .5s var(--ease);
}
.panel:hover .panel__go { transform: translateX(4px); }

.panel__media { display: flex; align-items: center; justify-content: center; }
.panel__plate {
  position: relative; width: 100%; display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius); overflow: hidden;
}
.panel--paper .panel__plate { border: 1px solid var(--line); background: var(--paper-2); }
.panel--ink .panel__plate { border: 1px solid rgba(255, 255, 255, .12); background: var(--ink-2); }
.panel__plate--icon { min-height: 280px; padding: 56px; }
.panel__plate--icon img { max-width: 200px; width: 100%; height: auto; object-fit: contain; transition: transform .6s var(--ease); }
.panel__plate--image { min-height: 340px; padding: 24px; }
.panel__plate--image img { width: 100%; max-height: 420px; object-fit: contain; transition: transform .6s var(--ease); }
.panel:hover .panel__plate img { transform: scale(1.02); }

.panel--service .panel__media { min-height: 280px; }
.panel__svc-icon { width: 140px; height: 140px; color: var(--brass); }
.panel--ink .panel__svc-icon { color: var(--brass-lt); }

@media (max-width: 700px) {
  .panel { min-height: 0; padding: 64px 0; }
  .panel__inner { grid-template-columns: 1fr; direction: ltr !important; padding: 0 24px; gap: 40px; }
  .panel:nth-child(even) .panel__inner > * { direction: ltr; }
  .panel__copy { grid-column: 1; order: 2; }
  .panel__media { grid-column: 1; order: 1; }
}

/* ---------- CHALLENGE ---------- */
.now { padding: 0; background: var(--paper-2); }
.now__inner { max-width: var(--max-w); margin: 0 auto; display: grid; grid-template-columns: 1fr 1.1fr; align-items: stretch; }
.now__copy { padding: 96px 56px 96px 40px; }
.now__pill { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-accent); font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--brass-deep); background: rgba(139, 115, 85, .12); border: 1px solid rgba(139, 115, 85, .32); padding: 7px 15px; border-radius: 999px; margin-bottom: 24px; }
.now__pill-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brass); }
@media (prefers-reduced-motion: no-preference) { .now__pill-dot { animation: pulseGlow 1.6s ease-in-out infinite; } }
.now__title { font-family: var(--font-display); font-size: clamp(30px, 4vw, 48px); font-weight: 700; line-height: 1.3; color: var(--text); }
.now__desc { margin-top: 22px; color: var(--muted); font-size: 15px; line-height: 2; max-width: 460px; }
.now__desc strong { color: var(--brass-deep); }
.now__stats { display: flex; gap: 40px; margin: 34px 0 32px; }
.now__stat-num { font-family: var(--font-display); font-size: 30px; font-weight: 700; color: var(--brass-deep); }
.now__stat-lbl { font-family: var(--font-accent); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); margin-top: 4px; }
.now__visual { position: relative; overflow: hidden; min-height: 460px; background: var(--surface); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; padding: 32px; }
.now__figure { width: 100%; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.now__figure img { width: 100%; height: auto; display: block; }
.now__chart { width: 100%; height: 220px; }
.now__chart-fallback { font-family: var(--font-accent); font-size: 13px; color: var(--muted); text-align: center; }
.now__chart-fallback[hidden] { display: none; }
#kaggle-chart[hidden] { display: none; }

@media (max-width: 960px) {
  .now__inner { grid-template-columns: 1fr; }
  .now__visual { min-height: 260px; order: -1; }
  .now__copy { padding: 64px 28px; }
}

/* ---------- LAB LOG ---------- */
.lab { padding: 120px 0; background: var(--paper); }
.lab__grid { margin-top: 48px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.lab__entry { display: block; padding: 30px 36px; border-bottom: 1px solid var(--line-2); position: relative; transition: background .25s, padding-left .25s var(--ease); }
.lab__entry:last-child { border-bottom: none; }
.lab__entry--link::after { content: "→"; position: absolute; right: 34px; top: 30px; color: var(--brass); opacity: 0; transform: translateX(-8px); transition: opacity .25s, transform .25s var(--ease); }
.lab__entry--link:hover { background: var(--paper-2); padding-left: 44px; }
.lab__entry--link:hover::after { opacity: 1; transform: translateX(0); }
.lab__date { font-family: var(--font-accent); font-size: 12px; color: var(--brass); letter-spacing: .08em; font-weight: 600; }
.lab__title { font-family: var(--font-display); font-size: 18px; font-weight: 700; margin: 8px 0; line-height: 1.5; }
.lab__excerpt { color: var(--muted); font-size: 14px; line-height: 1.8; }
.lab__entry--fallback { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.lab__more { text-align: center; margin-top: 44px; }

/* ---------- CONTACT ---------- */
.contact { padding: 120px 0; background: var(--paper-2); }
.contact .idx, .contact .display, .contact .lead { text-align: center; justify-content: center; }
.contact .idx { display: inline-flex; }
.contact__head { text-align: center; margin-bottom: 48px; }
.contact .lead { margin-left: auto; margin-right: auto; }
.contact .display { font-size: clamp(40px, 6.4vw, 86px); line-height: 1.08; }
.contact__form { max-width: 600px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 48px 44px; box-shadow: 0 18px 50px rgba(20, 18, 28, .06); }
.fg { margin-bottom: 22px; }
.fg label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 9px; }
.fg input, .fg textarea { width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); font-size: 15px; transition: border-color .2s, box-shadow .2s, background .2s; }
.fg input:focus, .fg textarea:focus { outline: none; border-color: var(--brass); background: var(--surface); box-shadow: 0 0 0 3px rgba(139, 115, 85, .14); }
.fg textarea { resize: vertical; }
.contact__form .btn { width: 100%; justify-content: center; }

/* ---------- FOOTER ---------- */
.footer { padding: 0; overflow: hidden; background: var(--ink); color: rgba(245, 241, 233, .7); }
.footer__mark { overflow: hidden; line-height: .86; padding-top: 64px; }
.footer__mark span {
  display: block; white-space: nowrap; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(64px, 17vw, 260px); letter-spacing: -.022em; padding: 0 38px;
  color: rgba(245, 241, 233, .07);
}
.footer__inner { padding: 26px 40px 42px; border-top: 1px solid rgba(245, 241, 233, .08); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.footer__brand { font-family: var(--font-accent); font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--paper); font-size: 14px; }
.footer__copy { font-size: 12px; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 960px) {
  .about__top { grid-template-columns: 1fr; gap: 28px; }
  .about__grid { grid-template-columns: 1fr; }
  .pulse__inner { grid-template-columns: 1fr; }
  .pulse__cell { border-right: none; border-bottom: 1px solid var(--line-dark); }
  .pulse__cell:last-child { border-bottom: none; }
}
@media (max-width: 768px) {
  .container, .nav__inner { padding-left: 24px; padding-right: 24px; }
  .nav__inner { height: 64px; }
  .nav__toggle { display: flex; }
  .nav__links { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 22px; padding: 28px 24px; background: rgba(245, 241, 233, .98); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
  .nav__links a { color: var(--ink); opacity: .85; }
  .nav__links--open { display: flex; }
  .nav.is-hero { color: var(--ink); }
  .hero { min-height: 92vh; padding: 110px 0 90px; }
  .hero__mark { display: none; }
  .hero__wordmark .line > span { font-size: clamp(44px, 16vw, 84px); padding: 0 20px; }
  .about, .lab, .contact { padding: 84px 0; }
  .work__head { padding: 84px 0 0; }
  .now__copy { padding: 56px 24px; }
}
@media (max-width: 600px) {
  .now__stats { gap: 28px; }
}

/* ---------- HERO FLOWER (glass & brass centerpiece) ---------- */
.hero__flower {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  display: flex; align-items: flex-start; justify-content: flex-end;
  padding-right: 13vw;
  /* blend lives on the layer, not the img — a z-indexed parent would
     isolate an img-level blend into its own stacking context */
  mix-blend-mode: screen;
}
.hero__flower img {
  height: min(84vh, 120vw); width: auto; margin-top: 3vh;
  -webkit-mask-image: radial-gradient(70% 64% at 50% 46%, #000 52%, transparent 94%);
  mask-image: radial-gradient(70% 64% at 50% 46%, #000 52%, transparent 94%);
  opacity: 0; transform: scale(1.04);
  animation: flowerIn 2.4s var(--ease) .3s forwards;
}
@keyframes flowerIn { to { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .hero__flower img { animation: none; opacity: 1; transform: none; }
}
.hero__grid { justify-content: center; align-items: flex-start; text-align: left; }
.hero__grid .hero__lead { align-items: flex-start; margin-right: auto; max-width: 520px; }
.hero__title { font-size: clamp(34px, 4.2vw, 60px); }
.hero__tagline { max-width: 440px; }
@media (max-width: 700px) {
  .hero__flower { justify-content: center; padding-right: 0; opacity: .78; }
  .hero__lead { text-shadow: 0 1px 18px rgba(20, 18, 28, .55); }
  .hero__flower img { height: min(58vh, 150vw); margin-top: 4vh; }
  .hero__grid { justify-content: flex-end; padding-bottom: 6vh; }
}

/* Platform color coding restored (2026-07-04 ふじ指示) — brand palette exception for social CTAs */
.tag-btn--x { background: #0a0a0a; color: #fff; border-color: #0a0a0a; }
.tag-btn--yt { background: #cc0000; color: #fff; border-color: #cc0000; }
.tag-btn--accent { background: #ff2d8a; color: #fff; border-color: transparent; box-shadow: 0 3px 14px rgba(255, 45, 138, .26); }
.tag-btn--x:hover, .tag-btn--yt:hover, .tag-btn--accent:hover { color: #fff; }

/* Japanese phrase-based wrapping — kills mid-word breaks (Chrome BudouX) */
:lang(ja) .hero__title, :lang(ja) .hero__tagline, :lang(ja) .display, :lang(ja) .lead,
:lang(ja) .panel__name, :lang(ja) .panel__cat, :lang(ja) .about__statement, :lang(ja) .about__note,
:lang(ja) .now__title, :lang(ja) .now__desc, :lang(ja) .lab__title, :lang(ja) .lab__excerpt {
  word-break: auto-phrase;
}

/* Personal color frames (2026-07-04 ふじ指示) — 個々のキャラブランディング優先 */
/* Original live-site pattern: hidden 3px left bar revealed on hover
   (rebrand.css lineage). Only change: 藤 bar is red instead of brass. */
.principal { overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.principal::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: #cc2b2b; opacity: 0; transition: opacity .4s;
}
.principal--ziviqa::after { background: #ff2d8a; }
.principal:hover { transform: translateY(-6px); box-shadow: 0 24px 60px rgba(20, 18, 28, .10); }
.principal:hover::after { opacity: .8; }

/* Threads pass behind the flower: soft mask hole on the canvas at the
   bloom position (screen-blended flower cannot occlude brighter lines) */
.ledger-canvas {
  -webkit-mask-image: radial-gradient(ellipse 30vh 40vh at 70% 40%, transparent 32%, rgba(0, 0, 0, .55) 62%, #000 88%);
  mask-image: radial-gradient(ellipse 30vh 40vh at 70% 40%, transparent 32%, rgba(0, 0, 0, .55) 62%, #000 88%);
}
@media (max-width: 700px) {
  .ledger-canvas {
    -webkit-mask-image: radial-gradient(ellipse 26vh 34vh at 50% 34%, transparent 30%, rgba(0, 0, 0, .55) 60%, #000 88%);
    mask-image: radial-gradient(ellipse 26vh 34vh at 50% 34%, transparent 30%, rgba(0, 0, 0, .55) 60%, #000 88%);
  }
}
