/* Areta motion layer
   Four service films, one color register per service, plus the approved
   homepage kinetic manifesto. Functional chrome stays restrained. */

:root{
  --mg-ink:#111318;
  --mg-paper:#f7f5f0;
  --mg-white:#fff;
  --mg-ease:cubic-bezier(.22,1,.36,1);
}

/* ── Four service registers ─────────────────────────────────────────────── */
#build{
  --pc:#2563eb;--motion-accent:#2563eb;--motion-accent-2:#0e7490;
  --motion-soft:#eaf2ff;--motion-deep:#091c48;--motion-rgb:37,99,235;
  --motion-title:linear-gradient(96deg,#111318 0%,#18233d 30%,#2563eb 64%,#0e7490 100%);
  --pg:linear-gradient(90deg,#0e7490,#2563eb 52%,#7dd3fc);
}
#growth{
  --pc:#d97706;--motion-accent:#d97706;--motion-accent-2:#c2410c;
  --motion-soft:#fff2df;--motion-deep:#3a1907;--motion-rgb:217,119,6;
  --motion-title:linear-gradient(96deg,#14120f 0%,#34200b 30%,#d97706 66%,#c2410c 100%);
  --pg:linear-gradient(90deg,#c2410c,#d97706 52%,#f59e0b);
}
#systems{
  --pc:#7c3aed;--motion-accent:#7c3aed;--motion-accent-2:#6d28d9;
  --motion-soft:#f0eaff;--motion-deep:#201046;--motion-rgb:124,58,237;
  --motion-title:linear-gradient(96deg,#121117 0%,#291c45 30%,#7c3aed 66%,#6d28d9 100%);
  --pg:linear-gradient(90deg,#6d28d9,#7c3aed 52%,#c084fc);
}
#secure{
  --pc:#059669;--motion-accent:#059669;--motion-accent-2:#047857;
  --motion-soft:#e6f8f0;--motion-deep:#082b22;--motion-rgb:5,150,105;
  --motion-title:linear-gradient(96deg,#101513 0%,#16352c 30%,#059669 66%,#047857 100%);
  --pg:linear-gradient(90deg,#047857,#059669 52%,#2dd4bf);
}

.deep-section .service-color-title,
.deep-section .service-color-title em,
.deep-section .service-color-title .word > span{
  color:transparent!important;
  -webkit-text-fill-color:transparent!important;
  background:var(--motion-title)!important;
  -webkit-background-clip:text!important;
  background-clip:text!important;
  background-size:100% 100%!important;
  padding-bottom:0!important;
}
.deep-section .service-color-title{
  max-width:980px;
  font-family:'IBM Plex Sans Hebrew',var(--font-display,'Assistant',sans-serif);
  font-size:clamp(38px,5.6vw,74px);
  line-height:.98;
  letter-spacing:-.055em;
  margin:18px 0 20px;
}
.deep-section .pkg-head{max-width:980px;margin-bottom:clamp(30px,4vw,52px)}
.deep-section .deep-lead{max-width:760px}

/* ── One real motion film per service ──────────────────────────────────── */
.service-film{
  position:relative;
  margin:0 0 clamp(44px,6vw,78px);
  isolation:isolate;
}
.service-film::before{
  content:"";
  position:absolute;
  z-index:-1;
  inset:5% 5% -9%;
  border-radius:46%;
  pointer-events:none;
  background:radial-gradient(ellipse at 50% 38%,rgba(var(--motion-rgb),.3),rgba(var(--motion-rgb),.08) 44%,transparent 72%);
  filter:blur(38px);
  opacity:.72;
}
.service-film-frame{
  position:relative;
  width:100%;
  aspect-ratio:16/9;
  overflow:hidden;
  border-radius:32px;
  border:1px solid color-mix(in srgb,var(--motion-accent) 24%,rgba(255,255,255,.78));
  background:var(--motion-deep);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.3),
    0 44px 90px -56px rgba(8,14,27,.78),
    0 24px 54px -42px rgba(var(--motion-rgb),.72);
  transform:translateZ(0);
  transition:transform .65s var(--mg-ease),border-color .5s ease,box-shadow .65s var(--mg-ease);
}
.service-film-frame::before{
  content:"";
  position:absolute;
  z-index:2;
  inset:0;
  border-radius:inherit;
  pointer-events:none;
  background:linear-gradient(136deg,rgba(255,255,255,.2),transparent 18%,transparent 76%,rgba(var(--motion-rgb),.12));
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.045);
}
.service-film-frame::after{
  content:"";
  position:absolute;
  z-index:3;
  top:-28%;
  inset-inline-start:-52%;
  width:34%;
  height:158%;
  pointer-events:none;
  opacity:0;
  transform:rotate(13deg) translateX(0);
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.16),transparent);
  transition:opacity .25s ease;
}
@media(hover:hover) and (pointer:fine){
  .service-film-frame:hover{
    transform:translateY(-5px);
    border-color:color-mix(in srgb,var(--motion-accent) 45%,#fff);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.34),0 52px 104px -56px rgba(8,14,27,.86),0 30px 64px -40px rgba(var(--motion-rgb),.78);
  }
  .service-film-frame:hover::after{opacity:1;animation:service-film-sheen 1.25s var(--mg-ease)}
}
@keyframes service-film-sheen{to{transform:rotate(13deg) translateX(470%)}}

.service-film-video{
  position:absolute;
  z-index:1;
  inset:0;
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  background:var(--motion-deep);
  transition:filter .55s ease,opacity .45s ease;
}
.service-film:not(.is-film-ready) .service-film-video{filter:saturate(.88) brightness(.92)}
.service-film.is-film-ready .service-film-video{filter:none}
.service-film.is-paused .service-film-video{filter:saturate(.92) brightness(.94)}

.service-film-control{
  position:absolute;
  z-index:5;
  right:18px;
  bottom:18px;
  width:44px;
  min-width:44px;
  min-height:44px;
  padding:9px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border:1px solid rgba(255,255,255,.24);
  border-radius:999px;
  color:#fff;
  background:rgba(8,12,20,.58);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.18),0 12px 30px rgba(0,0,0,.24);
  -webkit-backdrop-filter:blur(14px) saturate(1.15);
  backdrop-filter:blur(14px) saturate(1.15);
  cursor:pointer;
  font:600 12px/1 var(--font-ui,'Rubik',sans-serif);
  transition:background .25s ease,border-color .25s ease,transform .25s var(--mg-ease);
  -webkit-tap-highlight-color:transparent;
  touch-action:manipulation;
}
.service-film-control:hover{background:rgba(8,12,20,.76);border-color:rgba(255,255,255,.42);transform:translateY(-1px)}
.service-film-control:focus-visible{outline:3px solid color-mix(in srgb,var(--motion-accent) 42%,transparent);outline-offset:3px}
.service-film-icon{width:18px;height:18px;display:block;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.service-film-label{display:none!important}
.service-film-icon--play,.service-film-label--play{display:none}
.service-film.is-paused .service-film-icon--pause,
.service-film.is-paused .service-film-label--pause{display:none}
.service-film.is-paused .service-film-icon--play{display:block}
.service-film.is-paused .service-film-label--play{display:inline}

/* One section accent connects its title, film and approved bare icons. */
.deep-section .areta-bento .cap{--c:var(--motion-accent)!important}

/* ── Homepage: approved kinetic manifesto ──────────────────────────────── */
.motion-story-section{position:relative;overflow:clip;padding:clamp(84px,11vw,154px) 0 0;background:var(--mg-paper)}
.motion-story-section::before{content:"";position:absolute;inset:-5% -20% auto;height:46%;pointer-events:none;background:radial-gradient(circle at 50% 15%,rgba(124,58,237,.09),transparent 52%),radial-gradient(circle at 72% 38%,rgba(37,99,235,.08),transparent 45%)}
.motion-manifesto{position:relative;z-index:1;padding-bottom:clamp(78px,11vw,150px)}
.motion-manifesto-eyebrow{margin-bottom:clamp(30px,5vw,62px);font:600 11px/1 var(--font-mono,'JetBrains Mono',monospace);letter-spacing:.17em;text-transform:uppercase;color:#6d7078}
.motion-manifesto-line{--mg-x:0px;display:block;width:max-content;max-width:none;margin:.02em 0;font-family:'IBM Plex Sans Hebrew',var(--font-display,'Assistant',sans-serif);font-size:clamp(46px,8.6vw,128px);font-weight:700;line-height:.92;letter-spacing:-.068em;color:#111318;white-space:nowrap;transform:translate3d(var(--mg-x),0,0);filter:blur(var(--mg-blur,0));will-change:transform,filter}
.motion-manifesto-line:nth-child(3){margin-inline-start:10vw}.motion-manifesto-line:nth-child(4){margin-inline-start:3vw}
.motion-manifesto-line strong{font-weight:750;color:transparent;-webkit-background-clip:text;background-clip:text}
.motion-manifesto-line--build strong{background-image:linear-gradient(90deg,#0e7490,#2563eb)}
.motion-manifesto-line--systems strong{background-image:linear-gradient(90deg,#7c3aed,#c2410c)}
.motion-manifesto-line--secure strong{background-image:linear-gradient(90deg,#059669,#2563eb)}

/* ── Responsive behavior ───────────────────────────────────────────────── */
@media(max-width:900px){
  .deep-section .service-color-title{font-size:clamp(38px,8.8vw,64px)}
  .service-film-frame{border-radius:27px}
}
@media(max-width:620px){
  .deep-section{padding-block:58px}
  .deep-section .pkg-head{margin-bottom:24px}
  .deep-section .service-color-title{font-size:clamp(36px,10.6vw,48px);line-height:1.02;letter-spacing:-.052em;margin:13px 0 15px}
  .deep-section .deep-lead{font-size:16px;line-height:1.58}
  .service-film{margin:0 0 42px}
  .service-film::before{inset:10% 2% -8%;filter:blur(25px);opacity:.6}
  .service-film-frame{aspect-ratio:16/9;border-radius:22px;box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 26px 52px -34px rgba(8,14,27,.72),0 18px 38px -30px rgba(var(--motion-rgb),.64)}
  .service-film-control{right:11px;bottom:11px;min-width:44px;min-height:44px;padding:9px;background:rgba(8,12,20,.82);-webkit-backdrop-filter:none;backdrop-filter:none}
  .deep-section .areta-bento{grid-template-columns:1fr;gap:13px}
  .deep-section .areta-bento .cap,.deep-section .areta-bento .cap.w3{padding:18px;border-radius:20px}
  .motion-story-section{padding-top:82px}.motion-manifesto{padding-bottom:94px}.motion-manifesto-line{width:100%;font-size:clamp(42px,13.5vw,64px);line-height:.96;letter-spacing:-.06em;white-space:normal;text-wrap:balance}.motion-manifesto-line:nth-child(3){margin-inline-start:0}.motion-manifesto-line:nth-child(4){margin-inline-start:0}
}

@media(prefers-reduced-motion:reduce){
  .motion-manifesto-line{transform:none!important;filter:none!important;transition:none!important}
  .service-film,.service-film-frame,.service-film-video,.service-film-control{transform:none!important;transition:none!important;animation:none!important}
  .service-film-frame::after{display:none}
}
@media(prefers-reduced-transparency:reduce){
  .service-film-control{background:#111827;-webkit-backdrop-filter:none;backdrop-filter:none}
}
