/* ============================================================
   DYIS ENTERTAINMENT STUDIO — premium anime design system
   A creative fabrication & merchandise division of
   DYIS PRIVATE LIMITED
   ============================================================ */

:root {
  /* --- Ink / background scale --- */
  --ink-0: #050407;
  --ink-1: #0a070c;
  --ink-2: #100b14;
  --ink-3: #150f1c;
  --graphite: #1b1422;
  --gunmetal: #241a2e;
  --steel: #2e2138;

  /* --- Metallic surface scale --- */
  --silver-100: #f6f6f8;
  --silver-200: #e2e0e6;
  --silver-300: #c0bcc6;
  --silver-400: #938e9d;
  --silver-500: #5c5667;
  --titanium: #a6a1b1;

  /* --- Anime accents: violet → crimson --- */
  --violet: #7c4dff;
  --violet-soft: rgba(124, 77, 255, 0.18);
  --violet-glow: rgba(124, 77, 255, 0.55);
  --crimson: #ff2e63;
  --crimson-soft: rgba(255, 46, 99, 0.16);
  --crimson-glow: rgba(255, 46, 99, 0.5);
  --pink: #ff7eb3;
  --led: #4d7cfe;
  --led-soft: rgba(77, 124, 254, 0.16);
  --gold: #c9a86a;
  --gold-dim: rgba(201, 168, 106, 0.55);

  /* --- Anime tech gradient --- */
  --grad-accent: linear-gradient(115deg, #7c4dff 0%, #4d7cfe 45%, #ff2e63 100%);
  --grad-soft: linear-gradient(115deg, rgba(124,77,255,0.28) 0%, rgba(77,124,254,0.22) 45%, rgba(255,46,99,0.26) 100%);

  /* --- Hairlines --- */
  --line-strong: rgba(246, 246, 248, 0.18);
  --line: rgba(246, 246, 248, 0.1);
  --line-soft: rgba(246, 246, 248, 0.055);

  /* --- Type --- */
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;

  --nav-h: 84px;
  --maxw: 1320px;
  --gutter: clamp(20px, 5vw, 72px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================ BASE ============================ */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}

body {
  margin: 0;
  background: var(--ink-0);
  color: var(--silver-200);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection {
  background: var(--grad-soft);
  color: var(--silver-100);
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--ink-0); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--violet), var(--crimson));
  border-radius: 20px;
  border: 2px solid var(--ink-0);
}

img, svg { display: block; }
svg { width: 100%; height: 100%; }
img { max-width: 100%; }

a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 600; line-height: 1.02; }
strong { font-weight: 600; color: var(--silver-100); }
em { font-style: italic; color: var(--silver-100); }

.mono {
  font-family: var(--font-mono);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 11px;
  line-height: 1.5;
  color: var(--silver-400);
}

/* Cinematic grain overlay */
.grain {
  position: fixed;
  inset: 0;
  z-index: 900;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Floating anime energy particles */
.particles {
  position: fixed;
  inset: 0;
  z-index: 850;
  pointer-events: none;
  overflow: hidden;
}
.particle {
  position: absolute;
  bottom: -12px;
  border-radius: 2px;
  background: var(--violet);
  box-shadow: 0 0 8px var(--violet-glow);
  animation: particleRise linear infinite;
  opacity: 0;
}
@keyframes particleRise {
  0% { transform: translateY(0) translateX(0) rotate(0); opacity: 0; }
  10% { opacity: 0.7; }
  90% { opacity: 0.7; }
  100% { transform: translateY(-110vh) translateX(var(--drift, 24px)) rotate(320deg); opacity: 0; }
}

.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 1000;
  padding: 10px 14px;
  background: var(--ink-3);
  color: var(--silver-100);
  font-size: 12px;
  transition: top 0.3s var(--ease-out);
}
.skip-link:focus { top: 12px; }

section { position: relative; }

.section {
  padding: clamp(90px, 12vw, 160px) var(--gutter);
  max-width: var(--maxw);
  margin: 0 auto;
}

/* ============================ TYPE UTILITIES ============================ */

.section-head {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: clamp(48px, 7vw, 84px);
}
.section-index { white-space: nowrap; }
.section-rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--violet), var(--led), var(--crimson));
}
.section-note { white-space: nowrap; }

.section-title {
  font-size: clamp(36px, 6.2vw, 84px);
  text-transform: uppercase;
  letter-spacing: -0.015em;
  color: var(--silver-100);
  max-width: 15ch;
  margin-bottom: clamp(36px, 5vw, 60px);
}
.title-accent {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 500;
}
.title-accent::after {
  content: "";
  display: inline-block;
  width: 0.16em;
  height: 0.12em;
  border-radius: 50%;
  background: var(--grad-accent);
  box-shadow: 0 0 14px var(--crimson-glow);
  margin-left: 0.22em;
  vertical-align: 0.5em;
}

.ledger-label {
  font-size: 10px;
  color: var(--silver-500);
}

/* ============================ BUTTONS ============================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 22px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid var(--line-strong);
  cursor: pointer;
  transition: background 0.3s var(--ease-out), color 0.3s var(--ease-out),
    border-color 0.3s var(--ease-out), transform 0.3s var(--ease-out),
    box-shadow 0.3s var(--ease-out);
  background: transparent;
  color: var(--silver-200);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.3s var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--grad-accent);
  border-color: transparent;
  color: var(--silver-100);
  font-weight: 500;
  box-shadow: 0 6px 32px rgba(124, 77, 255, 0.3);
}
.btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 10px 44px rgba(255, 46, 99, 0.35);
}

.btn-ghost { background: rgba(246, 246, 248, 0.04); }
.btn-ghost:hover { border-color: var(--crimson); color: var(--silver-100); box-shadow: 0 0 24px var(--crimson-soft); }

.btn-cta {
  padding: 11px 18px;
  font-size: 10px;
  border-color: var(--line-strong);
  background: rgba(246, 246, 248, 0.06);
}
.btn-cta:hover { border-color: var(--crimson); color: var(--silver-100); box-shadow: 0 0 20px var(--crimson-soft); }

/* ============================ HEADER ============================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  transition: background 0.4s var(--ease-out), border-color 0.4s var(--ease-out),
    backdrop-filter 0.4s;
}
.header-inner {
  height: var(--nav-h);
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.site-header.scrolled {
  background: rgba(6, 5, 8, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand-mark {
  width: 42px;
  height: 42px;
  color: var(--silver-100);
  flex-shrink: 0;
  transition: color 0.3s, filter 0.3s;
}
.brand:hover .brand-mark { color: #b9a4ff; filter: drop-shadow(0 0 10px var(--violet-glow)); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.28em;
  background: linear-gradient(90deg, #f6f6f8, #b9a4ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-sub {
  font-family: var(--font-display);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.32em;
  color: var(--silver-400);
  margin-top: 5px;
}
.brand-meta {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.2em;
  color: var(--silver-500);
  margin-top: 6px;
  white-space: nowrap;
}

.nav { display: flex; align-items: center; gap: clamp(16px, 2vw, 30px); }
.nav-link {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--silver-400);
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  transition: color 0.25s;
  position: relative;
  padding: 6px 0;
}
.nav-link span {
  font-size: 8px;
  color: var(--silver-500);
  transition: color 0.25s;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  background: var(--grad-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}
.nav-link:hover { color: var(--silver-100); }
.nav-link:hover span { color: var(--crimson); }
.nav-link:hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1px solid var(--line-strong);
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.nav-toggle span {
  width: 18px;
  height: 1.5px;
  background: var(--silver-200);
  transition: transform 0.3s var(--ease-out);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4.2px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4.2px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 499;
  background: rgba(6, 5, 8, 0.97);
  backdrop-filter: blur(18px);
  padding: calc(var(--nav-h) + 24px) var(--gutter) 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease-out);
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 6px; }
.mobile-menu nav a {
  font-family: var(--font-display);
  font-size: clamp(34px, 9vw, 54px);
  font-weight: 600;
  color: var(--silver-100);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  padding: 8px 0;
  display: flex;
  align-items: baseline;
  gap: 18px;
  border-bottom: 1px solid var(--line-soft);
  transition: color 0.25s;
}
.mobile-menu nav a span {
  font-family: var(--font-mono);
  font-size: 12px;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.mobile-menu nav a:hover { color: var(--titanium); }
.mobile-menu-foot { padding-top: 28px; }
.mobile-menu-foot p { font-size: 10px; margin-top: 8px; }

body.menu-locked { overflow: hidden; }

/* ============================ HERO ============================ */

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(var(--nav-h) + 20px) var(--gutter) clamp(40px, 7vh, 90px);
  max-width: var(--maxw);
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; z-index: -2; }

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--line-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-soft) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9), transparent 70%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9), transparent 70%);
  opacity: 0.55;
}

.hero-glow {
  position: absolute;
  right: -6%;
  top: 2%;
  width: 56vw;
  height: 56vw;
  max-width: 760px;
  max-height: 760px;
  background: radial-gradient(circle at center,
    var(--violet-soft) 0%,
    rgba(124, 77, 255, 0.06) 36%,
    transparent 62%);
  filter: blur(8px);
  opacity: 0.8;
  pointer-events: none;
}
.hero-glow-alt {
  position: absolute;
  left: -10%;
  bottom: -4%;
  width: 44vw;
  height: 44vw;
  max-width: 620px;
  max-height: 620px;
  background: radial-gradient(circle at center,
    var(--crimson-soft) 0%,
    rgba(255, 46, 99, 0.05) 36%,
    transparent 62%);
  filter: blur(8px);
  opacity: 0.7;
  pointer-events: none;
}

/* hero photographic prop panel */
.hero-img-wrap {
  position: absolute;
  right: clamp(16px, 4vw, 64px);
  top: 54%;
  transform: translateY(-50%);
  width: min(30vw, 360px);
  aspect-ratio: 3 / 4;
  border: 1px solid var(--line-strong);
  padding: 10px;
  background: rgba(6, 5, 8, 0.55);
  backdrop-filter: blur(4px);
  clip-path: polygon(0 8px, 8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55), 0 0 44px var(--violet-soft);
  z-index: 1;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05) brightness(0.92);
}
.hero-img-wrap::after {
  content: "FIG / 0A — TOKYO";
  position: absolute;
  bottom: 18px;
  left: 18px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.22em;
  color: #f6f6f8;
  background: rgba(5, 4, 7, 0.72);
  padding: 6px 10px;
  border: 1px solid var(--line);
}

.hero-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(5, 4, 7, 0.18) 3px 4px);
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: multiply;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: end;
  z-index: 2;
}

.hero-tag {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: clamp(20px, 4vw, 40px);
}
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grad-accent);
  box-shadow: 0 0 12px var(--crimson-glow);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 4px var(--violet-glow); opacity: 0.85; }
  50% { box-shadow: 0 0 18px var(--crimson-glow); opacity: 1; }
}

.hero-title {
  grid-column: 1;
  font-size: clamp(52px, 10.5vw, 148px);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: var(--silver-100);
  margin: 0;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line span { display: block; transform: translateY(110%); animation: lineUp 1.1s var(--ease-out) forwards; }
.hero-title .line:nth-child(2) span { animation-delay: 0.12s; }
.hero-title .line:nth-child(3) span { animation-delay: 0.24s; }
@keyframes lineUp { to { transform: translateY(0); } }

.hero-title .line-accent {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 400;
  filter: drop-shadow(0 0 26px rgba(124, 77, 255, 0.35));
}
.hero-title sup {
  font-family: var(--font-mono);
  font-size: 0.09em;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  vertical-align: super;
  letter-spacing: 0;
}

.hero-foot {
  grid-column: 1;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
  max-width: 720px;
}
.hero-lead {
  font-size: clamp(14px, 1.4vw, 16px);
  color: var(--silver-400);
  border-left: 1px solid var(--line-strong);
  padding-left: 18px;
}

.hero-ledger { display: flex; flex-direction: column; gap: 12px; }
.ledger-item { display: flex; flex-direction: column; gap: 2px; }
.ledger-value {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--silver-200);
  letter-spacing: 0.02em;
}

.hero-actions {
  grid-column: 1;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: clamp(16px, 2.4vw, 28px);
}

/* right rail — vertical metadata */
.hero-side {
  position: absolute;
  right: var(--gutter);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 18px;
  writing-mode: vertical-rl;
  font-size: 9px;
  color: var(--silver-500);
  letter-spacing: 0.24em;
  z-index: 2;
}
.side-line {
  width: 1px;
  height: 70px;
  background: linear-gradient(var(--violet), var(--crimson));
}

.scroll-cue {
  position: absolute;
  left: var(--gutter);
  bottom: clamp(20px, 4vh, 44px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 2;
}
.scroll-cue .mono { font-size: 8.5px; letter-spacing: 0.3em; }
.scroll-rule {
  width: 1.5px;
  height: 46px;
  background: var(--line-strong);
  position: relative;
  overflow: hidden;
}
.scroll-rule i {
  position: absolute;
  top: -50%;
  left: 0;
  width: 100%;
  height: 50%;
  background: var(--grad-accent);
  animation: scrollLine 2.2s var(--ease-out) infinite;
}
@keyframes scrollLine {
  0% { top: -50%; }
  60%, 100% { top: 110%; }
}

.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }

/* ============================ TICKER ============================ */

.ticker {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: var(--ink-1);
  overflow: hidden;
  padding: 20px 0;
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: tick 40s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes tick { to { transform: translateX(-50%); } }

.ticker-group {
  display: flex;
  align-items: center;
  gap: clamp(26px, 4vw, 48px);
  padding-right: clamp(26px, 4vw, 48px);
  white-space: nowrap;
}
.ticker-group span:not(.tick-sep) {
  font-family: var(--font-display);
  font-size: clamp(16px, 2.2vw, 26px);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--silver-300);
  opacity: 0.6;
  transition: opacity 0.3s, color 0.3s;
}
.ticker-group span:hover { opacity: 1; color: var(--silver-100); }
.tick-sep {
  color: var(--crimson);
  font-size: 12px;
  opacity: 0.85;
  text-shadow: 0 0 10px var(--crimson-glow);
}

/* ============================ MANIFESTO / STUDIO ============================ */

.studio { background: var(--ink-1); border-bottom: 1px solid var(--line-soft); }

.manifesto-lead {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.6vw, 58px);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.12;
  color: var(--silver-100);
  max-width: 24ch;
  margin-bottom: clamp(44px, 6vw, 80px);
}
.manifesto-lead em {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 400;
}

.manifesto-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: clamp(28px, 5vw, 90px);
}
.manifesto-main p {
  color: var(--silver-400);
  font-size: 15.5px;
  margin-bottom: 22px;
  max-width: 60ch;
}
.manifesto-quote {
  margin: clamp(28px, 4vw, 44px) 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.6vw, 30px);
  font-weight: 600;
  color: var(--silver-100);
}
.manifesto-quote .mono { font-size: 9px; color: var(--gold-dim); }

.manifesto-meta {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--ink-2), var(--ink-1));
  padding: clamp(20px, 3vw, 34px);
  align-self: start;
}
.meta-row {
  padding: 15px 0;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.meta-row:last-child { border-bottom: 0; }
.meta-row > span:last-child {
  font-family: var(--font-display);
  font-size: 13.5px;
  color: var(--silver-200);
  letter-spacing: 0.02em;
}

/* ============================ CAPABILITIES ============================ */

.cap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  background: var(--ink-2);
}

.cap-card {
  padding: clamp(22px, 2.6vw, 38px);
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.45s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.cap-card:nth-child(4n) { border-right: 0; }
.cap-card:nth-last-child(-n+4) { border-bottom: 0; }
.cap-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2.5px;
  background: var(--grad-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}
.cap-card:hover { background: var(--ink-3); }
.cap-card:hover::before { transform: scaleX(1); }

.cap-num {
  font-size: 12px;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 26px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cap-num::after { content: "——"; letter-spacing: 0; color: var(--line-strong); font-size: 10px; }
.cap-card h3 {
  font-size: clamp(17px, 1.5vw, 22px);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--silver-100);
  margin-bottom: 14px;
}
.cap-card p {
  font-size: 13.5px;
  color: var(--silver-400);
  margin-bottom: 22px;
}
.cap-list { border-top: 1px solid var(--line-soft); padding-top: 18px; }
.cap-list li {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--silver-300);
  padding: 6px 0;
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.cap-list li::before {
  content: "▸";
  color: var(--crimson);
  font-size: 9px;
  text-shadow: 0 0 8px var(--crimson-glow);
}

.cap-footer {
  margin-top: clamp(28px, 4vw, 48px);
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line-soft);
  padding-top: 26px;
}
.cap-tag { font-size: 10px; color: var(--gold-dim); }
.cap-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.cap-tags span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--silver-400);
  border: 1px solid var(--line);
  padding: 7px 14px;
  transition: border-color 0.3s, color 0.3s;
}
.cap-tags span:hover { border-color: var(--crimson); color: var(--silver-100); box-shadow: 0 0 16px var(--crimson-soft); }

/* ============================ GALLERY — ANIME PROPS ============================ */

.gallery {
  background: linear-gradient(180deg, var(--ink-0), var(--ink-2));
  border-bottom: 1px solid var(--line-soft);
  max-width: none;
}

.gallery .section-head,
.gallery .section-title,
.gallery .gallery-intro,
.gallery .gallery-grid,
.gallery .gallery-note {
  max-width: var(--maxw);
  margin-left: auto;
  margin-right: auto;
}

.gallery-intro {
  color: var(--silver-400);
  font-size: 15.5px;
  max-width: 62ch;
  margin-bottom: clamp(36px, 5vw, 60px);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(16px, 2vw, 26px);
}

.gallery-item { position: relative; grid-column: span 2; }
.gi-wide { grid-column: span 3; }

.gallery-visual {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink-3);
  clip-path: polygon(0 10px, 10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px));
  transition: border-color 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.gi-wide .gallery-visual { aspect-ratio: 16 / 10; }
.gallery-item:hover .gallery-visual { border-color: var(--line-strong); transform: translateY(-6px); }

.gallery-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.06) brightness(0.8);
  transition: filter 0.7s var(--ease-out), transform 1s var(--ease-out);
}
.gallery-item:hover .gallery-visual img {
  filter: saturate(1.1) contrast(1.08) brightness(1);
  transform: scale(1.06);
}

.gallery-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(5,4,7,0.05) 40%, rgba(5,4,7,0.92) 100%);
  pointer-events: none;
}
.gallery-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--grad-soft);
  mix-blend-mode: soft-light;
  opacity: 0.45;
  pointer-events: none;
  transition: opacity 0.5s;
}
.gallery-item:hover .gallery-visual::after { opacity: 0.9; }

.gallery-overlay {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 20px;
  z-index: 2;
}
.gallery-tag {
  font-size: 8.5px;
  color: #d8c6ff;
  background: rgba(5, 4, 7, 0.6);
  border: 1px solid var(--line-strong);
  padding: 5px 9px;
  display: inline-block;
  margin-bottom: 12px;
  backdrop-filter: blur(3px);
}
.gallery-overlay h3 {
  font-family: var(--font-display);
  font-size: clamp(17px, 1.8vw, 24px);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--silver-100);
  letter-spacing: 0.01em;
}
.gallery-overlay p {
  font-size: 12.5px;
  color: var(--silver-300);
  margin-top: 6px;
  max-width: 44ch;
}

/* anime corner accents */
.gallery-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s var(--ease-out);
}
.gallery-item:hover .gallery-corner { opacity: 1; }
.gallery-corner.tl { top: 6px; left: 6px; border-top: 1.5px solid var(--crimson); border-left: 1.5px solid var(--crimson); border-top-left-radius: 6px; }
.gallery-corner.tr { top: 6px; right: 6px; border-top: 1.5px solid var(--violet); border-right: 1.5px solid var(--violet); border-top-right-radius: 6px; }
.gallery-corner.bl { bottom: 6px; left: 6px; border-bottom: 1.5px solid var(--violet); border-left: 1.5px solid var(--violet); border-bottom-left-radius: 6px; }
.gallery-corner.br { bottom: 6px; right: 6px; border-bottom: 1.5px solid var(--crimson); border-right: 1.5px solid var(--crimson); border-bottom-right-radius: 6px; }

.gallery-note {
  margin-top: clamp(36px, 5vw, 56px);
  text-align: center;
  font-size: 9.5px;
  color: var(--silver-500);
  letter-spacing: 0.22em;
}

/* ============================ WORK ============================ */

.work { border-bottom: 1px solid var(--line-soft); }

.work-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(18px, 2.4vw, 28px);
}
.work-item { grid-column: span 6; }
.work-item:nth-child(3) { grid-column: 5 / span 8; }

.work-item figure { margin: 0; }

.work-visual {
  position: relative;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color 0.4s var(--ease-out);
}
.work-item:hover .work-visual { border-color: var(--line-strong); }
.work-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(5,4,7,0.92));
  z-index: 1;
}
.work-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.05) brightness(0.82);
  transition: filter 0.7s var(--ease-out), transform 0.9s var(--ease-out);
}
.work-item:hover .work-visual img {
  filter: saturate(1.1) brightness(1);
  transform: scale(1.05);
}
.work-ref {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  font-size: 8.5px;
  color: #d8c6ff;
  background: rgba(5,4,7,0.6);
  border: 1px solid var(--line);
  padding: 6px 10px;
  backdrop-filter: blur(4px);
  transition: color 0.3s, border-color 0.3s;
}
.work-item:hover .work-ref { color: var(--silver-100); border-color: var(--crimson); }

figcaption { padding-top: 18px; }
.work-caption {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.work-caption h3 {
  font-family: var(--font-display);
  font-size: clamp(17px, 1.9vw, 24px);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--silver-100);
  transition: color 0.3s;
}
.work-item:hover .work-caption h3 {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.work-caption p {
  font-size: 13px;
  color: var(--silver-500);
  margin-top: 7px;
}
.work-arrow {
  font-size: 22px;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transform: translateX(-6px);
  opacity: 0;
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}
.work-item:hover .work-arrow { opacity: 1; transform: translateX(0); }
.work-meta { margin-top: 14px; font-size: 9.5px; color: var(--silver-500); }

.work-note {
  margin-top: clamp(36px, 5vw, 56px);
  text-align: center;
  font-size: 9.5px;
  color: var(--silver-500);
  letter-spacing: 0.22em;
}

/* ============================ PROCESS ============================ */

.process { background: var(--ink-1); border-bottom: 1px solid var(--line-soft); }

.process-list { border-top: 1px solid var(--line-strong); }
.process-step {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: clamp(16px, 3vw, 40px);
  align-items: center;
  padding: clamp(22px, 3.4vw, 40px) 0;
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.35s;
  position: relative;
}
.process-step:hover { background: linear-gradient(90deg, var(--violet-soft), transparent 60%); }
.process-num {
  font-size: clamp(22px, 2.6vw, 34px);
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.9;
}
.process-body h3 {
  font-size: clamp(22px, 3vw, 38px);
  text-transform: uppercase;
  color: var(--silver-100);
  letter-spacing: 0.01em;
  margin-bottom: 8px;
}
.process-body p {
  color: var(--silver-500);
  font-size: 14.5px;
  max-width: 62ch;
}
.process-tag {
  font-size: 9.5px;
  color: #d8c6ff;
  border: 1px solid rgba(124, 77, 255, 0.35);
  background: var(--violet-soft);
  padding: 8px 14px;
  white-space: nowrap;
}

/* ============================ PARENT / STRUCTURE ============================ */

.parent { border-bottom: 1px solid var(--line-soft); }

.parent-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 90px);
  align-items: start;
}
.parent-copy p {
  color: var(--silver-400);
  font-size: 15.5px;
  max-width: 60ch;
  margin-bottom: 22px;
}
.parent-list { border-top: 1px solid var(--line); }
.parent-list li {
  padding: 13px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
  color: var(--silver-300);
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.parent-list li::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--grad-accent);
  flex-shrink: 0;
  transform: rotate(45deg);
  border-radius: 1px;
}
.parent-list li .mono { font-size: 10px; color: var(--silver-300); margin-left: auto; text-align: right; }

.parent-chart {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--ink-2), var(--ink-1));
  padding: clamp(20px, 3vw, 34px);
}
.chart-node {
  border: 1px solid var(--line-strong);
  padding: clamp(18px, 2.4vw, 30px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--ink-3);
}
.chart-node strong {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.02;
  color: var(--silver-100);
}
.chart-tag { font-size: 8.5px; display: flex; align-items: center; gap: 8px; }
.chart-tag::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold-dim);
}
.chart-node.chart-division { border-color: rgba(124, 77, 255, 0.5); box-shadow: 0 0 30px var(--violet-soft); }
.chart-node.chart-division .chart-tag::before { background: var(--violet); box-shadow: 0 0 8px var(--violet-glow); }
.chart-node.chart-division strong { background: var(--grad-accent); -webkit-background-clip: text; background-clip: text; color: transparent; }
.chart-note { font-size: 9px; }

.chart-line {
  height: 34px;
  display: flex;
  justify-content: center;
  position: relative;
}
.chart-line::before {
  content: "";
  width: 1.5px;
  height: 100%;
  background: linear-gradient(var(--violet), var(--crimson));
}
.chart-line i {
  position: absolute;
  width: 8px;
  height: 8px;
  border-left: 1.5px solid var(--crimson);
  border-bottom: 1.5px solid var(--crimson);
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%) rotate(-45deg);
}

.chart-foot {
  margin-top: 18px;
  font-size: 8.5px;
  color: var(--silver-500);
  border-top: 1px solid var(--line-soft);
  padding-top: 16px;
  line-height: 1.8;
}

/* ============================ COMMISSION ============================ */

.commission { background: var(--ink-1); }

.commission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 90px);
  align-items: start;
}
.commission-copy p {
  color: var(--silver-400);
  font-size: 15.5px;
  max-width: 56ch;
  margin-bottom: 26px;
}
.commission-contact { border-top: 1px solid var(--line); }
.contact-line {
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  font-size: 13px;
  color: var(--silver-300);
  cursor: pointer;
  transition: color 0.3s, padding 0.3s var(--ease-out);
}
a.contact-line:hover { color: var(--silver-100); padding-left: 6px; border-bottom-color: var(--crimson); }
a.contact-line:hover .contact-value {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.contact-value { font-family: var(--font-display); letter-spacing: 0.04em; text-align: right; }

.commission-form {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--ink-2), var(--ink-1));
  padding: clamp(22px, 3vw, 38px);
}
.field-row { margin-bottom: 20px; }
.field-row label {
  display: block;
  font-size: 9.5px;
  color: var(--silver-500);
  margin-bottom: 8px;
}
.field-star { background: var(--grad-accent); -webkit-background-clip: text; background-clip: text; color: transparent; }
.field-row input,
.field-row select,
.field-row textarea {
  width: 100%;
  background: var(--ink-1);
  border: 1px solid var(--line);
  color: var(--silver-200);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  padding: 13px 14px;
  border-radius: 0;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
  appearance: none;
  -webkit-appearance: none;
}
.field-row input:focus,
.field-row select:focus,
.field-row textarea:focus {
  outline: none;
  border-color: var(--crimson);
  background: var(--ink-3);
  box-shadow: 0 0 0 1px var(--crimson-soft), 0 0 20px rgba(124, 77, 255, 0.12);
}
.field-row input::placeholder,
.field-row textarea::placeholder { color: var(--silver-500); }
.field-row select {
  background-image: linear-gradient(45deg, transparent 50%, var(--silver-400) 50%),
    linear-gradient(135deg, var(--silver-400) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
.field-row select option { background: var(--ink-1); }
.field-row textarea { resize: vertical; min-height: 100px; }

.commission-form .btn { width: 100%; justify-content: center; margin-top: 6px; }
.form-note {
  margin-top: 16px;
  text-align: center;
  font-size: 8.5px;
  color: var(--silver-500);
  line-height: 1.8;
}
.form-success {
  margin-top: 16px;
  text-align: center;
  border: 1px solid rgba(124, 77, 255, 0.5);
  color: #d8c6ff;
  background: var(--violet-soft);
  padding: 12px;
  font-size: 10px;
}

/* ============================ FOOTER ============================ */

.site-footer {
  background: var(--ink-0);
  border-top: 1px solid var(--line-soft);
  padding: clamp(48px, 6vw, 80px) var(--gutter) 34px;
}
.footer-top {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--line-soft);
}
.footer-nav {
  display: flex;
  gap: clamp(14px, 2.4vw, 30px);
  flex-wrap: wrap;
  padding-top: 8px;
}
.footer-nav a {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--silver-400);
  transition: color 0.25s;
  position: relative;
}
.footer-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 1.5px;
  background: var(--grad-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}
.footer-nav a:hover { color: var(--silver-100); }
.footer-nav a:hover::after { transform: scaleX(1); }

.footer-mid {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(36px, 5vw, 60px) 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.footer-statement {
  font-family: var(--font-display);
  font-size: clamp(30px, 6vw, 76px);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: -0.015em;
  line-height: 1.05;
  background: linear-gradient(90deg, #f6f6f8, #b9a4ff 50%, #ff7eb3);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.footer-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 9px;
  color: var(--silver-500);
}

.footer-legal {
  max-width: var(--maxw);
  margin: 0 auto;
  border-top: 1px solid var(--line-soft);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--silver-500);
}
.legal-dim { font-size: 8.5px; }

/* ============================ RESPONSIVE ============================ */

@media (max-width: 1200px) {
  .hero-img-wrap { display: none; }
}

@media (max-width: 1080px) {
  .nav { display: none; }
  .btn-cta { display: none; }
  .nav-toggle { display: flex; }
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .cap-card:nth-child(2n) { border-right: 0; }
  .cap-card:nth-child(4n) { border-right: 1px solid var(--line-soft); }
  .cap-card:nth-last-child(-n+4) { border-bottom: 1px solid var(--line-soft); }
  .cap-card:last-child, .cap-card:nth-last-child(2) { border-bottom: 0; }
  .gallery-item, .gi-wide { grid-column: span 3; }
}

@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; }
  .hero-title, .hero-foot, .hero-actions, .hero-tag { grid-column: 1; }
  .hero-side { display: none; }
  .hero-foot { grid-template-columns: 1fr; }
  .manifesto-grid { grid-template-columns: 1fr; }
  .parent-grid { grid-template-columns: 1fr; }
  .commission-grid { grid-template-columns: 1fr; }
  .process-step { grid-template-columns: 60px 1fr; }
  .process-tag { display: none; }
  .gallery-item, .gi-wide { grid-column: 1 / -1; }
  .gi-wide .gallery-visual, .gallery-visual { aspect-ratio: 16 / 10; }
}

@media (max-width: 640px) {
  .section-head { gap: 12px; }
  .section-note { display: none; }
  .cap-grid { grid-template-columns: 1fr; }
  .cap-card:nth-child(2n), .cap-card:nth-child(4n) { border-right: 0; }
  .cap-card:nth-last-child(-n+2) { border-bottom: 1px solid var(--line-soft); }
  .cap-card:last-child { border-bottom: 0; }
  .work-item, .work-item:nth-child(3) { grid-column: 1 / -1; }
  .brand-meta { display: none; }
  .brand-sub { letter-spacing: 0.22em; }
  .footer-statement { font-size: 30px; }
  .footer-legal { flex-direction: column; align-items: flex-start; gap: 6px; }
  .hero-title { font-size: clamp(44px, 15vw, 68px); }
  .gallery-overlay { left: 16px; right: 16px; bottom: 14px; }
}

/* ============================ ACCESSIBILITY ============================ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-title .line span { transform: none; }
  .particles { display: none; }
  * {
    background-attachment: scroll !important;
  }
}