/* Object-first WebGL homepage art direction. Loaded only on the index page. */
.hero-cinematic {
  --hero-ink: #071522;
  --hero-blue: #0e2639;
  --hero-cream: #f5eddd;
  --hero-gold: #d3a84f;
  position: relative;
  isolation: isolate;
  min-height: calc(100svh - 70px);
  overflow: hidden;
  padding: 42px 0 48px;
  color: var(--hero-cream);
  background:
    radial-gradient(circle at 78% 37%, rgba(42, 79, 102, .66), transparent 27%),
    radial-gradient(circle at 70% 76%, rgba(211, 168, 79, .12), transparent 24%),
    linear-gradient(122deg, #06121d 0%, #0a1b2a 46%, #102a3e 100%);
}

.hero-cinematic::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: auto;
  height: auto;
  content: "";
  border-radius: 0;
  opacity: .16;
  background-image:
    linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, transparent 2%, #000 48%, #000 88%, transparent);
  filter: none;
}

.hero-cinematic::after {
  position: absolute;
  z-index: 8;
  inset: 0;
  width: auto;
  height: auto;
  content: "";
  border-radius: 0;
  opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  pointer-events: none;
}

.hero-atmosphere {
  position: absolute;
  z-index: -1;
  top: 8%;
  inset-inline-end: 4%;
  width: min(60vw, 850px);
  aspect-ratio: 1;
  border: 1px solid rgba(236, 215, 159, .1);
  border-radius: 50%;
  box-shadow:
    0 0 0 90px rgba(255, 255, 255, .012),
    0 0 0 180px rgba(255, 255, 255, .008);
  pointer-events: none;
}

.hero-cinematic-grid {
  width: min(1280px, calc(100% - 52px));
  min-height: 700px;
  grid-template-columns: minmax(390px, .82fr) minmax(540px, 1.18fr);
  gap: 22px;
}

.hero-cinematic .hero-copy {
  position: relative;
  z-index: 5;
  max-width: 590px;
  padding: 60px 0 88px;
}

.hero-cinematic .hero-copy::before {
  display: block;
  width: 42px;
  height: 1px;
  margin-bottom: 32px;
  content: "";
  background: var(--hero-gold);
  box-shadow: 54px 0 0 rgba(211, 168, 79, .3);
}

.hero-cinematic .hero-kicker {
  color: rgba(245, 237, 221, .64);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .16em;
}

.hero-cinematic .hero-kicker span { display: none; }

.hero-cinematic h1 {
  max-width: 650px;
  margin: 21px 0 22px;
  color: var(--hero-cream);
  font-size: clamp(48px, 5.15vw, 78px);
  font-weight: 400;
  line-height: .99;
  letter-spacing: -.05em;
  text-wrap: balance;
}

html[dir="rtl"] .hero-cinematic h1 {
  color: var(--hero-cream);
  font-size: clamp(43px, 4.7vw, 67px);
  font-weight: 540;
  line-height: 1.3;
  letter-spacing: -.025em;
}

.hero-cinematic .hero-lead {
  max-width: 510px;
  color: rgba(227, 233, 232, .7);
  font-size: 13px;
  line-height: 1.95;
}

.hero-cinematic .hero-actions { margin-top: 28px; }

.hero-cinematic .btn-primary {
  color: #071522;
  border-color: var(--hero-gold);
  background: var(--hero-gold);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .19);
}

.hero-cinematic .btn-primary:hover { background: #e2bd6b; }

.hero-cinematic .btn-secondary {
  color: var(--hero-cream);
  border-color: rgba(245, 237, 221, .22);
  background: rgba(255, 255, 255, .035);
  backdrop-filter: blur(10px);
}

.hero-cinematic .btn-secondary:hover {
  color: #fff;
  border-color: rgba(245, 237, 221, .44);
  background: rgba(255, 255, 255, .07);
}

.hero-cinematic .trust-row {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  gap: 21px;
  margin-top: 42px;
  color: rgba(245, 237, 221, .58);
}

.hero-cinematic .trust-row span { gap: 8px; }

.hero-cinematic .trust-row i {
  width: auto;
  height: auto;
  color: var(--hero-gold);
  background: transparent;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 8px;
  letter-spacing: .06em;
}

.justice-stage {
  position: relative;
  z-index: 3;
  min-width: 0;
  min-height: 700px;
  margin: 0;
  overflow: hidden;
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
}

.justice-stage:active { cursor: grabbing; }

.justice-stage::before {
  position: absolute;
  z-index: 0;
  top: 10%;
  left: 50%;
  width: 78%;
  aspect-ratio: 1;
  content: "";
  border-radius: 50%;
  background: radial-gradient(circle, rgba(223, 202, 161, .22), rgba(90, 124, 139, .08) 46%, transparent 70%);
  filter: blur(8px);
  transform: translateX(-50%);
  pointer-events: none;
}

.justice-stage::after {
  position: absolute;
  z-index: 1;
  right: 9%;
  bottom: 7%;
  left: 9%;
  height: 15%;
  content: "";
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0, 0, 0, .44), transparent 68%);
  filter: blur(14px);
  transform: scaleY(.34);
  pointer-events: none;
}

.justice-stage canvas {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  outline: none;
  filter: drop-shadow(0 30px 28px rgba(0, 0, 0, .28));
  transition: opacity 1.1s ease;
}

.justice-stage.is-ready canvas { opacity: 1; }

.stage-orbit {
  position: absolute;
  z-index: 1;
  top: 49%;
  left: 50%;
  aspect-ratio: 1;
  border: 1px solid rgba(236, 215, 159, .15);
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.9);
  transition: opacity 1.2s ease .2s, transform 1.5s cubic-bezier(.2, .7, .2, 1) .15s;
  pointer-events: none;
}

.stage-orbit::before,
.stage-orbit::after {
  position: absolute;
  width: 6px;
  height: 6px;
  content: "";
  border-radius: 50%;
  background: var(--hero-gold);
  box-shadow: 0 0 18px rgba(211, 168, 79, .8);
}

.stage-orbit::before { top: 13%; left: 18%; }
.stage-orbit::after { right: 8%; bottom: 28%; }
.stage-orbit-outer { width: min(88%, 660px); }
.stage-orbit-inner { width: min(67%, 490px); border-style: dashed; opacity: 0; }
.justice-stage.is-ready .stage-orbit { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.justice-stage.is-ready .stage-orbit-inner { opacity: .58; }

.stage-index {
  position: absolute;
  z-index: 0;
  top: -5%;
  right: 0;
  color: rgba(255, 255, 255, .028);
  font-family: Georgia, serif;
  font-size: clamp(220px, 29vw, 410px);
  font-weight: 400;
  line-height: 1;
  pointer-events: none;
}

.stage-heading {
  position: absolute;
  z-index: 5;
  top: 30px;
  left: 26px;
  display: grid;
  gap: 3px;
  padding-left: 13px;
  border-left: 1px solid var(--hero-gold);
  pointer-events: none;
}

html[dir="rtl"] .stage-heading {
  right: 26px;
  left: auto;
  padding-right: 13px;
  padding-left: 0;
  border-right: 1px solid var(--hero-gold);
  border-left: 0;
}

.stage-heading span,
.stage-heading strong {
  color: rgba(245, 237, 221, .47);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.stage-heading strong { color: rgba(245, 237, 221, .8); letter-spacing: .04em; }
html[dir="rtl"] .stage-heading span,
html[dir="rtl"] .stage-heading strong { letter-spacing: 0; text-transform: none; }

.stage-axis {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 50%;
  width: 78%;
  height: 70%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.stage-axis span { position: absolute; display: block; background: rgba(236, 215, 159, .08); }
.stage-axis span:first-child { top: 50%; right: 0; left: 0; height: 1px; }
.stage-axis span:last-child { top: 0; bottom: 0; left: 50%; width: 1px; }

.model-loading {
  position: absolute;
  z-index: 6;
  top: 50%;
  left: 50%;
  display: grid;
  min-width: 170px;
  grid-template-columns: 22px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 13px;
  color: rgba(245, 237, 221, .72);
  border: 1px solid rgba(245, 237, 221, .13);
  border-radius: 999px;
  background: rgba(4, 15, 24, .6);
  backdrop-filter: blur(12px);
  font-size: 9px;
  letter-spacing: .05em;
  transform: translate(-50%, -50%);
  transition: opacity .45s ease, visibility .45s ease;
}

.justice-stage.is-ready .model-loading { visibility: hidden; opacity: 0; }

.model-loading-ring {
  width: 17px;
  height: 17px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-top-color: var(--hero-gold);
  border-radius: 50%;
  animation: justice-spin .9s linear infinite;
}

.model-loading b { color: var(--hero-gold); font: 600 9px/1 ui-monospace, monospace; }

.model-fallback {
  position: absolute;
  z-index: 6;
  inset: 22% 10%;
  place-content: center;
  text-align: center;
  border: 1px solid rgba(245, 237, 221, .12);
  border-radius: 50%;
  color: rgba(245, 237, 221, .68);
}

.model-fallback:not([hidden]) { display: grid; }
.model-fallback span { color: rgba(245, 237, 221, .12); font: 400 clamp(60px, 9vw, 120px)/1 Georgia, serif; }
.model-fallback p { margin: 12px auto 0; font-size: 11px; }

.stage-controls {
  position: absolute;
  z-index: 6;
  bottom: 22px;
  display: flex;
  align-items: center;
  color: rgba(245, 237, 221, .52);
  font-size: 8.5px;
  font-weight: 550;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.stage-controls { left: 27px; gap: 7px; }
.drag-icon { color: var(--hero-gold); font-size: 13px; }

.hero-scroll-cue {
  position: absolute;
  z-index: 7;
  bottom: 18px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(245, 237, 221, .35);
  font-size: 8px;
  font-weight: 550;
  letter-spacing: .14em;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.hero-scroll-cue span { display: block; width: 34px; height: 1px; background: linear-gradient(90deg, transparent, var(--hero-gold)); }

.hero-cinematic + .confidence-strip {
  border-color: #173149;
  background: #091a28;
}

.hero-cinematic + .confidence-strip .confidence-grid > div { border-color: rgba(255, 255, 255, .09); }
.hero-cinematic + .confidence-strip .confidence-grid strong { color: #ecd79f; }
.hero-cinematic + .confidence-strip .confidence-grid span { color: rgba(237, 241, 239, .57); }

@keyframes justice-spin { to { transform: rotate(1turn); } }

@media (max-width: 1080px) {
  .hero-cinematic-grid {
    grid-template-columns: minmax(350px, .82fr) minmax(450px, 1.18fr);
    gap: 4px;
  }
  .hero-cinematic h1 { font-size: clamp(45px, 5.4vw, 67px); }
  .justice-stage { min-height: 650px; }
}

@media (max-width: 900px) {
  .hero-cinematic { padding-top: 28px; }
  .hero-cinematic-grid {
    width: min(760px, calc(100% - 30px));
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .hero-cinematic .hero-copy { max-width: 680px; padding: 44px 14px 6px; }
  .hero-cinematic h1 { max-width: 700px; font-size: clamp(48px, 8vw, 68px); }
  html[dir="rtl"] .hero-cinematic h1 { font-size: clamp(42px, 7vw, 59px); }
  .hero-cinematic .hero-lead { max-width: 590px; }
  .justice-stage { min-height: 610px; }
  .hero-atmosphere { top: 40%; right: -20%; width: 100vw; }
  .hero-scroll-cue { display: none; }
}

@media (max-width: 640px) {
  .hero-cinematic { padding: 20px 0 16px; }
  .hero-cinematic-grid { width: min(100% - 20px, 520px); }
  .hero-cinematic .hero-copy { padding: 29px 2px 15px; }
  .hero-cinematic .hero-copy::before { margin-bottom: 22px; }
  .hero-cinematic .hero-kicker { font-size: 9px; letter-spacing: .11em; }
  .hero-cinematic h1 { margin: 15px 0 17px; font-size: clamp(41px, 13.2vw, 57px); line-height: 1.01; }
  html[dir="rtl"] .hero-cinematic h1 { font-size: clamp(37px, 11vw, 49px); }
  .hero-cinematic .hero-lead { font-size: 12px; line-height: 1.85; }
  .hero-cinematic .hero-actions { display: grid; grid-template-columns: 1fr 1fr; margin-top: 22px; }
  .hero-cinematic .hero-actions .btn { width: 100%; }
  .hero-cinematic .trust-row { grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 25px; }
  .hero-cinematic .trust-row span { gap: 4px; font-size: 9px; }
  .justice-stage { min-height: 490px; margin-inline: -6px; }
  .justice-stage::before { top: 11%; width: 93%; }
  .stage-heading { top: 16px; left: 17px; }
  html[dir="rtl"] .stage-heading { right: 17px; left: auto; }
  .stage-heading span, .stage-heading strong { font-size: 8px; }
  .stage-orbit-outer { width: 96%; }
  .stage-orbit-inner { width: 73%; }
  .stage-index { top: 1%; font-size: 190px; }
  .stage-controls { bottom: 13px; left: 17px; font-size: 7.5px; }
  .model-loading { grid-template-columns: 20px 1fr auto; min-width: 155px; font-size: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .model-loading-ring { animation: none; }
  .justice-stage canvas,
  .stage-orbit { transition: none; }
}

/* Cohesive cinematic index system ------------------------------------------------ */
.home-cinematic {
  --cinematic-bg: #07131f;
  --cinematic-bg-soft: #0a1a28;
  --cinematic-panel: rgba(14, 36, 52, .72);
  --cinematic-line: rgba(236, 215, 159, .16);
  --cinematic-line-soft: rgba(255, 255, 255, .08);
  --cinematic-gold: #d9ad50;
  --cinematic-cream: #f5eddd;
  --cinematic-muted: rgba(229, 235, 234, .61);
  position: relative;
  overflow: clip;
  color: var(--cinematic-cream);
  background:
    radial-gradient(circle at 85% 34%, rgba(44, 84, 105, .18), transparent 25%),
    linear-gradient(180deg, #07131f 0%, #091925 52%, #06111b 100%);
}

.home-cinematic::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  content: "";
  opacity: .17;
  background-image:
    linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
  background-position: center top;
  background-size: 86px 86px;
  mask-image: linear-gradient(180deg, #000 0, rgba(0, 0, 0, .58) 52%, transparent 96%);
  pointer-events: none;
}

.home-cinematic > * { position: relative; z-index: 1; }

/* The hero is an open composition, not a model viewer. */
.home-cinematic .hero-cinematic {
  min-height: clamp(780px, calc(100svh - 70px), 980px);
  padding: 0;
  background:
    linear-gradient(90deg, rgba(5, 16, 26, .98) 0%, rgba(6, 19, 30, .88) 42%, rgba(9, 28, 42, .34) 69%, rgba(9, 28, 42, .08) 100%),
    radial-gradient(circle at 75% 43%, rgba(70, 111, 130, .5), transparent 27%);
}

.home-cinematic .hero-cinematic::before {
  z-index: 0;
  right: 7.5%;
  left: auto;
  width: clamp(76px, 10vw, 150px);
  opacity: 1;
  background: linear-gradient(180deg, rgba(217, 173, 80, .12), rgba(217, 173, 80, .025));
  border-inline: 1px solid rgba(217, 173, 80, .13);
  mask-image: none;
}

.home-cinematic .hero-cinematic::after { z-index: 9; }

.hero-wordmark {
  position: absolute;
  z-index: 1;
  right: -1.6vw;
  bottom: -1.7vw;
  color: transparent;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(112px, 15.3vw, 244px);
  font-weight: 400;
  line-height: .72;
  letter-spacing: -.075em;
  opacity: .17;
  -webkit-text-stroke: 1px rgba(236, 215, 159, .7);
  pointer-events: none;
  white-space: nowrap;
}

.hero-coordinate {
  position: absolute;
  z-index: 7;
  color: rgba(245, 237, 221, .35);
  font: 600 8px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hero-coordinate-top { top: 28px; right: 35px; }
.hero-coordinate-side {
  top: 50%;
  right: 19px;
  writing-mode: vertical-rl;
  transform: translateY(-50%);
}

.home-cinematic .hero-cinematic-grid {
  position: relative;
  display: block;
  width: min(1380px, calc(100% - 64px));
  min-height: clamp(780px, calc(100svh - 70px), 980px);
}

.home-cinematic .hero-cinematic .hero-copy {
  position: relative;
  z-index: 6;
  width: min(58%, 730px);
  max-width: none;
  padding: clamp(110px, 15vh, 170px) 0 90px;
  pointer-events: none;
}

.home-cinematic .hero-cinematic .hero-copy > * { pointer-events: auto; }

.home-cinematic .hero-cinematic .hero-copy::before {
  width: 58px;
  margin-bottom: 39px;
  box-shadow: 72px 0 0 rgba(217, 173, 80, .26), 97px 0 0 rgba(217, 173, 80, .1);
}

.home-cinematic .hero-cinematic h1 {
  max-width: 780px;
  margin: 20px 0 26px;
  font-size: clamp(62px, 7.2vw, 112px);
  line-height: .86;
  letter-spacing: -.065em;
  text-wrap: balance;
  text-shadow: 0 14px 45px rgba(1, 9, 16, .42);
}

.home-cinematic .hero-cinematic .hero-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--cinematic-gold);
  font: 650 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .2em;
}

.home-cinematic .hero-cinematic .hero-kicker::before {
  width: 6px;
  height: 6px;
  content: "";
  border: 1px solid var(--cinematic-gold);
  transform: rotate(45deg);
}

.home-cinematic .hero-cinematic .hero-lead {
  max-width: 490px;
  padding-left: 18px;
  border-left: 1px solid rgba(217, 173, 80, .38);
  color: rgba(232, 238, 237, .7);
  font-size: 13px;
}

html[dir="rtl"] .home-cinematic .hero-cinematic .hero-lead {
  padding-right: 18px;
  padding-left: 0;
  border-right: 1px solid rgba(217, 173, 80, .38);
  border-left: 0;
}

.home-cinematic .hero-actions .btn {
  min-width: 168px;
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: .035em;
}

.home-cinematic .hero-actions .btn-primary {
  position: relative;
  clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 0 100%);
}

.home-cinematic .hero-actions .btn-secondary { border-color: rgba(245, 237, 221, .28); }

.home-cinematic .hero-cinematic .trust-row {
  gap: 26px;
  margin-top: 48px;
}

.hero-case-line {
  display: flex;
  width: min(100%, 510px);
  align-items: center;
  gap: 14px;
  margin-top: 38px;
  color: rgba(245, 237, 221, .28);
  font: 600 7.5px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .13em;
}

.hero-case-line i { height: 1px; flex: 1; background: rgba(245, 237, 221, .13); }

.home-cinematic .justice-stage {
  position: absolute;
  z-index: 3;
  top: 0;
  right: -2.5%;
  width: 70%;
  height: 100%;
  min-height: 0;
  overflow: visible;
}

html[dir="rtl"] .home-cinematic .justice-stage { right: auto; left: -2.5%; }

.home-cinematic .justice-stage::before {
  top: 11%;
  width: min(71%, 660px);
  background: radial-gradient(circle, rgba(228, 201, 139, .21), rgba(75, 121, 143, .09) 45%, transparent 69%);
  filter: blur(3px);
}

.home-cinematic .justice-stage::after { right: 16%; bottom: 5%; left: 26%; }

.home-cinematic .justice-stage canvas {
  z-index: 3;
  filter: drop-shadow(35px 35px 36px rgba(0, 0, 0, .34));
}

.home-cinematic .stage-orbit { top: 47%; left: 59%; }
.home-cinematic .stage-orbit-outer { width: min(78%, 720px); }
.home-cinematic .stage-orbit-inner { width: min(57%, 520px); }
.stage-orbit-core { width: min(35%, 310px); border-style: dotted; }
.justice-stage.is-ready .stage-orbit-core { opacity: .42; }

.home-cinematic .stage-index {
  top: 8%;
  right: 2%;
  font-size: clamp(260px, 31vw, 480px);
}

.home-cinematic .stage-heading { top: 12%; left: 40%; }
.home-cinematic .stage-axis { left: 59%; width: 70%; height: 66%; }
.home-cinematic .stage-controls { bottom: 28px; left: 35%; }

.home-cinematic .hero-atmosphere {
  top: 2%;
  right: 3%;
  width: min(68vw, 940px);
  opacity: .72;
}

/* Shared chapter grammar. */
.home-cinematic .cinematic-chapter {
  position: relative;
  padding: 118px 0;
  color: var(--cinematic-cream);
  border-top: 1px solid var(--cinematic-line-soft);
  background: transparent;
}

.home-cinematic .cinematic-chapter::before {
  position: absolute;
  z-index: 0;
  top: 24px;
  left: max(24px, calc((100vw - 1280px) / 2));
  content: attr(data-chapter) " / 10";
  color: rgba(217, 173, 80, .53);
  font: 600 8px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .17em;
}

.home-cinematic .cinematic-chapter::after {
  position: absolute;
  z-index: 0;
  top: 27px;
  right: max(24px, calc((100vw - 1280px) / 2));
  left: max(84px, calc((100vw - 1160px) / 2));
  height: 1px;
  content: "";
  background: linear-gradient(90deg, rgba(217, 173, 80, .26), rgba(255, 255, 255, .04));
}

.home-cinematic .cinematic-chapter > .container { position: relative; z-index: 1; width: min(1280px, calc(100% - 64px)); }

.home-cinematic .confidence-strip {
  padding: 0;
  border-color: rgba(217, 173, 80, .24);
  background: rgba(5, 16, 26, .94);
}

.home-cinematic .confidence-strip::before,
.home-cinematic .confidence-strip::after { display: none; }

.home-cinematic .confidence-grid { width: min(1380px, calc(100% - 64px)); }
.home-cinematic .confidence-grid > div { min-height: 120px; padding: 28px 32px; border-color: var(--cinematic-line-soft); }
.home-cinematic .confidence-grid > div::before {
  display: block;
  margin-bottom: 8px;
  color: rgba(217, 173, 80, .4);
  font: 500 8px/1 ui-monospace, monospace;
  content: "VERIFIED PRINCIPLE";
  letter-spacing: .12em;
}
.home-cinematic .confidence-grid strong { color: var(--cinematic-cream); font-family: Georgia, serif; font-size: 25px; font-weight: 400; }
.home-cinematic .confidence-grid span { color: var(--cinematic-muted); }

.home-cinematic .eyebrow,
.home-cinematic .summary-kicker {
  color: var(--cinematic-gold);
  font: 650 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .17em;
}

.home-cinematic .section h2,
.home-cinematic .section-head h2 {
  max-width: 870px;
  color: var(--cinematic-cream);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(45px, 5.2vw, 78px);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.045em;
}

html[dir="rtl"] .home-cinematic .section h2,
html[dir="rtl"] .home-cinematic .section-head h2 {
  font-family: "Vazirmatn", Tahoma, sans-serif;
  font-size: clamp(40px, 4.7vw, 66px);
  font-weight: 570;
  line-height: 1.3;
}

.home-cinematic .section-head { margin-bottom: 58px; }
.home-cinematic .section-head > div { display: grid; gap: 14px; }
.home-cinematic .text-link { color: var(--cinematic-gold); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.home-cinematic .section p,
.home-cinematic .rich-content { color: var(--cinematic-muted); }

/* About: image and copy share the same visual depth as the 3D scene. */
.home-cinematic .home-about {
  background:
    radial-gradient(circle at 78% 50%, rgba(47, 87, 108, .22), transparent 27%),
    linear-gradient(90deg, rgba(255, 255, 255, .018), transparent 48%);
}

.home-cinematic .editorial-split {
  grid-template-columns: .86fr 1.14fr;
  gap: clamp(50px, 8vw, 125px);
  align-items: center;
}

.home-cinematic .section-copy { max-width: 610px; }
.home-cinematic .section-copy::before {
  display: block;
  width: 9px;
  height: 9px;
  margin-bottom: 27px;
  content: "";
  border: 1px solid var(--cinematic-gold);
  transform: rotate(45deg);
}

.home-cinematic .image-panel {
  position: relative;
  overflow: visible;
  border: 1px solid var(--cinematic-line);
  border-radius: 0;
  background: var(--cinematic-bg-soft);
  box-shadow: 28px 28px 0 rgba(217, 173, 80, .045);
  clip-path: polygon(0 0, calc(100% - 46px) 0, 100% 46px, 100% 100%, 0 100%);
}

.home-cinematic .image-panel::before {
  position: absolute;
  z-index: 2;
  inset: 0;
  content: "";
  background: linear-gradient(135deg, rgba(7, 19, 31, .12), rgba(7, 19, 31, .74));
  pointer-events: none;
}

.home-cinematic .image-panel::after {
  position: absolute;
  z-index: 3;
  top: -18px;
  right: -18px;
  width: 88px;
  height: 88px;
  content: "+";
  color: var(--cinematic-gold);
  border-top: 1px solid var(--cinematic-gold);
  border-right: 1px solid var(--cinematic-gold);
  font: 300 26px/1 Georgia, serif;
  text-align: right;
}

.home-cinematic .image-panel img { min-height: 540px; object-fit: cover; filter: saturate(.32) sepia(.12) contrast(1.08); }
.home-cinematic .image-panel figcaption { z-index: 4; color: rgba(245, 237, 221, .72); background: rgba(7, 19, 31, .82); }

/* Cards become architectural slabs instead of white UI components. */
.home-cinematic .cards { gap: 1px; background: var(--cinematic-line-soft); }
.home-cinematic .card {
  position: relative;
  overflow: hidden;
  color: var(--cinematic-cream);
  border: 0;
  border-radius: 0;
  background: #0a1a28;
  box-shadow: none;
  transition: background .35s ease, transform .35s ease;
}

.home-cinematic .card::after {
  position: absolute;
  right: 18px;
  bottom: 14px;
  color: rgba(217, 173, 80, .25);
  content: "+";
  font: 300 19px/1 Georgia, serif;
}

.home-cinematic .card:hover { z-index: 2; background: #0e2435; transform: translateY(-5px); }
.home-cinematic .card-body { padding: 28px; }
.home-cinematic .card h3 { color: var(--cinematic-cream); font-family: Georgia, serif; font-size: 27px; font-weight: 400; }
.home-cinematic .card p,
.home-cinematic .role,
.home-cinematic .card-footer,
.home-cinematic .card-topline,
.home-cinematic .content-meta { color: var(--cinematic-muted); }
.home-cinematic .card-topline,
.home-cinematic .content-meta { border-color: var(--cinematic-line-soft); font-family: ui-monospace, monospace; letter-spacing: .06em; }
.home-cinematic .card-media { filter: saturate(.25) sepia(.1) contrast(1.08); transition: filter .5s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.home-cinematic .card:hover .card-media { filter: saturate(.72) sepia(.08); transform: scale(1.035); }
.home-cinematic .service-number { color: var(--cinematic-gold); background: rgba(7, 19, 31, .9); border-radius: 0; }

.home-cinematic .service-cards { grid-template-columns: repeat(12, 1fr); }
.home-cinematic .service-card { grid-column: span 4; }
.home-cinematic .service-card:first-child { grid-column: span 5; }
.home-cinematic .service-card:nth-child(2) { grid-column: span 7; }
.home-cinematic .service-card:first-child .card-media,
.home-cinematic .service-card:nth-child(2) .card-media { height: 340px; }

/* Process is a dossier strip. */
.home-cinematic .process-section { background: rgba(4, 14, 23, .7); }
.home-cinematic .process-panel { padding: 0; border: 1px solid var(--cinematic-line); border-radius: 0; background: transparent; }
.home-cinematic .process-head { padding: 46px 46px 30px; }
.home-cinematic .process-grid { border-color: var(--cinematic-line); }
.home-cinematic .process-step { min-height: 320px; padding: 40px 34px; border-color: var(--cinematic-line-soft); }
.home-cinematic .process-step > span { color: rgba(217, 173, 80, .34); font-family: Georgia, serif; font-size: 74px; font-weight: 400; line-height: .8; }
.home-cinematic .process-step h3 { margin-top: 50px; color: var(--cinematic-cream); font-family: Georgia, serif; font-size: 26px; font-weight: 400; }

.home-cinematic .lawyer-photo { filter: saturate(.18) sepia(.16) contrast(1.08); }
.home-cinematic .avatar { color: var(--cinematic-gold); background: #0d2333; }

.home-cinematic .testimonial-section { background: radial-gradient(circle at 18% 50%, rgba(217, 173, 80, .06), transparent 27%); }
.home-cinematic .testimonial-grid { gap: 1px; background: var(--cinematic-line-soft); }
.home-cinematic .testimonial-grid blockquote {
  min-height: 310px;
  margin: 0;
  padding: 42px;
  color: var(--cinematic-cream);
  border: 0;
  border-radius: 0;
  background: var(--cinematic-bg-soft);
  box-shadow: none;
}
.home-cinematic .testimonial-grid blockquote p { color: var(--cinematic-cream); font-family: Georgia, serif; font-size: 25px; line-height: 1.45; }
.home-cinematic .quote-mark { color: var(--cinematic-gold); }
.home-cinematic .testimonial-grid footer { color: var(--cinematic-muted); }

.home-cinematic .tutorials-home-section { border-color: var(--cinematic-line-soft); background: transparent; }
.home-cinematic .post-cover { height: 260px; }

/* FAQ and final statement complete the same visual narrative. */
.home-cinematic .faq-layout { grid-template-columns: .8fr 1.2fr; gap: clamp(55px, 9vw, 140px); }
.home-cinematic .faq-list { border-top: 1px solid var(--cinematic-line); }
.home-cinematic .faq-list details { border-color: var(--cinematic-line); }
.home-cinematic .faq-list summary { padding: 24px 0; color: var(--cinematic-cream); font-family: Georgia, serif; font-size: 20px; }
.home-cinematic .faq-list summary span { color: var(--cinematic-gold); }
.home-cinematic .faq-list details p { color: var(--cinematic-muted); }
.home-cinematic .faq-section .btn-secondary { color: var(--cinematic-cream); border-color: var(--cinematic-line); background: transparent; }

.home-cinematic .final-cta-section { padding-bottom: 138px; background: radial-gradient(circle at 78% 40%, rgba(217, 173, 80, .1), transparent 25%); }
.home-cinematic .final-cta {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  padding: 70px;
  border: 1px solid rgba(217, 173, 80, .28);
  border-radius: 0;
  background:
    linear-gradient(110deg, rgba(12, 35, 51, .95), rgba(6, 19, 30, .92)),
    var(--cinematic-bg-soft);
  clip-path: polygon(0 0, calc(100% - 52px) 0, 100% 52px, 100% 100%, 0 100%);
}
.home-cinematic .final-cta::before {
  position: absolute;
  right: -20px;
  bottom: -42px;
  content: "COUNSEL";
  color: transparent;
  font: 400 clamp(90px, 13vw, 190px)/.8 Georgia, serif;
  letter-spacing: -.06em;
  opacity: .12;
  -webkit-text-stroke: 1px var(--cinematic-gold);
}
.home-cinematic .final-cta h2 { position: relative; max-width: 820px; }
.home-cinematic .final-cta .btn-accent { position: relative; color: #07131f; border-radius: 0; background: var(--cinematic-gold); }

/* Scroll choreography is restrained enough to keep the page usable. */
.home-cinematic.cinematic-ready [data-reveal]:not(.is-visible),
.home-cinematic.cinematic-ready .section-head:not(.is-visible),
.home-cinematic.cinematic-ready .service-card:not(.is-visible),
.home-cinematic.cinematic-ready .lawyer-card:not(.is-visible),
.home-cinematic.cinematic-ready .visual-card:not(.is-visible),
.home-cinematic.cinematic-ready .testimonial-grid blockquote:not(.is-visible),
.home-cinematic.cinematic-ready .process-step:not(.is-visible),
.home-cinematic.cinematic-ready .faq-list details:not(.is-visible) {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .85s ease, transform .85s cubic-bezier(.2,.72,.2,1);
}

.home-cinematic.cinematic-ready .is-visible {
  opacity: 1;
  transform: translateY(0);
}

.home-cinematic .tutorial-home-cards,
.home-cinematic .team-cards { position: relative; isolation: isolate; }

.home-cinematic .tutorial-home-cards:has(.tutorial-card:only-child)::before,
.home-cinematic .team-cards:has(.lawyer-card:only-child)::before {
  position: absolute;
  z-index: 0;
  right: 4%;
  top: 50%;
  width: 54%;
  color: transparent;
  font: 400 clamp(70px, 8.5vw, 128px)/.82 Georgia, serif;
  letter-spacing: -.055em;
  text-align: right;
  opacity: .1;
  transform: translateY(-50%);
  -webkit-text-stroke: 1px var(--cinematic-gold);
  pointer-events: none;
}

.home-cinematic .tutorial-home-cards:has(.tutorial-card:only-child)::before { content: "KNOW\A THE\A PROCESS"; white-space: pre; }
.home-cinematic .team-cards:has(.lawyer-card:only-child)::before { content: "HUMAN\A COUNSEL"; white-space: pre; }
.home-cinematic .tutorial-home-cards > *,
.home-cinematic .team-cards > * { position: relative; z-index: 1; }

@media (max-width: 1080px) {
  .home-cinematic .hero-cinematic .hero-copy { width: 62%; }
  .home-cinematic .hero-cinematic h1 { font-size: clamp(58px, 8vw, 86px); }
  .home-cinematic .justice-stage { right: -8%; width: 72%; }
  .home-cinematic .stage-heading { left: 36%; }
  .home-cinematic .stage-orbit,
  .home-cinematic .stage-axis { left: 58%; }
  .home-cinematic .service-card,
  .home-cinematic .service-card:first-child,
  .home-cinematic .service-card:nth-child(2) { grid-column: span 6; }
}

@media (max-width: 900px) {
  .home-cinematic .hero-cinematic { min-height: 1120px; }
  .home-cinematic .hero-cinematic-grid { width: min(760px, calc(100% - 30px)); min-height: 1120px; }
  .home-cinematic .hero-cinematic .hero-copy { width: 100%; padding: 75px 14px 0; }
  .home-cinematic .hero-cinematic h1 { max-width: 720px; font-size: clamp(62px, 10.5vw, 88px); }
  .home-cinematic .justice-stage { top: 430px; right: -7%; width: 100%; height: 690px; }
  .home-cinematic .stage-heading { left: 20%; }
  .home-cinematic .stage-orbit,
  .home-cinematic .stage-axis { left: 54%; }
  .hero-coordinate-side { display: none; }
  .hero-wordmark { bottom: 15px; font-size: 20vw; }
  .home-cinematic .editorial-split,
  .home-cinematic .faq-layout { grid-template-columns: 1fr; }
  .home-cinematic .image-panel img { min-height: 460px; }
  .home-cinematic .cinematic-chapter { padding: 94px 0; }
}

@media (max-width: 640px) {
  .home-cinematic .hero-cinematic { min-height: 960px; }
  .home-cinematic .hero-cinematic-grid { width: calc(100% - 24px); min-height: 960px; }
  .home-cinematic .hero-cinematic .hero-copy { padding: 49px 0 0; }
  .home-cinematic .hero-cinematic .hero-copy::before { margin-bottom: 25px; }
  .home-cinematic .hero-cinematic h1 { margin-top: 18px; font-size: clamp(46px, 14.4vw, 66px); line-height: .92; }
  .home-cinematic .hero-cinematic .hero-lead { padding-left: 13px; font-size: 11.5px; }
  .home-cinematic .hero-actions { grid-template-columns: 1fr 1fr; gap: 8px; }
  .home-cinematic .hero-actions .btn { min-width: 0; min-height: 46px; padding: 10px 8px; font-size: 10px; }
  .home-cinematic .hero-cinematic .trust-row { gap: 7px; margin-top: 25px; }
  .home-cinematic .hero-cinematic .trust-row span { font-size: 8px; }
  .hero-case-line { margin-top: 25px; }
  .home-cinematic .justice-stage { top: 475px; right: -14%; width: 125%; height: 485px; margin: 0; }
  .home-cinematic .stage-heading { top: 9px; left: 21%; }
  .home-cinematic .stage-orbit,
  .home-cinematic .stage-axis { left: 54%; }
  .home-cinematic .stage-orbit-outer { width: 85%; }
  .home-cinematic .stage-orbit-inner { width: 63%; }
  .home-cinematic .stage-orbit-core { width: 39%; }
  .home-cinematic .stage-index { right: 5%; font-size: 195px; }
  .home-cinematic .stage-controls { left: 20%; }
  .hero-coordinate-top { top: 15px; right: 13px; font-size: 6.5px; }
  .hero-wordmark { right: -8px; bottom: 13px; font-size: 22vw; }
  .home-cinematic .cinematic-chapter { padding: 78px 0; }
  .home-cinematic .cinematic-chapter > .container { width: calc(100% - 24px); }
  .home-cinematic .cinematic-chapter::before { top: 19px; left: 12px; }
  .home-cinematic .cinematic-chapter::after { top: 22px; right: 12px; left: 68px; }
  .home-cinematic .confidence-grid { width: calc(100% - 24px); }
  .home-cinematic .confidence-grid > div { min-height: auto; padding: 20px 4px; }
  .home-cinematic .section h2,
  .home-cinematic .section-head h2 { font-size: 40px; }
  .home-cinematic .section-head { margin-bottom: 35px; }
  .home-cinematic .editorial-split { gap: 50px; }
  .home-cinematic .image-panel img { min-height: 350px; }
  .home-cinematic .service-cards { grid-template-columns: 1fr; }
  .home-cinematic .service-card,
  .home-cinematic .service-card:first-child,
  .home-cinematic .service-card:nth-child(2) { grid-column: auto; }
  .home-cinematic .service-card:first-child .card-media,
  .home-cinematic .service-card:nth-child(2) .card-media { height: 230px; }
  .home-cinematic .process-head { padding: 29px 22px 18px; }
  .home-cinematic .process-step { min-height: auto; padding: 28px 22px; }
  .home-cinematic .process-step > span { font-size: 56px; }
  .home-cinematic .process-step h3 { margin-top: 30px; }
  .home-cinematic .testimonial-grid blockquote { min-height: auto; padding: 30px 25px; }
  .home-cinematic .final-cta { min-height: 430px; align-items: flex-start; padding: 38px 28px; }
  .home-cinematic .final-cta::before { font-size: 25vw; }
  .home-cinematic .tutorial-home-cards:has(.tutorial-card:only-child)::before,
  .home-cinematic .team-cards:has(.lawyer-card:only-child)::before { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .home-cinematic.cinematic-ready [data-reveal],
  .home-cinematic.cinematic-ready .section-head,
  .home-cinematic.cinematic-ready .service-card,
  .home-cinematic.cinematic-ready .lawyer-card,
  .home-cinematic.cinematic-ready .visual-card,
  .home-cinematic.cinematic-ready .testimonial-grid blockquote,
  .home-cinematic.cinematic-ready .process-step,
  .home-cinematic.cinematic-ready .faq-list details {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* V4 — persistent WebGL scrollytelling ----------------------------------------- */
html { scroll-snap-type: y proximity; scroll-padding-top: 70px; }

.home-cinematic {
  --scene-edge: max(32px, calc((100vw - 1320px) / 2));
  min-height: 100vh;
}

.home-cinematic .cinematic-scene {
  min-height: calc(100svh - 70px);
  scroll-snap-align: start;
  scroll-margin-top: 70px;
}

.home-cinematic .hero-cinematic { overflow: visible; }

.home-cinematic .justice-stage {
  position: fixed;
  z-index: 2;
  top: 70px;
  right: auto;
  bottom: auto;
  left: 0;
  width: 100vw;
  height: calc(100svh - 70px);
  min-height: 0;
  margin: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity .55s ease;
}

.home-cinematic.is-home-visible .justice-stage { opacity: 1; pointer-events: auto; }
.home-cinematic .justice-stage canvas { pointer-events: auto; }

.home-cinematic .justice-stage::before {
  top: 50%;
  left: var(--stage-focus-x, 72%);
  width: min(54vw, 730px);
  transform: translate(-50%, -50%);
  transition: left 1.1s cubic-bezier(.2,.72,.2,1), width 1.1s cubic-bezier(.2,.72,.2,1);
}

.home-cinematic .justice-stage::after {
  right: calc(100% - var(--stage-focus-x, 72%) - 18%);
  bottom: 4%;
  left: calc(var(--stage-focus-x, 72%) - 18%);
  transition: right 1.1s cubic-bezier(.2,.72,.2,1), left 1.1s cubic-bezier(.2,.72,.2,1);
}

.home-cinematic .stage-orbit,
.home-cinematic .stage-axis {
  left: var(--stage-focus-x, 72%);
  transition: left 1.1s cubic-bezier(.2,.72,.2,1), opacity .7s ease, transform 1.1s cubic-bezier(.2,.72,.2,1);
}

.home-cinematic .justice-stage[data-active-view="face"],
.home-cinematic .justice-stage[data-active-view="profile"],
.home-cinematic .justice-stage[data-active-view="sword"],
.home-cinematic .justice-stage[data-active-view="balance"],
.home-cinematic .justice-stage[data-active-view="guide"],
.home-cinematic .justice-stage[data-active-view="final"] { --stage-focus-x: 27%; }

.home-cinematic .justice-stage[data-active-view="scales"],
.home-cinematic .justice-stage[data-active-view="counsel"],
.home-cinematic .justice-stage[data-active-view="insight"],
.home-cinematic .justice-stage[data-active-view="questions"] { --stage-focus-x: 73%; }

.home-cinematic .stage-heading {
  top: 46px;
  left: var(--scene-edge);
  min-width: 205px;
  transition: opacity .3s ease;
}

.home-cinematic .stage-heading strong { max-width: 230px; }
.home-cinematic .justice-stage[data-active-view="hero"] .stage-heading { left: 59%; }
.home-cinematic .justice-stage:not([data-active-view="hero"]) .stage-heading { opacity: 0; }

.scene-progress {
  position: absolute;
  z-index: 7;
  right: var(--scene-edge);
  bottom: 27px;
  display: grid;
  width: min(260px, 25vw);
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  color: rgba(245, 237, 221, .48);
  font: 600 8px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .1em;
}

.scene-progress i { position: relative; display: block; height: 1px; overflow: hidden; background: rgba(245, 237, 221, .16); }
.scene-progress b { position: absolute; inset: 0; background: var(--cinematic-gold); transform: scaleX(0); transform-origin: left; }

.home-cinematic .stage-controls { left: var(--scene-edge); bottom: 27px; }
.home-cinematic .hero-scroll-cue { position: fixed; z-index: 8; opacity: 0; transition: opacity .35s ease; }
.home-cinematic .hero-cinematic.is-active-scene .hero-scroll-cue { opacity: 1; }

/* Each chapter reserves one half of the viewport for a deliberate model crop. */
.home-cinematic .cinematic-chapter {
  display: flex;
  min-height: calc(100svh - 70px);
  align-items: center;
  padding: 96px 0 64px;
  pointer-events: none;
}

.home-cinematic .cinematic-chapter > .container { pointer-events: auto; }

.home-cinematic .scene-content-left {
  background: linear-gradient(90deg, rgba(6, 17, 27, .98) 0%, rgba(7, 20, 31, .94) 43%, rgba(7, 20, 31, .45) 55%, transparent 72%);
}

.home-cinematic .scene-content-right {
  background: linear-gradient(270deg, rgba(6, 17, 27, .98) 0%, rgba(7, 20, 31, .94) 43%, rgba(7, 20, 31, .45) 55%, transparent 72%);
}

.home-cinematic .scene-content-left > .container {
  width: min(620px, 44vw);
  margin-right: auto;
  margin-left: var(--scene-edge);
}

.home-cinematic .scene-content-right > .container {
  width: min(620px, 44vw);
  margin-right: var(--scene-edge);
  margin-left: auto;
}

.home-cinematic .cinematic-chapter::before { left: var(--scene-edge); }
.home-cinematic .cinematic-chapter::after { right: var(--scene-edge); left: calc(var(--scene-edge) + 62px); }
.home-cinematic .cinematic-chapter.is-active-scene::before { color: var(--cinematic-gold); }

.home-cinematic .confidence-strip { padding: 88px 0 58px; }
.home-cinematic .confidence-grid { display: grid; width: min(620px, 44vw); grid-template-columns: 1fr; }
.home-cinematic .confidence-grid > div {
  min-height: 0;
  padding: 25px 8px;
  border-right: 0;
  border-bottom: 1px solid var(--cinematic-line-soft);
}
.home-cinematic .confidence-grid > div:last-child { border-bottom: 0; }

.home-cinematic .editorial-split { grid-template-columns: 1fr; gap: 28px; }
.home-cinematic .image-panel { height: 205px; box-shadow: 15px 15px 0 rgba(217, 173, 80, .045); }
.home-cinematic .image-panel img { width: 100%; min-height: 205px; height: 205px; }
.home-cinematic .image-panel figcaption { padding: 12px 16px; font-size: 9px; }

.home-cinematic .section-head { display: grid; gap: 19px; margin-bottom: 32px; }
.home-cinematic .section-head h2,
.home-cinematic .section h2 { font-size: clamp(38px, 3.7vw, 59px); }

.home-cinematic .service-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.home-cinematic .service-card,
.home-cinematic .service-card:first-child,
.home-cinematic .service-card:nth-child(2) { grid-column: auto; }
.home-cinematic .service-card .card-media,
.home-cinematic .service-card:first-child .card-media,
.home-cinematic .service-card:nth-child(2) .card-media { height: 150px; }
.home-cinematic .service-card .card-body { padding: 18px; }
.home-cinematic .service-card h3 { font-size: 20px; }
.home-cinematic .service-card p { display: none; }
.home-cinematic .service-card:nth-child(n+3) { display: none; }

.home-cinematic .process-panel { border: 0; }
.home-cinematic .process-head { padding: 0 0 24px; }
.home-cinematic .process-grid { grid-template-columns: 1fr; border-top: 1px solid var(--cinematic-line); }
.home-cinematic .process-step,
.home-cinematic .process-step:first-child {
  display: grid;
  min-height: 0;
  grid-template-columns: 64px 1fr;
  gap: 0 18px;
  padding: 22px 0;
  border-top: 0;
  border-bottom: 1px solid var(--cinematic-line-soft);
  border-right: 0;
}
.home-cinematic .process-step > span { grid-row: span 2; font-size: 50px; }
.home-cinematic .process-step h3 { margin: 0 0 6px; font-size: 20px; }
.home-cinematic .process-step p { margin: 0; }

.home-cinematic .team-cards,
.home-cinematic .article-cards,
.home-cinematic .testimonial-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.home-cinematic .lawyer-card .card-media,
.home-cinematic .post-cover { height: 175px; }
.home-cinematic .testimonial-grid blockquote { min-height: 230px; padding: 27px; }
.home-cinematic .testimonial-grid blockquote p { font-size: 20px; }
.home-cinematic .visual-card .card-body { padding: 20px; }
.home-cinematic .visual-card h3 { font-size: 21px; }
.home-cinematic .visual-card p { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.home-cinematic .tutorial-home-cards:has(.tutorial-card:only-child)::before,
.home-cinematic .team-cards:has(.lawyer-card:only-child)::before { display: none; }

.home-cinematic .faq-layout { display: grid; grid-template-columns: 1fr; gap: 32px; }
.home-cinematic .faq-list details:nth-child(n+4) { display: none; }
.home-cinematic .faq-list summary { padding: 16px 0; font-size: 17px; }

.home-cinematic .final-cta-section { padding-bottom: 64px; }
.home-cinematic .final-cta {
  min-height: 510px;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  padding: 50px;
  background: rgba(9, 27, 40, .82);
  backdrop-filter: blur(12px);
}

@media (max-width: 900px) {
  html { scroll-snap-type: y proximity; }
  .home-cinematic { --scene-edge: 18px; }
  .home-cinematic .hero-cinematic { min-height: calc(100svh - 70px); overflow: visible; }
  .home-cinematic .hero-cinematic-grid { min-height: calc(100svh - 70px); }
  .home-cinematic .justice-stage { top: 65px; height: calc(100svh - 65px); }
  .home-cinematic .hero-cinematic .hero-copy { padding-top: 48px; }
  .home-cinematic .cinematic-chapter { min-height: calc(100svh - 65px); padding: 82px 0 54px; }
  .home-cinematic .scene-content-left,
  .home-cinematic .scene-content-right {
    background: linear-gradient(180deg, rgba(6, 17, 27, .88), rgba(6, 17, 27, .82));
  }
  .home-cinematic .scene-content-left > .container,
  .home-cinematic .scene-content-right > .container,
  .home-cinematic .confidence-grid {
    width: calc(100% - 36px);
    margin-right: auto;
    margin-left: auto;
    padding: 22px;
    border: 1px solid rgba(236, 215, 159, .15);
    background: rgba(5, 17, 27, .76);
    backdrop-filter: blur(14px);
  }
  .home-cinematic .stage-heading { display: none; }
  .home-cinematic .justice-stage[data-active-view="hero"] .stage-heading { left: 18px; }
  .home-cinematic .stage-orbit,
  .home-cinematic .stage-axis,
  .home-cinematic .justice-stage::before { left: 50%; }
  .home-cinematic .stage-controls { display: none; }
  .scene-progress { right: 18px; bottom: 24px; width: 180px; }
  .home-cinematic .section-head h2,
  .home-cinematic .section h2 { font-size: 39px; }
}

@media (max-width: 640px) {
  .home-cinematic .hero-cinematic { overflow-x: clip; }
  .home-cinematic .hero-cinematic-grid,
  .home-cinematic .hero-cinematic .hero-copy,
  .home-cinematic .hero-cinematic h1,
  .home-cinematic .hero-cinematic .hero-lead,
  .home-cinematic .hero-actions,
  .home-cinematic .hero-cinematic .trust-row { min-width: 0; max-width: 100%; }
  .home-cinematic .hero-cinematic .hero-copy { padding-top: 43px; }
  .home-cinematic .hero-cinematic h1 {
    font-size: clamp(40px, 12.4vw, 56px);
    overflow-wrap: anywhere;
  }
  .home-cinematic .hero-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-cinematic .hero-actions .btn {
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.35;
    text-align: center;
  }
  .home-cinematic .hero-cinematic .trust-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .home-cinematic .hero-cinematic .trust-row span {
    min-width: 0;
    justify-content: center;
    overflow-wrap: anywhere;
    text-align: center;
  }
  .home-cinematic .hero-case-line { min-width: 0; overflow: hidden; }
  .home-cinematic .service-cards,
  .home-cinematic .team-cards,
  .home-cinematic .article-cards,
  .home-cinematic .testimonial-grid { grid-template-columns: 1fr; }
  .home-cinematic .service-card:nth-child(n+2),
  .home-cinematic .visual-card:nth-child(n+2),
  .home-cinematic .testimonial-grid blockquote:nth-child(n+2),
  .home-cinematic .lawyer-card:nth-child(n+2) { display: none; }
  .home-cinematic .service-card .card-media,
  .home-cinematic .service-card:first-child .card-media,
  .home-cinematic .service-card:nth-child(2) .card-media { height: 122px; }
  .home-cinematic .process-step { padding: 16px 0; }
  .home-cinematic .image-panel { height: 160px; }
  .home-cinematic .image-panel img { min-height: 160px; height: 160px; }
  .home-cinematic .final-cta { min-height: 520px; padding: 31px 25px; }
}

@media (max-width: 420px) {
  .home-cinematic .hero-actions { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-snap-type: none; }
  .home-cinematic .justice-stage,
  .home-cinematic .stage-orbit,
  .home-cinematic .stage-axis { transition: none; }
}

/* V5 — mirror only the opening composition; scroll architecture is unchanged. */
.home-cinematic .hero-cinematic {
  background:
    linear-gradient(270deg, rgba(5, 16, 26, .98) 0%, rgba(6, 19, 30, .9) 43%, rgba(9, 28, 42, .34) 70%, rgba(9, 28, 42, .08) 100%),
    radial-gradient(circle at 25% 43%, rgba(70, 111, 130, .5), transparent 27%);
}

.home-cinematic .hero-cinematic::before {
  right: auto;
  left: 7.5%;
}

.home-cinematic .hero-cinematic .hero-copy {
  width: min(54%, 700px);
  margin-right: 0;
  margin-left: auto;
}

.home-cinematic .hero-cinematic h1 { max-width: 700px; }
.home-cinematic .hero-atmosphere { right: auto; left: 3%; }
.home-cinematic .hero-wordmark { right: auto; left: -1.6vw; }
.home-cinematic .justice-stage[data-active-view="hero"] { --stage-focus-x: 30%; }
.home-cinematic .justice-stage[data-active-view="hero"] .stage-heading { left: var(--scene-edge); }

@media (max-width: 1080px) and (min-width: 901px) {
  .home-cinematic .hero-cinematic .hero-copy { width: 58%; }
}

@media (max-width: 900px) {
  .home-cinematic .hero-cinematic .hero-copy {
    width: 100%;
    margin-right: 0;
    margin-left: 0;
  }
  .home-cinematic .justice-stage[data-active-view="hero"] { --stage-focus-x: 50%; }
}
