:root,
[data-theme="light"] {
  color-scheme: light;
  --ink: #182126;
  --paper: #f3f7f7;
  --line: rgba(24, 33, 38, 0.18);
  --muted: #637076;
  --surface: rgba(244, 248, 248, 0.9);
  --image-surface: #e4e9e7;
}
html {
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--accent) 62%, var(--paper))
    var(--paper);
}
html::-webkit-scrollbar {
  width: 10px;
}
html::-webkit-scrollbar-track {
  background: var(--paper);
}
html::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--accent) 62%, var(--paper));
  border: 3px solid var(--paper);
  border-radius: 0;
}
html::-webkit-scrollbar-thumb:hover {
  background: color-mix(in srgb, var(--accent) 86%, var(--paper));
}
html::-webkit-scrollbar-corner {
  background: var(--paper);
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] {
    color-scheme: dark;
    --ink: #edf5f3;
    --paper: #101719;
    --line: rgba(229, 244, 241, 0.18);
    --muted: #a1b1b0;
    --surface: rgba(16, 23, 25, 0.88);
    --image-surface: #1b292b;
  }
}
[data-theme="dark"] {
  color-scheme: dark;
  --ink: #edf5f3;
  --paper: #101719;
  --line: rgba(229, 244, 241, 0.18);
  --muted: #a1b1b0;
  --surface: rgba(16, 23, 25, 0.88);
  --image-surface: #1b292b;
}
body {
  background:
    radial-gradient(
      68rem 46rem at -12% 24%,
      rgba(102, 217, 210, 0.12),
      transparent 62%
    ),
    radial-gradient(
      58rem 44rem at 112% 63%,
      rgba(218, 166, 220, 0.1),
      transparent 61%
    ),
    var(--paper);
}
.site-header {
  background: var(--surface);
}
.thumb,
.detail-image {
  background: var(--image-surface);
}
.artist-intro {
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0.05),
    rgba(79, 165, 160, 0.1),
    rgba(255, 255, 255, 0.04)
  );
}
.notes p {
  color: var(--ink);
}
.theme-toggle {
  border: 0;
  border-left: 1px solid var(--line);
  background: transparent;
  color: inherit;
  padding: 2px 0 2px 20px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  cursor: pointer;
}
.theme-toggle:hover {
  color: var(--aqua);
}
.artist-portrait {
  width: min(190px, 45vw);
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
  box-shadow: 0 18px 42px rgba(16, 47, 52, 0.15);
}
.artist-copy {
  display: flex;
  align-items: flex-start;
  gap: clamp(24px, 4vw, 55px);
}
@media (max-width: 760px) {
  .theme-toggle {
    padding-left: 12px;
    font-size: 8px;
  }
  .artist-copy {
    display: block;
  }
  .artist-portrait {
    margin-bottom: 28px;
    width: 145px;
  }
}

@media (min-width: 761px) {
  .artist-portrait {
    width: min(135px, 35vw);
  }
  .artist-copy {
    gap: clamp(22px, 2.5vw, 32px);
  }
}

/* The homepage header stays above the cover and becomes glass on scroll. */
:root {
  --paper: #f2f9f8;
  --surface: rgba(242, 249, 248, 0.92);
  --ambient-mint: rgba(100, 220, 208, 0.14);
  --ambient-pink: rgba(219, 167, 211, 0.08);
  --edge-glow: none;
  --hero-overlay:
    linear-gradient(
      120deg,
      rgba(53, 204, 196, 0.08),
      rgba(204, 112, 166, 0.045)
    ),
    linear-gradient(rgba(7, 25, 34, 0.045), rgba(7, 25, 34, 0.1));
}
[data-theme="dark"] {
  --paper: #0b141c;
  --surface: rgba(11, 20, 28, 0.92);
  --image-surface: #13212b;
  --ambient-mint: rgba(57, 187, 181, 0.12);
  --ambient-pink: rgba(126, 108, 174, 0.08);
  --edge-glow: 0 1px 14px rgba(103, 215, 210, 0.09);
  --hero-overlay:
    linear-gradient(120deg, rgba(15, 112, 116, 0.17), rgba(82, 38, 91, 0.14)),
    linear-gradient(rgba(3, 10, 18, 0.16), rgba(3, 10, 18, 0.28));
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] {
    --paper: #0b141c;
    --surface: rgba(11, 20, 28, 0.92);
    --image-surface: #13212b;
    --ambient-mint: rgba(57, 187, 181, 0.12);
    --ambient-pink: rgba(126, 108, 174, 0.08);
    --edge-glow: 0 1px 14px rgba(103, 215, 210, 0.09);
    --hero-overlay:
      linear-gradient(120deg, rgba(15, 112, 116, 0.17), rgba(82, 38, 91, 0.14)),
      linear-gradient(rgba(3, 10, 18, 0.16), rgba(3, 10, 18, 0.28));
  }
}
body {
  background:
    radial-gradient(
      68rem 46rem at -12% 24%,
      var(--ambient-mint),
      transparent 62%
    ),
    radial-gradient(
      58rem 44rem at 112% 63%,
      var(--ambient-pink),
      transparent 61%
    ),
    var(--paper);
  background-attachment: fixed;
}
html.home-intro-pending,
html.home-intro-pending body {
  overflow: hidden;
}
:root {
  --home-intro-duration: 0.9s;
}
.home-intro-pending .site-header--overlay,
.home-intro-pending .glass-panel {
  pointer-events: none;
}
.home-intro-pending .site-header--overlay {
  transition:
    opacity var(--home-intro-duration) ease,
    transform var(--home-intro-duration) cubic-bezier(0.2, 0.75, 0.22, 1);
}
.home-intro-pending .glass-panel {
  transition:
    opacity var(--home-intro-duration) ease,
    transform var(--home-intro-duration) cubic-bezier(0.2, 0.75, 0.22, 1),
    filter var(--home-intro-duration) ease;
}
.home-intro-pending:not(.home-intro-revealing) .site-header--overlay {
  opacity: 0;
  transform: translateY(-24px);
}
.home-intro-pending:not(.home-intro-revealing) .glass-panel {
  opacity: 0;
  transform: translateX(58px) scale(0.98);
  filter: blur(8px);
}
.home-intro-pending.home-intro-revealing .site-header--overlay,
.home-intro-pending.home-intro-revealing .glass-panel {
  opacity: 1;
  transform: none;
  filter: none;
}
.site-header {
  transition:
    opacity 0.3s ease,
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}
.site-header,
.detail-image,
.variant button[aria-pressed="true"] {
  box-shadow: var(--edge-glow);
}
.footer {
  align-items: center;
  gap: 20px;
}
.footer-signoff {
  display: flex;
  align-items: center;
  gap: 20px;
}
.miku-signature {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding-left: 16px;
  border-left: 1px solid var(--line);
  color: var(--accent);
}
.miku-signature b {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.06em;
}
.miku-signature small {
  font-size: 8px;
  letter-spacing: 0.12em;
  color: var(--muted);
}
@media (max-width: 760px) {
  .footer .footer-signoff,
  .footer .miku-signature {
    display: inline-flex;
  }
}

/* Miku-inspired accents: mint controls, pink terminals, quiet musical ticks. */
:root {
  --accent: #087b78;
  --accent-fill: #087b78;
  --accent-on: #fff;
  --pink: #c94f88;
}
[data-theme="dark"] {
  --accent: #67d7d2;
  --accent-fill: #67d7d2;
  --accent-on: #102627;
  --pink: #ed91b9;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] {
    --accent: #67d7d2;
    --accent-fill: #67d7d2;
    --accent-on: #102627;
    --pink: #ed91b9;
  }
}
.navlinks a {
  position: relative;
}
.navlinks a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -9px;
  height: 2px;
  background: var(--accent);
}
.navlinks a:hover,
.text-link,
.theme-toggle:hover,
.contact-list a:hover,
.work-card:hover h3 {
  color: var(--accent);
}
.variant button[aria-pressed="true"] {
  background: var(--accent-fill);
  border-color: var(--accent-fill);
  color: var(--accent-on);
}
.variant button {
  min-width: 44px;
  min-height: 44px;
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  flex: 0 0 29px;
  height: 12px;
  background-image:
    linear-gradient(var(--accent), var(--accent)),
    linear-gradient(var(--accent), var(--accent)),
    linear-gradient(var(--accent), var(--accent)),
    linear-gradient(var(--accent), var(--accent)),
    linear-gradient(var(--pink), var(--pink));
  background-position:
    0 50%,
    6px 50%,
    12px 50%,
    18px 50%,
    25px 50%;
  background-repeat: no-repeat;
  background-size:
    2px 4px,
    2px 9px,
    2px 12px,
    2px 7px,
    2px 4px;
  animation: miku-wave 1.8s ease-in-out infinite;
}
@keyframes miku-wave {
  0%,
  100% {
    background-size:
      2px 4px,
      2px 9px,
      2px 12px,
      2px 7px,
      2px 4px;
  }
  25% {
    background-size:
      2px 9px,
      2px 5px,
      2px 8px,
      2px 12px,
      2px 6px;
  }
  50% {
    background-size:
      2px 12px,
      2px 7px,
      2px 4px,
      2px 8px,
      2px 11px;
  }
  75% {
    background-size:
      2px 6px,
      2px 12px,
      2px 9px,
      2px 4px,
      2px 8px;
  }
}
.reveal-title {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(3px);
  transition:
    opacity 0.72s ease,
    transform 0.72s cubic-bezier(0.2, 0.75, 0.25, 1),
    filter 0.62s ease;
  will-change: opacity, transform, filter;
}
.reveal-title.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}
.page-intro {
  position: relative;
}
.page-intro::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 65px;
  height: 2px;
  background: linear-gradient(
    to right,
    var(--accent) 0 50px,
    transparent 50px 60px,
    var(--pink) 60px
  );
}
.glass-panel {
  border-top: 2px solid rgba(103, 215, 210, 0.7);
}
.site-header--overlay:not(.is-scrolled) {
  --accent: #8beae4;
  --pink: #f3a6ca;
}
.artist-portrait {
  outline: 1px solid var(--accent);
  outline-offset: 5px;
}

.site-header {
  background: color-mix(in srgb, var(--paper) 74%, transparent);
}
.site-header--overlay {
  position: fixed;
  inset: 0 0 auto;
  background: transparent;
  color: #fff;
  border-bottom: 1px solid transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}
.site-header--overlay .theme-toggle {
  border-left-color: rgba(255, 255, 255, 0.3);
}
.site-header--overlay.is-scrolled {
  background: var(--surface);
  background: color-mix(in srgb, var(--paper) 74%, transparent);
  color: var(--ink);
  border-bottom-color: var(--line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.site-header--overlay.is-scrolled .theme-toggle {
  border-left-color: var(--line);
}

/* Short, interaction-led motion: nothing loops or delays reading. */
/* Keep the cover's left-hand portrait clear of the introduction. */
.hero-background {
  filter: none;
}
.hero-shade {
  background: var(--hero-overlay);
}
.hero-layout {
  justify-content: flex-end;
  width: min(1220px, calc(100% - 36px));
  margin-right: 0;
}
.glass-panel {
  width: min(540px, 100%);
  padding: clamp(28px, 3.5vw, 48px);
  color: var(--ink);
  background: var(--surface);
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--paper) 78%, transparent),
    color-mix(in srgb, var(--paper) 62%, transparent)
  );
  border: 0;
  border-top: 2px solid var(--accent);
  border-radius: 0;
  box-shadow:
    0 20px 60px rgba(5, 20, 28, 0.18),
    inset 0 1px color-mix(in srgb, var(--accent) 12%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.glass-panel .eyebrow {
  color: var(--muted);
}
.glass-panel .hero-footer {
  border-top-color: var(--line);
}
.glass-panel .hero-footer a {
  color: var(--accent-on);
  background: var(--accent-fill);
  border-color: var(--accent-fill);
  box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 18%, transparent);
}
.glass-panel .hero-footer a:hover,
.glass-panel .hero-footer a:focus-visible {
  color: var(--accent-on);
  border-color: var(--accent);
  background-color: var(--accent-fill);
  box-shadow: 0 10px 28px color-mix(in srgb, var(--accent) 28%, transparent);
}
.glass-panel h1 {
  font-size: clamp(64px, 7vw, 104px);
}
.glass-panel .hero-footer {
  margin-top: 40px;
}
@media (max-width: 760px) {
  .hero-layout {
    justify-content: flex-end;
    width: calc(100% - 17px);
    margin-right: 0;
  }
  .glass-panel {
    width: min(380px, 100%);
    padding: 26px;
  }
  .glass-panel h1 {
    font-size: 64px;
  }
  .glass-panel .hero-footer {
    margin-top: 28px;
  }
}

.variant-stage {
  position: relative;
}
.variant-stage > img {
  transition: none;
}
.variant-stage > .variant-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.contact-list a {
  padding: 20px 24px;
  gap: 20px;
  overflow-wrap: anywhere;
}
.contact-list a > span {
  flex-shrink: 0;
}
@media (max-width: 760px) {
  .contact-list a {
    padding: 18px 16px;
    gap: 12px;
  }
}

.text-link,
.contact-list a,
.hero-footer a,
.work-card,
.variant button,
.theme-toggle,
.artist-portrait {
  transition:
    transform 0.2s ease,
    color 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease;
}
.text-link > span,
.contact-list a > span,
.hero-footer a > span {
  display: inline-block;
}
.text-link,
.hero-footer a {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 0;
  text-decoration: none;
  line-height: 1.4;
}
.text-link > span,
.hero-footer a > span {
  line-height: 1;
}
.hero-footer {
  gap: 16px;
  flex-wrap: wrap;
}
.hero-footer a {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}
.text-link:focus-visible {
  background-color: color-mix(in srgb, var(--accent) 8%, transparent);
  border-color: var(--accent);
}
.navlinks a::before {
  content: "";
  position: absolute;
  inset: auto 0 -9px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.navlinks a:focus-visible::before {
  transform: scaleX(1);
}
.variant button:active,
.theme-toggle:active {
  transform: scale(0.95);
}
@media (hover: hover) and (pointer: fine) {
  .navlinks a:hover::before {
    transform: scaleX(1);
  }
  .text-link:hover {
    background-color: color-mix(in srgb, var(--accent) 8%, transparent);
    border-color: var(--accent);
  }
  .hero-footer a:hover {
    background-color: rgba(255, 255, 255, 0.12);
    border-color: #fff;
  }
  .contact-list a:hover {
    background-color: color-mix(in srgb, var(--accent) 5%, transparent);
  }
  .work-card:hover {
    transform: translateY(-3px);
  }
  .work-card:hover img {
    transform: none;
  }
  .home-page .work-card:hover {
    transform: none;
  }
  .home-page .work-card .thumb img {
    transform: scale(1);
    transform-origin: center;
    transition:
      transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1),
      filter 0.4s ease;
  }
  .home-page .work-card:hover .thumb img,
  .home-page .work-card:focus-visible .thumb img {
    transform: scale(1.045);
    filter: saturate(1.04);
  }
  .artist-portrait:hover {
    transform: none;
  }
  .variant button:hover {
    border-color: var(--accent);
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
  .work-card:hover,
  .work-card:hover img,
  .artist-portrait:hover,
  .variant button:active,
  .theme-toggle:active,
  .text-link > span,
  .contact-list a > span,
  .hero-footer a > span {
    transform: none !important;
  }
  .reveal-title {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}
