/* ==========================================================================
   WOTAKU Work Page — Black & Dark Red theme
   ========================================================================== */
.work-page--wotaku {
  --bg:         #0b0707;
  --bg-alt:     #110a0a;
  --surface:    #1a0f0f;
  --red-900:    #3a0a0a;
  --red-800:    #5a0e10;
  --red-700:    #7a1416;
  --red-600:    #9a1c1f;
  --red-500:    #b82428;
  --red-400:    #d83b3f;
  --smoke:      #eadcd0;
  --ink:        #e9dcd2;
  --muted:      #a99189;

  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 300;
  letter-spacing: 0.05em;
  line-height: 1.85;
}

/* ---- Header ---- */
.work-header {
  position: fixed; top: 0; left: 0; right: 0;
  height: 68px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  z-index: 100;
  background: rgba(11, 7, 7, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(184, 36, 40, 0.2);
}
.work-header__back,
.work-header__logo {
  color: var(--smoke);
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  transition: color 0.3s var(--ease), transform 0.4s var(--ease);
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.work-header__back:hover { color: var(--red-400); }
.work-header__back:hover .arrow { transform: translateX(-4px); }
.work-header__back .arrow { transition: transform 0.4s var(--ease); }
.work-header__logo {
  font-family: var(--font-serif);
  letter-spacing: 0.3em;
}
.work-header__logo:hover { color: var(--red-400); }

/* ---- Hero ---- */
.work-hero {
  padding-top: 68px;
  background:
    radial-gradient(ellipse at top right, rgba(122, 20, 22, 0.45), transparent 55%),
    radial-gradient(ellipse at bottom left, rgba(58, 10, 10, 0.5), transparent 55%),
    var(--bg);
  position: relative;
  overflow: hidden;
}
.work-hero::before {
  content: "";
  position: absolute;
  top: 55%; right: -140px;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(154, 28, 31, 0.55), transparent 70%);
  filter: blur(40px);
  opacity: 0.8;
  animation: floatRed 12s ease-in-out infinite;
  pointer-events: none;
}
.work-hero::after {
  content: "";
  position: absolute;
  top: 12%; left: -110px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(90, 14, 16, 0.55), transparent 70%);
  filter: blur(45px);
  opacity: 0.75;
  animation: floatRed2 14s ease-in-out infinite;
  pointer-events: none;
}
@keyframes floatRed {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-30px); }
}
@keyframes floatRed2 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(28px); }
}

.work-hero__visual {
  position: relative;
  width: 100%;
  background: #000;
  overflow: hidden;
  line-height: 0;
}
.work-hero__visual img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.work-hero__inner {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6rem) clamp(1.5rem, 6vw, 4rem);
  text-align: center;
  position: relative;
  z-index: 1;
}
.work-hero__cat {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--red-400);
  font-size: 1rem;
  letter-spacing: 0.3em;
  margin: 0 0 0.75rem;
}
.work-hero__title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(3rem, 8vw, 6rem);
  letter-spacing: 0.14em;
  margin: 0;
  color: var(--smoke);
  line-height: 1;
  text-shadow: 0 0 40px rgba(184, 36, 40, 0.25);
}
.work-hero__lead {
  margin: 2rem auto 3rem;
  font-size: 1rem;
  line-height: 2.1;
  color: var(--ink);
  max-width: 640px;
  text-align: left;
  opacity: 0.92;
}
.work-hero__meta {
  display: grid;
  gap: 0.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(184, 36, 40, 0.3);
  max-width: 520px;
  margin: 0 auto;
  text-align: left;
}
.work-hero__meta > div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1rem;
  padding: 0.35rem 0;
}
.work-hero__meta dt {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--red-400);
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  margin: 0;
}
.work-hero__meta dd {
  margin: 0;
  color: var(--ink);
  font-size: 0.9rem;
}

/* ---- Sections ---- */
.work-section {
  padding: clamp(4rem, 9vw, 8rem) clamp(1.5rem, 6vw, 6rem);
  max-width: 1200px;
  margin: 0 auto;
}
.work-section--alt {
  max-width: none;
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
}
.work-section--alt .work-section__head,
.work-section--alt .plans-grid {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.work-section__head {
  text-align: center;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
.work-section__title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(2rem, 4.5vw, 3rem);
  letter-spacing: 0.2em;
  margin: 0;
  color: var(--smoke);
}
.work-section__jp {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--red-400);
  font-size: 0.85rem;
  letter-spacing: 0.35em;
  margin: 0.75rem 0 0;
}

/* ---- Work figure ---- */
.work-figure {
  margin: 0 auto;
  max-width: 820px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 30px 60px -35px rgba(0, 0, 0, 0.8),
              0 0 0 1px rgba(184, 36, 40, 0.15);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
  line-height: 0;
}
.work-figure:hover {
  transform: translateY(-6px);
  box-shadow: 0 40px 80px -35px rgba(0, 0, 0, 0.9),
              0 0 0 1px rgba(184, 36, 40, 0.35);
}
.work-figure img {
  width: 100%;
  height: auto;
  display: block;
}
.work-figure--narrow {
  max-width: 560px;
}
.work-figure--small {
  max-width: 520px;
  background: transparent;
  box-shadow: none;
}
.work-figure--small:hover {
  box-shadow: none;
  transform: translateY(-4px);
}
.work-figure--small > img {
  box-shadow: 0 30px 60px -35px rgba(0, 0, 0, 0.8),
              0 0 0 1px rgba(184, 36, 40, 0.15);
}
.work-figure__credit {
  display: inline-block;
  margin: 1.75rem auto 0;
  padding: 0.7rem 1.5rem;
  font-family: var(--font-serif);
  font-style: italic;
  letter-spacing: 0.25em;
  color: var(--smoke);
  font-size: 1.05rem;
  text-align: center;
  line-height: 1.6;
  border-top: 1px solid var(--red-500);
  border-bottom: 1px solid var(--red-500);
}
figure.work-figure--small,
figure.work-figure--narrow {
  text-align: center;
  background: transparent;
  box-shadow: none;
}
figure.work-figure--small:hover,
figure.work-figure--narrow:hover {
  box-shadow: none;
  transform: translateY(-4px);
}
.work-figure--narrow > img {
  box-shadow: 0 30px 60px -35px rgba(0, 0, 0, 0.8),
              0 0 0 1px rgba(184, 36, 40, 0.15);
}

/* ---- Plans grid ---- */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
  max-width: 1000px;
  margin: 0 auto;
}
.plan-item {
  margin: 0;
  background: #000;
  box-shadow: 0 20px 40px -25px rgba(0, 0, 0, 0.75),
              0 0 0 1px rgba(184, 36, 40, 0.12);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
  line-height: 0;
}
.plan-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9),
              0 0 0 1px rgba(184, 36, 40, 0.3);
}
.plan-item img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---- Next ---- */
.work-next {
  padding: clamp(4rem, 8vw, 7rem) 1.5rem;
  text-align: center;
  background: linear-gradient(180deg, var(--bg) 0%, #000 100%);
}
.work-next__link {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  letter-spacing: 0.2em;
  color: var(--smoke);
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--red-700);
  transition: color 0.4s var(--ease), border-color 0.4s var(--ease), letter-spacing 0.5s var(--ease);
}
.work-next__link:hover {
  color: var(--red-400);
  border-color: var(--red-400);
  letter-spacing: 0.28em;
}
.work-next__arrow {
  transition: transform 0.5s var(--ease);
}
.work-next__link:hover .work-next__arrow {
  transform: translateX(8px);
}

/* ---- Footer ---- */
.work-footer {
  padding: 2.5rem 1.5rem;
  text-align: center;
  background: #000;
  border-top: 2px solid var(--red-700);
}
.work-footer p {
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  color: var(--muted);
}

/* ---- Responsive ---- */
@media (max-width: 720px) {
  .plans-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .work-hero__meta > div {
    grid-template-columns: 90px 1fr;
  }
}
