/* About, Works, Commission, form extras and the release player. Tokens live in style.css. */

html.modal-open { overflow: hidden; }
.about, .works, .commission {
  position: relative;
  z-index: 2;
  padding: clamp(96px, 14vh, 160px) var(--gutter) 0;
  background: rgba(11, 9, 16, .82);
}
.about { background: linear-gradient(180deg, rgba(11, 9, 16, 0), rgba(11, 9, 16, .82) 260px); }
.section-head { max-width: 1180px; margin: 0 auto 48px; }
.section-title {
  margin-top: 18px;
  font-size: clamp(34px, 4.6vw, 60px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -.02em;
  max-width: 18ch;
}
.section-lead { margin-top: 18px; max-width: 52ch; font-size: 17px; line-height: 1.65; font-weight: 300; color: var(--ink-dim); }
.muted { color: var(--ink-dim); }

[data-status].closed .pulse { background: var(--ink-dim); animation: none; box-shadow: none; }

/* ---------- about ---------- */
.about-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.about-portrait { position: relative; }
.portrait-frame {
  position: relative;
  aspect-ratio: 1;
  border-radius: 36px;
  overflow: hidden;
  transform: rotate(-3deg);
  box-shadow: 0 40px 120px -30px rgba(224, 91, 184, .45), 0 0 0 1px rgba(255, 154, 205, .25);
  transition: transform .8s cubic-bezier(.2, .7, .2, 1);
}
.portrait-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(255, 255, 255, .18), transparent 40%, rgba(110, 78, 142, .25));
  pointer-events: none;
}
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1s cubic-bezier(.2, .7, .2, 1); }
.about-portrait figcaption {
  position: absolute;
  left: 50%;
  bottom: -18px;
  transform: translateX(-50%);
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}
.about-portrait figcaption span { color: var(--pink); }
.about-text { margin-top: 24px; display: grid; gap: 16px; max-width: 56ch; font-size: 17px; line-height: 1.7; font-weight: 300; color: var(--ink-dim); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.chips li {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(169, 139, 208, .35);
  background: rgba(169, 139, 208, .1);
  font-size: 13px;
  font-weight: 500;
}
.about-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* ---------- works ---------- */
#works-featured, .works-grid, .works-empty { max-width: 1180px; margin-left: auto; margin-right: auto; }
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 22px;
  margin-top: 22px;
}
.work {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  background: rgba(21, 17, 29, .6);
  transition: border-color .4s, transform .5s cubic-bezier(.2, .7, .2, 1), box-shadow .5s, opacity .9s ease;
}
.work:hover { border-color: rgba(255, 154, 205, .35); transform: translateY(-4px); box-shadow: 0 30px 80px -40px rgba(224, 91, 184, .55); }
.work-cover {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  padding: 0;
  background: linear-gradient(135deg, var(--purple), var(--magenta));
  overflow: hidden;
}
.work-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s cubic-bezier(.2, .7, .2, 1), filter .5s; }
.work:hover .work-cover img { transform: scale(1.06); filter: saturate(1.1); }
.work-cover-blank { display: grid; place-items: center; height: 100%; font-size: 40px; color: rgba(255, 255, 255, .7); }
.play-badge {
  position: absolute;
  left: 50%; top: 50%;
  width: 62px; height: 62px;
  margin: -31px 0 0 -31px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 154, 205, .92);
  box-shadow: 0 10px 40px rgba(224, 91, 184, .6);
  transform: scale(.8);
  opacity: 0;
  transition: transform .4s cubic-bezier(.2, .7, .2, 1.4), opacity .3s;
}
.play-badge svg { width: 24px; height: 24px; fill: #2a1530; margin-left: 3px; }
.work:hover .play-badge, .work-cover:focus-visible .play-badge { transform: scale(1); opacity: 1; }
@media (hover: none) { .play-badge { transform: scale(.85); opacity: .9; } }
.work-meta { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.work-flag { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--pink); }
.work-date { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-dim); }
.work h3 { font-size: 19px; font-weight: 600; line-height: 1.3; }
.work-collab { font-size: 14px; color: var(--ink-dim); }
.work-note { margin-top: 6px; font-size: 15px; line-height: 1.6; font-weight: 300; color: var(--ink-dim); }
.work-roles { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.work-roles li { padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 500; letter-spacing: .04em; background: rgba(169, 139, 208, .14); color: var(--lavender); }
.preview-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 154, 205, .4);
  background: rgba(255, 154, 205, .08);
  color: var(--ink);
  font: 500 13px var(--font);
  transition: background .3s;
}
.preview-btn:hover, .preview-btn.playing { background: rgba(255, 154, 205, .2); }
.eq { display: flex; align-items: flex-end; gap: 2px; height: 12px; color: var(--pink); }
.eq i { width: 2px; height: 4px; background: currentColor; border-radius: 1px; }
.preview-btn.playing .eq i { animation: eq .9s ease-in-out infinite; }
.preview-btn.playing .eq i:nth-child(2) { animation-delay: -.3s; }
.preview-btn.playing .eq i:nth-child(3) { animation-delay: -.6s; }

.work--featured { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
.work--featured .work-cover { aspect-ratio: auto; min-height: 100%; }
.work--featured .work-meta { padding: clamp(24px, 3vw, 40px); justify-content: center; }
.work--featured h3 { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.15; }

.works-empty {
  text-align: center;
  padding: clamp(48px, 8vw, 90px) 24px;
  border: 1px dashed rgba(255, 154, 205, .35);
  border-radius: 28px;
  background: radial-gradient(ellipse at 50% 0%, rgba(224, 91, 184, .14), transparent 70%), rgba(21, 17, 29, .5);
}
.works-empty[hidden] { display: none; }
.empty-star { display: inline-block; font-size: 34px; color: var(--pink); animation: spin 8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.works-empty h3 { margin-top: 14px; font-size: clamp(22px, 2.4vw, 30px); font-weight: 600; }
.works-empty p { margin: 12px auto 28px; max-width: 44ch; color: var(--ink-dim); line-height: 1.6; font-weight: 300; }

/* ---------- commission ---------- */
.com-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}
.card {
  position: relative;
  padding: clamp(22px, 2.4vw, 32px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(21, 17, 29, .6);
}
.card-label { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-dim); margin-bottom: 16px; }
.price-card {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  background: linear-gradient(160deg, rgba(224, 91, 184, .2), rgba(110, 78, 142, .18) 50%, rgba(21, 17, 29, .7));
  border-color: rgba(255, 154, 205, .3);
}
.status-pill {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(11, 9, 16, .45);
  font-size: 12px;
  font-weight: 500;
}
.price { font-size: clamp(34px, 3.6vw, 48px); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.price-card .muted { margin-top: 10px; line-height: 1.6; }
.price-ctas { display: flex; flex-direction: column; gap: 10px; margin-top: auto; padding-top: 32px; }
.ticks { list-style: none; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: baseline; line-height: 1.45; }
.ticks li::before {
  content: "✓";
  flex: none;
  display: grid;
  place-items: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  color: #2a1530;
  background: var(--pink);
  transform: translateY(3px);
}
.discount-card { grid-column: span 2; display: flex; flex-direction: column; justify-content: center; }
.discount-card p:last-child { font-size: 18px; line-height: 1.55; }

.steps {
  list-style: none;
  max-width: 1180px;
  margin: 18px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.step { flex: 1 1 170px; padding: 22px; border-radius: 22px; border: 1px solid var(--line); background: rgba(21, 17, 29, .45); }
.step-n { font-family: var(--font-jp); font-weight: 800; font-size: 14px; color: var(--pink); }
.step h3 { margin-top: 12px; font-size: 17px; font-weight: 600; }
.step p { margin-top: 8px; font-size: 14px; line-height: 1.55; color: var(--ink-dim); font-weight: 300; }

.terms {
  max-width: 1180px;
  margin: 18px auto 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(21, 17, 29, .45);
  overflow: hidden;
}
.terms summary { list-style: none; display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; padding: 22px 24px; font-weight: 600; font-size: 17px; }
.terms summary::-webkit-details-marker { display: none; }
.terms summary small { font-weight: 400; font-size: 13px; color: var(--ink-dim); }
.terms summary i { margin-left: auto; font-style: normal; font-size: 22px; line-height: 1; color: var(--pink); transition: transform .4s; }
.terms[open] summary i { transform: rotate(45deg); }
.terms ol { padding: 0 24px 26px 48px; display: grid; gap: 10px; color: var(--ink-dim); line-height: 1.6; font-size: 15px; }
.terms ol li::marker { color: var(--pink); font-weight: 600; }

/* ---------- contact form extras ---------- */
.seg { border: 0; }
.seg legend { font-size: 13px; font-weight: 500; letter-spacing: .04em; color: var(--ink-dim); margin-bottom: 8px; }
.seg-options { display: flex; gap: 6px; padding: 5px; border-radius: 16px; background: rgba(11, 9, 16, .55); border: 1px solid rgba(246, 242, 250, .1); }
.seg-options label { flex: 1; position: relative; }
.seg-options input { position: absolute; opacity: 0; pointer-events: none; }
.seg-options span {
  display: block;
  padding: 10px 8px;
  border-radius: 11px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-dim);
  transition: background .3s, color .3s;
}
.seg-options input:checked + span { background: linear-gradient(135deg, var(--pink), var(--magenta)); color: #2a1530; }
.seg-options input:focus-visible + span { outline: 2px solid var(--pink); outline-offset: 2px; }
.agree { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 18px; font-size: 14px; line-height: 1.5; color: var(--ink-dim); }
.agree[hidden] { display: none; }
.agree input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--pink); flex: none; }
.agree a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.agree.invalid span { color: #ff8fa8; }

/* ---------- player ---------- */
.player { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; }
.player[hidden] { display: none; }
.player-backdrop { position: absolute; inset: 0; background: rgba(6, 5, 10, .8); backdrop-filter: blur(10px); opacity: 0; transition: opacity .3s; }
.player-box {
  position: relative;
  width: min(960px, 100%);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 154, 205, .3);
  background: var(--bg-2);
  box-shadow: 0 40px 140px -20px rgba(224, 91, 184, .5);
  transform: translateY(20px) scale(.97);
  opacity: 0;
  transition: transform .4s cubic-bezier(.2, .7, .2, 1), opacity .3s;
}
.player.open .player-backdrop { opacity: 1; }
.player.open .player-box { transform: none; opacity: 1; }
.player-media { aspect-ratio: 16 / 9; background: #000; }
.player-media.is-spotify { aspect-ratio: auto; height: 352px; background: transparent; }
.player-media iframe { width: 100%; height: 100%; border: 0; display: block; }
.player-info { padding: 18px 22px; }
.player-info h3 { font-size: 18px; font-weight: 600; }
.player-info p { margin-top: 4px; font-size: 14px; color: var(--ink-dim); }
.player-close {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 2;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 0;
  background: rgba(11, 9, 16, .7);
  color: var(--ink);
  font-size: 16px;
}

@media (max-width: 860px) {
  .about-inner { grid-template-columns: 1fr; }
  .about-portrait { width: min(340px, 100%); margin: 0 auto 24px; }
  .work--featured { grid-template-columns: 1fr; }
  .work--featured .work-cover { aspect-ratio: 16 / 9; }
  .com-grid { grid-template-columns: 1fr; }
  .price-card { grid-row: auto; }
  .discount-card { grid-column: auto; }
  .section-head { margin-bottom: 32px; }
  .seg-options span { font-size: 13px; padding: 10px 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .empty-star { animation: none; }
}

/* ---------- about: reactive portrait + waving hello ---------- */
.portrait-frame { --happy: 0; transform: rotate(calc(-3deg + var(--happy) * 4deg)) scale(calc(1 + var(--happy) * .03)); }
.portrait-frame canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.portrait-frame.gl img { opacity: 0; }
.portrait-frame::after { z-index: 1; }
.portrait-frame.joy { animation: joy 2.4s ease-in-out infinite; }
@keyframes joy { 50% { translate: 0 -2px; } }
.portrait-frame { box-shadow: 0 40px 120px -30px rgba(224, 91, 184, calc(.45 + var(--happy) * .4)), 0 0 0 1px rgba(255, 154, 205, calc(.25 + var(--happy) * .5)); }
.heart {
  position: absolute;
  z-index: 3;
  color: var(--pink);
  text-shadow: 0 0 12px rgba(255, 154, 205, .8);
  pointer-events: none;
  animation: float-up 1.8s cubic-bezier(.2, .7, .3, 1) forwards;
}
@keyframes float-up {
  0% { opacity: 0; transform: translate(0, 10px) scale(.4); }
  20% { opacity: 1; transform: translate(calc(var(--drift) * .2), -10px) scale(1); }
  100% { opacity: 0; transform: translate(var(--drift), -110px) scale(.8); }
}

.say-hi { position: relative; display: inline-flex; }
.wave {
  position: absolute;
  left: 50%;
  top: 0;
  font-size: 36px;
  line-height: 1;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -20%) scale(.2);
  transition: transform .45s cubic-bezier(.3, 1.7, .5, 1), opacity .2s;
}
.say-hi:hover .wave, .say-hi:focus-within .wave { opacity: 1; transform: translate(-50%, -110%) scale(1); }
.hand { display: inline-block; transform-origin: 70% 80%; }
.say-hi:hover .hand, .say-hi:focus-within .hand { animation: wave 1.1s .2s ease-in-out both; }
@keyframes wave {
  0%, 100% { rotate: 0deg; }
  15% { rotate: 18deg; }
  30% { rotate: -10deg; }
  45% { rotate: 16deg; }
  60% { rotate: -6deg; }
  75% { rotate: 10deg; }
}
@media (prefers-reduced-motion: reduce) {
  .say-hi:hover .hand, .say-hi:focus-within .hand, .portrait-frame.joy { animation: none; }
}
