:root {
  color-scheme: dark;
  --bg: #050505;
  --surface: #151515;
  --surface-raised: #202020;
  --text: #f5f5f5;
  --muted: #a7a7a7;
  --line: #3a3a3a;
  --inverse: #050505;
  --inverse-text: #fff;
  --pink: #ff2d8d;
  --blue: #087cfa;
  --orange: #ff8a00;
  --green: #21d789;
  --shadow: 8px 8px 0 rgba(0, 0, 0, 0.28);
  --max-width: 1320px;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f7f7;
  --surface: #fff;
  --surface-raised: #ededed;
  --text: #111;
  --muted: #606060;
  --line: #c9c9c9;
  --inverse: #050505;
  --inverse-text: #fff;
  --shadow: 8px 8px 0 rgba(0, 0, 0, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Helvetica Neue", Arial, "Noto Sans SC", "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  transition: background-color 180ms ease, color 180ms ease;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

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

.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 1000;
  padding: 12px 16px;
  background: var(--text);
  color: var(--bg);
}

.skip-link:focus {
  top: 12px;
}

.floating-controls {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 5px;
  border: 1px solid color-mix(in srgb, var(--text) 42%, transparent);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(16px);
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
}

.floating-controls.is-over-image {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(10, 10, 10, 0.1);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
  color: #fff;
  backdrop-filter: blur(9px) saturate(0.72);
}

.floating-controls.is-over-image .language-switcher button {
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.82);
}

.floating-controls.is-over-image .language-switcher button[aria-pressed="true"] {
  background: rgba(255, 255, 255, 0.78);
  color: #111;
}

.floating-controls.is-over-image .theme-toggle {
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.language-switcher {
  display: flex;
  border: 0;
  background: transparent;
}

.language-switcher button {
  min-width: 38px;
  height: 36px;
  padding: 0 9px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
}

.language-switcher button:last-child {
  border-right: 0;
}

.language-switcher button[aria-pressed="true"] {
  background: var(--text);
  color: var(--bg);
}

.theme-toggle {
  display: grid;
  width: 40px;
  height: 36px;
  padding: 0;
  place-items: center;
  border: 0;
  border-left: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.theme-toggle svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.moon-icon {
  display: none;
}

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

:root[data-theme="light"] .moon-icon {
  display: block;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(420px, 0.65fr);
  min-height: 100vh;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  position: relative;
  z-index: 2;
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  padding: 96px max(32px, calc((100vw - var(--max-width)) / 2));
  padding-right: 40px;
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(72px, 8.7vw, 148px);
  font-weight: 900;
  letter-spacing: -0.075em;
  line-height: 0.83;
}

.hero-summary {
  max-width: 590px;
  margin: 40px 0 24px;
  font-size: clamp(18px, 1.6vw, 24px);
  font-weight: 500;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 38px;
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
}

.status-dot {
  width: 8px;
  height: 8px;
  margin-right: 2px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 18%, transparent);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-width: 190px;
  padding: 15px 18px;
  border: 2px solid var(--text);
  font-size: 14px;
  font-weight: 800;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.button:hover,
.button:focus-visible {
  box-shadow: var(--shadow);
  transform: translate(-3px, -3px);
}

.button-primary {
  background: var(--text);
  color: var(--bg);
}

.button-secondary {
  background: transparent;
  color: var(--text);
}

.hero-art {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  min-height: 100%;
  overflow: hidden;
  background: #202020 url("assets/images/main.jpg") center center / cover no-repeat;
  animation: hero-image-enter 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.section {
  position: relative;
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  column-gap: 42px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 120px 24px;
  border-bottom: 1px solid var(--line);
}

.section-index {
  grid-row: 1 / span 2;
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 14px;
}

.section-heading {
  margin-bottom: 54px;
}

.section-heading h2,
.contact-panel h2 {
  margin: 0;
  font-size: clamp(52px, 6.2vw, 92px);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.heading-wide {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
}

.heading-wide .eyebrow {
  grid-column: 1 / -1;
}

.heading-wide p:last-child {
  max-width: 330px;
  margin: 0;
  color: var(--muted);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 64px;
}

.frame-image {
  position: relative;
  min-height: 510px;
  border: 1px solid var(--line);
  background: var(--surface-raised);
  box-shadow: var(--shadow);
}

.frame-image::before {
  position: absolute;
  top: -12px;
  left: -12px;
  z-index: -1;
  width: 42%;
  height: 42%;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  content: "";
}

.frame-image img {
  width: 100%;
  height: 100%;
  min-height: 510px;
  object-fit: cover;
}

.about-copy {
  align-self: center;
}

.lead {
  margin: 0 0 42px;
  font-size: clamp(22px, 2.2vw, 34px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.3;
}

.fact-list {
  margin-bottom: 36px;
  border-top: 1px solid var(--line);
}

.fact-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.fact-row span {
  color: var(--muted);
  font-size: 13px;
}

.fact-row strong {
  font-size: 15px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid currentColor;
  font-size: 14px;
  font-weight: 750;
}

.photo-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 24px;
}

.photo-card {
  margin: 0;
  border: 1px solid var(--line);
  background: var(--surface);
}

.photo-card-large {
  grid-row: span 2;
}

.photo-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.04);
  transition: filter 200ms ease;
}

.photo-card-large img {
  height: calc(600px + 74px);
}

.photo-card:hover img {
  filter: saturate(1) contrast(1.02);
}

.photo-card figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
}

.photo-card figcaption span:last-child {
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, monospace;
}

.music-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.65fr) minmax(500px, 1.35fr);
  gap: 64px;
  align-items: start;
}

.music-copy {
  position: sticky;
  top: 116px;
}

.player-window {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.window-bar {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 16px;
  min-height: 48px;
  padding: 0 15px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);
}

.window-dots i:first-child {
  background: var(--pink);
}

.window-dots i:nth-child(2) {
  background: var(--orange);
}

.window-dots i:last-child {
  background: var(--green);
}

.player-scroll {
  height: 430px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
}

.player-scroll iframe {
  display: block;
  min-width: 100%;
  border: 0;
}

.contact-section {
  max-width: none;
  padding-right: max(24px, calc((100vw - var(--max-width)) / 2));
  padding-left: max(24px, calc((100vw - var(--max-width)) / 2));
}

.contact-panel {
  display: grid;
  grid-template-columns: 1fr minmax(360px, 0.65fr);
  gap: 80px;
  padding: 70px;
  background: linear-gradient(135deg, #6b57ff 0%, #087cfa 52%, #21d789 130%);
  color: #fff;
}

.contact-panel .eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

.contact-panel h2 {
  max-width: 700px;
  font-size: clamp(46px, 5vw, 76px);
}

.contact-links {
  align-self: center;
  border-top: 1px solid rgba(255, 255, 255, 0.45);
}

.contact-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  font-size: 16px;
  font-weight: 750;
  transition: padding 150ms ease, background 150ms ease;
}

.contact-links a:hover,
.contact-links a:focus-visible {
  padding-right: 12px;
  padding-left: 12px;
  background: rgba(255, 255, 255, 0.12);
}

.site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 70px 24px 30px;
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  padding-bottom: 60px;
}

.footer-main p {
  max-width: 300px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.friend-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
}

.friend-links span {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.friend-links a {
  border-bottom: 1px solid transparent;
}

.friend-links a:hover {
  border-color: currentColor;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.footer-legal a:hover {
  color: var(--text);
}

.sakana-notice {
  max-width: 900px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.sakana-notice a {
  color: var(--text);
  border-bottom: 1px solid var(--line);
}

.sakana-notice a:hover {
  border-color: var(--text);
}

.sakana-dock {
  position: fixed;
  bottom: 10px;
  left: 18px;
  z-index: 80;
  width: 200px;
  height: 200px;
  filter: drop-shadow(7px 9px 0 rgba(0, 0, 0, 0.16));
  user-select: none;
  touch-action: none;
  transition: filter 160ms ease;
}

.sakana-dock.is-moving {
  filter: drop-shadow(12px 15px 0 rgba(0, 0, 0, 0.12));
}

#sakana-widget {
  position: relative;
  width: 100%;
  height: 100%;
}

.sakana-restore {
  position: absolute;
  inset: 0;
  z-index: 70;
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  border: 2px solid var(--text);
  background: var(--surface);
  color: var(--text);
  box-shadow: 4px 4px 0 color-mix(in srgb, var(--text) 20%, transparent);
  cursor: pointer;
}

.sakana-restore[hidden] {
  display: none;
}

.sakana-restore:hover {
  background: var(--text);
  color: var(--bg);
}

.sakana-restore svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 1.7;
}

.sakana-dock.is-closed {
  width: 46px;
  height: 46px;
  filter: none;
}

.sakana-dock.is-closed .sakana-move,
.sakana-dock.is-closed .sakana-minimize,
.sakana-dock.is-closed #sakana-widget {
  display: none;
}

.sakana-move {
  position: absolute;
  top: -24px;
  left: 50%;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 76px;
  height: 30px;
  padding: 0 10px;
  border: 2px solid var(--text);
  background: var(--surface);
  color: var(--text);
  box-shadow: 4px 4px 0 color-mix(in srgb, var(--text) 20%, transparent);
  cursor: grab;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  transform: translateX(-50%);
}

.sakana-move::before {
  position: absolute;
  top: -2px;
  left: -2px;
  width: 32px;
  height: 3px;
  background: var(--text);
  content: "";
}

.sakana-move:active,
.sakana-dock.is-moving .sakana-move {
  cursor: grabbing;
}

.sakana-move svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 1.6;
}

.sakana-minimize {
  position: absolute;
  top: -24px;
  left: calc(50% + 54px);
  z-index: 60;
  display: grid;
  width: 30px;
  height: 30px;
  padding: 0;
  place-items: center;
  border: 2px solid var(--text);
  background: var(--surface);
  color: var(--text);
  box-shadow: 4px 4px 0 color-mix(in srgb, var(--text) 20%, transparent);
  cursor: pointer;
}

.sakana-minimize:hover {
  background: var(--text);
  color: var(--bg);
}

.sakana-minimize svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-width: 2;
}

.sakana-dock .sakana-widget-ctrl {
  width: 90px;
  height: 28px;
  overflow: hidden;
  border: 2px solid var(--text);
  border-radius: 0;
  background: var(--surface);
  box-shadow: 4px 4px 0 color-mix(in srgb, var(--text) 20%, transparent);
}

.sakana-dock .sakana-widget-ctrl-item {
  width: 30px;
  height: 24px;
  border-right: 1px solid color-mix(in srgb, var(--text) 22%, transparent);
  color: var(--text);
  transition: color 120ms ease, background-color 120ms ease;
}

.sakana-dock .sakana-widget-ctrl-item:last-child {
  display: none;
}

.sakana-dock .sakana-widget-ctrl-item:hover {
  color: var(--bg);
  background: var(--text);
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.js .scroll-reveal {
  opacity: 0;
  transform: translateY(44px);
  transition:
    opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.js .scroll-reveal.reveal-from-left {
  transform: translateX(-44px);
}

.js .scroll-reveal.reveal-from-right {
  transform: translateX(44px);
}

.js .scroll-reveal.is-visible {
  opacity: 1;
  transform: translate(0, 0);
}

.js .photo-card.scroll-reveal {
  transform: translateY(54px) scale(0.975);
}

.js .photo-card.scroll-reveal.is-visible {
  transform: translateY(0) scale(1);
}

.hero-copy > * {
  animation: hero-enter 760ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-copy > :nth-child(2) {
  animation-delay: 80ms;
}

.hero-copy > :nth-child(3) {
  animation-delay: 150ms;
}

.hero-copy > :nth-child(4) {
  animation-delay: 220ms;
}

.hero-copy > :nth-child(5) {
  animation-delay: 290ms;
}

@keyframes hero-enter {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-image-enter {
  from {
    opacity: 0;
    transform: scale(1.06);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 1050px) {
  .hero {
    grid-template-columns: 1fr minmax(280px, 0.48fr);
  }

  .section {
    grid-template-columns: 54px minmax(0, 1fr);
    column-gap: 24px;
  }

  .about-grid,
  .music-layout {
    gap: 36px;
  }

  .contact-panel {
    grid-template-columns: 1fr;
    gap: 54px;
    padding: 54px;
  }
}

@media (max-width: 780px) {
  html {
    scroll-padding-top: 18px;
  }

  .floating-controls {
    top: 12px;
    right: 12px;
    padding: 3px;
  }

  .language-switcher button {
    min-width: 34px;
    height: 36px;
    padding: 0 7px;
  }

  .theme-toggle {
    width: 38px;
    height: 34px;
  }

  .sakana-dock {
    bottom: 5px;
    left: 5px;
    width: 145px;
    height: 145px;
    filter: drop-shadow(4px 5px 0 rgba(0, 0, 0, 0.14));
  }

  .sakana-move {
    top: -20px;
    min-width: 62px;
    height: 27px;
    padding: 0 8px;
    font-size: 10px;
  }

  .sakana-minimize {
    top: -20px;
    left: calc(50% + 45px);
    width: 27px;
    height: 27px;
  }

  .sakana-restore {
    width: 40px;
    height: 40px;
  }

  .hero {
    display: flex;
    flex-direction: column;
    min-height: auto;
  }

  .hero-copy {
    order: 1;
    min-height: 640px;
    padding: 86px 22px 72px;
  }

  .hero h1 {
    font-size: clamp(62px, 20vw, 98px);
  }

  .hero-summary {
    margin-top: 32px;
  }

  .hero-art {
    order: 2;
    min-height: 300px;
  }

  .section {
    display: block;
    padding: 86px 20px;
  }

  .section-index {
    margin-bottom: 48px;
  }

  .section-heading {
    margin-bottom: 42px;
  }

  .heading-wide {
    display: block;
  }

  .heading-wide p:last-child {
    margin-top: 20px;
  }

  .about-grid,
  .music-layout,
  .photo-grid {
    grid-template-columns: 1fr;
  }

  .frame-image,
  .frame-image img {
    min-height: 400px;
  }

  .about-copy {
    padding-top: 14px;
  }

  .photo-card-large {
    grid-row: auto;
  }

  .photo-card img,
  .photo-card-large img {
    height: min(72vw, 460px);
  }

  .music-copy {
    position: static;
  }

  .player-scroll {
    height: 410px;
  }

  .contact-section {
    padding: 0;
  }

  .contact-section .section-index {
    display: none;
  }

  .contact-panel {
    padding: 76px 22px;
    border: 0;
  }

  .contact-panel h2 {
    font-size: 50px;
  }

  .site-footer {
    padding: 64px 20px 28px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-bottom: 46px;
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .hero-copy > *,
  .hero-art {
    animation: none !important;
  }

  .js .scroll-reveal {
    opacity: 1;
    transform: none;
  }
}
