/* CHIYOMATSU MOTION LAYER — no changes to corporate palette or layout */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior:smooth; }
  .chm-reveal { opacity:0; transform:translate3d(0,34px,0); filter:blur(5px); transition:opacity .9s cubic-bezier(.2,.7,.2,1),transform 1s cubic-bezier(.2,.7,.2,1),filter .9s ease; }
  .chm-reveal.chm-visible { opacity:1; transform:translate3d(0,0,0);filter:blur(0); }
  .hero { isolation:isolate;overflow:hidden; }
  .hero-content { transform:translate3d(0,var(--chm-hero-shift,0px),0) scale(var(--chm-hero-scale,1));transform-origin:left center;will-change:transform; }
  .hero .eyebrow { letter-spacing:clamp(.24em,var(--chm-letter-spacing, .24em),.65em);transition:letter-spacing .1s linear; }
  .hero h1 { transform:translateZ(0) scale(var(--chm-title-scale,1));transform-origin:left center;will-change:transform; }
  .hero .scroll {animation:chm-pulse 2s ease-in-out infinite alternate;}
  @keyframes chm-pulse { from {translate:0 0;opacity:.7} to {translate:0 6px;opacity:1}}
  .service { transition: transform .5s cubic-bezier(.2,.7,.2,1),background-color .5s ease,box-shadow .5s ease; }
  .service:hover {transform:translateY(-9px);background:rgba(165,138,74,.055);box-shadow:0 18px 28px -28px rgba(23,27,24,.7);}
  .service h3 { transition:transform .5s ease; }
  .service:hover h3 { transform:translateX(4px); }
  .philosophy .photo { background-size: auto 115%; transition:background-size .8s ease; }
  .philosophy:hover .photo { background-size:auto 121%; }
  .philosophy .words { transform:translateY(var(--chm-approach-shift,0px));will-change:transform; }
  .link,.solid {transition:transform .3s ease, opacity .3s ease,background-color .3s ease;}
  .link:hover,.solid:hover { transform:translateY(-2px);}
}
@media(max-width:600px){.hero-content{transform:none!important}.hero h1{transform:none!important}.philosophy .words{transform:none!important}.philosophy .photo{background-size:cover!important}}
@media(prefers-reduced-motion:reduce){.chm-reveal{opacity:1!important;filter:none!important;transform:none!important;transition:none!important}}

/* Opening cinematic zoom. Corporate design, typography, palette unchanged. */
@media (prefers-reduced-motion: no-preference) {
  .hero-content.chm-opening {
    animation: chm-opening-settle 2200ms cubic-bezier(.16,1,.3,1) both;
    backface-visibility: hidden;
  }
  @keyframes chm-opening-settle {
    0% { transform: translate3d(0,12px,0) scale(1.19); opacity: .90; filter: blur(1.8px); }
    24% { opacity:1; filter:blur(0); }
    100% { transform: translate3d(0,var(--chm-hero-shift,0px),0) scale(var(--chm-hero-scale,1)); opacity:1; filter:blur(0); }
  }
}
@media (max-width:600px) and (prefers-reduced-motion: no-preference) {
  .hero-content.chm-opening {animation-name:chm-opening-mobile;animation-duration:1600ms;}
  @keyframes chm-opening-mobile {
    from {transform:scale(1.075);opacity:.9;}
    to {transform:scale(1);opacity:1;}
  }
}


/* Full-screen corporate identity reveal — isolated from all existing styles. */
.chm-intro-screen{position:fixed;inset:0;z-index:99998;background:#fff;pointer-events:all;opacity:1;transition:opacity .82s ease;}
.chm-intro-screen.chm-intro-clear{opacity:0;pointer-events:none;}
.chm-intro-flying{position:fixed;z-index:99999;display:flex!important;align-items:center;gap:15px;white-space:nowrap;pointer-events:none;transform-origin:top left!important;will-change:transform;opacity:1!important;}
.chm-intro-flying span{white-space:nowrap;}
header > a.brand.chm-brand-hidden{visibility:hidden!important;}
@media(prefers-reduced-motion:reduce){.chm-intro-screen,.chm-intro-flying{display:none!important}header > a.brand.chm-brand-hidden{visibility:visible!important}}
