/* KASSHA film orbit: ring and cube modes (js/kassha-orbit.js). Old grid is hidden only when .orbit-on is set by JS. */
.films-section.orbit-on .film-grid,.films-section.orbit-on .film-filters,.films-section.orbit-on .film-count{display:none}

.orbit{grid-column:1/-1;position:relative;min-width:0;isolation:isolate;overflow:hidden;border-radius:10px;color:#f3e6dc;background:radial-gradient(120% 90% at 50% 25%,#4a2619 0%,#1f1614 42%,#0c0f22 100%);padding:0 0 22px;font-family:'Noto Sans JP',sans-serif}
.orbit::before{content:'';position:absolute;inset:0;pointer-events:none;background:radial-gradient(55% 45% at 50% 42%,rgba(155,74,44,.28),transparent 72%);z-index:0}
.orbit>*{position:relative;z-index:1}

.orbit-stage{position:relative;overflow:hidden;perspective:var(--p,1000px);touch-action:pan-y;user-select:none;-webkit-user-select:none;cursor:grab}
.orbit-stage:active{cursor:grabbing}
.orbit-space{position:absolute;inset:-8%;pointer-events:none;transform:translate3d(var(--par,0px),0,0);background-image:radial-gradient(1.6px 1.6px at 18% 30%,rgba(255,232,215,.75),transparent 70%),radial-gradient(1.2px 1.2px at 72% 62%,rgba(255,205,180,.55),transparent 70%),radial-gradient(1px 1px at 42% 84%,rgba(190,210,255,.5),transparent 70%),radial-gradient(1.3px 1.3px at 86% 16%,rgba(255,220,200,.5),transparent 70%),radial-gradient(.9px .9px at 60% 40%,rgba(255,255,255,.4),transparent 70%);background-size:260px 230px,330px 290px,210px 190px,380px 340px,240px 210px}
.orbit-space::after{content:'';position:absolute;inset:0;background:radial-gradient(ellipse at 50% 45%,transparent 30%,rgba(6,4,6,.75) 100%)}

.orbit-world{position:absolute;left:50%;top:50%;width:0;height:0;transform-style:preserve-3d}

/* ring mode */
.orbit-item{position:absolute;left:calc(var(--w,300px) * -.5);top:calc(var(--h,169px) * -.5);width:var(--w,300px);height:var(--h,169px);perspective:800px;transition:none}
.orbit-card{position:absolute;inset:0;border-radius:14px;background:#120c0a;box-shadow:0 34px 60px -24px rgba(0,0,0,.85),0 0 0 1px rgba(255,220,200,.14),0 0 46px rgba(155,74,44,.32)}
.orbit-item.is-front .orbit-card{box-shadow:0 38px 70px -22px rgba(0,0,0,.9),0 0 0 1px rgba(255,226,210,.32),0 0 90px rgba(200,110,70,.5)}
.orbit-item.is-focus .orbit-card{outline:3px solid #e9b49a;outline-offset:5px}

/* cube mode */
.orbit-cube{position:absolute;left:calc(var(--s,240px) * -.5);top:calc(var(--s,240px) * -.5);width:var(--s,240px);height:var(--s,240px);transform-style:preserve-3d}
.orbit-face{position:absolute;inset:0;border-radius:10px;backface-visibility:hidden;-webkit-backface-visibility:hidden;transform:rotateX(var(--rx,0deg)) rotateY(calc(var(--k,0) * 90deg)) translateZ(var(--half,120px));box-shadow:0 0 36px rgba(155,74,44,.4),inset 0 0 0 1px rgba(255,236,224,.6),inset 0 0 18px rgba(255,255,255,.08)}
.orbit-face .orbit-media{opacity:.85;border-radius:inherit}
.orbit-plate{background:linear-gradient(135deg,rgba(255,236,222,.34) 0%,rgba(255,236,222,.08) 45%,rgba(155,74,44,.2) 100%);box-shadow:inset 0 0 0 1px rgba(255,236,224,.55),0 0 26px rgba(155,74,44,.3)}

.orbit-media{position:absolute;inset:0;overflow:hidden;border-radius:inherit;background:#120c0a}
/* hqdefault is 4:3 with black bars for 16:9 videos: enlarge the box so the bars fall outside the frame */
.orbit-media img{position:absolute;left:0;top:-16.67%;width:100%;height:133.34%;object-fit:cover;pointer-events:none;max-width:none}
.orbit-media iframe{position:absolute;inset:0;width:100%;height:100%;border:0;border-radius:inherit}
.orbit-card::after,.orbit-face:not(.orbit-plate)::after{content:'';position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:linear-gradient(158deg,rgba(255,255,255,.24) 0%,rgba(255,255,255,0) 36%,rgba(255,255,255,0) 72%,rgba(255,255,255,.08) 100%)}
.is-playing.orbit-card::after,.is-playing.orbit-face::after{display:none}

/* caption, nav, sr list */
.orbit-caption{display:flex;flex-direction:column;align-items:center;gap:4px;min-height:96px;padding:16px 20px 0;text-align:center;overflow-wrap:anywhere}
.orbit-cap-title{font:700 clamp(16px,1.9vw,20px)/1.5 'Noto Sans JP',sans-serif;color:#fbf1ea}
.orbit-cap-meta,.orbit-cap-credit,.orbit-cap-client{font-size:13px;color:#d6bfb1}
.orbit-cap-credit{color:#f0cdbb}
.orbit-nav{display:flex;align-items:center;justify-content:center;gap:18px;margin-top:10px}
.orbit-nav button{min-width:44px;min-height:44px;padding:0 14px;border:1px solid rgba(255,220,200,.42);border-radius:24px;background:rgba(10,8,10,.35);color:#f3e6dc;font:inherit;font-size:18px;line-height:1;cursor:pointer}
.orbit-nav button:disabled{opacity:.35;cursor:default}
.orbit-count{min-width:90px;text-align:center;font-size:13px;color:#d6bfb1;font-variant-numeric:tabular-nums}
.orbit-count::before{content:'● ';color:#c8724b}
.orbit button:focus-visible,.orbit-sr button:focus-visible{outline:3px solid #e9b49a;outline-offset:3px}
.orbit-sr{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;list-style:none}
.orbit-sr button{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

@media(max-width:700px){
  .orbit-caption{min-height:84px;padding-inline:16px}
  .orbit-nav{gap:12px}
}
@media(prefers-reduced-motion:reduce){
  .orbit-space{transform:none}
  .orbit *{transition:none!important;animation:none!important}
}

/* films block placed directly under the hero (kassha.html): unnumbered, compact header */
.films-section.films-top{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;padding:36px 7% 28px;border-bottom:1px solid var(--line);background:var(--paper)}
.films-top .films-heading{margin:0}
.films-top .films-heading h2{font:700 clamp(22px,2.2vw,30px)/1.5 'Noto Serif JP',serif;color:var(--page-accent)}
.films-top .section-body{margin:0}
.films-top .section-body p{font-size:15px;line-height:1.8;max-width:none}
.films-top .note{margin:0;font-size:13px}
/* kassha only: the hero is shortened so the film gallery sits in the first view (text unchanged) */
body[data-page="kassha"] .business-hero{min-height:0;padding:calc(var(--header-height) + 8px) 7% 8px;row-gap:16px}
body[data-page="kassha"] .business-model{min-height:300px}
body[data-page="kassha"] .films-section.films-top{padding:8px 7% 16px;gap:10px}
body[data-page="kassha"] .films-section.films-top>.note{order:1}
body[data-page="kassha"] .films-section.films-top>.section-body{order:2}
body[data-page="kassha"] .business-model{min-height:260px}
@media(max-width:1000px){body[data-page="kassha"] .business-model{min-height:150px}}
/* phones: the decorative hero model (aria-hidden) is hidden so the gallery starts within the first screen */
@media(max-width:700px){body[data-page="kassha"] .business-model{display:none}}

/* round 4: compact hero (KASSHA + subtitle only), full-bleed gallery, description block below it */
body[data-page="kassha"] .business-hero{min-height:0;display:block;padding:calc(var(--header-height) + 20px) 7% 12px}
body[data-page="kassha"] .business-heading{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 22px}
body[data-page="kassha"] .business-heading h1{font-size:clamp(28px,3vw,40px);line-height:1.2;margin:0}
body[data-page="kassha"] .business-heading h2{font-size:clamp(15px,1.4vw,18px);margin:0}
body[data-page="kassha"] .films-section.films-top{padding:18px 7% 32px}
.films-top .orbit{margin-inline:-7%;border-radius:0}
.orbit-caption{min-height:0;padding:14px 16px 0;gap:3px}
.orbit-cap-title{font-size:clamp(17px,1.8vw,21px)}
.orbit-cap-credit{font-size:13px}
.orbit-cap-meta{font-size:12px;opacity:.85}
.orbit-nav{margin-top:8px}
body[data-page="kassha"] .kassha-about{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:40px;align-items:center;padding:72px 7%}
body[data-page="kassha"] .kassha-about .kassha-about-text{grid-column:1;grid-row:1}
body[data-page="kassha"] .kassha-about .business-model{grid-column:2;grid-row:1;min-height:320px}
@media(max-width:700px){body[data-page="kassha"] .kassha-about{grid-template-columns:minmax(0,1fr);padding:48px 7%}}
body[data-page="kassha"] .films-section.films-top{padding:18px 0 32px}
.films-top>.section-heading,.films-top>.section-body,.films-top>.note{padding-inline:7%}
.films-top .orbit{margin-inline:0}
/* first screen contact on KASSHA: the button sits at the right end of the heading band; the description takes the second line */
body[data-page="kassha"] .business-cta{margin:0 0 0 auto;width:auto;min-width:240px}
body[data-page="kassha"] .business-lead{flex-basis:100%;margin:0;font-size:16px;line-height:1.9;max-width:none}
@media(max-width:700px){body[data-page="kassha"] .business-cta{width:100%;margin:12px 0 0}}
