/* Shared art direction for the main and thematic pages. The static layout is fully readable without JS. */
body.home-motion {
  --motion-ease: cubic-bezier(.22,.75,.22,1);
  --motion-out: cubic-bezier(.2,.65,.25,1);
  --home-trim: linear-gradient(90deg,#8c74472b,#d2b77e 50%,#8c74472b);
}

/* The header gains depth on scroll; a thin brass line traces reading progress. */
.home-motion .head {background:#102b24;transition:background-color .3s,box-shadow .3s}
.home-motion.motion-scrolled .head {
  background:rgb(14 43 35 / 95%);
  -webkit-backdrop-filter:blur(12px);
  backdrop-filter:blur(12px);
  box-shadow:0 .55rem 1.9rem #0a211c35;
}
.home-motion .motion-progress {
  position:absolute;inset:auto 0 -1px;height:3px;z-index:4;pointer-events:none;
  transform-origin:left;transform:scaleX(var(--scroll-progress,0));
  background:linear-gradient(90deg,#a68b56,#f1d29a);box-shadow:0 0 7px #e2c58b7a;
}
@media (min-width:64.001rem) {
  .home-motion .nav a {position:relative;transition:color .24s}
  .home-motion .nav a::after {
    content:"";position:absolute;left:0;right:0;bottom:.35rem;height:1px;
    background:linear-gradient(90deg,#aa8b53,#e0c58f);transform:scaleX(0);
    transform-origin:left;transition:transform .3s var(--motion-ease);
  }
  .home-motion .nav a:is(:hover,:focus-visible,.current)::after {transform:scaleX(1)}
}

/* A more cinematic first screen; the image keeps its established mask/crop. */
.home-motion .practice-opening .hero {
  background:radial-gradient(ellipse at 0% 44%,#59714b16,transparent 54%);
}
.home-motion .hero::before {
  content:"";position:absolute;inset:0;pointer-events:none;z-index:0;
  background:radial-gradient(ellipse at 22% 3%,#d9be8421,transparent 48%),
             linear-gradient(180deg,transparent 78%,#0a282238);
}
.home-motion .hero-art picture {transform-origin:65% 48%}
.home-motion .hero-accent {color:#e6c982}
@supports ((background-clip:text) or (-webkit-background-clip:text)) {
  .home-motion .hero-accent {
    background-image:linear-gradient(112deg,#ccad72 3%,#ebd39b 42%,#e2c78d 61%,#cfac6a 97%);
    background-size:190% 100%;background-position:50% 0;
    -webkit-background-clip:text;background-clip:text;
    -webkit-text-fill-color:transparent;color:transparent;
  }
}
.home-motion .hero-lead {color:#e4eae1}
.home-motion .brass {position:relative;isolation:isolate;overflow:hidden}
.home-motion .brass::after {
  content:"";position:absolute;z-index:-1;inset:0 -35%;pointer-events:none;
  background:linear-gradient(112deg,transparent 38%,#fff6d8a6 48%,#fff6d82e 53%,transparent 64%);
  opacity:0;transform:translateX(-65%);
}
/* Preserve the stronger separate green facts band above the paper section. */
.home-motion .practice-facts__icon {filter:drop-shadow(0 0 10px #d5b77758)}

/* The light practice section has restrained paper depth and real layered cards. */
.home-motion .practice-opening + .practice {
  background:radial-gradient(ellipse 60% 65% at 100% 0%,#dbd7ba39,transparent 76%),var(--paper);
}
.home-motion .section-intro h2,.home-motion .office-info h2,.home-motion .first-contact h2 {position:relative}
.home-motion .section-intro h2::before,.home-motion .office-info h2::before,.home-motion .first-contact h2::before {
  content:"";width:clamp(2rem,5.5vw,4.35rem);height:2px;position:absolute;top:-.65rem;left:0;
  background:linear-gradient(90deg,#a78b50,#ccb27b 70%,transparent);pointer-events:none;
  transform-origin:left;
}
.home-motion .first-contact h2::before {background:linear-gradient(90deg,#e2c48c,#c5a970 70%,transparent)}
.home-motion .practice-card {
  position:relative;isolation:isolate;overflow:hidden;border-radius:.55rem;
  background:#fbfbf6;box-shadow:0 .3rem 1rem #2d433111;
  transition:translate .35s var(--motion-out),box-shadow .35s,border-color .28s,color .21s;
}
.home-motion .practice-primary {
  background:#faf6ea;box-shadow:inset 0 2px 0 var(--brass-edge),0 .3rem 1rem #5947240f;
}
.home-motion #drugie-napravleniya {
  --feature-fill:linear-gradient(145deg,#ead29a 0%,#f2e2b8 60%,#f8eed6 100%);
  --feature-edge:#ad8845;
  --feature-ink:#775a2c;
  --feature-shadow:inset 0 3px 0 #b08b46,0 .3rem 1rem #9476411d;
}
/* Keep the compact index on wider screens only. On mobile, retain the
   original card geometry, typography, icon size and section spacing. */
@media (min-width:48.001rem) {
  .home-motion #practice {padding-block:clamp(2.75rem,4.15vw,4.2rem)}
  .home-motion #practice .section-intro {margin-bottom:1.55rem}
  .home-motion #drugie-napravleniya {grid-auto-rows:auto;gap:clamp(.65rem,1.05vw,.95rem)}
  .home-motion #drugie-napravleniya > .practice-card {
    display:grid;grid-template-columns:clamp(2.3rem,3.2vw,2.75rem) minmax(0,1fr);
    grid-template-rows:auto 1fr;align-items:start;align-content:start;
    gap:.35rem .85rem;min-height:0;padding:clamp(.85rem,1.3vw,1.15rem);
  }
  .home-motion #drugie-napravleniya > .practice-card .service-icon {
    grid-column:1;grid-row:1 / 3;width:100%;height:auto;aspect-ratio:1;margin:.02rem 0 0;
  }
  .home-motion #drugie-napravleniya > .practice-card h3 {
    grid-column:2;grid-row:1;margin:0;font-size:clamp(1.12rem,1.35vw,1.3rem);line-height:1.26;
  }
  .home-motion #drugie-napravleniya > .practice-card p {grid-column:2;grid-row:2;line-height:1.42}
  /* Dedicated landing pages retain their text-only layout. */
  .home-motion.landing-page .practice-grid {grid-auto-rows:auto;gap:.85rem}
  .home-motion.landing-page .practice-card {min-height:0;padding:1.1rem 1.2rem;justify-content:flex-start}
  .home-motion.landing-page .practice-card h3 {margin-bottom:.35rem;font-size:clamp(1.12rem,1.35vw,1.3rem)}
  .home-motion.landing-page .practice-card p {line-height:1.42}
}
@media (min-width:37.501rem) and (max-width:48rem) {
  .home-motion #drugie-napravleniya .practice-card {min-height:clamp(12.5rem,16.2vw,14rem)}
}
.home-motion #drugie-napravleniya .practice-primary {
  --card-border:var(--feature-edge);--card-icon:var(--feature-ink);
  background:var(--feature-fill);box-shadow:var(--feature-shadow);
}
.home-motion .practice-secondary {
  background:linear-gradient(145deg,#f6eed9 0%,#f9f5e9 64%,#fcfaf4);
  box-shadow:inset 0 1px 0 #c6b38c,0 .3rem 1rem #927a4d0e;
}
.home-motion .practice-card::before,.home-motion .practice-card::after {
  content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  opacity:0;transition:opacity .28s var(--motion-out);
}
.home-motion .practice-card::before {background:linear-gradient(135deg,#183e31,#2e5945 62%,#153b2f)}
.home-motion .practice-card::after {
  background:radial-gradient(ellipse 12rem 10rem at var(--spot-x,45%) var(--spot-y,18%),#dbc68c42,transparent 70%);
}
.home-motion .practice-secondary::after {
  background:radial-gradient(ellipse 12rem 10rem at var(--spot-x,45%) var(--spot-y,18%),#d6bf8e2c,transparent 70%);
}
.home-motion .practice-card:is(:hover,:focus-visible,:active)::before,
.home-motion .practice-card:is(:hover,:focus-visible,:active)::after {opacity:1}
.home-motion .practice-card:is(:hover,:focus-visible,:active) {
  box-shadow:inset 0 2px 0 var(--card-hover-border,var(--brass-edge)),0 .8rem 1.7rem #193b2f29;
}
.home-motion #drugie-napravleniya .practice-primary:is(:hover,:focus-visible,:active) {
  --card-border:#c4a364;--card-icon:var(--champagne);
  box-shadow:inset 0 2px 0 #b08b46,0 .8rem 1.7rem #193b2f29;
}
.home-motion .practice-card .service-icon {
  transition:translate .35s var(--motion-out),scale .35s var(--motion-out),color .22s,filter .28s;
}
.home-motion .practice-card p {transition:color .21s}
.home-motion .practice-card:is(:hover,:focus-visible) .service-icon {filter:drop-shadow(0 0 8px #e1ca90a3)}
.home-motion .practice-secondary:is(:hover,:focus-visible) .service-icon {filter:drop-shadow(0 0 8px #e1ca9060)}

/* On phones the first four directions are highlighted; the remaining five
   are quiet and neutral, regardless of their desktop row. */
@media (max-width:48rem) {
  .home-motion #drugie-napravleniya > .practice-card {
    --card-border:#c9d2c4;--card-icon:#62755f;--card-hover-border:var(--brass-edge);
    background:#fbfbf6;box-shadow:0 .3rem 1rem #2d433111;
  }
  .home-motion #drugie-napravleniya > .practice-card:nth-child(-n+4) {
    --card-border:var(--feature-edge);--card-icon:var(--feature-ink);
    background:var(--feature-fill);box-shadow:var(--feature-shadow);
  }
  .home-motion #drugie-napravleniya > .practice-card::after {
    background:radial-gradient(ellipse 12rem 10rem at var(--spot-x,45%) var(--spot-y,18%),#dbc68c42,transparent 70%);
  }
  .home-motion #drugie-napravleniya > .practice-card:is(:hover,:focus-visible,:active) {
    --card-border:var(--brass-edge);--card-icon:#dcead7;
    box-shadow:inset 0 2px 0 var(--brass-edge),0 .8rem 1.7rem #193b2f29;
  }
  .home-motion #drugie-napravleniya > .practice-card:nth-child(-n+4):is(:hover,:focus-visible,:active) {
    --card-border:#c4a364;--card-icon:var(--champagne);box-shadow:inset 0 2px 0 #b08b46,0 .8rem 1.7rem #193b2f29;
  }
  .home-motion #drugie-napravleniya > .practice-card:is(:hover,:focus-visible) .service-icon {filter:drop-shadow(0 0 8px #e1ca90a3)}
}

/* Team portraits are undistorted; a warm frame catches light when the card is used. */
.home-motion .team {border-top:2px solid #a78d58;box-shadow:inset 0 1px 0 #e3c88f46}
.home-motion .team h2::after {
  content:"";width:clamp(.85rem,8vw,6rem);height:1px;margin-left:.3rem;
  background:linear-gradient(90deg,#cfb37b,#c9b18000);align-self:center;
  transform-origin:left;
}
.home-motion .team-profile {
  isolation:isolate;border-radius:.65rem;background-color:#0d2e246a;
  box-shadow:0 .5rem 1.8rem #08251f25,inset 0 1px 0 #d9bf832e;
  transition:translate .4s var(--motion-out),border-color .3s,background-color .3s,box-shadow .35s;
}
.home-motion .team-profile::before {
  content:"";position:absolute;inset:0;border-radius:inherit;z-index:-1;pointer-events:none;
  background:radial-gradient(ellipse 19rem 14rem at var(--spot-x,20%) var(--spot-y,20%),#d8bc8370,transparent 70%);
  opacity:.06;transition:opacity .35s;
}
.home-motion .team-profile:is(:hover,:focus-visible)::before {opacity:.45}
.home-motion .team-photo {
  box-shadow:0 .42rem 1.2rem #081f1a6b;border-color:#d2b67a9c;
  transition:scale .4s var(--motion-out),border-color .3s,box-shadow .4s;
}
.home-motion .team-profile:is(:hover,:focus-visible) .team-photo {
  border-color:#e8c98d;box-shadow:0 .45rem 1.35rem #081f1a70,0 0 .85rem #d6b77a26;
}

/* Give the working process and consultation some consistent architectural edges. */
.home-motion .approach-intro,.home-motion .first-contact__panel,.home-motion .office-grid {
  border-radius:.68rem;box-shadow:0 1rem 2.7rem #243c2d14,0 2px 4px #23362a0c;
}
.home-motion .approach-step {
  transition:translate .3s var(--motion-out),border-color .25s,background-color .25s,box-shadow .3s;
}
.home-motion .approach-step[open] {box-shadow:inset 3px 0 0 var(--gold),0 .65rem 1.6rem #112b222d}
.home-motion .approach-step[open] .step-number {box-shadow:0 0 0 4px #ae945221}
.home-motion .step-number {transition:scale .3s var(--motion-out),background-color .25s,color .25s,border-color .25s,box-shadow .25s}
.home-motion .step-toggle {transition:rotate .38s var(--motion-out),border-color .24s,color .24s}
.home-motion .approach-step[open] .step-toggle {rotate:180deg}
.home-motion .first-contact__offer {
  background:radial-gradient(ellipse at 95% 5%,#d4b97c25,transparent 60%),#0d2c234d;
}
.home-motion .faq-items summary {transition:color .25s}
.home-motion .faq summary i {transition:rotate .35s var(--motion-out),color .2s,background-color .2s,border-color .2s}
.home-motion .faq summary i::after {transition:transform .27s var(--motion-out)}
.home-motion .faq details[open] > summary i {rotate:180deg}
.home-motion .faq details[open] > summary i::after {display:block;transform:translate(-50%,-50%) rotate(0deg)}
.home-motion .office-grid {border-color:#c1ad80}
.home-motion .office-info a {transition:color .25s}
.home-motion .office-info a:is(:hover,:focus-visible) {color:#825d23}
.home-motion footer {border-top:2px solid #a88a50}

@media (prefers-reduced-motion:no-preference) {
  /* One deliberate entrance instead of looping movement or a blocking loader. */
  .home-motion.motion-ready .hero #hero-title {animation:home-hero-copy .74s var(--motion-out) both}
  .home-motion.motion-ready .hero .hero-lead {animation:home-hero-copy .74s .12s var(--motion-out) both}
  .home-motion.motion-ready .hero .hero-actions {animation:home-hero-copy .68s .21s var(--motion-out) both}
  .home-motion.motion-ready .hero .hero-art picture {animation:home-hero-image 1.75s var(--motion-ease) both}
  .home-motion.motion-ready .hero .hero-accent {animation:home-title-light 1.35s .1s var(--motion-out) both}
  .home-motion.motion-ready .hero:focus-within #hero-title,
  .home-motion.motion-ready .hero:focus-within .hero-lead,
  .home-motion.motion-ready .hero:focus-within .hero-actions {animation:none;opacity:1;transform:none}
  @keyframes home-hero-copy {from {opacity:.12;transform:translateY(1.1rem)}to {opacity:1;transform:none}}
  @keyframes home-hero-image {from {opacity:.45;transform:scale(1.07)}to {opacity:1;transform:scale(1.035)}}
  @keyframes home-title-light {from {background-position:0% 50%}to {background-position:100% 50%}}
  @media (min-width:55.001rem) and (hover:hover) and (pointer:fine) {
    .home-motion.motion-ready .hero .hero-art img {transform:translateY(clamp(-14px,var(--hero-drift,0px),14px)) scale(1.035)}
  }
  @media (max-width:55rem) {
    .home-motion.motion-ready .hero .hero-art picture {animation-name:home-hero-image-small}
    @keyframes home-hero-image-small {from {opacity:.55;transform:scale(1.025)}to {opacity:1;transform:none}}
  }

  /* Observed elements retain document flow and native semantics throughout. */
  .home-motion.motion-ready [data-motion] {--motion-x:0px;--motion-y:22px}
  .home-motion.motion-ready [data-motion="left"] {--motion-x:-18px;--motion-y:0px}
  .home-motion.motion-ready [data-motion="right"] {--motion-x:18px;--motion-y:0px}
  .home-motion.motion-ready [data-motion]:not(.motion-in):not(:focus-within) {
    opacity:0;transform:translate(var(--motion-x),var(--motion-y));
  }
  .home-motion.motion-ready [data-motion].motion-in {
    animation:home-section-in .78s var(--motion-delay,0ms) var(--motion-ease) both;
  }
  .home-motion.motion-ready [data-motion].motion-instant,
  .home-motion.motion-ready [data-motion]:focus-within {animation:none!important;opacity:1;transform:none}
  @keyframes home-section-in {
    from {opacity:0;transform:translate(var(--motion-x),var(--motion-y))}
    to {opacity:1;transform:none}
  }
  @media (max-width:48rem) {
    .home-motion.motion-ready [data-motion="left"],.home-motion.motion-ready [data-motion="right"] {--motion-x:0px;--motion-y:16px}
  }

  .home-motion .practice-facts.is-visible .practice-facts__icon {animation:home-icon-in 1.2s .08s var(--motion-ease) both}
  .home-motion .practice-facts.is-visible .practice-facts__item:nth-child(2) .practice-facts__icon {animation-delay:.24s}
  .home-motion .practice-facts.is-visible .practice-facts__item:nth-child(3) .practice-facts__icon {animation-delay:.39s}
  @keyframes home-icon-in {from {opacity:.25;transform:scale(.88)}to {opacity:1;transform:none}}
  .home-motion .brass:is(:hover,:focus-visible)::after {animation:home-brass-glint .72s var(--motion-out) both}
  @keyframes home-brass-glint {0% {opacity:0;transform:translateX(-65%)}25%,65% {opacity:.75}100% {opacity:0;transform:translateX(65%)}}
  .home-motion .head-contact[open] .head-contact__panel {animation:home-menu-in .23s var(--motion-out) both}
  @keyframes home-menu-in {from {opacity:.3;transform:translateY(-.35rem)}to {opacity:1;transform:none}}

  @media (hover:hover) and (pointer:fine) {
    .home-motion .practice-card:is(:hover,:focus-visible),.home-motion .team-profile:is(:hover,:focus-visible) {translate:0 -5px}
    .home-motion .practice-card:is(:hover,:focus-visible) .service-icon {translate:0 -2px;scale:1.085}
    .home-motion .team-profile:is(:hover,:focus-visible) .team-photo {scale:1.025}
    .home-motion .approach-step:not([open]):hover {translate:3px 0;box-shadow:0 .55rem 1.3rem #183b2c29}
    .home-motion .approach-step:not([open]):hover .step-number {scale:1.08}
  }
  .home-motion .faq details[open] p {animation:home-faq-in .36s var(--motion-out) both}
  @keyframes home-faq-in {from {opacity:.25;transform:translateY(-.35rem)}to {opacity:1;transform:none}}
  @supports (interpolate-size:allow-keywords) and selector(details::details-content) {
    .home-motion .faq-items details {interpolate-size:allow-keywords}
    .home-motion .faq-items details::details-content {
      block-size:0;overflow:clip;
      transition:block-size .32s var(--motion-out),content-visibility .32s allow-discrete;
    }
    .home-motion .faq-items details[open]::details-content {block-size:auto}
  }
}
@media (prefers-reduced-motion:reduce) {
  .home-motion [data-motion],.home-motion .hero .hero-art picture,.home-motion .hero .hero-art img {
    opacity:1!important;transform:none!important;
  }
  .home-motion .motion-progress {display:none}
}
@media (forced-colors:active) {
  .home-motion .hero-accent {color:CanvasText;background:none;-webkit-text-fill-color:currentColor}
}
