/* ==========================================================================
   Arsakarsa Law Firm — Stylesheet
   1. Tokens   2. Base   3. Utilities & buttons   4. Reveal system
   5. Nav & brand   6. Sections (in page order)   7. Footer   8. Reduced motion
   ========================================================================== */

/* 1. Tokens --------------------------------------------------------------- */
:root {
  --navy: #0e2837;
  --navy-line: rgba(255, 255, 255, 0.14);
  --ink: #1f2226;
  --dark: #262626;
  --muted: #868da2;
  --muted-2: #949fbf;
  --soft: #bbc3da;
  --tint: #eaeef9;
  --tint-2: #e3e8f4;
  --field: #f4f5f8;
  --prefix: #dde3f2;
  --cta: #e4e4e4;
  --line: #c6cee4;
  --error: #b42318;
  --white: #fff;

  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pad: clamp(20px, 2.8vw, 40px);
  --nav-h: 76px;
  --section-y: clamp(88px, 9.7vw, 140px);
  --display: clamp(42px, 5.4vw, 80px);
  --btn-h: 56px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-btn: cubic-bezier(0.33, 1, 0.68, 1);
}

@media (max-width: 767px) {
  :root { --nav-h: 64px; --btn-h: 52px; }
}

/* 2. Base ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, figure, address { margin: 0; }
ul { padding: 0; list-style: none; }
address { font-style: normal; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
.footer :focus-visible, .hero__side :focus-visible { outline-color: var(--white); }
[id] { scroll-margin-top: var(--nav-h); }

/* 3. Utilities & buttons --------------------------------------------------- */
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 200;
  padding: 12px 18px; background: var(--navy); color: var(--white);
  transform: translateY(-160%); transition: transform 0.3s var(--ease);
}
.skip-link:focus { transform: none; }

.display {
  font-size: var(--display);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: var(--navy);
}
.eyebrow { font-size: 14px; letter-spacing: 0.04em; color: var(--muted); }

.btn {
  display: inline-flex; align-items: stretch;
  height: var(--btn-h);
  font-size: 15px; font-weight: 500; line-height: 1;
  white-space: nowrap;
  transition: background-color 0.8s var(--ease-btn), border-color 0.8s var(--ease-btn), color 0.8s var(--ease-btn);
}
.btn__label { display: flex; align-items: center; }
.btn svg { width: 20px; height: 20px; transition: transform 0.9s var(--ease-btn), opacity 0.7s var(--ease-btn); }

.btn--dark { background: var(--dark); color: var(--white); border: 2px solid var(--dark); }
.btn--dark .btn__label { padding: 0 24px 0 20px; }
.btn--dark .btn__icon {
  position: relative; display: grid; place-items: center;
  aspect-ratio: 1; height: 100%;
  background: var(--white); color: var(--dark); overflow: hidden;
  transition: color 0.8s var(--ease-btn);
}
.btn--dark .btn__icon::before {
  content: ""; position: absolute; inset: 0; background: var(--navy);
  transform: scaleX(0); transform-origin: left; transition: transform 0.9s var(--ease-btn);
}
.btn--dark .btn__icon svg { position: relative; }
.btn--dark:hover { background: var(--navy); border-color: var(--navy); }
.btn--dark:hover .btn__icon { color: var(--white); }
.btn--dark:hover .btn__icon::before { transform: scaleX(1); }
.btn--dark:hover .btn__icon svg { transform: translateX(3px); }
.btn--sm { --btn-h: 44px; font-size: 14px; }
.btn--sm .btn__label { padding: 0 16px 0 14px; }

.btn--outline {
  align-items: center; gap: 28px;
  height: 60px; padding: 0 20px;
  border: 1px solid #aab6d7; color: var(--ink); background: transparent;
  overflow: hidden;
}
.btn--outline .btn__label { transition: transform 0.9s var(--ease-btn); }
.btn--outline:hover { border-color: var(--navy); color: var(--navy); }
.btn--outline:hover .btn__label { transform: translateX(24px); }
.btn--outline:hover svg { transform: translateX(24px); opacity: 0; }

/* 4. Reveal system ------------------------------------------------------ */
.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 40px, 0);
  transition: opacity 0.9s var(--ease), transform 1.1s var(--ease);
  transition-delay: calc(var(--delay, 0) * 120ms);
}
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal="slide"] { opacity: 1; transform: translate3d(0, 115%, 0); transition-duration: 1.2s; }
.js [data-reveal="none"], .js [data-reveal="clip"] { opacity: 1; transform: none; }
.js [data-reveal].is-inview { opacity: 1; transform: none; }

/* 5. Nav & flying brand --------------------------------------------------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--nav-h);
  pointer-events: none;
}
.nav::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transform: translateY(-101%);
  transition: transform 0.6s var(--ease);
}
.nav.is-visible { pointer-events: auto; }
.nav.is-visible::before { transform: none; }
.nav__inner {
  position: relative; height: 100%;
  display: flex; align-items: center; gap: 40px;
  padding: 0 var(--pad);
}
.nav__brand-slot { flex: none; height: 22px; aspect-ratio: 808 / 93; margin-right: auto; }
.nav__contact {
  display: flex; gap: 22px;
  font-size: 14px; color: var(--muted);
  opacity: 0; transform: translateY(-10px);
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease);
}
.nav__contact a { transition: color 0.6s var(--ease-btn); }
.nav__contact a:hover { color: var(--navy); }
.nav.is-visible .nav__contact { opacity: 1; transform: none; transition-delay: 0.12s; }

.brand-fly {
  position: fixed; top: 0; left: 0; z-index: 60;
  color: var(--navy);
  transform-origin: 0 0;
  will-change: transform;
  overflow: hidden;
  visibility: hidden;
}
.brand-fly svg { width: 100%; height: auto; fill: currentColor; transform: translateY(105%); transition: transform 1.3s var(--ease) 0.15s; }
.js .brand-fly.is-ready { visibility: visible; }
.is-loaded .brand-fly svg { transform: none; }

@media (max-width: 1023px) {
  .nav__brand-slot { height: 18px; }
}
@media (max-width: 520px) {
  .nav__contact { flex-direction: column; align-items: flex-end; gap: 2px; font-size: 12px; line-height: 1.35; }
}

/* 6. Sections ============================================================== */

/* --- 1. Hero -------------------------------------------------------------- */
.hero {
  display: grid;
  grid-template-columns: 27.8% 1fr;
  min-height: max(100svh, 620px);
  background: var(--navy);
  color: var(--white);
}
.hero__side {
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--nav-h) + 52px) var(--pad) clamp(40px, 3vw, 48px);
  border-right: 1px solid var(--navy-line);
  border-top: 0;
  font-size: 14px;
}
.hero__tagline { max-width: 320px; line-height: 1.5; }
.hero__main { display: grid; grid-template-rows: var(--nav-h) auto 1fr; }
.hero__topbar {
  display: flex; justify-content: flex-end; align-items: center; gap: 22px;
  padding: 0 var(--pad);
  background: var(--white); color: var(--muted); font-size: 14px;
  border-bottom: 1px solid #aab6d7;
}
.hero__topbar a { transition: color 0.3s; }
.hero__topbar a:hover { color: var(--navy); }
.hero__wordmark { background: var(--white); padding: clamp(28px, 3.8vw, 56px) var(--pad) clamp(28px, 3.4vw, 50px); }
.hero__wordmark-slot { width: min(84%, 880px); height: auto; fill: var(--navy); }
.js .hero__wordmark-slot { visibility: hidden; }
.hero__mark { display: flex; align-items: flex-end; justify-content: flex-end; padding: 40px var(--pad) clamp(36px, 2.7vw, 40px); overflow: hidden; }
.hero__mark svg {
  width: clamp(120px, 20.8vw, 300px); height: auto; fill: var(--white);
  transform: translateY(40%); opacity: 0;
  transition: transform 1.6s var(--ease) 0.35s, opacity 1.2s var(--ease) 0.35s;
}
.is-loaded .hero__mark svg, html:not(.js) .hero__mark svg { transform: none; opacity: 1; }

@media (max-width: 767px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 1fr auto; /* topbar · wordmark · navy text block (stretches) · mark */
    min-height: 100svh;
  }
  .hero__main { display: contents; }

  .hero__topbar { order: 1; height: var(--nav-h); justify-content: flex-end; font-size: 13px; gap: 24px; }
  .hero__wordmark { order: 2; padding: 22px var(--pad) 24px; }
  .hero__wordmark-slot { width: 100%; }

  .hero__side {
    order: 3;
    min-height: 220px;
    padding: 40px var(--pad) 32px;
    border-right: 0; border-bottom: 1px solid #3b4c63;
  }
  .hero__tagline { max-width: 330px; font-size: 15px; }

  .hero__mark { order: 4; padding: 56px var(--pad) 24px; }
  .hero__mark svg { width: 66%; max-width: 340px; }
}

/* --- 2. Hero image (zoom out) -------------------------------------------- */
.hero-image { height: clamp(360px, 59vw, 100svh); overflow: hidden; background: var(--navy); }
.hero-image img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(var(--zoom, 1.35)); transform-origin: 50% 40%;
  will-change: transform;
}

/* --- 3. About ------------------------------------------------------------- */
.about { padding-top: var(--section-y); }
.about__title { text-align: center; font-size: clamp(38px, 4.4vw, 64px); padding: 0 var(--pad) clamp(40px, 3.4vw, 52px); }
.about__grid {
  display: grid; grid-template-columns: 74.3% 1fr;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.about__content { padding: clamp(48px, 5vw, 72px) var(--pad); }
.about__sticky { max-width: 790px; }
.about__lead { font-size: clamp(22px, 2.3vw, 32px); font-weight: 500; color: var(--ink); margin-bottom: 14px; letter-spacing: -0.005em; }
.about__content p { font-size: clamp(16px, 1.25vw, 18px); color: var(--muted); }
.about__content p + p { margin-top: 1.4em; }
.about__content .btn { margin-top: 40px; }
.about__exp { border-left: 1px solid var(--line); display: flex; align-items: flex-end; padding: 0 var(--pad) clamp(40px, 3vw, 48px); overflow: hidden; }
.about__exp-inner { will-change: transform; }
.about__exp-num {
  font-size: clamp(96px, 11vw, 160px); font-weight: 600; line-height: 0.82;
  letter-spacing: -0.04em; color: var(--soft);
  font-variant-numeric: tabular-nums;
}
.about__exp-label { margin-top: 18px; font-size: clamp(20px, 1.9vw, 28px); line-height: 1.25; color: var(--muted); }

@media (min-width: 1024px) {
  .about__grid { min-height: max(740px, 125vh); }
  .about__sticky { position: sticky; top: calc(var(--nav-h) + 56px); }
}

.stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats__cell {
  padding: clamp(28px, 2.6vw, 40px) var(--pad);
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-size: 14px; color: var(--muted);
}
.stats__num {
  font-size: clamp(30px, 2.6vw, 38px); font-weight: 500; line-height: 1; color: var(--ink);
  margin-bottom: 18px; font-variant-numeric: tabular-nums;
}
.stats__cell p:last-child { max-width: 270px; }

@media (max-width: 1023px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__exp { border-left: 0; border-top: 1px solid var(--line); padding-top: 40px; }
  .about__exp-inner { transform: none !important; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats__cell:nth-child(2) { border-right: 0; }
}

/* --- 4. Kompetensi --------------------------------------------------------- */
.komp { position: relative; }
.komp__head {
  position: relative;
  padding: clamp(80px, 14vw, 220px) var(--pad) clamp(40px, 3.4vw, 56px) 62.5%;
}
.komp__head::before, .komp__stage::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%;
  width: 1px; background: var(--line);
}
.komp__head .display { position: relative; background: var(--white); padding-bottom: 4px; }
.komp__num { font-size: clamp(48px, 4.6vw, 66px); line-height: 1; color: var(--navy); margin-bottom: clamp(24px, 3.4vw, 48px); font-variant-numeric: tabular-nums; }
.komp__name { font-size: clamp(22px, 2vw, 28px); font-weight: 500; line-height: 1.3; color: var(--ink); max-width: 300px; }
.komp__label { margin-top: 20px; font-size: 15px; font-weight: 500; color: var(--ink); }
.komp__list { margin-top: 8px; font-size: 15px; line-height: 1.55; color: var(--muted); }
.komp__list li { position: relative; padding-left: 22px; }
.komp__list li::before { content: ""; position: absolute; left: 8px; top: 0.72em; width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
.komp__desc p { font-size: 15px; line-height: 1.55; color: var(--muted); max-width: 290px; }
.komp__desc .btn { margin-top: 38px; }
.komp__img { margin: 0; overflow: hidden; }
.komp__img img, .komp__img-mobile { width: 100%; height: 100%; object-fit: cover; }
.komp__progress { display: none; }

/* Kompetensi: normal scrolling list */
.komp__item {
  display: grid; gap: 28px;
  padding: 40px var(--pad) 56px;
  border-top: 1px solid var(--line);
}
.komp__img-mobile { aspect-ratio: 4 / 3; }
/* Kompetensi: every element slides up from below, one after another */
.js .komp__info > *,
.js .komp__desc > *,
.js .komp__img-mobile {
  opacity: 0;
  transform: translate3d(0, 70px, 0);
  transition: opacity 0.9s var(--ease), transform 1.2s var(--ease), clip-path 1.3s var(--ease-io);
}
.js .komp__img-mobile { opacity: 1; clip-path: inset(100% 0 0 0); }

.js .komp__item.is-inview .komp__info > *,
.js .komp__item.is-inview .komp__desc > *,
.js .komp__item.is-inview .komp__img-mobile { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }

.js .komp__item.is-inview .komp__info > :nth-child(2) { transition-delay: 0.08s; }
.js .komp__item.is-inview .komp__info > :nth-child(3) { transition-delay: 0.16s; }
.js .komp__item.is-inview .komp__info > :nth-child(4) { transition-delay: 0.22s; }
.js .komp__item.is-inview .komp__img-mobile         { transition-delay: 0.1s; }
.js .komp__item.is-inview .komp__desc > :nth-child(1) { transition-delay: 0.3s; }
.js .komp__item.is-inview .komp__desc > :nth-child(2) { transition-delay: 0.4s; }

@media (max-width: 1023px) {
  .komp__head { padding: var(--section-y) var(--pad) 32px; }
  .komp__head::before, .komp__stage::before { display: none; }
}
@media (min-width: 640px) and (max-width: 1023px) {
  .komp__item { grid-template-columns: 1fr 1fr; column-gap: 32px; }
  .komp__img-mobile { grid-row: span 2; grid-column: 2; aspect-ratio: 1; }
}
@media (min-width: 1024px) {
  .komp__item {
    grid-template-columns: 1fr 41.6vw 1fr; gap: 0;
    padding: 0 0 clamp(80px, 8vw, 120px); border-top: 0;
  }
  .komp__img-mobile { position: relative; aspect-ratio: 1; height: auto; } /* sits above the center line */
  .komp__info { padding: 0 var(--pad); }
  .komp__desc { align-self: end; padding: 0 var(--pad) clamp(40px, 5vw, 76px) clamp(40px, 5.2vw, 76px); }
}

/* --- 5 & 10. Revealing visual frames -------------------------------------- */
.visual { position: relative; }
.visual::before {
  content: ""; position: absolute; top: 0; left: 50%;
  width: 1px; height: clamp(320px, 55.6vw, 100vh); /* same height as the frame */
  background: var(--line);
}
@media (max-width: 1023px) { .visual::before { display: none; } }

.visual__frame {
  --ix: 8%; --it: 22%;
  position: relative; z-index: 1; overflow: hidden;
  height: clamp(320px, 55.6vw, 100vh);
  background: var(--navy);
  clip-path: inset(var(--it) var(--ix) 0 var(--ix));
  will-change: clip-path;
}
.visual__frame img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(var(--vs, 1.25)); will-change: transform;
}
.visual__frame--footer { background: var(--soft); }

.marquee {
  overflow: hidden; border-bottom: 1px solid #aab6d7;
  padding: clamp(28px, 3vw, 46px) 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__group { display: flex; align-items: center; flex: none; }
.marquee__group img {
  height: clamp(28px, 2.9vw, 42px); width: auto;
  margin: 0 clamp(28px, 3.2vw, 46px);
  opacity: 0.9; transition: opacity 0.3s;
}
.marquee__group img:hover { opacity: 1; }

/* --- 6. Visi & Misi ------------------------------------------------------- */
.visi { padding-top: var(--section-y); }
.visi__panel {
  width: min(83.4%, 1240px); margin: 0 auto;
  display: grid; grid-template-columns: 54% 1fr; gap: 20px;
  padding: 20px; background: var(--tint);
}
.visi__img { overflow: hidden; aspect-ratio: 1.6; }
.visi__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.visi__img:hover img { transform: scale(1.08); }
.visi__side { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; overflow: hidden; }
.visi__mark { width: clamp(72px, 6vw, 96px); height: auto; fill: var(--navy); }
.visi__card { background: var(--white); padding: clamp(20px, 2vw, 28px); }
.visi__card h2 { font-size: clamp(26px, 2.6vw, 38px); font-weight: 500; color: var(--navy); line-height: 1.15; margin-bottom: 14px; letter-spacing: -0.01em; }
.visi__card p { font-size: 15px; color: var(--muted); line-height: 1.6; }

.misi__title {
  margin-top: var(--section-y);
  padding: clamp(28px, 2.8vw, 40px) var(--pad);
  border-top: 1px solid #d9deec; border-bottom: 1px solid #aab6d7;
  text-align: center; font-size: clamp(28px, 2.9vw, 42px); font-weight: 500; color: var(--navy);
}
.misi__grid { display: grid; grid-template-columns: 1fr 1fr; }
.misi__item {
  display: flex; gap: 20px; align-items: flex-start;
  padding: clamp(28px, 2.8vw, 40px) var(--pad);
  border-bottom: 1px solid #aab6d7;
}
.misi__item:nth-child(odd) { border-right: 1px solid #aab6d7; }
.misi__icon {
  flex: none; display: grid; place-items: center;
  width: clamp(52px, 4.4vw, 64px); aspect-ratio: 1; background: var(--tint);
  transition: background-color 0.4s var(--ease);
}
.misi__icon svg { width: 26px; height: 26px; fill: none; stroke: var(--navy); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.4s, transform 0.5s var(--ease); }
.misi__item:hover .misi__icon { background: var(--navy); }
.misi__item:hover .misi__icon svg { stroke: var(--white); transform: scale(1.08); }
.misi__item h3 { font-size: clamp(18px, 1.5vw, 22px); font-weight: 500; color: var(--ink); margin: 2px 0 10px; }
.misi__item p { font-size: 14px; color: var(--muted); max-width: 560px; }

@media (max-width: 767px) {
  .visi__panel { width: auto; margin: 0 var(--pad); grid-template-columns: 1fr; padding: 12px; gap: 12px; }
  .visi__side { gap: 20px; }
  .misi__grid { grid-template-columns: 1fr; }
  .misi__item:nth-child(odd) { border-right: 0; }
}

/* --- 7. Team ---------------------------------------------------------------- */
.team { padding: var(--section-y) var(--pad); }
.team__head { display: grid; grid-template-columns: 52.8% 1fr; margin-bottom: clamp(40px, 3.6vw, 52px); }
.team__head .eyebrow { padding-top: 8px; }
.team__body { display: grid; grid-template-columns: 1fr 1fr 1.32fr; column-gap: clamp(14px, 1.4vw, 20px); align-items: end; }
.lawyer__img { overflow: hidden; aspect-ratio: 0.776; background: var(--navy); }
.lawyer__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.lawyer:hover .lawyer__img img { transform: scale(1.05); }
.lawyer h3 { margin: 22px 20px 6px; font-size: clamp(18px, 1.5vw, 22px); font-weight: 500; color: var(--ink); line-height: 1.3; }
.lawyer p { margin: 0 20px; font-size: 14px; color: var(--muted); }
.team__intro { padding: 0 0 clamp(60px, 7vw, 100px) clamp(40px, 3.8vw, 56px); align-self: end; }
.team__intro p { font-size: 15px; color: var(--muted); max-width: 400px; line-height: 1.6; }
.team__intro .btn { margin-top: 28px; }

/* clip reveal, one portrait after another */
.js .lawyer .lawyer__img { clip-path: inset(100% 0 0 0); transition: clip-path 1.3s var(--ease-io); transition-delay: calc(var(--delay, 0) * 120ms); }
.js .lawyer .lawyer__img img { transform: scale(1.25); transition: transform 1.8s var(--ease); transition-delay: calc(var(--delay, 0) * 120ms); }
.js .lawyer h3, .js .lawyer p { opacity: 0; transform: translateY(16px); transition: opacity 0.8s var(--ease), transform 0.9s var(--ease); transition-delay: calc(var(--delay, 0) * 120ms + 0.5s); }
.js .lawyer.is-inview .lawyer__img { clip-path: inset(0 0 0 0); }
.js .lawyer.is-inview .lawyer__img img { transform: none; }
.js .lawyer.is-inview:hover .lawyer__img img { transform: scale(1.05); transition-delay: 0s; }
.js .lawyer.is-inview h3, .js .lawyer.is-inview p { opacity: 1; transform: none; }

@media (max-width: 1023px) {
  .team__head { grid-template-columns: 1fr; gap: 16px; }
  .team__body { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .team__intro { grid-column: 1 / -1; padding: 0; }
}
@media (max-width: 520px) {
  .team__body { grid-template-columns: 1fr; }
  .lawyer h3, .lawyer p { margin-left: 0; margin-right: 0; }
}

/* --- 8 & 9. FAQ with overlapping CTA band --------------------------------- */
.curtain { position: sticky; top: var(--stick, 0px); z-index: 0; }
.faq {
  background: var(--white);
  border-top: 1px solid #d9deec;
  overflow: clip;
}
.faq__col { width: min(69.4%, 1000px); margin: 0 auto; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.faq__col--head { position: relative; display: grid; place-items: center; min-height: clamp(260px, 29.5vw, 425px); text-align: center; padding: 60px var(--pad); }
.faq__col--head::after { content: ""; position: absolute; left: -50vw; right: -50vw; bottom: 0; height: 1px; background: var(--line); }
.faq__col--list { padding: clamp(40px, 3.1vw, 44px) 0 clamp(100px, 10vw, 140px); }
.faq__item { border-bottom: 1px solid #aab6d7; transition: background-color 0.5s var(--ease); }
.faq__item.is-open,
.faq__item:has(+ .faq__item.is-open) { border-bottom-color: transparent; }
.faq__item.is-open { background: var(--tint-2); }
.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  width: 100%; padding: clamp(20px, 1.7vw, 26px) clamp(20px, 2.8vw, 40px);
  text-align: left; font-size: clamp(16px, 1.4vw, 20px); font-weight: 500; color: var(--ink); line-height: 1.35;
  transition: padding-left 0.8s var(--ease-btn), color 0.6s var(--ease-btn);
}
.faq__q:hover { padding-left: calc(clamp(20px, 2.8vw, 40px) + 14px); color: var(--navy); }
.faq__icon {
  position: relative; flex: none; width: clamp(44px, 3.8vw, 55px); aspect-ratio: 1;
  background: var(--tint-2); transition: background-color 0.8s var(--ease-btn);
}
.faq__icon::before, .faq__icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 36%; height: 1.5px;
  background: var(--navy); transform: translate(-50%, -50%);
  transition: transform 0.7s var(--ease-btn), background-color 0.8s var(--ease-btn);
}
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__q:hover .faq__icon,
.faq__item.is-open .faq__icon { background: var(--navy); }
.faq__q:hover .faq__icon::before, .faq__q:hover .faq__icon::after,
.faq__item.is-open .faq__icon::before, .faq__item.is-open .faq__icon::after { background: var(--white); }
.faq__item.is-open .faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.6s var(--ease); }
.faq__a > div { overflow: hidden; }
.faq__a p {
  padding: 0 clamp(20px, 2.8vw, 40px) clamp(20px, 1.7vw, 26px);
  max-width: 820px; font-size: 15px; line-height: 1.6; color: var(--muted);
  opacity: 0; transform: translateY(-6px); transition: opacity 0.4s, transform 0.5s var(--ease);
}
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__item.is-open .faq__a p { opacity: 1; transform: none; transition-delay: 0.12s; }

.cta-band {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: clamp(80px, 8.2vw, 118px) var(--pad);
  background: var(--cta);
}
.cta-band h2 { font-size: clamp(24px, 2.2vw, 32px); font-weight: 500; line-height: 1.25; color: var(--ink); }
.cta-band p { margin-top: 14px; max-width: 400px; font-size: 15px; color: var(--muted); }
.cta-band .btn { margin-top: 36px; height: 64px; }

@media (max-width: 767px) {
  .faq__col { width: auto; margin: 0 var(--pad); }
}

/* --- Contact form ------------------------------------------------------------ */
.contact {
  position: relative; z-index: 1; background: var(--white);
  display: grid; grid-template-columns: 42.8% 1fr;
  padding: var(--section-y) var(--pad);
}
.contact__intro p { margin-top: 28px; max-width: 480px; font-size: 15px; color: var(--muted); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 40px; }
.field { display: grid; gap: 12px; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 15px; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%; min-height: 56px; padding: 0 16px;
  background: var(--field); border: 1.5px solid transparent; border-radius: 0;
  font-size: 15px; color: var(--ink);
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
  -webkit-appearance: none; appearance: none;
}
.field textarea { padding: 16px; min-height: 120px; resize: vertical; line-height: 1.5; }
.field ::placeholder { color: #a8afc5; opacity: 1; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: var(--line); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; background: var(--white); border-color: var(--navy); }
.field.is-invalid input, .field.is-invalid select { border-color: var(--error); }
.field__error { min-height: 0; font-size: 13px; color: var(--error); margin-top: -4px; }
.field__error:empty { display: none; }

.select { position: relative; }
.select::after {
  content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px;
  border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted);
  transform: translateY(-70%) rotate(45deg); pointer-events: none;
}
.select select { padding-right: 44px; cursor: pointer; }
.select select:invalid { color: #a8afc5; }
.select option { color: var(--ink); }
.phone { display: flex; }
.select--prefix { flex: none; width: 76px; }
.select--prefix select { background: var(--prefix); padding: 0 28px 0 12px; font-size: 14px; }
.select--prefix::after { right: 12px; width: 6px; height: 6px; }
.phone input { flex: 1; min-width: 0; }

.form__foot { display: flex; align-items: center; justify-content: flex-end; gap: 24px; margin-top: 8px; }
.form__status { margin-right: auto; font-size: 14px; color: var(--navy); }
.form__status.is-error { color: var(--error); }
.form button[aria-busy="true"] { opacity: 0.6; pointer-events: none; }

@media (max-width: 1023px) {
  .contact { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 640px) {
  .form { grid-template-columns: 1fr; gap: 24px; }
  .form__foot { flex-direction: column-reverse; align-items: flex-end; }
}

/* 7. Footer ================================================================= */
.footer { background: var(--navy); color: var(--white); }
.footer__visual { position: relative; background: var(--white); }
.footer__tab {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; height: clamp(72px, 7vw, 100px);
}
.footer__tab-fill {
  flex: 1; background: var(--navy);
  transform-origin: left center;
  transition: transform 1.4s var(--ease-io) 0.25s;
}
.footer__tab.is-inview .footer__tab-fill { transform: scaleX(0); }
.footer__social {
  flex: none; width: 27.8%; min-width: 260px;
  display: flex; align-items: center; justify-content: center; gap: clamp(28px, 3.9vw, 56px);
  background: var(--navy); margin-left: -1px;
}
.footer__social a { display: grid; place-items: center; width: 40px; height: 40px; color: var(--white); transition: transform 0.4s var(--ease), color 0.3s; }
.footer__social a:hover { transform: translateY(-3px); color: var(--soft); }
.footer__social svg { width: 26px; height: 26px; }

.footer__main { display: grid; grid-template-columns: 39.8% 1fr; border-bottom: 1px solid var(--navy-line); }
.footer__brand { padding: clamp(56px, 4.8vw, 70px) var(--pad); border-right: 1px solid var(--navy-line); }
.footer__logo { display: inline-flex; align-items: flex-end; gap: clamp(8px, 0.8vw, 12px); fill: var(--white); }
.footer__logo-mark { width: clamp(44px, 4.4vw, 64px); }
.footer__logo-word { width: clamp(200px, 22.5vw, 324px); }
.footer__brand p { margin-top: 26px; max-width: 360px; font-size: 14px; color: var(--muted-2); line-height: 1.5; }
.footer__contact { margin-top: clamp(40px, 5vw, 72px); display: grid; gap: 10px; font-size: 14px; }
.footer__contact a { display: inline-flex; align-items: center; gap: 12px; transition: color 0.3s; }
.footer__contact a:hover { color: var(--soft); }
.footer__contact svg { width: 16px; height: 16px; flex: none; }
.footer__cols {
  display: grid; grid-template-columns: auto auto 1fr; gap: clamp(24px, 2.8vw, 40px);
  padding: clamp(56px, 4.8vw, 70px) var(--pad) clamp(56px, 4.8vw, 70px) clamp(32px, 4.4vw, 64px);
}
.footer__col h2 { font-size: 16px; font-weight: 500; color: var(--muted-2); margin-bottom: 22px; }
.footer__col ul { display: grid; gap: 14px; font-size: 14px; }
.footer__col a { position: relative; transition: color 0.3s; }
.footer__col a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform 0.45s var(--ease);
}
.footer__col a:hover::after { transform: scaleX(1); transform-origin: left; }
.footer__col address { font-size: 14px; line-height: 1.45; }

.footer__bottom { display: grid; grid-template-columns: 55.6% 1fr; min-height: clamp(72px, 7vw, 100px); font-size: 14px; }
.footer__legal { display: flex; align-items: center; gap: 40px; padding: 20px var(--pad); }
.footer__legal a:hover { color: var(--soft); }
.footer__copy { display: flex; align-items: center; padding: 20px var(--pad); background: var(--white); color: var(--muted); }

@media (max-width: 1023px) {
  .footer__main { grid-template-columns: 1fr; }
  .footer__brand { border-right: 0; border-bottom: 1px solid var(--navy-line); }
  .footer__cols { padding-left: var(--pad); }
}
@media (max-width: 767px) {
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__cols > :last-child { grid-column: 1 / -1; }
  .footer__bottom { grid-template-columns: 1fr; }
  .footer__legal { gap: 24px; }
  .footer__social { width: 100%; min-width: 0; }
  .footer__tab-fill { display: none; }
}

/* 8. Reduced motion =========================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; transition-delay: 0s !important; animation: none !important; }
  .js [data-reveal], .js .komp__info > *, .js .komp__desc > *, .js .komp__img-mobile, .js .lawyer * { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .js .lawyer .lawyer__img { clip-path: none !important; }
  .hero-image img, .visual__frame img { transform: none !important; }
  .visual__frame { clip-path: none !important; }
}
