/* Astera Legal v43 — editorial home inspired by international law-firm layouts. */
body.home-editorial-route.dark-top header:not(.solid) {
  background: color-mix(in srgb, var(--ivory) 96%, transparent);
  border-bottom-color: rgba(8, 56, 52, .14);
  backdrop-filter: blur(18px);
}

body.home-editorial-route.dark-top header:not(.solid) .logo-dark {
  display: block;
  opacity: 1;
}

body.home-editorial-route.dark-top header:not(.solid) .logo-light {
  display: none;
  opacity: 0;
}

body.home-editorial-route.dark-top header:not(.solid) .menu-link,
body.home-editorial-route.dark-top header:not(.solid) .lang,
body.home-editorial-route.dark-top header:not(.solid) .lang b {
  color: var(--green-deep);
}

body.home-editorial-route.dark-top header:not(.solid) .menu-link:hover,
body.home-editorial-route.dark-top header:not(.solid) .menu-link.active {
  color: #a87823;
}

body.home-editorial-route.dark-top header:not(.solid) .burger span {
  background: var(--green-deep);
}

body.home-editorial-route.dark-top header:not(.solid) .btn {
  color: var(--green-deep);
  border-color: rgba(8, 56, 52, .36);
}

body.home-editorial-route.dark-top header:not(.solid) .btn:hover {
  color: var(--ivory);
  background: var(--green-deep);
}

#page-home .hero-editorial {
  min-height: 100svh;
  color: var(--green-deep);
  background: #f7f2e8;
  align-items: stretch;
  padding: clamp(106px, 10vw, 126px) 0 0;
  overflow: hidden;
}

#page-home .hero-editorial::before,
#page-home .hero-editorial::after,
#page-home .hero-editorial #sky {
  display: none;
}

#page-home .hero-editorial .hero-grid {
  width: 100%;
  max-width: none;
  min-height: calc(100svh - clamp(106px, 10vw, 126px));
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 56.5fr) minmax(420px, 43.5fr);
  align-items: stretch;
}

.hero-editorial-visual {
  min-height: min(620px, calc(100svh - clamp(106px, 10vw, 126px)));
  color: var(--ivory);
  background:
    radial-gradient(circle at 22% 18%, rgba(230, 199, 130, .18), transparent 22%),
    radial-gradient(circle at 75% 76%, rgba(86, 147, 138, .23), transparent 35%),
    linear-gradient(142deg, #0d514d 0%, #083b39 48%, #041f20 100%);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero-editorial-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .28;
  background-image:
    linear-gradient(rgba(246, 239, 227, .16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(246, 239, 227, .16) 1px, transparent 1px);
  background-size: clamp(48px, 5vw, 76px) clamp(48px, 5vw, 76px);
  mask-image: linear-gradient(135deg, #000, transparent 82%);
}

.hero-editorial-visual::after {
  content: "";
  position: absolute;
  inset: -40% -30%;
  background: linear-gradient(112deg, transparent 40%, rgba(255, 255, 255, .14) 50%, transparent 60%);
  transform: translate3d(-42%, 0, 0);
  animation: editorial-light 8.5s cubic-bezier(.2, .72, .18, 1) 1.2s infinite;
}

.editorial-architecture {
  position: absolute;
  inset: clamp(42px, 6vw, 88px);
}

.editorial-plane {
  position: absolute;
  display: block;
  transform-origin: 50% 100%;
}

.plane-one {
  width: 54%;
  height: 112%;
  left: -6%;
  bottom: -24%;
  background: linear-gradient(145deg, rgba(235, 225, 202, .32), rgba(12, 74, 70, .05));
  border: 1px solid rgba(246, 239, 227, .24);
  transform: skewX(-19deg) rotate(-8deg);
}

.plane-two {
  width: 31%;
  height: 128%;
  right: 19%;
  bottom: -30%;
  background: linear-gradient(150deg, rgba(227, 194, 122, .94), rgba(126, 84, 18, .68));
  clip-path: polygon(42% 0, 100% 0, 62% 100%, 0 100%);
  transform: rotate(8deg);
}

.plane-three {
  width: 22%;
  height: 118%;
  right: 1%;
  bottom: -24%;
  background: linear-gradient(160deg, rgba(246, 239, 227, .2), rgba(246, 239, 227, .025));
  border-left: 1px solid rgba(246, 239, 227, .24);
  transform: skewX(-14deg);
}

.editorial-orbit {
  position: absolute;
  display: block;
  border: 1px solid rgba(232, 201, 135, .55);
  border-radius: 50%;
}

.orbit-one {
  width: clamp(210px, 27vw, 390px);
  aspect-ratio: 1;
  left: 7%;
  top: 14%;
  animation: editorial-orbit 12s ease-in-out infinite alternate;
}

.orbit-two {
  width: clamp(155px, 20vw, 292px);
  aspect-ratio: 1;
  left: calc(7% + clamp(28px, 4vw, 58px));
  top: calc(14% + clamp(28px, 4vw, 58px));
  border-color: rgba(232, 201, 135, .2);
  animation: editorial-orbit 12s ease-in-out -4s infinite alternate-reverse;
}

.editorial-monogram {
  position: absolute;
  left: 9.5%;
  top: 8%;
  color: rgba(246, 239, 227, .9);
  font: 400 clamp(11rem, 24vw, 23rem)/1 "IBM Plex Serif", Georgia, serif;
  letter-spacing: -.09em;
  text-shadow: 0 20px 48px rgba(0, 0, 0, .12);
}

.editorial-star {
  position: absolute;
  left: 27%;
  top: 11%;
  color: #e8c987;
  font-size: clamp(1.5rem, 2.4vw, 2.7rem);
  animation: editorial-star 4.8s ease-in-out infinite;
}

.hero-visual-caption {
  position: absolute;
  left: clamp(26px, 4vw, 62px);
  bottom: clamp(24px, 3.6vw, 52px);
  z-index: 2;
  color: rgba(246, 239, 227, .76);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}

#page-home .hero-editorial .hero-copy {
  max-width: none;
  margin: 0;
  padding: clamp(46px, 5vw, 76px) clamp(34px, 4.5vw, 58px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  background:
    radial-gradient(circle at 100% 0, rgba(210, 173, 94, .14), transparent 34%),
    #f7f2e8;
}

#page-home .hero-editorial .eyebrow {
  color: #8d651d;
  margin-bottom: clamp(28px, 4.4vw, 54px);
}

#page-home .hero-editorial h1 {
  max-width: 100%;
  margin: 0;
  color: var(--green-deep);
  font-family: "IBM Plex Serif", Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 4vw, 4.55rem);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.052em;
  text-transform: none;
}

#page-home .hero-editorial h1 .ln {
  margin: 0;
  padding: .03em .04em .08em 0;
}

#page-home .hero-editorial h1 .ln span {
  white-space: nowrap;
}

#page-home .hero-editorial h1 .ln:first-child span {
  font-weight: 400;
}

#page-home .hero-editorial .lede {
  max-width: 38rem;
  margin: clamp(25px, 3vw, 40px) 0 0;
  color: rgba(5, 47, 46, .72);
  font-size: clamp(.98rem, 1.25vw, 1.18rem);
  line-height: 1.66;
  text-align: left;
}

.hero-editorial-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(22px, 3vw, 42px);
  margin-top: clamp(32px, 4vw, 52px);
}

.hero-editorial-actions .btn.gold {
  min-width: 154px;
  justify-content: center;
}

.editorial-text-link {
  color: var(--green-deep);
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.editorial-text-link i {
  color: #a87823;
  font-style: normal;
  transition: transform .35s var(--ease);
}

.editorial-text-link:hover i {
  transform: translateX(7px);
}

#page-home .hero-editorial .scrollcue {
  color: rgba(5, 47, 46, .68);
  right: 0;
  left: auto;
}

#page-home .hero-editorial .scrollcue .rail {
  border-color: rgba(5, 47, 46, .28);
}

#page-home .home-bridge {
  display: none;
}

#page-home .hab {
  border-top: 1px solid rgba(8, 56, 52, .12);
  padding-block: clamp(96px, 12vw, 158px);
}

#page-home .hab-grid {
  grid-template-columns: minmax(0, 1.22fr) minmax(300px, .78fr);
  align-items: start;
}

#page-home .hab h2 {
  max-width: 11.5ch;
  font-size: clamp(3rem, 7.2vw, 6.8rem);
  line-height: .94;
  letter-spacing: -.055em;
}

#page-home .hab p {
  font-size: clamp(1rem, 1.3vw, 1.18rem);
  line-height: 1.72;
}

#page-home .plist-sec {
  background:
    radial-gradient(720px 520px at 100% 0, rgba(202, 152, 60, .18), transparent 68%),
    linear-gradient(145deg, #0b4b48, #052f30 68%, #031f20);
}

#page-home .plist a {
  grid-template-columns: 3.2rem minmax(0, 1fr) auto;
}

#page-home .plist h3 {
  font-size: clamp(1.75rem, 3.3vw, 3rem);
}

@keyframes editorial-light {
  0%, 20% { transform: translate3d(-42%, 0, 0); opacity: 0; }
  42% { opacity: 1; }
  68%, 100% { transform: translate3d(42%, 0, 0); opacity: 0; }
}

@keyframes editorial-orbit {
  from { transform: translate3d(0, 0, 0) rotate(-2deg); }
  to { transform: translate3d(12px, -8px, 0) rotate(4deg); }
}

@keyframes editorial-star {
  0%, 100% { opacity: .62; transform: scale(.88) rotate(0); }
  50% { opacity: 1; transform: scale(1.12) rotate(12deg); }
}

@media (max-width: 980px) {
  #page-home .hero-editorial .hero-grid {
    grid-template-columns: minmax(0, 52%) minmax(0, 48%);
  }

  #page-home .hero-editorial .hero-copy {
    padding-inline: clamp(20px, 2.8vw, 32px);
  }

  #page-home .hero-editorial h1 {
    font-size: clamp(2.2rem, 4.9vw, 3.2rem);
  }

  #page-home .hab-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  body.home-editorial-route.dark-top header:not(.solid) {
    background: rgba(247, 242, 232, .96);
  }

  #page-home .hero-editorial {
    padding-top: 76px;
  }

  #page-home .hero-editorial .hero-grid {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .hero-editorial-visual {
    min-height: min(43svh, 390px);
  }

  .editorial-architecture {
    inset: 22px 26px;
  }

  .editorial-monogram {
    left: 17%;
    top: -7%;
    font-size: clamp(9rem, 48vw, 14rem);
  }

  .editorial-star {
    left: 43%;
    top: 9%;
  }

  .orbit-one {
    width: 210px;
    left: 15%;
    top: 8%;
  }

  .orbit-two {
    width: 155px;
    left: calc(15% + 28px);
    top: calc(8% + 28px);
  }

  .hero-visual-caption {
    left: 20px;
    bottom: 18px;
    font-size: .58rem;
    letter-spacing: .15em;
  }

  #page-home .hero-editorial .hero-copy {
    min-height: 55svh;
    padding: 42px 22px 68px;
  }

  #page-home .hero-editorial .eyebrow {
    margin-bottom: 24px;
  }

  #page-home .hero-editorial h1 {
    max-width: 12ch;
    font-size: clamp(2.7rem, 13.4vw, 4.3rem);
    line-height: .96;
  }

  #page-home .hero-editorial h1 .ln span {
    white-space: normal;
  }

  #page-home .hero-editorial .lede {
    margin-top: 22px;
    font-size: .93rem;
    line-height: 1.58;
  }

  .hero-editorial-actions {
    width: 100%;
    margin-top: 28px;
  }

  .hero-editorial-actions .btn.gold {
    min-width: 138px;
  }

  #page-home .hero-editorial .scrollcue {
    display: none;
  }

  #page-home .hab {
    padding-block: 72px;
  }

  #page-home .hab h2 {
    max-width: 12ch;
    font-size: clamp(2.7rem, 13vw, 4.2rem);
  }

  #page-home .plist a {
    grid-template-columns: 2.15rem minmax(0, 1fr) auto;
  }
}

html[dir="rtl"] #page-home .hero-editorial .hero-copy,
html[dir="rtl"] #page-home .hero-editorial .lede {
  text-align: right;
}

html[dir="rtl"] .editorial-text-link i {
  transform: rotate(180deg);
}

@media (prefers-reduced-motion: reduce) {
  .hero-editorial-visual::after,
  .editorial-orbit,
  .editorial-star {
    animation: none !important;
  }
}
