/* NAMI: visual exploration and motion. */
#cast, #faq { scroll-margin-top: 24px; }
.services.wrap { max-width: 1120px; }
.services.section { padding-top: 72px; }
.services .section-head { grid-template-columns: 1.6fr 1fr; align-items: center; gap: 40px; margin-bottom: 30px; }
.services .section-head .display { max-width: 640px; font-size: clamp(34px, 3vw, 44px); line-height: 1.12; }
.services .section-head > p { max-width: 360px; font-size: 15px; }
.production-studio { overflow-anchor: none; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); background: var(--paper); }
.production-art { position: relative; min-width: 0; overflow: hidden; background: var(--surface); }
.production-layer { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .65s ease; }
.production-layer.is-active { opacity: 1; }
.cast-composition img { position: absolute; object-fit: cover; box-shadow: 0 14px 28px #10101020; transition: transform .85s cubic-bezier(.2,.7,.2,1); }
.cast-composition img:nth-child(1) { width: 58%; height: 74%; left: 7%; top: 12%; transform: translateY(38px) rotate(-9deg); }
.cast-composition img:nth-child(2) { width: 38%; height: 48%; right: 6%; top: 7%; transform: translateY(-30px) rotate(10deg); }
.cast-composition img:nth-child(3) { width: 35%; height: 39%; right: 8%; bottom: 13%; transform: translateY(50px) rotate(5deg); }
.cast-composition.is-active img:nth-child(1) { transform: translateY(0) rotate(-4deg); }
.cast-composition.is-active img:nth-child(2) { transform: translateY(0) rotate(5deg); transition-delay: .07s; }
.cast-composition.is-active img:nth-child(3) { transform: translateY(0) rotate(-3deg); transition-delay: .13s; }
.signature-composition > img { width: 100%; height: 100%; object-fit: cover; object-position: 38% center; transform: scale(1.1); transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.signature-composition.is-active > img { transform: scale(1); }
.identity-frame { position: absolute; inset: 10% 18% 20%; border: 1px solid #f7f7f5a8; transform: scale(.9); opacity: 0; transition: transform .8s .15s, opacity .8s .15s; }
.signature-composition.is-active .identity-frame { opacity: 1; transform: scale(1); }
.identity-frame::before, .identity-frame::after { content: ''; position: absolute; width: 8px; height: 8px; border: 1px solid var(--paper); background: var(--accent); }
.identity-frame::before { top: -4px; left: -4px; }
.identity-frame::after { right: -4px; bottom: -4px; }
.identity-marker { position: absolute; top: 12%; left: 21%; font: 500 10px/1.5 var(--sans); letter-spacing: .13em; color: var(--paper); }
.production-art-caption { position: absolute; left: 20px; right: 20px; bottom: 18px; display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; background: #f7f7f5eb; font: 400 9px/1.5 var(--sans); letter-spacing: .09em; text-transform: uppercase; }
.production-controls { min-width: 0; padding: 24px 36px 32px; }
.production-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); gap: 8px; }
.production-tabs button { position: relative; min-height: 67px; padding: 10px 16px 16px; border: 0; background: transparent; text-align: left; color: var(--muted); transition: color .2s, background .2s; }
.production-tabs button > span { font: 500 20px/1.3 var(--serif); }
.production-tabs small { display: block; margin-top: 4px; font-size: 11px; }
.production-tabs button::after { content: ''; position: absolute; bottom: -1px; height: 2px; left: 0; right: 0; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.production-tabs button[aria-selected='true'] { color: var(--ink); background: var(--surface); }
.production-tabs button[aria-selected='true']::after { transform: scaleX(1); }
.production-tabs button:hover { color: var(--ink); background: var(--surface); }
.production-tabs button:focus-visible { outline-offset: -4px; }
.production-panels { margin-top: 26px; }
.production-panel { display: flex; flex-direction: column; min-height: 368px; outline-offset: 6px; }
.production-panel[hidden] { display: none !important; }
.production-panel:not([hidden]) { animation: panel-arrive .5s cubic-bezier(.2,.7,.2,1) both; }
.production-index { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font: 400 10px/1.6 var(--sans); color: var(--muted); text-transform: uppercase; letter-spacing: .07em; }
.production-panel h3 { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 15px; font: 500 clamp(46px,4.2vw,60px)/1.12 var(--serif); letter-spacing: -.035em; }
.production-spark { color: var(--accent); font: 400 30px/1 var(--sans); animation: spark-turn .8s cubic-bezier(.2,.7,.2,1); }
.production-description { margin-top: 18px; font-size: 16px; line-height: 1.65; max-width: 390px; }
.production-facts { margin: 24px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); font-size: 13px; }
.production-facts > div { display: grid; grid-template-columns: 82px 1fr; gap: 16px; margin-bottom: 10px; }
.production-facts dt { color: var(--muted); }
.production-facts dd { margin: 0; }
.production-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: auto; padding-top: 24px; }
.production-actions .btn { gap: 22px; }
.round-arrow { display: inline-flex; align-items: center; justify-content: center; width: 23px; height: 23px; border: 1px solid #f7f7f570; border-radius: 50%; transition: transform .3s, background .3s, color .3s; }
.production-actions .btn:hover .round-arrow { transform: rotate(45deg); color: var(--ink); background: var(--paper); }
.production-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 20px; font-size: 13px; color: var(--muted); }
.production-footer > p { display: flex; align-items: center; gap: 12px; }
.motion-symbol { color: var(--accent); font-size: 22px; }
.reading-progress { position: absolute; bottom: -1px; left: 0; width: 100%; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.nami-site .hero-title > span { animation: title-arrive .85s cubic-bezier(.2,.7,.2,1) both; }
.nami-site .hero-title > span:nth-child(2) { animation-delay: .09s; }
.nami-site .hero-title > span:nth-child(3) { animation-delay: .18s; }
.nami-site .hero-visual > img { transform: translateY(var(--hero-drift, 0px)) scale(1.04); animation: frame-arrive 1.1s cubic-bezier(.2,.7,.2,1) both; }
.nami-site .hero-caption { position: relative; z-index: 1; }
.nami-site [data-reveal] { transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.nami-site .reveal-pending { opacity: 0; transform: translateY(30px); }
.nami-site .reveal-pending:focus-within { opacity: 1; transform: none; }
.nami-site .model-card:nth-child(2), .nami-site .step:nth-child(2) { transition-delay: .08s; }
.nami-site .model-card:nth-child(3), .nami-site .step:nth-child(3) { transition-delay: .16s; }
.nami-site .model-card:nth-child(4) { transition-delay: .24s; }
.nami-site .model-image { position: relative; }
.nami-site .model-image img { transition: transform .8s cubic-bezier(.2,.7,.2,1), filter .6s; }
.nami-site .model-card:hover .model-image img, .nami-site .model-card:focus-visible .model-image img { transform: scale(1.065); }
.model-open { position: absolute; right: 14px; bottom: 14px; z-index: 1; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--paper); color: var(--ink); font-size: 27px; line-height: 1; transition: transform .4s, background .3s, color .3s; }
.model-card:hover .model-open, .model-card:focus-visible .model-open { transform: rotate(90deg); background: var(--ink); color: var(--paper); }
.model-dialog { width: min(900px, calc(100% - 40px)); max-height: 90svh; padding: 0; border: 1px solid var(--line); background: var(--paper); color: var(--ink); margin: auto; overflow: auto; }
.model-dialog[open] { animation: dialog-arrive .4s cubic-bezier(.2,.7,.2,1); }
.model-dialog::backdrop { background: #10101080; backdrop-filter: blur(7px); }
body:has(.model-dialog[open]) { overflow: hidden; }
.dialog-layout { display: grid; grid-template-columns: 1fr 1fr; }
.dialog-image { position: relative; overflow: hidden; min-width: 0; background: var(--surface); }
.dialog-image img { width: 100%; height: 100%; min-height: 540px; object-fit: cover; }
.profile-pagination { position: absolute; bottom: 16px; left: 16px; right: 16px; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; background: var(--paper); }
.profile-pagination span { text-align: center; font: 400 11px/1.4 var(--sans); letter-spacing: .06em; }
.profile-pagination button { width: 44px; height: 44px; padding: 0; border: 0; background: none; font-size: 20px; transition: background .2s; }
.profile-pagination button:hover { background: var(--surface); }
.profile-pagination button:focus-visible { outline-offset: -4px; }
.dialog-copy { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 56px 36px 40px; }
.dialog-copy h2 { margin-top: 22px; font: 500 56px/1.15 var(--serif); letter-spacing: -.035em; }
.dialog-description { margin-top: 20px; font-size: 18px; }
.dialog-guidance { margin-top: 20px; color: var(--muted); font-size: 14px; }
.dialog-copy .btn { align-self: flex-start; margin-top: 28px; }
.dialog-copy .fineprint { margin-top: 20px; }
.dialog-close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); font-size: 30px; line-height: 1; transition: background .2s, transform .3s; }
.dialog-close:hover { background: var(--surface); transform: rotate(90deg); }
@keyframes panel-arrive { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes title-arrive { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
@keyframes frame-arrive { from { opacity: 0; clip-path: inset(8% 0 8% 0); } to { opacity: 1; clip-path: inset(0); } }
@keyframes spark-turn { from { transform: rotate(-120deg); opacity: 0; } to { transform: rotate(0); opacity: 1; } }
@keyframes dialog-arrive { from { opacity: 0; transform: translateY(20px) scale(.98); } to { opacity: 1; transform: none; } }
@media (max-width: 1000px) and (min-width: 761px) {
  .production-controls { padding: 20px 24px 28px; }
  .production-panel h3 { font-size: 44px; }
  .production-description { font-size: 15px; }
  .production-actions { gap: 8px 14px; }
  .production-actions .btn { padding-inline: 15px; gap: 12px; }
  .production-index { font-size: 9px; }
}
@media (max-width: 760px) {
  .services.section { padding-top: 56px; }
  .services .section-head { grid-template-columns: 1fr; gap: 16px; }
  .services .section-head > p { max-width: 460px; }
  .production-studio { display: flex; flex-direction: column; }
  .production-controls { display: contents; }
  .production-tabs { order: 1; position: sticky; top: calc(var(--nav-height) - 1px); z-index: 4; margin: 0; padding: 16px 20px 0; background: var(--paper); }
  .production-art { order: 2; height: clamp(260px,65vw,360px); margin-top: 20px; }
  .production-panels { order: 3; margin: 0; padding: 26px; }
  .production-panel { min-height: 350px; }
  .production-panel h3 { font-size: 52px; }
  .production-description { max-width: none; }
  .production-index { font-size: 10px; }
  .production-art-caption { left: 16px; right: 16px; bottom: 14px; }
  .cast-composition img:nth-child(1) { width: 43%; height: 80%; left: 12%; top: 7%; }
  .cast-composition img:nth-child(2) { width: 31%; height: 68%; right: 12%; top: 3%; }
  .cast-composition img:nth-child(3) { width: 25%; height: 54%; right: 20%; bottom: 12%; }
  .signature-composition > img { object-position: 50% 35%; }
  .identity-frame { inset: 9% 26% 21%; }
  .identity-marker { left: 29%; }
  .production-footer { align-items: flex-start; flex-wrap: wrap; gap: 4px; margin-top: 16px; }
  .production-footer > p { font-size: 12px; }
  .dialog-layout { grid-template-columns: 1fr; }
  .dialog-image img { min-height: 0; height: 38svh; max-height: 340px; object-position: center 35%; }
  .dialog-copy { padding: 28px 24px; }
  .dialog-copy h2 { font-size: 44px; margin-top: 12px; }
  .dialog-description { font-size: 16px; margin-top: 14px; }
  .dialog-guidance { margin-top: 14px; }
}
@media (max-width: 380px) {
  .production-panels { padding: 22px 20px; }
  .production-tabs { padding-inline: 12px; }
  .production-panel h3 { font-size: 44px; }
  .production-index { font-size: 9px; letter-spacing: .02em; }
  .production-facts > div { grid-template-columns: 70px 1fr; gap: 12px; }
  .production-actions { gap: 8px 14px; }
  .production-actions .btn { padding-inline: 14px; gap: 12px; }
  .model-dialog { width: calc(100% - 24px); }
  .dialog-copy { padding-inline: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .nami-site .hero-title > span, .nami-site .hero-visual > img, .production-panel, .production-spark, .model-dialog[open] { animation: none !important; }
  .nami-site .reveal-pending { opacity: 1; transform: none; }
  .production-layer, .production-layer img, .identity-frame, .production-tabs button::after, .nami-site [data-reveal], .nami-site .model-image img, .model-open, .round-arrow, .dialog-close { transition: none !important; }
  .nami-site .model-card:hover .model-image img, .nami-site .model-card:focus-visible .model-image img, .model-card:hover .model-open, .model-card:focus-visible .model-open { transform: none; }
}

/* A compact studio signature, followed by a single clear FAQ hierarchy. */
.studio.wrap, .faq.wrap { max-width: 1120px; }
.studio.section { padding-top: 0; padding-bottom: 64px; }
.studio .studio-layout { grid-template-columns: 1fr 1.25fr auto; gap: 36px; padding: 32px 36px; border: 0; background: var(--surface); }
.studio .studio-layout .eyebrow { margin-bottom: 12px; font-size: 10px; }
.studio .studio-layout .display { font-size: 28px; line-height: 1.2; white-space: normal; }
.studio .studio-copy > p { font-size: 14px; max-width: 390px; }
.studio .studio-link { white-space: nowrap; }
.faq .faq-layout { grid-template-columns: .85fr 1.4fr; gap: 72px; padding-top: 0; border-top: 0; }
.faq .faq-intro .display { max-width: 320px; font-size: clamp(34px, 3vw, 42px); }
.faq .faq-intro > p:last-child { margin-top: 18px; }
.faq .faq-item summary { align-items: center; gap: 24px; transition: color .2s; }
.faq .faq-item summary:hover { color: var(--muted); }
.faq .faq-item summary::after { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 50%; font-size: 18px; transition: transform .3s, background .3s; }
.faq .faq-item[open] summary::after { content: '+'; transform: rotate(45deg); background: var(--surface); }
.faq .faq-item[open] p { animation: panel-arrive .3s ease-out; }
@media (max-width: 1000px) {
  .studio .studio-layout { grid-template-columns: 1fr 1.3fr; gap: 20px 32px; }
  .studio .studio-link { grid-column: 2; justify-self: start; }
}
@media (max-width: 760px) {
  .studio.section { padding-bottom: 48px; }
  .studio .studio-layout { grid-template-columns: 1fr; gap: 20px; padding: 28px; }
  .studio .studio-link { grid-column: auto; }
  .studio .studio-layout .display { font-size: 28px; }
  .faq .faq-layout { grid-template-columns: 1fr; gap: 28px; }
  .faq .faq-intro .display { max-width: none; }
}
