/* /artists: make a two-sided business card, light up the studios in your craft, try a sample profile and an example request. */

/* ---------- card maker */
.mk { background: var(--navy); color: #fff; overflow: hidden; }
.mk :focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.mk-slim .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding: 34px 0; }
.mk-slim h1 { margin: 0; }
.mk-in { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 56px; align-items: center; padding: 44px 0 34px; }
.mk h1 { text-wrap: balance; }
.mk-l h1 { font-size: clamp(2.2rem, 4.2vw, 3.5rem); line-height: 1.08; letter-spacing: -.025em; margin: 0 0 .7em; }
:lang(ja) .mk-l h1 { font-size: clamp(1.9rem, 3.3vw, 2.8rem); line-height: 1.3; letter-spacing: 0; word-break: auto-phrase; }
.mk-form { display: grid; gap: 20px; justify-items: start; }
.mk-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; background: none; }
.mk-form legend, .mk-n > span { display: block; padding: 0; margin: 0 0 8px; font-weight: 700; }
.mk-n { width: min(100%, 440px); }
.mk-n input { width: 100%; min-height: 54px; padding: 0 16px; font: inherit; font-size: 1.2rem; font-weight: 700; color: var(--ink); background: #fff; border: 0; border-radius: 10px; }
.mk-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mk-chips label { position: relative; cursor: pointer; }
.mk-chips input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.mk-chips span { display: flex; align-items: center; min-height: 44px; padding: 0 1em; border: 2px solid #4A4A86; border-radius: 999px; font-weight: 700; font-size: .95rem; }
.mk-chips label:hover span { border-color: #fff; }
.mk-chips input:checked + span { background: #fff; border-color: #fff; color: var(--navy); }
.mk-chips input:focus-visible + span { outline: 3px solid #fff; outline-offset: 3px; }
.mk-form .btn { font-size: 1.1rem; padding: .8em 1.5em; margin-top: 4px; }

.mk-r { perspective: 1400px; text-align: center; }
.mk-card { display: block; width: 100%; max-width: 540px; margin: 0 auto; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; transform-style: preserve-3d; rotate: -3deg; border-radius: 12px; }
.mk-flip { display: grid; transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(calc(var(--turn, 0deg) + var(--ry, 0deg))); transition: transform .75s cubic-bezier(.3, 1.2, .4, 1); }
.mk-card.tilt .mk-flip { transition-duration: .15s; transition-timing-function: ease-out; }
.mk-card[aria-pressed="true"] { --turn: 180deg; }
/* a business card: 91 x 55 mm */
.mk-side { grid-area: 1 / 1; position: relative; overflow: hidden; aspect-ratio: 91 / 55; container-type: inline-size; display: flex; flex-direction: column; justify-content: flex-end; padding: 7% 7.5%; background: #fff; border-radius: 12px; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.mk-side.back { transform: rotateY(180deg); }
.mk-sun { display: grid; place-items: center; border-radius: 50%; background: var(--red); color: #fff; font-weight: 800; }
.mk-side .mk-sun { position: absolute; right: 6.5%; top: 10%; width: 27%; aspect-ratio: 1; font-size: 10.5cqw; letter-spacing: -.02em; }
.mk-side b { max-width: 67%; font-size: var(--fs, 10cqw); line-height: 1.1; font-weight: 800; letter-spacing: -.02em; color: var(--navy); overflow-wrap: anywhere; }
.mk-job { font-size: 4.6cqw; font-weight: 700; margin-top: 1.5cqw; }
.mk-av { font-size: 3.9cqw; font-weight: 700; color: #C4121D; margin-top: .6cqw; }
.mk-url { font-size: 3.5cqw; font-weight: 600; color: var(--muted); margin-top: 3.4cqw; overflow-wrap: anywhere; }
.mk-hint { margin: 26px 0 0; font-weight: 600; }

/* every studio on CG Spot is one dot */
.mk-dots { padding: 0 0 40px; }
.mk-dots p { font-size: clamp(1.15rem, 1.9vw, 1.5rem); font-weight: 700; margin: 0 0 14px; }
.mk-dots b { font-size: 1.7em; font-weight: 800; letter-spacing: -.02em; }
.mk-dots a { white-space: nowrap; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.mk-field { display: grid; grid-template-columns: repeat(auto-fill, minmax(13px, 1fr)); gap: 5px; justify-items: center; }
.mk-field i { width: 11px; height: 11px; border-radius: 50%; background: #34346F; scale: .62; transition: background .3s, scale .3s cubic-bezier(.3, 1.6, .5, 1); transition-delay: calc(var(--d) * 1ms); }
.mk-field i.on { background: var(--red); scale: 1; }

/* ---------- sample profile */
.samp { padding: 64px 0 20px; }
.samp-h { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 18px 32px; margin-bottom: 22px; }
.samp h2, .intro-x h2, .mk-hire h2 { font-size: clamp(1.8rem, 3.2vw, 2.7rem); letter-spacing: -.02em; margin: 0; text-wrap: balance; }
:lang(ja) :is(.samp, .intro-x, .mk-hire) h2 { font-size: clamp(1.6rem, 2.7vw, 2.2rem); letter-spacing: 0; word-break: auto-phrase; }
.samp-sw { display: flex; flex-wrap: wrap; gap: 4px; background: #E1E2EC; border-radius: 26px; padding: 4px; }
.samp-sw button { font: inherit; font-weight: 700; font-size: .95rem; min-height: 44px; padding: 0 1.1em; border: 0; border-radius: 999px; background: none; color: var(--ink); cursor: pointer; }
.samp-sw button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.samp-page { background: #fff; border-radius: 18px; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); grid-template-rows: auto auto 1fr; }
.samp-tag { margin: 0; font-weight: 700; font-size: .92rem; color: var(--navy); background: #FFE3E5; padding: 10px 24px; }
.samp-page .samp-tag { grid-column: 1 / -1; }
.samp-top { display: flex; gap: 18px; align-items: center; padding: 26px 24px 8px; }
.samp-top .mk-sun { flex: none; width: 84px; height: 84px; font-size: 1.8rem; }
.samp-top p { margin: 0; }
:lang(ja) :is(.samp, .intro-x) p { word-break: auto-phrase; }
.samp-name { font-size: 1.7rem; font-weight: 800; line-height: 1.2; }
.samp-av { color: #C4121D; font-weight: 700; }
.samp-reel { grid-column: 2; grid-row: 2 / span 2; padding: 24px; }
.samp-reel > img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; background: var(--navy); }
.samp-th { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.samp-th { align-items: start; }
.samp-th button { font: inherit; font-size: .88rem; font-weight: 700; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; overflow-wrap: anywhere; }
.samp-th img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; border: 3px solid transparent; margin-bottom: 4px; }
.samp-th button[aria-pressed="true"] img { border-color: var(--red); }
.samp-parts { padding: 14px 24px 26px; display: grid; gap: 16px; align-content: start; }
.sp-part h3 { margin: 0; font-size: .95rem; font-weight: 700; color: var(--muted); letter-spacing: 0; }
.sp-part p { margin: 0; font-weight: 600; }
.sp-part.studio .sp-open, .samp[data-view="studio"] .sp-part.studio .sp-shut, .sp-part.none .sp-open { display: none; }
.samp[data-view="studio"] .sp-part.studio .sp-open { display: block; }
.samp[data-view="studio"] .sp-part.studio { background: var(--navy); color: #fff; border-radius: 12px; padding: 14px 16px; margin: 0 -16px; animation: open .4s cubic-bezier(.3, 1.4, .5, 1); }
.samp[data-view="studio"] .sp-part.studio h3 { color: #fff; }
@keyframes open { from { scale: .94; } }

/* ---------- example request */
.intro-x { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 56px; align-items: center; padding: 56px 0; }
.intro-x h2 { margin-bottom: .5em; }
.ix { background: #fff; border-radius: 18px 18px 18px 4px; overflow: hidden; padding-bottom: 24px; }
.ix > :not(.samp-tag) { margin-inline: 24px; }
.ix-m { font-size: 1.2rem; font-weight: 600; margin-block: 20px; }
.ix-b { display: flex; flex-wrap: wrap; gap: 10px; }
.ix-b .btn.ghost { color: var(--navy); }
.ix-b .btn.picked { background: var(--navy); border-color: var(--navy); color: #fff; }
.ix-r { margin: 18px 0 0; font-weight: 700; }
.ix-r[hidden] { display: none; }

.mk-hire { border-top: 2px solid var(--line); padding: 36px 0 56px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; }
.mk-hire h2 { font-size: 1.4rem !important; letter-spacing: 0; }
.mk-hire p { margin: 0; flex: 1 1 320px; }
.mk-hire .btn { color: var(--navy); }

@media (max-width: 900px) {
  .mk-in { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 28px 0 30px; }
  .mk-l { display: contents; }
  .mk-l h1 { margin: 0; }
  .mk-r { order: 1; }
  .mk-form { order: 2; }
  .mk-card { rotate: -2deg; max-width: 440px; }
  .mk-hint { margin-top: 18px; }
  .samp { padding-top: 44px; }
  .samp-page { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .samp-reel { grid-column: 1; grid-row: auto; padding-bottom: 10px; }
  .intro-x { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 44px 0; }
}
@media (max-width: 560px) {
  .mk-form, .mk-form .btn { width: 100%; }
  .mk-chips span { padding: 0 .85em; }
  .mk-field { grid-template-columns: repeat(auto-fill, minmax(10px, 1fr)); gap: 4px; }
  .mk-field i { width: 9px; height: 9px; }
  .samp-sw { width: 100%; }
  .samp-sw button { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .mk-flip, .mk-field i { transition: none; }
  .samp .sp-part.studio { animation: none !important; }
}
