/* NeutrinoBoy — portfolio (painterly hero) */

:root {
  --bg: #121110;
  --bg-soft: #181715;
  --surface: #1f1e1b;
  --text: #e8e4dc;
  --text-soft: #a8a399;
  --text-muted: #7a756c;
  --line: rgba(232, 228, 220, 0.12);
  --accent: #3d5f7a;
  --accent-glow: rgba(120, 160, 196, 0.18);
  --hero-gold: #c4b08e;
  --serif: "Shippori Mincho", "Cormorant Garamond", Georgia, serif;
  --sans: "Noto Sans JP", "Helvetica Neue", sans-serif;
  --display: "Cormorant Garamond", "Shippori Mincho", serif;
  --shell: min(1120px, calc(100% - 3rem));
  --header-h: 4.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: #fff;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--text);
  color: var(--bg);
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Header */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  transition: background 0.35s var(--ease), backdrop-filter 0.35s var(--ease);
}

.header.is-scrolled {
  background: rgba(18, 17, 16, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: var(--header-h);
  gap: 1rem;
}

.header__brand {
  flex-shrink: 0;
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-decoration: none;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
  transition: color 0.35s var(--ease);
}

.header:not(.is-scrolled) .header__nav a,
.header:not(.is-scrolled) .lang-switch__link,
.header:not(.is-scrolled) .header__brand {
  color: rgba(236, 230, 220, 0.9);
}

.header:not(.is-scrolled) .lang-switch__link.is-active {
  color: #fff;
}

.header:not(.is-scrolled) .header__menu span {
  background: rgba(236, 230, 220, 0.92);
}

.header__nav {
  display: none;
  gap: 1.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.header__nav a {
  text-decoration: none;
  color: var(--text-soft);
  transition: color 0.25s;
}

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

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-left: auto;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
}

.lang-switch__link {
  text-decoration: none;
  color: var(--text-muted);
}

.lang-switch__link.is-active {
  color: var(--text);
}

.lang-switch__sep {
  color: var(--text-muted);
}

.header__menu {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.header__menu span {
  display: block;
  width: 1.25rem;
  height: 1px;
  margin-inline: auto;
  background: var(--text);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem 1.5rem 1.25rem;
  background: rgba(18, 17, 16, 0.96);
  border-bottom: 1px solid var(--line);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav a {
  padding: 0.65rem 0;
  text-decoration: none;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.82rem;
  color: var(--text-soft);
}

@media (min-width: 860px) {
  .header__nav {
    display: flex;
    margin-left: auto;
    margin-right: 1.25rem;
  }

  .header__actions {
    margin-left: 0;
  }

  .header__menu {
    display: none;
  }

  .mobile-nav {
    display: none !important;
  }
}

/* Hero — painterly */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  padding: calc(var(--header-h) + 3rem) 0 6rem;
  overflow: hidden;
  background: #0e0d0c;
}

.hero__painting {
  position: absolute;
  inset: 0;
  margin: 0;
}

.hero__painting img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  transform: scale(1);
  transform-origin: center bottom;
  animation: hero-drift 32s ease-in-out infinite alternate;
  filter: saturate(0.92) contrast(1.04);
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(14, 13, 12, 0.28) 0%, transparent 22%, transparent 55%, rgba(14, 13, 12, 0.55) 82%, rgba(14, 13, 12, 0.82) 100%),
    radial-gradient(ellipse 90% 55% at 50% 100%, rgba(20, 18, 16, 0.75), transparent 68%),
    radial-gradient(ellipse 50% 40% at 12% 18%, rgba(74, 104, 136, 0.1), transparent 60%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
}

.hero__eyebrow {
  margin: 0 0 1.25rem;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--hero-gold);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}

.hero__name {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3.2rem, 10vw, 6.5rem);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: 0.04em;
  text-shadow: 0 4px 32px rgba(0, 0, 0, 0.55);
}

.hero__roles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  margin: 1.75rem 0 2.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(236, 230, 220, 0.82);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.hero__roles-sep {
  margin: 0 0.15rem;
  color: var(--hero-gold);
  opacity: 0.7;
}

.hero__copy {
  margin: 0;
  max-width: 16em;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  line-height: 1.75;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

@keyframes hero-drift {
  from {
    transform: scale(1) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.02) translate3d(-0.4%, 0, 0);
  }
}

/* Sections */
.section {
  padding: 6rem 0;
  border-top: 1px solid var(--line);
}

.section__grid {
  display: grid;
  gap: 2rem;
}

.section__head--center {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section__title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 400;
  letter-spacing: 0.08em;
}

.prose p {
  margin: 0 0 1.25rem;
  color: var(--text-soft);
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose--single {
  margin: 0;
  color: var(--text-soft);
}

.emphasis {
  margin: 2rem 0 0;
  padding-left: 1rem;
  border-left: 2px solid var(--accent);
  font-family: var(--display);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text);
}

@media (min-width: 768px) {
  .section__grid {
    grid-template-columns: 220px 1fr;
    gap: 3rem;
  }
}

/* Artist */
.artist-card {
  display: grid;
  gap: 2rem;
  align-items: center;
  max-width: 920px;
  margin-inline: auto;
}

.artist-card__photo {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  aspect-ratio: 5 / 4;
  position: relative;
}

.artist-card__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: right center;
}

.artist-card__name {
  margin: 0;
  font-family: var(--display);
  font-size: 2rem;
  letter-spacing: 0.06em;
}

.artist-card__role {
  margin: 0.35rem 0 1.25rem;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.artist-card__desc,
.artist-card__managed {
  margin: 0 0 1rem;
  color: var(--text-soft);
}

.artist-card__managed {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.link-list {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.link-list a {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.15rem;
}

@media (min-width: 768px) {
  .artist-card {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

/* Works */
.works-list {
  display: grid;
  gap: 2.5rem;
}

.work-card {
  display: grid;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.work-card:last-child {
  border-bottom: 0;
}

.work-card__art {
  margin: 0;
  width: 100%;
  max-width: 220px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.work-card__art img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.work-card__id {
  margin: 0;
  font-family: var(--display);
  font-size: 1.4rem;
  color: var(--text-muted);
}

.work-card__release {
  margin: 0.25rem 0;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.work-card__title {
  margin: 0.35rem 0;
  font-family: var(--serif);
  font-size: 1.35rem;
}

.work-card__date {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.work-card__credits {
  margin: 0 0 1rem;
  font-size: 0.88rem;
}

.work-card__credits dt {
  margin-bottom: 0.25rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.work-card__credits dd {
  margin: 0;
  color: var(--text-soft);
}

.work-card__link {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid var(--accent);
}

.work-card__upcoming {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

@media (min-width: 640px) {
  .work-card {
    grid-template-columns: 220px 1fr;
    gap: 2rem;
    align-items: start;
  }
}

/* Contact */
.contact-email {
  margin: 1.5rem 0 0;
  font-family: var(--display);
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  letter-spacing: 0.04em;
}

.contact-email a {
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.1rem;
}

/* Footer */
.footer {
  padding: 3rem 0 4rem;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}

.footer__inner {
  display: grid;
  gap: 1.25rem;
}

.footer__name {
  margin: 0;
  font-family: var(--display);
  font-size: 1.25rem;
  letter-spacing: 0.06em;
}

.footer__tagline,
.footer__links p,
.footer__rights,
.footer__note {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer__links a {
  text-decoration: none;
  color: var(--text-soft);
}

.footer__note {
  font-size: 0.78rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__painting img {
    animation: none;
    transform: scale(1);
    height: 100%;
    object-position: center bottom;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .header,
  .header.is-scrolled {
    transition: none;
  }
}

/* Privacy & consent */
.shell--narrow {
  width: min(720px, calc(100% - 3rem));
  margin-inline: auto;
}

.legal-main {
  padding-top: var(--header-h);
}

.section--legal {
  padding-top: 4rem;
}

.legal-subtitle {
  margin: 0.75rem 0 0;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.policy-doc p {
  margin: 0 0 1.15rem;
  font-family: var(--serif);
  font-size: 0.94rem;
  line-height: 2;
  color: var(--text-soft);
}

.policy-doc__links {
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}

.policy-doc__links li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
}

.policy-doc__links a {
  font-size: 0.88rem;
  color: var(--accent);
}

.policy-doc__meta {
  margin: 2rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 0.65rem 1rem;
  font-size: 0.88rem;
}

.policy-doc__meta dt {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.policy-doc__meta dd {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.7;
}

.footer__legal {
  margin: 0;
  font-size: 0.82rem;
}

.footer__legal a {
  text-decoration: none;
  color: var(--text-muted);
}

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

.cookie-consent {
  position: fixed;
  inset: auto 0 0;
  z-index: 200;
  padding: 1rem 0 calc(1rem + env(safe-area-inset-bottom, 0px));
  background: rgba(18, 17, 16, 0.96);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.cookie-consent__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 1.5rem;
}

.cookie-consent__copy {
  min-width: 0;
}

.cookie-consent__text {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  line-height: 1.65;
  color: var(--text-soft);
}

.cookie-consent__link {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
}

.cookie-consent__btn {
  flex-shrink: 0;
  white-space: nowrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.35rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.pill--accent {
  border: 0;
  background: var(--accent);
  color: var(--text);
}

.pill--accent:hover {
  background: #4a7394;
  color: #fff;
}

@media (max-width: 640px) {
  .cookie-consent__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-consent__btn {
    width: 100%;
  }
}
