:root {
  --bg: #050505;
  --panel: #0a0a0a;
  --panel-soft: #111111;
  --text: #f2f2f2;
  --muted: rgba(255, 255, 255, 0.72);
  --muted-soft: rgba(255, 255, 255, 0.54);
  --line: rgba(255, 255, 255, 0.22);
  --line-soft: rgba(255, 255, 255, 0.12);
  --accent: #d7ff3f;
  --accent-hover: #e7ff80;
  --sans: "Noto Sans JP", "Noto Sans", "Hiragino Sans", "Yu Gothic", sans-serif;
  --mono: "SFMono-Regular", "Menlo", "Consolas", "Monaco", "Courier New", monospace;
}

* {
  box-sizing: border-box;
}

::selection {
  color: var(--bg);
  background: var(--fv-yellow, var(--accent));
}

::-moz-selection {
  color: var(--bg);
  background: var(--fv-yellow, var(--accent));
}

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  background: #1f1f1f;
  color: var(--text);
  font-family: var(--sans);
}

.scrolly {
  min-height: 100vh;
}

.scene-spacer {
  height: 0;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  padding-bottom: 28px;
  background: linear-gradient(
    180deg,
    rgba(5, 5, 5, 1) 0%,
    rgba(5, 5, 5, 1) calc(100% - 28px),
    rgba(5, 5, 5, 0) 100%
  );
  pointer-events: none;
}

.site-header__inner {
  width: min(1280px, calc(100% - 160px));
  margin: 0 auto;
  padding: 24px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-family: var(--mono);
  pointer-events: auto;
}

.scene--sticky {
  position: relative;
  height: 100vh;
}

.stage {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: var(--bg);
  font-family: var(--mono);
  z-index: 10;
}

.stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.025), transparent 26%),
    radial-gradient(circle at 80% 72%, rgba(255, 255, 255, 0.018), transparent 26%);
  pointer-events: none;
}

.wave-shell {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 1;
}

.wave-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.scene-copy {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  align-items: center;
  padding-left: clamp(80px, 11vw, 168px);
  padding-top: 84px;
  padding-right: clamp(80px, 11vw, 168px);
  pointer-events: none;
}

.scene-copy__block {
  width: min(520px, 42vw);
  min-height: min(620px, 70vh);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px 0 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 360ms ease,
    transform 360ms ease;
}

.scene-copy__identity {
  display: grid;
  align-content: start;
}

.scene-copy__block.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.terminal-title {
  margin: 0;
  font-size: clamp(2.15rem, 5.8vw, 3.8rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.94;
  white-space: nowrap;
}

.terminal-sub {
  margin: 16px 0 0;
  font-size: clamp(0.84rem, 1.5vw, 0.94rem);
  color: var(--muted);
  letter-spacing: 0.08em;
}

.stage.is-copy-phase .scroll-mark {
  opacity: 0.35;
}

.scroll-mark {
  position: absolute;
  left: 3.2vw;
  bottom: 5.2vh;
  z-index: 4;
  width: 14px;
  height: 84px;
  display: grid;
  place-items: end center;
  transition:
    opacity 320ms ease,
    transform 320ms ease;
}

.scroll-mark span {
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,0.9));
}

.featured-overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 8;
  width: min(1280px, calc(100% - 160px));
  height: 100%;
  margin: 0;
  padding: 108px 0 48px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 320ms ease;
  display: flex;
  flex-direction: column;
  transform: translateX(-50%);
  overflow: hidden;
}

.about-overlay {
  position: absolute;
  inset: 0;
  left: 50%;
  z-index: 9;
  width: min(1280px, calc(100% - 160px));
  height: 100%;
  margin: 0;
  padding: 108px 0 48px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%);
  display: grid;
  align-items: start;
}

.about-overlay__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  width: 100%;
  max-width: 1040px;
}

.about-overlay__title,
.about-overlay__identity,
.about-overlay__content,
.about-overlay__visual {
  opacity: 0;
  will-change: opacity, transform;
}

.about-overlay__title {
  margin: 0;
  font-family: var(--mono);
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
  transform: translateY(18px);
}

.about-overlay__profile {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(28px, 4vw, 52px);
  align-items: start;
  margin-top: clamp(30px, 4vw, 44px);
}

.about-overlay__identity {
  padding-top: 4px;
  transform: translateY(14px);
}

.about-overlay__name {
  margin: 0;
  font-family: var(--mono);
  font-size: clamp(1.35rem, 2.3vw, 2rem);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0;
}

.about-overlay__role {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.64);
  font-family: var(--mono);
  font-size: 0.74rem;
  line-height: 1.5;
  letter-spacing: 0.06em;
}

.about-overlay__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin-top: 20px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.86rem;
  line-height: 1.45;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: color 220ms ease, transform 220ms ease;
}

.about-overlay__link::before {
  content: "> ";
}

.about-overlay__link:hover,
.about-overlay__link:focus-visible {
  color: var(--accent-hover);
  transform: translateX(4px);
}

.about-overlay__link:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 5px;
}

.about-overlay__content {
  margin-top: clamp(30px, 4vw, 44px);
  transform: translateY(18px);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.95fr);
  gap: clamp(36px, 5vw, 72px);
}

.about-overlay__summary,
.about-overlay__skills {
  min-width: 0;
}

.about-overlay__section-label {
  margin: 0 0 14px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.4;
  letter-spacing: 0.08em;
}

.about-overlay__meta {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.82rem;
  line-height: 1.9;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.92);
}

.about-overlay__body {
  margin-top: 20px;
  display: grid;
  gap: 18px;
}

.about-overlay__body p {
  margin: 0;
  max-width: 92ch;
  font-family: var(--sans);
  font-size: 0.82rem;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.1em;
}

.about-overlay__skill-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 28px;
}

.about-overlay__skill-group h3 {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0.04em;
}

.about-overlay__skill-group p {
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-family: var(--sans);
  font-size: 0.7rem;
  line-height: 1.7;
  letter-spacing: 0.04em;
}

.about-overlay__visual {
  box-sizing: border-box;
  width: clamp(160px, 17vw, 184px);
  max-width: 100%;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.045);
  transform: translateY(22px);
}

.about-overlay__visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 2px;
  object-fit: cover;
}

.featured-overlay__content {
  display: flex;
  flex-direction: column;
  min-height: min-content;
  will-change: transform;
}

.featured-overlay__head {
  margin-bottom: clamp(28px, 4vw, 42px);
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 320ms ease,
    transform 320ms ease;
}

.featured-overlay__title {
  margin: 0;
  font-family: var(--mono);
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  font-weight: 400;
  letter-spacing: 0;
}

.portfolio-home {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.04), transparent 28%),
    linear-gradient(180deg, #050505 0%, #0c0c0c 100%);
  color: var(--text);
  z-index: 1;
}

.portfolio-home__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 18%, rgba(255, 255, 255, 0.12), transparent 18%),
    linear-gradient(140deg, transparent 0 45%, rgba(255, 255, 255, 0.08) 49%, transparent 54%);
  opacity: 0.5;
  pointer-events: none;
}

.portfolio-home__inner {
  position: relative;
  z-index: 1;
  width: min(1280px, calc(100% - 160px));
  margin: 0 auto;
  padding: 16px 0 clamp(120px, 12vw, 180px);
}

.page-nav__brand,
.page-nav__links a {
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.04em;
}

.page-nav__brand {
  margin: 0;
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
}

.page-nav__links {
  display: flex;
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
}

.page-nav__links a {
  font-size: clamp(0.92rem, 1.5vw, 1.15rem);
}

.page-nav__brand,
.page-nav__links a {
  transition: color 220ms ease;
}

.page-nav__brand:hover,
.page-nav__brand:focus-visible,
.page-nav__links a:hover,
.page-nav__links a:focus-visible {
  color: var(--accent);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 26px;
}

.works-grid--overlay {
  grid-template-columns: repeat(2, minmax(0, 540px));
  justify-content: center;
  column-gap: 40px;
  row-gap: 32px;
  align-items: start;
}

.works-grid--overlay .work-card {
  opacity: 0;
  transform: translateY(16px);
}

.works-grid--overlay .work-card--featured {
  width: 100%;
  min-height: 0;
  aspect-ratio: 540 / 542;
}

.works-grid--overlay .work-card__thumb {
  min-height: 0;
  aspect-ratio: 16 / 9;
}

.works-grid--overlay .work-card__copy {
  font-size: 0.82rem;
  line-height: 1.65;
}

.works-grid--overlay .work-tag {
  min-width: 94px;
  padding: 8px 14px;
  font-size: 0.74rem;
}

.work-card {
  min-height: 320px;
  padding: clamp(18px, 2.1vw, 22px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.032), rgba(255, 255, 255, 0.018));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  display: grid;
  grid-template-rows: auto 1fr;
  transition:
    opacity 320ms ease,
    transform 360ms ease,
    border-color 360ms ease,
    background 360ms ease;
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(8px) saturate(0.86);
}

.work-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.034));
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

[data-work-link] {
  cursor: pointer;
}

[data-work-link]:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: 4px;
}

.work-card--featured {
  min-height: 420px;
}

.work-card__thumb {
  overflow: hidden;
  min-height: 0;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.92), rgba(230,230,230,0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.work-card__thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #ffffff;
}

.work-card__thumb.work-card__thumb--image {
  box-sizing: border-box;
  padding: 8px;
  aspect-ratio: auto;
  border: 0;
  background: linear-gradient(180deg, rgba(30, 30, 30, 0.98), rgba(18, 18, 18, 0.98));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.work-card__thumb--image img {
  height: auto;
  min-width: 0;
  min-height: 0;
  border-radius: 4px;
}

.work-card__body {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px 10px 10px;
}

.work-card__title {
  margin: 0;
  font-family: var(--mono);
  font-size: clamp(1.3rem, 1.65vw, 1.65rem);
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: 0;
}

.work-card__copy {
  width: 100%;
  margin: 18px 0 0;
  max-width: none;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.9rem;
  line-height: 1.8;
  letter-spacing: 0.1em;
  font-family: var(--sans);
  font-weight: 400;
}

.work-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.work-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 108px;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(212, 212, 212, 0.18);
  color: #ffffff;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1;
}

.other-works {
  width: min(1120px, 100%);
  margin-left: auto;
  margin-right: auto;
  margin-top: clamp(64px, 7vw, 96px);
}

.other-works__head {
  margin-bottom: 12px;
}

.other-works__eyebrow {
  margin: 0 0 12px;
  color: var(--muted-soft);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.other-works__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 40px;
}

.other-work-card {
  display: grid;
  grid-template-rows: auto 1fr;
  width: 100%;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 540 / 542;
  padding: clamp(18px, 2.1vw, 22px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.032), rgba(255, 255, 255, 0.018));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(8px) saturate(0.86);
  transition:
    transform 360ms ease,
    border-color 360ms ease,
    background 360ms ease,
    box-shadow 360ms ease;
}

.other-work-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.034));
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

.other-work-card__thumb {
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(230,230,230,0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.other-work-card__thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #ffffff;
}

.other-work-card__thumb--image {
  box-sizing: border-box;
  padding: 8px;
  aspect-ratio: auto;
  border: 0;
  background: linear-gradient(180deg, rgba(30, 30, 30, 0.98), rgba(18, 18, 18, 0.98));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.other-work-card__thumb--image img {
  height: auto;
  min-width: 0;
  min-height: 0;
  border-radius: 4px;
}

.other-work-card__body {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-width: 0;
  padding: 18px 10px 10px;
}

.other-work-card__title {
  margin: 0;
  font-family: var(--mono);
  font-size: clamp(1.3rem, 1.65vw, 1.65rem);
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: 0;
}

.other-work-card__copy {
  width: 100%;
  margin: 18px 0 0;
  max-width: none;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.82rem;
  line-height: 1.65;
  letter-spacing: 0.1em;
  font-family: var(--sans);
  font-weight: 400;
}

.other-work-card .work-card__tags {
  margin-top: 16px;
}

.other-work-card .work-tag {
  min-width: 94px;
  padding: 8px 14px;
  font-size: 0.74rem;
}

.profile-strip {
  margin-top: clamp(84px, 10vw, 136px);
  padding-top: clamp(44px, 6vw, 56px);
  border-top: 1px solid var(--line-soft);
  display: grid;
  grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 80px);
}

.profile-strip__label {
  margin: 0 0 16px;
  color: var(--muted-soft);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.profile-strip__name {
  margin: 0;
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  font-weight: 500;
  line-height: 1.2;
}

.profile-strip__role {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
}

.profile-strip__body {
  display: grid;
  gap: 18px;
}

.profile-strip__body p {
  margin: 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.95;
}

.stage.is-hero-transition .scene-copy__block {
  opacity: 0;
  transform: translateY(-16px);
}

.stage.is-hero-transition .scroll-mark {
  opacity: 0;
  transform: translateY(12px);
}

.stage.is-featured-transition .featured-overlay {
  opacity: 1;
  pointer-events: auto;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 720ms ease,
    transform 720ms ease;
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .scene-copy {
    padding-left: 40px;
    padding-top: 84px;
    padding-right: 40px;
  }

  .scene-copy__block {
    width: min(100%, 480px);
    min-height: min(580px, 68vh);
    padding-top: 22px;
  }

  .site-header__inner,
  .portfolio-home__inner {
    width: min(100% - 80px, 1280px);
  }

  .featured-overlay {
    width: min(100% - 80px, 1280px);
    padding-top: 96px;
    padding-bottom: 32px;
  }

  .about-overlay {
    width: min(100% - 80px, 1280px);
    padding-top: 96px;
    padding-bottom: 32px;
  }

  .site-header__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }

  .page-nav__links {
    gap: 18px;
    flex-wrap: nowrap;
  }

  .page-nav__brand,
  .page-nav__links a {
    white-space: nowrap;
  }

  .works-grid,
  .profile-strip {
    grid-template-columns: 1fr;
  }

  .works-grid--overlay {
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .about-overlay__inner {
    grid-template-columns: 1fr;
    align-content: center;
  }

  .about-overlay__title {
    font-size: clamp(2rem, 7vw, 2.6rem);
  }

  .about-overlay__profile {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 16px;
    margin-top: 28px;
  }

  .about-overlay__identity {
    padding-top: 0;
  }

  .about-overlay__name {
    font-size: clamp(0.86rem, 3.4vw, 1.1rem);
    line-height: 1.55;
  }

  .about-overlay__role {
    margin-top: 5px;
    font-size: clamp(0.58rem, 2.3vw, 0.7rem);
  }

  .about-overlay__link {
    margin-top: 8px;
    font-size: clamp(0.68rem, 2.8vw, 0.82rem);
  }

  .about-overlay__content {
    margin-top: 30px;
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .about-overlay__meta {
    font-size: clamp(0.7rem, 2.7vw, 0.8rem);
  }

  .about-overlay__body p {
    max-width: none;
    font-size: clamp(0.7rem, 2.7vw, 0.8rem);
    line-height: 1.9;
  }

  .about-overlay__visual {
    width: clamp(96px, 28vw, 124px);
  }

  .about-overlay__body {
    gap: 16px;
  }

  .about-overlay__skill-list {
    gap: 18px 20px;
  }

  .about-overlay__skill-group h3,
  .about-overlay__skill-group p {
    font-size: clamp(0.62rem, 2.4vw, 0.72rem);
  }

  .other-work-card {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }

  .other-works__list {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .other-work-card__thumb {
    max-width: none;
  }

  .work-card,
  .work-card--featured,
  .other-work-card {
    min-height: 360px;
  }

  .work-card__thumb {
    min-height: 0;
  }
}

/* Yellow / white visual direction: circular FV transition into Works. */
:root {
  --fv-yellow: #edff00;
  --fv-yellow-hover: #d5e600;
  --light-surface: #ffffff;
  --light-text: #242424;
  --light-muted: #5f5f5f;
  --light-line: rgba(36, 36, 36, 0.48);
}

body {
  background: #ffffff;
}

.stage {
  --fv-gutter: clamp(48px, 4.6vw, 118px);
  isolation: isolate;
  background: var(--fv-yellow);
  font-family: var(--sans);
}

.stage::before {
  background: none;
}

.stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 7;
  background: var(--bg);
  opacity: var(--about-backdrop-opacity, 0);
  pointer-events: none;
}

.hero-circle-anchor {
  position: absolute;
  top: 53.5%;
  right: var(--fv-gutter);
  z-index: 2;
  width: clamp(300px, 50vh, 760px);
  aspect-ratio: 1;
  transform: translateY(-50%);
  pointer-events: none;
}

.hero-circle {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--light-surface);
  transform: scale(var(--circle-scale, 1));
  transform-origin: center;
  will-change: transform, opacity;
}

.scene-copy {
  z-index: 3;
  align-items: center;
  padding: 4vh var(--fv-gutter) 0;
}

.scene-copy__block {
  width: min(68vw, 1540px);
  min-height: 0;
  display: block;
  padding: 0;
  border: 0;
  opacity: 1;
  transform: none;
  transition: none;
  will-change: opacity, transform;
}

.scene-copy__block.is-visible {
  opacity: 1;
  transform: none;
}

.terminal-title {
  margin: 0;
  color: #111111;
  font-family: var(--sans);
  font-size: clamp(4.25rem, 5.35vw, 8.5rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.95;
  white-space: nowrap;
}

.terminal-sub {
  margin: clamp(22px, 2.6vh, 38px) 0 0;
  color: #111111;
  font-family: var(--sans);
  font-size: clamp(2rem, 2.35vw, 3.75rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1;
}

.scroll-mark {
  display: none;
}

.site-header {
  padding: 0;
  background: transparent;
  isolation: isolate;
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms ease, color 220ms ease;
}

.site-header::before {
  position: absolute;
  inset: 0 0 -22px;
  z-index: 0;
  content: "";
  background-color: transparent;
  -webkit-backdrop-filter: blur(12px) saturate(1.08);
  backdrop-filter: blur(12px) saturate(1.08);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 calc(100% - 22px), transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 calc(100% - 22px), transparent 100%);
  pointer-events: none;
}

.site-header__inner,
.featured-overlay {
  width: calc(100% - 80px);
  max-width: none;
}

.site-header__inner {
  position: relative;
  z-index: 1;
  padding-top: 28px;
  font-family: var(--sans);
}

.page-nav__brand,
.page-nav__links a {
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  letter-spacing: -0.02em;
}

.site-header.is-on-light .page-nav__brand,
.site-header.is-on-light .page-nav__links a {
  color: var(--light-text);
}

.page-nav__brand {
  font-size: clamp(0.95rem, 1.2vw, 1.25rem);
}

.page-nav__links {
  gap: clamp(22px, 2.8vw, 52px);
}

.page-nav__links a {
  position: relative;
  font-size: clamp(0.95rem, 1.2vw, 1.25rem);
}

.page-nav__links a::before {
  position: absolute;
  top: 50%;
  left: -18px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  content: "";
  opacity: 0;
  transform: translateY(-50%) scale(0.6);
  transition: opacity 180ms ease, transform 180ms ease;
}

.page-nav__links a[href="#featured"]::before {
  background: var(--fv-yellow);
}

.page-nav__links a[href="#about"]::before {
  background: #ffffff;
}

.page-nav__links a.is-active::before {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

/* Dark-mode switch is temporarily paused.
.theme-toggle {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 39px;
  height: 39px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: transform 180ms ease;
}

.theme-toggle:hover {
  transform: rotate(8deg);
}

.theme-toggle:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.theme-toggle__icon {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.theme-toggle__icon--dark {
  display: none;
}

:root[data-theme="dark"] .theme-toggle__icon--light {
  display: none;
}

:root[data-theme="dark"] .theme-toggle__icon--dark {
  display: block;
  filter: invert(1);
}
*/

.featured-overlay {
  z-index: 8;
  padding: 86px 0 40px;
  color: var(--light-text);
  font-family: var(--sans);
  transition: none;
}

.featured-overlay__head {
  margin-bottom: clamp(18px, 2.2vw, 34px);
  transition: none;
}

.featured-overlay__title {
  color: var(--light-text);
  font-family: var(--sans);
  font-size: clamp(2.5rem, 4.25vw, 4.8rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 1;
}

.works-category-label {
  margin-bottom: 16px;
  color: var(--light-muted);
  font-family: var(--sans);
  font-size: clamp(0.88rem, 1.15vw, 1.15rem);
  letter-spacing: -0.02em;
}

.works-grid--overlay .work-card--featured,
.other-work-card {
  min-height: 286px;
  padding: clamp(26px, 2.8vw, 48px);
  border-top-color: var(--light-line);
  color: var(--light-text);
  font-family: var(--sans);
}

.works-grid--overlay .work-card--featured::after,
.other-work-card::after {
  background: var(--light-text);
}

.works-grid--overlay .work-card--featured:last-child,
.other-works__list .other-work-card:last-child {
  border-bottom-color: var(--light-line);
}

.works-grid--overlay .work-card--featured:hover,
.other-work-card:hover {
  border-color: var(--light-text);
  background: #f7f7f7;
}

.works-grid--overlay .work-card__title,
.other-work-card__title {
  color: var(--light-text);
  font-family: var(--sans);
  font-size: clamp(1.7rem, 2.35vw, 2.65rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1.2;
}

.works-grid--overlay .work-card__copy,
.other-work-card__copy {
  color: var(--light-text);
  font-family: var(--sans);
  font-size: clamp(0.78rem, 1vw, 1rem);
  letter-spacing: 0.02em;
  line-height: 1.75;
}

.works-grid--overlay .work-tag,
.other-work-card .work-tag {
  color: var(--light-muted);
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.works-grid--overlay .work-tag::before,
.other-work-card .work-tag::before,
.works-grid--overlay .work-tag::after,
.other-work-card .work-tag::after,
.work-card__related::before {
  content: none;
}

.works-grid--overlay .work-card--featured:hover .work-tag,
.other-work-card:hover .work-tag {
  color: var(--light-text);
}

.work-card__related {
  color: #bfd000;
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: 0.08em;
}

.work-card__related:hover,
.work-card__related:focus-visible {
  color: #879300;
}

.works-grid--overlay .work-card__thumb,
.other-work-card__thumb {
  border: 1px solid var(--light-line);
  border-radius: 16px;
  background: #dddddd;
  box-shadow: none;
}

.works-grid--overlay .work-card__thumb--image,
.other-work-card__thumb--image {
  padding: 0;
  background: #f1f1f1;
  box-shadow: none;
}

.works-grid--overlay .work-card__thumb--image img,
.other-work-card__thumb--image img {
  border-radius: inherit;
}

.about-overlay {
  z-index: 9;
}

@media (max-width: 900px) {
  .hero-circle-anchor {
    top: 52%;
    right: -18vw;
    width: clamp(260px, 36vh, 400px);
  }

  .scene-copy {
    padding: 2vh 24px 0;
  }

  .scene-copy__block {
    width: 90vw;
  }

  .terminal-title {
    font-size: clamp(2.25rem, 6.2vw, 4rem);
    letter-spacing: -0.06em;
  }

  .terminal-sub {
    margin-top: 16px;
    font-size: clamp(1.15rem, 3vw, 2rem);
  }

  .site-header__inner,
  .featured-overlay {
    width: calc(100% - 40px);
  }

  .site-header__inner {
    padding-top: 20px;
  }

  .page-nav__links {
    gap: 16px;
  }

  /* Dark-mode switch is temporarily paused.
  .theme-toggle {
    width: 32px;
    height: 32px;
  }
  */

  .featured-overlay {
    padding-top: 76px;
  }

  .works-grid--overlay .work-card--featured,
  .other-work-card {
    padding: 22px 0;
  }

  .works-grid--overlay .work-card__title,
  .other-work-card__title {
    font-size: clamp(1.05rem, 4.6vw, 1.45rem);
  }
}

@media (max-width: 600px) {
  .terminal-title {
    font-size: clamp(2rem, 8vw, 2.75rem);
  }

  .terminal-sub {
    font-size: clamp(1rem, 4.2vw, 1.35rem);
    line-height: 1.15;
  }

  .page-nav__brand {
    font-size: 0.78rem;
  }

  .page-nav__links a {
    font-size: 0.76rem;
  }

  .page-nav__links {
    gap: 30px;
  }

  .hero-circle-anchor {
    top: 42%;
    right: -18vw;
    width: clamp(220px, 34vh, 300px);
  }

}

@media (max-width: 600px) {
  .about-overlay {
    width: calc(100% - 40px);
    padding-top: 84px;
    padding-bottom: 20px;
  }

  .about-overlay__visual {
    width: clamp(96px, 30vw, 112px);
  }
}

/* Editorial works list experiment, inspired by bokoko33.me. */
.works-grid--overlay,
.other-works__list {
  display: block;
  width: 100%;
  margin-inline: auto;
}

.site-header__inner,
.featured-overlay {
  width: min(1440px, calc(100% - 80px));
}

.works-category-label {
  width: 100%;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.62);
  font-family: var(--mono);
  font-size: clamp(0.82rem, 1.15vw, 1rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.4;
  text-transform: lowercase;
}

.works-grid--overlay .work-card--featured,
.other-work-card {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto auto;
  column-gap: clamp(18px, 2.4vw, 34px);
  row-gap: 18px;
  width: 100%;
  min-height: 286px;
  aspect-ratio: auto;
  padding: 28px;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.works-grid--overlay .work-card--featured::after,
.other-work-card::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.34);
  opacity: 0;
  transition: opacity 260ms ease;
}

.works-grid--overlay .work-card--featured:last-child,
.other-works__list .other-work-card:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.works-grid--overlay .work-card--featured:hover,
.other-work-card:hover {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: none;
}

.works-grid--overlay .work-card--featured:hover::after,
.other-work-card:hover::after {
  opacity: 1;
}

.other-work-card:hover {
  transform: none;
}

.works-grid--overlay .work-card__body,
.other-work-card__body {
  display: contents;
}

.works-grid--overlay .work-card__title,
.other-work-card__title {
  grid-column: 1 / 4;
  grid-row: 1 / 3;
  align-self: start;
  padding: 2px 12px 0 0;
  font-size: clamp(1.05rem, 1.45vw, 1.3rem);
  line-height: 1.35;
}

.works-grid--overlay .work-card__copy,
.other-work-card__copy {
  grid-column: 4 / 9;
  grid-row: 1;
  align-self: start;
  margin: 0;
  padding-top: 2px;
  font-size: clamp(0.76rem, 1vw, 0.88rem);
  line-height: 1.8;
}

.work-card__related {
  display: flex;
  width: fit-content;
  margin-top: 14px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.45;
  letter-spacing: 0.03em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 220ms ease, transform 220ms ease;
}

.work-card__related-list {
  display: grid;
  justify-items: start;
  gap: 5px;
  margin-top: 10px;
}

.work-card__related-list .work-card__related {
  margin-top: 0;
}

.work-card__related::before {
  content: "> ";
}

.work-card__related:hover,
.work-card__related:focus-visible {
  color: var(--accent-hover);
  transform: translateX(4px);
}

.work-card__related:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 5px;
}

.works-grid--overlay .work-card__tags,
.other-work-card .work-card__tags {
  grid-column: 4 / 9;
  grid-row: 2;
  align-self: end;
  gap: 14px;
  margin-top: 0;
}

.works-grid--overlay .work-tag,
.other-work-card .work-tag {
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.62);
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.4;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: color 260ms ease;
}

.works-grid--overlay .work-tag::before,
.other-work-card .work-tag::before {
  content: "[ ";
}

.works-grid--overlay .work-tag::after,
.other-work-card .work-tag::after {
  content: " ]";
}

.works-grid--overlay .work-card--featured:hover .work-tag,
.other-work-card:hover .work-tag {
  color: rgba(255, 255, 255, 0.96);
}

.works-grid--overlay .work-card__thumb,
.other-work-card__thumb {
  grid-column: 9 / 13;
  grid-row: 1 / 3;
  align-self: stretch;
  width: 100%;
  min-height: 0;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
}

.works-grid--overlay .work-card__thumb--image,
.other-work-card__thumb--image {
  align-self: start;
  aspect-ratio: auto;
}

.works-grid--overlay .work-card__thumb--image img,
.other-work-card__thumb--image img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.other-works {
  width: 100%;
  margin-top: clamp(64px, 8vw, 112px);
}

@media (max-width: 900px) {
  .site-header__inner,
  .featured-overlay {
    width: calc(100% - 40px);
  }

  .works-category-label {
    margin-bottom: 14px;
    font-size: 0.78rem;
  }

  .works-grid--overlay .work-card--featured,
  .other-work-card {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: auto auto auto;
    column-gap: 14px;
    row-gap: 18px;
    min-height: 0;
    padding: 20px;
  }

  .works-grid--overlay .work-card__title,
  .other-work-card__title {
    grid-column: 1 / 5;
    grid-row: 1 / 3;
    padding-right: 4px;
    font-size: clamp(0.94rem, 3.6vw, 1.1rem);
  }

  .works-grid--overlay .work-card__copy,
  .other-work-card__copy {
    grid-column: 5 / 13;
    grid-row: 1;
    font-size: clamp(0.72rem, 2.8vw, 0.82rem);
    line-height: 1.75;
  }

  .works-grid--overlay .work-card__tags,
  .other-work-card .work-card__tags {
    grid-column: 5 / 13;
    grid-row: 2;
    align-self: start;
  }

  .works-grid--overlay .work-card__thumb,
  .other-work-card__thumb {
    grid-column: 1 / 13;
    grid-row: 3;
    margin-top: 4px;
  }

}

/* Keep the new light Works treatment above the legacy editorial cascade. */
.works-category-label {
  color: var(--light-muted);
  font-family: var(--sans);
  letter-spacing: -0.02em;
}

.works-grid--overlay .work-card--featured,
.other-work-card {
  padding: clamp(26px, 2.8vw, 48px);
  border-top-color: var(--light-line);
  color: var(--light-text);
  font-family: var(--sans);
}

.works-grid--overlay .work-card--featured::after,
.other-work-card::after {
  background: var(--light-text);
}

.works-grid--overlay .work-card--featured:last-child,
.other-works__list .other-work-card:last-child {
  border-bottom-color: var(--light-line);
}

.works-grid--overlay .work-card--featured:hover,
.other-work-card:hover {
  border-color: var(--light-text);
  background: transparent;
}

.works-grid--overlay .work-card__title,
.other-work-card__title {
  color: var(--light-text);
  font-family: var(--sans);
  font-size: clamp(1.7rem, 2.35vw, 2.65rem);
  font-weight: 400;
  letter-spacing: -0.045em;
}

.works-grid--overlay .work-card__copy,
.other-work-card__copy {
  color: var(--light-text);
  font-family: var(--sans);
  font-size: clamp(0.78rem, 1vw, 1rem);
  letter-spacing: 0.02em;
}

.works-grid--overlay .work-tag,
.other-work-card .work-tag {
  color: var(--light-muted);
  font-family: var(--sans);
}

.works-grid--overlay .work-tag::before,
.other-work-card .work-tag::before,
.works-grid--overlay .work-tag::after,
.other-work-card .work-tag::after,
.work-card__related::before {
  content: none;
}

.work-card__related {
  display: flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 5px 9px 6px;
  background: var(--fv-yellow);
  color: var(--light-text);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: background-color 180ms ease;
}

.work-card__related:hover,
.work-card__related:focus-visible {
  background: var(--fv-yellow-hover);
  color: var(--light-text);
  transform: none;
}

.work-card__related:focus-visible {
  outline: 2px solid var(--light-text);
  outline-offset: 3px;
}

/* Keep the Works hover response subtle and preserve tag colors. */
.works-grid--overlay .work-card--featured:hover,
.other-work-card:hover {
  background: #f7f7f7;
}

.works-grid--overlay .work-card--featured:hover .work-tag,
.other-work-card:hover .work-tag {
  color: var(--light-muted);
}

.works-grid--overlay .work-card__thumb,
.other-work-card__thumb {
  border-radius: 16px;
  background: #dddddd;
  box-shadow: none;
}

.works-grid--overlay .work-card__thumb--image,
.other-work-card__thumb--image {
  padding: 0;
  background: #f1f1f1;
  box-shadow: none;
}

.works-grid--overlay .work-card__thumb--image img,
.other-work-card__thumb--image img {
  border-radius: inherit;
}

@media (max-width: 900px) {
  .works-grid--overlay .work-card--featured,
  .other-work-card {
    padding: 22px 0;
  }

  .works-grid--overlay .work-card__title,
  .other-work-card__title {
    font-size: clamp(1.05rem, 4.6vw, 1.45rem);
  }
}

/* Yellow About scene. The scroll timing remains controlled by app.js. */
.stage::after {
  background: var(--fv-yellow);
}

.about-overlay {
  inset: 0;
  z-index: 9;
  width: 100%;
  height: 100%;
  padding: 86px max(40px, calc((100vw - 1440px) / 2)) clamp(36px, 5vh, 64px);
  color: var(--light-text);
  font-family: var(--sans);
  transform: none;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: auto;
}

.about-overlay ::selection {
  color: var(--light-text);
  background: #ffffff;
}

.about-overlay ::-moz-selection {
  color: var(--light-text);
  background: #ffffff;
}

.about-overlay__inner {
  display: block;
  width: 100%;
  max-width: none;
}

.about-overlay__title {
  margin: 0;
  color: var(--light-text);
  font-family: var(--sans);
  font-size: clamp(3rem, 4.15vw, 5rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 1;
}

.about-overlay__profile {
  display: grid;
  grid-template-columns: minmax(360px, 32vw) minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  column-gap: clamp(28px, 2.5vw, 64px);
  row-gap: 0;
  align-items: start;
  margin-top: clamp(34px, 5vh, 66px);
}

.about-overlay__visual {
  grid-column: 1;
  grid-row: 1 / 3;
  justify-self: center;
  width: clamp(320px, 46vh, 680px);
  max-width: 100%;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #ffffff;
}

.about-overlay__visual img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
}

.about-overlay__identity {
  grid-column: 2;
  grid-row: 1;
  padding-top: 0;
}

.about-overlay__name {
  margin: 0;
  color: var(--light-text);
  font-family: var(--sans);
  font-size: clamp(2rem, 2.85vw, 3.75rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1.25;
}

.about-overlay__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin-top: 10px;
  padding: 5px 9px 6px;
  background: #ffffff;
  color: var(--light-text);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0;
  text-decoration: none;
  transition: background-color 180ms ease;
}

.about-overlay__link::before {
  content: none;
}

.about-overlay__link:hover,
.about-overlay__link:focus-visible {
  background: #ffffff;
  color: var(--light-text);
  transform: none;
  opacity: 1;
}

.about-overlay__link:focus-visible {
  outline: 2px solid var(--light-text);
  outline-offset: 3px;
}

.about-overlay__content {
  grid-column: 2;
  grid-row: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(40px, 5.5vh, 60px);
  margin-top: clamp(24px, 3.8vh, 48px);
}

.about-overlay__section-label {
  margin: 0 0 10px;
  color: var(--light-text);
  font-family: var(--sans);
  font-size: 0.72rem;
  line-height: 1.4;
  letter-spacing: 0.08em;
}

.about-overlay__meta {
  margin: 0;
  color: var(--light-text);
  font-family: var(--sans);
  font-size: clamp(0.8rem, 1.05vw, 1.15rem);
  line-height: 1.8;
  letter-spacing: 0.08em;
}

.about-overlay__body {
  display: grid;
  gap: clamp(20px, 2.8vh, 34px);
  margin-top: clamp(24px, 3.5vh, 42px);
}

.about-overlay__body p {
  margin: 0;
  max-width: 78ch;
  color: var(--light-text);
  font-family: var(--sans);
  font-size: clamp(0.78rem, 1.04vw, 1.12rem);
  line-height: 1.85;
  letter-spacing: 0.06em;
}

.about-overlay__skills {
  min-width: 0;
}

.about-overlay__skill-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.about-overlay__skill-group h3 {
  margin: 0 0 5px;
  color: var(--light-text);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.04em;
}

.about-overlay__skill-group p {
  margin: 0;
  color: var(--light-text);
  font-family: var(--sans);
  font-size: 0.68rem;
  line-height: 1.55;
  letter-spacing: 0.025em;
}

@media (max-width: 900px) {
  .about-overlay {
    width: 100%;
    padding: 76px 20px 28px;
  }

  .about-overlay__title {
    font-size: clamp(2.5rem, 7vw, 3.6rem);
  }

  .about-overlay__profile {
    grid-template-columns: minmax(230px, 34vw) minmax(0, 1fr);
    column-gap: 24px;
    margin-top: 32px;
  }

  .about-overlay__visual {
    width: min(34vw, 290px);
  }

  .about-overlay__identity {
    padding-top: 0;
  }

  .about-overlay__name {
    font-size: clamp(1.35rem, 3.6vw, 2rem);
  }

  .about-overlay__content {
    gap: 36px;
    margin-top: 28px;
  }

  .about-overlay__body {
    gap: 18px;
    margin-top: 22px;
  }

  .about-overlay__body p {
    font-size: clamp(0.7rem, 1.65vw, 0.84rem);
    line-height: 1.78;
  }
}

@media (max-width: 600px) {
  .about-overlay {
    width: 100%;
    padding: 76px 20px 20px;
  }

  .about-overlay__title {
    font-size: clamp(2.15rem, 10vw, 2.65rem);
  }

  .about-overlay__profile {
    grid-template-columns: 104px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 18px;
    margin-top: 24px;
  }

  .about-overlay__visual {
    grid-column: 1;
    grid-row: 1;
    width: 104px;
  }

  .about-overlay__identity {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    padding-top: 0;
  }

  .about-overlay__name {
    font-size: clamp(1rem, 4.8vw, 1.25rem);
    line-height: 1.4;
  }

  .about-overlay__content {
    grid-column: 1 / -1;
    grid-row: 2;
    gap: 32px;
    margin-top: 22px;
  }

  .about-overlay__link {
    margin-top: 5px;
    padding: 5px 9px 6px;
    font-size: 0.72rem;
  }

  .about-overlay__meta {
    font-size: 0.7rem;
  }

  .about-overlay__body {
    gap: 13px;
    margin-top: 16px;
  }

  .about-overlay__body p {
    max-width: none;
    font-size: clamp(0.66rem, 2.85vw, 0.76rem);
    line-height: 1.72;
    letter-spacing: 0.035em;
  }

  .about-overlay__skill-list {
    gap: 8px;
  }

  .about-overlay__skill-group h3 {
    font-size: 0.66rem;
  }

  .about-overlay__skill-group p {
    font-size: 0.62rem;
    line-height: 1.5;
  }
}

/* Theme switch foundation. Fine color tuning can build on these tokens. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --dm-primary-surface: #465000;
  --dm-primary-surface-soft: #566200;
  --dm-primary-accent: #687700;
  --dm-primary-accent-hover: #798900;
  --dm-primary-content: #f4f5e8;
  --dm-primary-muted: #aeb59a;
  --dm-neutral-surface: #0d0d0d;
  --dm-text: #f4f5e8;
  --light-surface: var(--dm-neutral-surface);
  --light-text: var(--dm-text);
  --light-muted: #a9a9a4;
  --light-line: rgba(255, 255, 255, 0.3);
}

:root[data-theme="dark"] body {
  background: #101010;
  color: var(--light-text);
}

:root[data-theme="dark"] .stage {
  background: var(--dm-primary-surface);
}

:root[data-theme="dark"] .stage::after {
  background: var(--dm-primary-surface);
}

:root[data-theme="dark"] .hero-circle {
  background: var(--dm-neutral-surface);
}

:root[data-theme="dark"] .terminal-title,
:root[data-theme="dark"] .terminal-sub {
  color: var(--dm-primary-content);
}

:root[data-theme="dark"] .site-header.is-on-dark-primary .page-nav__brand,
:root[data-theme="dark"] .site-header.is-on-dark-primary .page-nav__links a {
  color: var(--dm-primary-content);
}

:root[data-theme="dark"] .site-header.is-on-dark-primary .theme-toggle__icon--dark {
  filter: invert(1);
}

:root[data-theme="dark"] .page-nav__links a[href="#featured"]::before {
  background: var(--dm-primary-accent);
}

:root[data-theme="dark"] .works-grid--overlay .work-card--featured:hover,
:root[data-theme="dark"] .other-work-card:hover {
  background: #232323;
}

:root[data-theme="dark"] .works-grid--overlay .work-card__thumb,
:root[data-theme="dark"] .other-work-card__thumb {
  background: #2d2d2d;
}

:root[data-theme="dark"] .works-grid--overlay .work-card__thumb--image,
:root[data-theme="dark"] .other-work-card__thumb--image {
  background: #202020;
}

:root[data-theme="dark"] .work-card__related,
:root[data-theme="dark"] .work-card__related:hover,
:root[data-theme="dark"] .work-card__related:focus-visible {
  background: var(--dm-primary-accent);
  color: var(--dm-primary-content);
}

:root[data-theme="dark"] .work-card__related:hover,
:root[data-theme="dark"] .work-card__related:focus-visible {
  background: var(--dm-primary-accent-hover);
}

:root[data-theme="dark"] .about-overlay,
:root[data-theme="dark"] .about-overlay__title,
:root[data-theme="dark"] .about-overlay__name,
:root[data-theme="dark"] .about-overlay__meta,
:root[data-theme="dark"] .about-overlay__body p,
:root[data-theme="dark"] .about-overlay__section-label {
  color: var(--dm-primary-content);
}

:root[data-theme="dark"] .about-overlay__skill-group h3,
:root[data-theme="dark"] .about-overlay__skill-group p {
  color: var(--dm-primary-content);
}

:root[data-theme="dark"] .about-overlay__link,
:root[data-theme="dark"] .about-overlay__link:hover,
:root[data-theme="dark"] .about-overlay__link:focus-visible {
  color: #242424;
}

:root[data-theme="dark"] .about-overlay ::selection {
  color: #242424;
  background: #ffffff;
}

:root[data-theme="dark"] .about-overlay ::-moz-selection {
  color: #242424;
  background: #ffffff;
}
