:root {
  --ink: #13261f;
  --ink-soft: #2c463a;
  --mist: #e7f0ea;
  --paper: #f4f8f5;
  --leaf: #1f6b4a;
  --leaf-deep: #134733;
  --sun: #c9a227;
  --line: rgba(19, 38, 31, 0.12);
  --header-fg: #13261f;
  --font-display: "Bricolage Grotesque", Georgia, serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --surface: color-mix(in srgb, white 68%, transparent);
  --blend-day: 1;
  --blend-sunset: 0;
  --blend-night: 0;
  --blend-hell: 0;
}

body.tone-deep {
  /* tone toggle still nudges day palette; world levels override via inline vars */
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  background: var(--paper);
  transition: color 0.05s linear;
}

.world-atmosphere {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.atm {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.05s linear;
  will-change: opacity;
}

.atm-day {
  opacity: 1;
  background:
    radial-gradient(1200px 700px at 80% -10%, #d7ebe0 0%, transparent 55%),
    radial-gradient(900px 500px at -10% 30%, #dce8e1 0%, transparent 50%),
    linear-gradient(180deg, #f4f8f5 0%, #e7f0ea 100%);
}

.atm-sunset {
  background:
    radial-gradient(900px 600px at 70% 20%, rgba(255, 180, 90, 0.85) 0%, transparent 55%),
    radial-gradient(700px 500px at 15% 70%, rgba(255, 90, 70, 0.45) 0%, transparent 50%),
    linear-gradient(180deg, #ffd7b0 0%, #ff9a62 42%, #7a2d3a 100%);
}

.atm-night {
  background:
    radial-gradient(700px 500px at 80% 10%, rgba(70, 100, 180, 0.35) 0%, transparent 55%),
    radial-gradient(2px 2px at 20% 30%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 70% 40%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 40% 70%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 85% 65%, #fff 50%, transparent 51%),
    linear-gradient(180deg, #070a12 0%, #12182a 55%, #05060c 100%);
}

.atm-hell {
  background:
    radial-gradient(900px 520px at 50% 115%, rgba(255, 30, 0, 0.55) 0%, transparent 52%),
    radial-gradient(420px 320px at 18% 85%, rgba(120, 0, 0, 0.55) 0%, transparent 55%),
    radial-gradient(380px 280px at 82% 25%, rgba(60, 0, 0, 0.7) 0%, transparent 50%),
    radial-gradient(1px 1px at 12% 20%, rgba(255, 80, 40, 0.5) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 70% 35%, rgba(255, 120, 60, 0.4) 50%, transparent 51%),
    radial-gradient(1px 1px at 40% 60%, rgba(255, 60, 20, 0.35) 50%, transparent 51%),
    linear-gradient(180deg, #020000 0%, #0a0101 28%, #1a0302 58%, #050000 100%);
}

.atm-veil {
  position: absolute;
  inset: 0;
  opacity: 0;
  background:
    radial-gradient(circle at 50% 130%, rgba(255, 40, 0, 0.55), transparent 50%),
    radial-gradient(circle at 50% 50%, transparent 40%, rgba(0, 0, 0, 0.55) 100%),
    linear-gradient(180deg, rgba(20, 0, 0, 0.2), rgba(60, 0, 0, 0.45));
  mix-blend-mode: multiply;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.level-rail {
  display: none;
}

.level-dot {
  display: none;
}

.level-badge {
  display: none;
}

.level-zone {
  position: relative;
}

.sticky-stage {
  position: relative;
  height: 180vh;
}

.sticky-stage-hell {
  height: 160vh;
}

.sticky-stage-expertise {
  height: 200vh;
}

.sticky-stage-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.site-header.is-sticky {
  position: fixed;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem clamp(1.25rem, 4vw, 3rem);
  backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--paper) 72%, transparent);
  border-bottom: 1px solid transparent;
  color: var(--header-fg);
  transition: border-color 0.3s ease, background 0.3s ease, color 0.2s ease;
}

.site-header .nav {
  margin-left: auto;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  margin-left: 0.75rem;
  padding: 0.2rem;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
}

.lang-btn {
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  border-radius: 0.25rem;
  padding: 0.35rem 0.55rem;
  font: inherit;
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  opacity: 0.65;
  transition: opacity 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.lang-btn:hover {
  opacity: 1;
}

.lang-btn.is-active {
  opacity: 1;
  background: color-mix(in srgb, var(--ink) 10%, transparent);
  color: var(--ink);
}

.tone-toggle {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-soft);
  border-radius: 0.35rem;
  padding: 0.45rem 0.7rem;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  color: inherit;
}

.nav {
  display: flex;
  gap: 1.5rem;
}

.nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: inherit;
  opacity: 0.78;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.nav a:hover {
  opacity: 1;
  color: var(--leaf);
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
  padding: 7rem clamp(1.25rem, 4vw, 3rem) 3.5rem;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 36rem;
  animation: rise 0.9s ease both;
}

.hero-copy::before {
  content: "";
  position: absolute;
  inset: -1.5rem -1.25rem -1.25rem;
  z-index: -1;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--paper) 82%, transparent) 0%,
    color-mix(in srgb, var(--paper) 55%, transparent) 70%,
    transparent 100%
  );
  pointer-events: none;
}

.hero-role {
  margin: 0 0 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.brand {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.05em;
  color: var(--ink);
}

.hero h1 {
  margin: 0 0 1rem;
  max-width: 18ch;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.4vw, 2.35rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.lede {
  margin: 0 0 1.75rem;
  max-width: 34ch;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 0.35rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--leaf);
  color: #f4faf7;
}

.btn-primary:hover {
  background: var(--leaf-deep);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--ink-soft);
}

.hero-visual {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.horizon {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(
    180deg,
    transparent 0%,
    color-mix(in srgb, var(--mist) 80%, #b7d4c4) 18%,
    color-mix(in srgb, var(--leaf) 55%, #6fa88a) 55%,
    color-mix(in srgb, var(--leaf-deep) 70%, #2f6a52) 100%
  );
}

.ridge {
  position: absolute;
  bottom: 0;
  width: 140%;
  height: 38%;
  left: -20%;
  background: var(--leaf-deep);
  clip-path: polygon(0% 70%, 12% 48%, 24% 62%, 38% 30%, 52% 55%, 68% 22%, 82% 48%, 100% 35%, 100% 100%, 0% 100%);
  animation: drift 18s ease-in-out infinite alternate;
}

.ridge-a {
  opacity: 0.55;
  height: 46%;
  background: color-mix(in srgb, var(--leaf) 70%, var(--leaf-deep));
  animation-duration: 22s;
}

.ridge-b {
  opacity: 0.75;
  height: 40%;
  left: -8%;
  background: var(--leaf);
  animation-duration: 16s;
  animation-delay: -4s;
}

.ridge-c {
  height: 32%;
  background: var(--leaf-deep);
  animation-duration: 20s;
  animation-delay: -8s;
}

.sun {
  position: absolute;
  top: 12%;
  right: 10%;
  width: clamp(7rem, 16vw, 12rem);
  height: clamp(7rem, 16vw, 12rem);
  animation: sun-float 9s ease-in-out infinite;
}

.sun-core,
.sun-glow,
.sun-halo,
.sun-shine,
.sun-rays {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.sun-rays {
  inset: -38%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(255, 236, 170, 0.18) 8deg,
    transparent 16deg,
    transparent 28deg,
    rgba(255, 220, 140, 0.14) 36deg,
    transparent 44deg,
    transparent 58deg,
    rgba(255, 240, 190, 0.16) 66deg,
    transparent 74deg,
    transparent 90deg,
    rgba(255, 220, 140, 0.12) 98deg,
    transparent 106deg,
    transparent 130deg,
    rgba(255, 236, 170, 0.15) 138deg,
    transparent 146deg,
    transparent 180deg,
    rgba(255, 220, 140, 0.14) 188deg,
    transparent 196deg,
    transparent 220deg,
    rgba(255, 240, 190, 0.12) 228deg,
    transparent 236deg,
    transparent 270deg,
    rgba(255, 220, 140, 0.16) 278deg,
    transparent 286deg,
    transparent 320deg,
    rgba(255, 236, 170, 0.14) 328deg,
    transparent 336deg,
    transparent 360deg
  );
  animation: sun-spin 48s linear infinite;
  filter: blur(1px);
  opacity: 0.85;
}

.sun-halo {
  inset: -55%;
  background: radial-gradient(
    circle,
    rgba(255, 236, 180, 0.45) 0%,
    rgba(255, 200, 90, 0.22) 28%,
    rgba(255, 170, 60, 0.08) 48%,
    transparent 70%
  );
  animation: sun-pulse 6s ease-in-out infinite;
}

.sun-glow {
  inset: -18%;
  background: radial-gradient(
    circle,
    rgba(255, 248, 220, 0.95) 0%,
    rgba(255, 214, 110, 0.55) 42%,
    rgba(255, 176, 60, 0.18) 68%,
    transparent 78%
  );
  filter: blur(6px);
}

.sun-core {
  inset: 12%;
  background:
    radial-gradient(circle at 32% 30%, #fffef5 0%, #ffe9a8 22%, #ffd056 48%, #f0a824 72%, #c97812 100%);
  box-shadow:
    0 0 24px rgba(255, 220, 120, 0.75),
    0 0 60px rgba(255, 190, 70, 0.45),
    inset -10px -14px 24px rgba(180, 90, 10, 0.25),
    inset 8px 10px 18px rgba(255, 255, 255, 0.55);
}

.sun-shine {
  inset: 18%;
  background: radial-gradient(
    circle at 30% 28%,
    rgba(255, 255, 255, 0.85) 0%,
    rgba(255, 255, 255, 0.2) 28%,
    transparent 55%
  );
  mix-blend-mode: soft-light;
}

@keyframes sun-float {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-14px) scale(1.03);
  }
}

@keyframes sun-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes sun-pulse {
  0%,
  100% {
    opacity: 0.75;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.06);
  }
}

.section {
  padding: 5.5rem clamp(1.25rem, 4vw, 3rem);
  max-width: 72rem;
  margin: 0 auto;
}

.section-label {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--leaf);
}

.section h2 {
  margin: 0 0 1rem;
  max-width: 16ch;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.section-copy {
  margin: 0;
  max-width: 42rem;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.nest-intro {
  background: transparent;
  color: var(--ink);
  padding: 5rem 0 2rem;
  overflow: hidden;
  width: 100%;
}

.nest-intro-inner {
  width: min(1200px, 100%);
  margin: 0 auto;
}

.nest-intro-grid {
  display: grid;
  gap: 1.5rem;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.nest-kicker {
  margin: 0 0 1rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--leaf);
}

.nest-headline {
  margin: 0;
  max-width: 16ch;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.8rem, 4.2vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.nest-aside {
  margin: 0;
  max-width: 34ch;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.65;
  color: color-mix(in srgb, var(--ink) 70%, transparent);
}

.bounce-cards {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 380px;
  margin-top: 4.5rem;
}

.bounce-card {
  position: absolute;
  width: min(320px, 78vw);
  aspect-ratio: 1;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transform-origin: center center;
  transition: transform 0.4s cubic-bezier(0.34, 1.4, 0.64, 1);
  opacity: 0;
}

.bounce-cards.is-visible .bounce-card {
  animation: card-rise 0.55s ease forwards;
}

.bounce-cards.is-visible .bounce-card:nth-child(1) { animation-delay: 0.05s; }
.bounce-cards.is-visible .bounce-card:nth-child(2) { animation-delay: 0.12s; }
.bounce-cards.is-visible .bounce-card:nth-child(3) { animation-delay: 0.19s; }
.bounce-cards.is-visible .bounce-card:nth-child(4) { animation-delay: 0.26s; }
.bounce-cards.is-visible .bounce-card:nth-child(5) { animation-delay: 0.33s; }
.bounce-cards.is-visible .bounce-card:nth-child(6) { animation-delay: 0.4s; }
.bounce-cards.is-visible .bounce-card:nth-child(7) { animation-delay: 0.47s; }

.bounce-card-glow {
  height: 100%;
  padding: 1px;
  border-radius: 24px;
  background: linear-gradient(to top, #1a1a1a, #7c7c7c);
}

.bounce-card-face {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 2rem;
  border-radius: 24px;
  overflow: hidden;
  text-align: center;
  background: linear-gradient(to bottom, #202020, #0e0e0e);
  transition: background 0.3s ease;
  box-shadow: 0 4px 10px #0003;
}

.bounce-card-face::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background-image: url("/misc/noise.png");
  opacity: 0.65;
  pointer-events: none;
}

.bounce-card-face::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  pointer-events: none;
  border: 0.5px solid #b8b8b8;
  opacity: 0.05;
  background-image:
    linear-gradient(#b8b8b8 0.5px, transparent 0.5px, transparent calc(100% - 0.5px), #b8b8b8 calc(100% - 0.5px)),
    linear-gradient(90deg, #b8b8b8 0.5px, transparent 0.5px, transparent calc(100% - 0.5px), #b8b8b8 calc(100% - 0.5px));
  background-size: 16.666% 16.666%;
  -webkit-mask-image: radial-gradient(circle at top right, #000, transparent 60%);
  mask-image: radial-gradient(circle at top right, #000, transparent 60%);
}

.bounce-card.is-active .bounce-card-face,
.bounce-card:hover .bounce-card-face {
  background: linear-gradient(to bottom, #353535, #0e0e0e);
}

.bounce-card-face img,
.bounce-card-face .skill-icon {
  position: relative;
  z-index: 1;
  width: 75px;
  height: 75px;
  object-fit: contain;
  margin-bottom: 1.1rem;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35));
}

.bounce-card-face h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 0.5rem;
  padding: 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.2;
  white-space: normal;
  overflow-wrap: anywhere;
}

.bounce-card-face p {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 24ch;
  font-size: 0.88rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.8);
  opacity: 0;
  filter: blur(2px);
  max-height: 0;
  overflow: hidden;
  transition:
    opacity 0.2s ease,
    filter 0.2s ease,
    max-height 0.3s ease;
}

.bounce-card.is-active .bounce-card-face p,
.bounce-card:hover .bounce-card-face p,
.bounce-card:focus-visible .bounce-card-face p {
  opacity: 1;
  filter: blur(0);
  max-height: 6rem;
  transition-delay: 0.12s;
}

@keyframes card-rise {
  from {
    opacity: 0;
    translate: 0 40px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

@media (min-width: 900px) {
  .nest-intro-grid {
    grid-template-columns: 1.5fr 0.2fr 1fr;
    align-items: start;
  }

  .nest-aside {
    grid-column: 3;
    padding-top: 2.5rem;
  }
}

@media (max-width: 1080px) {
  .bounce-cards {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(260px, 78vw);
    gap: 1rem;
    height: auto;
    overflow-x: auto;
    padding: 1rem clamp(1.25rem, 4vw, 2.5rem) 1.5rem;
    scroll-snap-type: x mandatory;
    justify-content: start;
  }

  .bounce-card {
    position: relative;
    width: auto;
    scroll-snap-align: center;
    opacity: 1;
    animation: none;
  }

  .bounce-card-face p {
    opacity: 1;
    filter: none;
    max-height: none;
  }
}

.cinema {
  position: relative;
  height: 260vh;
  background: transparent;
  color: var(--ink);
}

.cinema-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.cinema-copy {
  position: relative;
  z-index: 2;
  width: min(92vw, 46rem);
  text-align: center;
  padding: 1rem;
}

.cinema-title {
  margin: 0 auto;
  display: grid;
  gap: 0.45em;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.45rem, 4.2vw, 2.85rem);
  line-height: 1.25;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.cinema-line {
  display: block;
  text-wrap: pretty;
}

.cinema-word {
  display: inline-block;
  white-space: nowrap;
}

.cinema-char {
  display: inline;
  will-change: opacity;
  transition: opacity 0.28s ease;
}

.cinema-caption {
  margin: 1.75rem auto 0;
  max-width: 28rem;
  color: color-mix(in srgb, var(--ink) 72%, transparent);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  line-height: 1.5;
  opacity: 0;
  filter: blur(10px);
  transition:
    opacity 0.5s ease,
    filter 0.5s ease;
}

.sunset-stage {
  position: relative;
  min-height: 100vh;
  height: 100%;
  display: grid;
  align-content: center;
  gap: 1rem;
  padding: 7rem clamp(1.25rem, 4vw, 3rem) 4rem;
  overflow: hidden;
}

.sunset-title {
  margin: 0;
  max-width: 12ch;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.sunset-copy {
  margin: 0;
  max-width: 34ch;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.sunset-sky {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.sunset-sun {
  position: absolute;
  left: 58%;
  bottom: 28%;
  width: clamp(6rem, 14vw, 11rem);
  height: clamp(6rem, 14vw, 11rem);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff2c8 0%, var(--sun) 40%, #ff6a2a 100%);
  filter: blur(0.5px);
  animation: float 8s ease-in-out infinite;
  box-shadow:
    0 0 40px rgba(255, 160, 60, 0.45),
    0 0 90px rgba(255, 100, 40, 0.25);
}

.sunset-band {
  position: absolute;
  left: -10%;
  width: 120%;
  height: 28%;
  bottom: 0;
  opacity: 0.55;
  background: #5a1f28;
  clip-path: polygon(0 55%, 18% 35%, 34% 52%, 52% 20%, 70% 48%, 86% 28%, 100% 42%, 100% 100%, 0 100%);
}

.sunset-band.band-a {
  height: 36%;
  opacity: 0.35;
  background: #c45a3a;
}

.sunset-band.band-b {
  height: 30%;
  opacity: 0.5;
  background: #8a2f2f;
}

.hell-gate {
  min-height: 100vh;
  height: 100%;
  display: grid;
  align-content: end;
  gap: 1rem;
  padding: 6rem clamp(1.25rem, 4vw, 3rem) 3rem;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hell-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hell-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 70%, transparent 20%, rgba(0, 0, 0, 0.72) 78%, rgba(0, 0, 0, 0.92) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 35%, rgba(40, 0, 0, 0.45) 100%);
}

.hell-cracks {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.45;
  background:
    linear-gradient(115deg, transparent 48%, rgba(255, 40, 10, 0.35) 49%, transparent 51%),
    linear-gradient(75deg, transparent 60%, rgba(180, 0, 0, 0.28) 61%, transparent 63%),
    linear-gradient(160deg, transparent 30%, rgba(255, 70, 20, 0.2) 31%, transparent 33%);
  mix-blend-mode: screen;
  animation: hell-flicker 3.8s ease-in-out infinite;
}

.hell-copy-wrap {
  position: relative;
  z-index: 2;
  max-width: 40rem;
}

.hell-kicker {
  color: #ff5a3a !important;
  text-shadow: 0 0 18px rgba(255, 40, 0, 0.55);
  animation: hell-flicker 2.4s ease-in-out infinite;
}

.hell-title {
  margin: 0 0 1rem;
  display: grid;
  gap: 0.15em;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 8vw, 5.4rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.95;
  color: #ffe4d4;
  text-shadow:
    0 0 20px rgba(255, 40, 0, 0.35),
    0 8px 40px rgba(0, 0, 0, 0.65);
}

.hell-title-line {
  display: block;
}

.hell-title-burn {
  color: #ff3b1a;
  animation: hell-pulse 2.8s ease-in-out infinite;
}

.hell-copy {
  margin: 0;
  max-width: 38ch;
  color: #c98a78;
  font-size: 1.08rem;
  line-height: 1.55;
}

body[data-level="hell"] {
  cursor: default;
}

body[data-level="hell"] .noise {
  opacity: 0.08;
}

body[data-level="hell"] .project-card {
  border-color: rgba(255, 50, 20, 0.35);
  background: linear-gradient(180deg, rgba(40, 6, 4, 0.82), rgba(12, 0, 0, 0.9));
  box-shadow: 0 0 0 1px rgba(80, 0, 0, 0.35), 0 12px 40px rgba(0, 0, 0, 0.45);
}

body[data-level="hell"] .btn-primary {
  background: #c91c08;
  box-shadow: 0 0 24px rgba(255, 30, 0, 0.35);
}

body[data-level="hell"] .btn-primary:hover {
  background: #ff2a0a;
}

body[data-level="hell"] .section-label {
  color: #ff4d2e;
  text-shadow: 0 0 12px rgba(255, 40, 0, 0.35);
}

body[data-level="hell"] .site-footer {
  color: #9a5a4a;
}

@keyframes hell-flicker {
  0%,
  100% {
    opacity: 0.4;
  }
  40% {
    opacity: 0.7;
  }
  55% {
    opacity: 0.35;
  }
  70% {
    opacity: 0.65;
  }
}

@keyframes hell-pulse {
  0%,
  100% {
    text-shadow: 0 0 12px rgba(255, 40, 0, 0.4);
    filter: brightness(1);
  }
  50% {
    text-shadow: 0 0 28px rgba(255, 20, 0, 0.75);
    filter: brightness(1.15);
  }
}

body[data-level="night"] .bounce-card-face h3,
body[data-level="hell"] .bounce-card-face h3 {
  color: #fff;
}

@media (max-width: 900px) {
  .sticky-stage,
  .sticky-stage-hell,
  .sticky-stage-expertise {
    height: auto;
  }

  .sticky-stage-pin {
    position: relative;
    height: auto;
  }
}

.site-header.is-over-cinema {
  background: color-mix(in srgb, #050505 72%, transparent);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.site-header.is-over-cinema .logo,
.site-header.is-over-cinema .nav a,
.site-header.is-over-cinema .lang-btn,
.site-header.is-over-cinema .tone-toggle {
  color: #f4f4f4;
}

.site-header.is-over-cinema .nav a:hover {
  color: #fff;
}

.site-header.is-over-cinema .lang-switch {
  border-color: rgba(255, 255, 255, 0.22);
}

.site-header.is-over-cinema .lang-btn.is-active {
  background: rgba(255, 255, 255, 0.12);
}

.site-header.is-over-cinema .tone-toggle {
  border-color: rgba(255, 255, 255, 0.22);
}

.about,
.work,
.contact {
  opacity: 0;
  transform: translateY(1.25rem);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.about.is-visible,
.work.is-visible,
.contact.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.project-grid {
  margin-top: 2.75rem;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-card {
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--surface);
  overflow: hidden;
  transition:
    border-color 0.25s ease,
    transform 0.25s ease,
    background 0.25s ease;
}

.project-card:hover {
  border-color: color-mix(in srgb, var(--leaf) 40%, var(--line));
  transform: translateY(-3px);
}

.project-card-link {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  min-height: 12.5rem;
  width: 100%;
  color: inherit;
}

.project-visual {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--leaf) 18%, transparent), transparent 62%),
    linear-gradient(165deg, #10141a 0%, #05070a 100%);
  border-right: 1px solid var(--line);
}

.project-visual img {
  width: 6.5rem;
  height: 6.5rem;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.45));
  transition: transform 0.3s ease;
}

.project-visual img.project-icon-lang {
  width: 6.75rem;
  height: 6.75rem;
  padding: 0.5rem;
  object-fit: contain;
}

.project-card:hover .project-visual img {
  transform: scale(1.06) translateY(-2px);
}

.project-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem 1.4rem 1.35rem;
}

.project-body h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.project-body p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.55;
  max-width: 28rem;
}

.project-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: auto 0 0;
  padding: 0;
}

.project-tags li {
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 0.3rem;
  padding: 0.28rem 0.5rem;
}

.project-page {
  background: #040000;
  color: #ffd2be;
}

.project-page .site-footer {
  position: relative;
  z-index: 1;
}

.project-hell-fx.hell-gate {
  position: fixed;
  inset: 0;
  z-index: 0;
  min-height: 100vh;
  display: block;
  place-items: unset;
  padding: 0;
  overflow: hidden;
  pointer-events: none;
}

.project-hell-fx .hell-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.project-page-main {
  position: relative;
  z-index: 1;
  width: min(48rem, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 7.5rem 0 4rem;
}

.project-page .site-header {
  background: color-mix(in srgb, #050505 72%, transparent);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.project-page .lang-switch {
  border-color: rgba(255, 255, 255, 0.22);
}

.project-page .lang-btn.is-active {
  background: rgba(255, 255, 255, 0.12);
}

.project-back {
  display: inline-flex;
  margin-bottom: 2rem;
  color: #c98a78;
  font-weight: 600;
  font-size: 0.95rem;
}

.project-back:hover {
  color: #ff4d2e;
}

.project-detail-head {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  margin-bottom: 2rem;
}

.project-detail-icon {
  width: 5.5rem;
  height: 5.5rem;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 0 18px rgba(255, 40, 0, 0.35));
}

.project-detail-head h1 {
  margin: 0.2rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: #ff3b1a;
  text-shadow: 0 0 20px rgba(255, 40, 0, 0.45);
}

.project-detail-head .project-tags {
  margin-top: 0.85rem;
}

.project-page .project-tags li {
  color: #c98a78;
  border-color: rgba(255, 50, 20, 0.35);
  background: rgba(40, 6, 4, 0.45);
}

.project-detail-body {
  color: #c98a78;
  line-height: 1.7;
  font-size: 1.05rem;
}

.project-detail-body > *:first-child {
  margin-top: 0;
}

.project-detail-body h1,
.project-detail-body h2,
.project-detail-body h3 {
  color: #ffe4d4;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  margin: 1.6rem 0 0.55rem;
  text-shadow: 0 0 16px rgba(255, 40, 0, 0.25);
}

.project-detail-body p,
.project-detail-body ul {
  margin: 0.75rem 0;
}

.project-detail-body a {
  color: #ff4d2e;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.project-detail-body code {
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
  font-size: 0.9em;
  padding: 0.1em 0.35em;
  border-radius: 0.25rem;
  color: #ffe4d4;
  background: rgba(255, 40, 10, 0.12);
  border: 1px solid rgba(255, 50, 20, 0.25);
}

.project-detail-body strong {
  color: #ffe4d4;
}

.project-detail-body img {
  display: block;
  width: 100%;
  height: auto;
  margin: 1.25rem 0;
  border-radius: 0.45rem;
  border: 1px solid rgba(255, 50, 20, 0.35);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.project-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

.project-page .btn-ghost {
  border-color: rgba(255, 50, 20, 0.4);
  color: #ffd2be;
}

.project-page .btn-ghost:hover {
  border-color: #ff4d2e;
  color: #fff;
}

.project-detail-status {
  color: #c98a78;
  font-size: 1.05rem;
}

@media (max-width: 640px) {
  .project-detail-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

.chip-static {
  cursor: default;
}

.chip-static:hover {
  border-color: var(--line);
  color: var(--ink-soft);
  background: transparent;
}

.interest-list,
.link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.interest-list li,
.link-list a {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.link-list a:hover {
  color: var(--leaf);
}

.widget-grid {
  margin-top: 2.5rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

.widget {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  padding: 1.1rem 1.15rem 1.2rem;
  min-height: 9.5rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.widget:hover {
  border-color: color-mix(in srgb, var(--leaf) 35%, var(--line));
  transform: translateY(-2px);
}

.widget-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.widget-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.pulse {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--leaf);
  animation: pulse 1.8s ease-in-out infinite;
}

.status-label {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.status-meta,
.clock-meta,
.chip-hint,
.inbox-hint,
.meter-label,
.now-artist {
  margin: 0.35rem 0 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.clock-time,
.timer-display,
.inbox-count {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.stat-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.stat-item span {
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.skill-list {
  display: grid;
  gap: 0.75rem;
}

.skill-row {
  display: grid;
  gap: 0.3rem;
}

.skill-row header {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
}

.meter {
  height: 0.45rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 8%, transparent);
  overflow: hidden;
}

.meter-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--leaf);
  transition: width 0.8s ease;
}

.meter-fill.is-sun {
  background: var(--sun);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.chip {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-soft);
  border-radius: 0.35rem;
  padding: 0.35rem 0.65rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.chip.is-active,
.chip:hover {
  border-color: var(--leaf);
  color: var(--leaf-deep);
  background: color-mix(in srgb, var(--leaf) 12%, transparent);
}

.focus-item,
.now-title {
  margin: 0 0 0.75rem;
  font-weight: 600;
}

.widget-quote blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.icon-btn {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  border-radius: 0.3rem;
  padding: 0.35rem 0.6rem;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.transport {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.terminal {
  margin: 0;
  min-height: 7rem;
  padding: 0.85rem;
  border-radius: 0.35rem;
  background: #123328;
  color: #d7efe4;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.55;
  overflow: hidden;
}

.key-list {
  list-style: none;
  margin: 0 0 0.9rem;
  padding: 0;
  display: grid;
  gap: 0.45rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

kbd {
  display: inline-block;
  padding: 0.1rem 0.35rem;
  border: 1px solid var(--line);
  border-radius: 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink);
}

.search-wrap {
  display: grid;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.search-wrap input {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  background: color-mix(in srgb, white 70%, transparent);
  font: inherit;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.45;
    transform: scale(0.85);
  }
}

.contact-ways {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
  max-width: 36rem;
}

.contact-way {
  display: grid;
  gap: 0.65rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid rgba(255, 50, 20, 0.35);
  border-radius: 0.55rem;
  background: linear-gradient(180deg, rgba(40, 6, 4, 0.82), rgba(12, 0, 0, 0.9));
  box-shadow: 0 0 0 1px rgba(80, 0, 0, 0.35), 0 12px 40px rgba(0, 0, 0, 0.35);
}

.contact-way-meta {
  display: grid;
  gap: 0.2rem;
}

.contact-way-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: #ffe4d4;
  letter-spacing: -0.02em;
}

.contact-way-hint {
  color: #c98a78;
  font-size: 0.9rem;
}

.contact-way-value {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
  font-size: 1.02rem;
  color: #ffd2be;
}

.contact-way-value a {
  color: #ff4d2e;
}

.contact-way-value a:hover {
  color: #ff7a5c;
}

.contact-copy {
  border: 1px solid rgba(255, 50, 20, 0.4);
  background: transparent;
  color: #ffd2be;
  border-radius: 0.3rem;
  padding: 0.35rem 0.65rem;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.contact-copy:hover {
  border-color: #ff4d2e;
  color: #fff;
}

.contact-way-empty {
  color: #c98a78;
  border-style: dashed;
}

.site-footer {
  padding: 2rem clamp(1.25rem, 4vw, 3rem) 3rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1.5rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes drift {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(3%);
  }
}

@media (min-width: 900px) {
  .hero {
    align-items: center;
    padding-top: 6rem;
  }

  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-card:last-child {
    grid-column: 1 / -1;
  }

  .project-card:last-child .project-card-link {
    grid-template-columns: 11rem 1fr;
    min-height: 11rem;
  }
}

@media (max-width: 720px) {
  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-card-link {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .project-visual {
    min-height: 9.5rem;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .project-visual img {
    width: 5.5rem;
    height: 5.5rem;
  }
}

@media (max-width: 640px) {
  .nav {
    gap: 0.75rem;
  }

  .nav a {
    font-size: 0.8rem;
  }

  .tone-toggle {
    display: none;
  }

  .lang-switch {
    margin-left: 0.35rem;
  }

  .lang-btn {
    padding: 0.3rem 0.45rem;
    font-size: 0.68rem;
  }

  .site-header {
    flex-wrap: wrap;
  }
}
