/* Water, light, and material-inspired motion for Kappaplast. */
body { position: relative; isolation: isolate; }
.site-backdrop { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
main { position: relative; z-index: 1; }
.site-footer { z-index: 1; }
.site-backdrop .ambient-water { opacity: .85; }
.site-backdrop .ambient-canvas { mix-blend-mode: multiply; opacity: .8; mask-image: linear-gradient(90deg, #0003, black 60%); }
.site-backdrop .ambient-glow { width: 85%; opacity: .85; }
.site-backdrop .ambient-glow-one { top: -45%; right: -25%; background: radial-gradient(ellipse, #2ecc4020, transparent 65%); }
.site-backdrop .ambient-glow-two { bottom: -50%; left: -35%; }
.site-backdrop::after {
  content: '';
  position: absolute;
  width: min(1000px, 110vw);
  aspect-ratio: 1;
  top: 15%;
  right: -30%;
  border-radius: 50%;
  background: repeating-radial-gradient(ellipse at center, transparent 0 55px, #2ecc400d 56px 57px, transparent 58px 95px);
  animation: contour-turn 100s linear infinite;
}
.soft-section { background-color: rgb(243 245 241 / .78); }
.product-showcase > .site-container { position: relative; z-index: 1; }
.reading-progress {
  position: fixed;
  inset: 0 0 auto;
  height: 3px;
  z-index: 120;
  pointer-events: none;
}
.reading-progress span {
  display: block;
  height: 100%;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
}
.brand { position: relative; }
.brand::after { content: ''; position: absolute; right: -23px; top: calc(50% - 7px); width: 14px; height: 14px; border: 1.5px solid #ffffff30; border-top-color: var(--green); border-radius: 50%; opacity: 0; }
.is-navigating .brand::after { opacity: 1; animation: loader-orbit .7s linear infinite; }
.site-loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  background: #121714;
  color: white;
  pointer-events: none;
  transition: opacity .55s ease, visibility .55s;
  animation: loader-failsafe 0s 4s forwards;
}
.site-loader::before {
  content: '';
  position: absolute;
  width: min(650px, 100vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, #2ecc4010, transparent 65%);
}
.site-loader.is-finished { opacity: 0; visibility: hidden; }
.return-visit .site-loader { display: none; }
.loader-content { display: flex; flex-direction: column; align-items: center; position: relative; }
.loader-symbol { width: 124px; height: 124px; position: relative; margin-bottom: 32px; }
.loader-orbit { width: 100%; height: 100%; fill: none; stroke-width: 1; }
.loader-orbit-track { stroke: #ffffff15; }
.loader-orbit-progress { stroke: var(--green); stroke-dasharray: 90 313; transform-origin: 70px 70px; animation: loader-orbit 1.4s linear infinite; }
.loader-mark { position: absolute; inset: 30px 40px; width: 44px; height: 66px; fill: var(--green); animation: loader-breathe 1.6s ease-in-out infinite; }
.loader-brand { font: 750 24px Manrope, sans-serif; letter-spacing: .09em; }
.loader-tagline { font-size: 12px; color: #adbcb1; margin-top: 9px; }
.loader-track { width: 140px; height: 2px; background: #ffffff15; margin: 32px 0 22px; overflow: hidden; }
.loader-track > span { display: block; width: 45%; height: 100%; background: var(--green); animation: loader-track 1.1s ease-in-out infinite; }
.loader-caption { font-size: 8px; letter-spacing: .16em; color: #7e9384; }
.ambient-water { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; contain: paint; }
.ambient-glow { position: absolute; width: 65%; aspect-ratio: 1; border-radius: 50%; opacity: .65; background: radial-gradient(ellipse, #2ecc401b, transparent 65%); animation: ambient-drift 17s ease-in-out infinite alternate; }
.ambient-glow-one { top: -40%; right: -20%; }
.ambient-glow-two { bottom: -55%; left: -25%; animation-delay: -8s; animation-duration: 23s; }
.ambient-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .6; mix-blend-mode: screen; mask-image: linear-gradient(90deg, transparent 10%, #0008 50%, black); }
.hero .ambient-water { opacity: .8; }
.hero-content, .hero-bottom { z-index: 1; }
.hero .ambient-water::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at var(--light-x, 75%) var(--light-y, 40%), #c4ffdf16, transparent 42%);
}
.hero-specialties { display: flex; align-items: center; gap: 18px; font-size: 11px; letter-spacing: .04em; }
.hero-specialties > span { color: var(--green); opacity: .8; }
.site-footer { position: relative; isolation: isolate; }
.site-footer > .site-container, .page-hero > .site-container { position: relative; z-index: 1; }
.site-footer .ambient-water { opacity: .5; }
.page-hero .ambient-water { opacity: .45; }
.about-intro { position: relative; overflow: hidden; }
.about-intro::before { content: ''; position: absolute; width: 650px; height: 650px; left: -400px; top: -100px; border-radius: 50%; background: radial-gradient(ellipse, #2ecc400c, transparent 65%); animation: ambient-drift 20s ease-in-out infinite alternate; pointer-events: none; }
.product-showcase { position: relative; overflow: hidden; isolation: isolate; }
.product-showcase::before { content: ''; position: absolute; inset: -50% -25%; background: radial-gradient(ellipse at 70% 50%, #2ecc4010, transparent 50%); animation: ambient-drift 18s ease-in-out infinite alternate; pointer-events: none; z-index: -1; }
.button::before { content: ''; position: absolute; top: -80%; left: -65%; height: 240%; width: 35%; background: linear-gradient(90deg, transparent, #ffffff24, transparent); transform: skewX(-25deg); transition: left .7s var(--ease); pointer-events: none; }
.button:hover::before { left: 150%; }
.service-card .card-image::after, .project-card .card-image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, #ffffff15 50%, transparent 70%); transform: translateX(-110%); transition: transform 1s var(--ease); pointer-events: none; }
.service-card:hover .card-image::after, .project-card:hover .card-image::after { transform: translateX(110%); }
.product-image { transition: box-shadow .5s, background .5s; }
.product-card:hover .product-image { background: #e9f2e7; box-shadow: inset 0 0 0 1px #2ecc4050; }
.image-frame { position: relative; }
.reveal-ready .about-visual .image-frame img, .reveal-ready .film-image > img { transform: scale(1.08); transition: transform 1.5s var(--ease); }
.reveal-ready .about-visual.is-revealed .image-frame img, .reveal-ready .film-image.is-revealed > img { transform: scale(1); }
.image-label .green-dot { box-shadow: 0 0 0 0 #2ecc402f; animation: marker-pulse 3s ease-out infinite; }
.motion-paused *, .motion-paused *::before, .motion-paused *::after { animation-play-state: paused !important; }
.motion-paused { scroll-behavior: auto; }
.motion-paused *, .motion-paused *::before, .motion-paused *::after { transition: none !important; }
.motion-paused .site-loader { animation: loader-failsafe 0s 4s forwards !important; animation-play-state: running !important; }
.motion-paused .hero-enter { animation: none; opacity: 1; transform: none; }
.motion-paused [data-reveal] { opacity: 1; transform: none; transition: none; }
.motion-paused .about-visual .image-frame img, .motion-paused .film-image > img { transform: none; }
@keyframes loader-orbit { to { transform: rotate(360deg); } }
@keyframes loader-breathe { 0%, 100% { opacity: .7; transform: scale(.96); } 50% { opacity: 1; transform: scale(1); } }
@keyframes loader-track { from { transform: translateX(-110%); } to { transform: translateX(340%); } }
@keyframes loader-failsafe { to { visibility: hidden; opacity: 0; } }
@keyframes ambient-drift { from { transform: translate3d(-3%, -2%, 0) scale(.95); } to { transform: translate3d(8%, 10%, 0) scale(1.08); } }
@keyframes contour-turn { to { transform: rotate(360deg); } }
@keyframes marker-pulse { 60%, 100% { box-shadow: 0 0 0 12px #2ecc4000; } }
@media (max-width: 1000px) {
  .hero-specialties { display: none; }
}
@media (max-width: 700px) {
  .ambient-canvas { opacity: .4; }
  .loader-symbol { width: 112px; height: 112px; }
  .loader-mark { inset: 27px 36px; width: 40px; height: 60px; }
  .loader-brand { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  .site-backdrop::after, .ambient-glow, .product-showcase::before, .about-intro::before { animation: none; }
  .ambient-canvas, .site-loader { display: none !important; }
  .reveal-ready .about-visual .image-frame img, .reveal-ready .film-image > img { transform: none; }
  .button::before, .service-card .card-image::after, .project-card .card-image::after { display: none; }
}
