/* =========================================================
   Elyra Law - single page template
   ========================================================= */

:root {
  --bg: #e7e7e5;
  --bg-hi: #f0f0ee;
  --ink: #0f0f0f;
  --ink-2: #2b2b2a;
  --muted: #6b6b68;
  --line: rgba(15, 15, 15, 0.1);
  --glass: rgba(255, 255, 255, 0.45);
  --glass-line: rgba(255, 255, 255, 0.8);
  --accent: #f26a21;
  --accent-deep: #d9541a;
  --bronze: #8a6844;
  --bronze-lt: #d2ad7f;
  --dark: #0e0d0c;
  --cream: #f2efe9;

  --font-display: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --container: 1320px;
  --gutter: clamp(16px, 4vw, 40px);
  --nav-h: 84px;
  --shadow: 0 30px 60px -30px rgba(40, 28, 15, 0.3);
}

/* ---------- base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

svg {
  display: block;
}

svg[viewBox="0 0 24 24"] {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

svg .fill {
  fill: currentColor;
  stroke: none;
}

::selection {
  background: var(--accent);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* parallax hooks - JS writes --py (scroll) and --mx/--my (pointer) */
[data-speed],
[data-depth] {
  transform: translate3d(var(--mx, 0px), calc(var(--py, 0px) + var(--my, 0px)), 0);
  will-change: transform;
}

/* ---------- logo mark ---------- */
.logo-mark {
  width: 28px;
  height: 28px;
  fill: var(--accent);
  flex: none;
}

.logo-mark .px--core {
  fill: var(--ink);
}

.logo-mark .px {
  transform-box: fill-box;
  transform-origin: center;
}

.js .nav .logo-mark .px {
  transform: scale(0);
}

.is-loaded .nav .logo-mark .px {
  transform: scale(1);
  transition: transform 0.6s var(--ease) calc(0.3s + var(--i) * 55ms);
}

.brand:hover .logo-mark .px {
  animation: px-wave 0.7s var(--ease) calc(var(--i) * 40ms);
}

@keyframes px-wave {
  50% {
    transform: scale(0.35) rotate(90deg);
  }
}

/* ---------- buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 54px;
  padding: 0 26px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), color 0.4s;
}

.btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.45s var(--ease);
}

.btn:hover svg {
  transform: translateX(4px);
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform 0.55s var(--ease);
}

.btn:hover::before {
  transform: translateY(0);
}

.btn--accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 14px 30px -12px rgba(242, 106, 33, 0.65);
}

.btn--accent::before {
  background: var(--ink);
}

.btn--light {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.9);
  color: var(--ink);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.btn--light::before {
  background: #fff;
}

.btn--dark {
  height: 50px;
  padding: 0 24px;
  background: var(--ink);
  color: #fff;
}

.btn--dark::before {
  background: var(--accent);
}

.btn--block {
  width: 100%;
}

.btn.is-loading svg {
  animation: nudge 0.8s var(--ease-in-out) infinite;
}

@keyframes nudge {
  50% {
    transform: translateX(6px);
  }
}

.round-arrow {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transition: background 0.3s, color 0.3s;
}

.round-arrow svg {
  width: 18px;
  height: 18px;
  transition: transform 0.45s var(--ease);
}

.round-arrow:hover {
  background: var(--accent);
  color: #fff;
}

.round-arrow:hover svg {
  transform: rotate(45deg);
}

.link-underline {
  position: relative;
  align-self: flex-start;
  padding-bottom: 3px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.link-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
}

.link-underline:hover::after {
  animation: underline 0.8s var(--ease);
}

@keyframes underline {
  0% {
    transform: scaleX(1);
    transform-origin: right;
  }
  50% {
    transform: scaleX(0);
    transform-origin: right;
  }
  50.1% {
    transform: scaleX(0);
    transform-origin: left;
  }
  100% {
    transform: scaleX(1);
    transform-origin: left;
  }
}

/* ---------- scroll progress ---------- */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  height: 2px;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  height: 100%;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(0);
}

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  padding-top: 14px;
  transition: transform 0.6s var(--ease), opacity 0.8s var(--ease);
}

.js .nav {
  opacity: 0;
  transform: translateY(-24px);
}

.is-loaded .nav {
  opacity: 1;
  transform: none;
}

.is-loaded .nav.is-hidden {
  transform: translateY(-130%);
}

.nav__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 66px;
}

.nav__inner::before {
  content: "";
  position: absolute;
  inset: 0 calc(var(--gutter) - 14px);
  z-index: -1;
  border-radius: 18px;
  background: rgba(238, 238, 236, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 12px 30px -14px rgba(0, 0, 0, 0.18);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  opacity: 0;
  transition: opacity 0.4s;
}

.nav.is-scrolled .nav__inner::before {
  opacity: 1;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: color 0.4s;
}

.brand__name span {
  font-weight: 400;
  color: var(--muted);
}

.nav__links {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav__link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 42px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 15px;
  color: var(--ink-2);
  transition: color 0.3s;
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--ink);
}

.nav__pill {
  position: absolute;
  top: 0;
  left: 0;
  height: 42px;
  width: var(--w, 0px);
  transform: translateX(var(--x, 0px));
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  opacity: 0;
  transition: transform 0.55s var(--ease), width 0.55s var(--ease), opacity 0.3s;
}

.nav__pill.is-ready {
  opacity: 1;
}

.chev {
  width: 14px;
  height: 14px;
  transition: transform 0.35s var(--ease);
}

.globe {
  width: 17px;
  height: 17px;
}

[aria-expanded="true"] > .chev,
.dropdown.is-open .chev,
.select.is-open .chev {
  transform: rotate(180deg);
}

.dropdown {
  position: relative;
}

.dropdown__menu,
.select__menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  z-index: 5;
  display: grid;
  gap: 2px;
  min-width: 170px;
  margin: 0;
  padding: 8px;
  list-style: none;
  border-radius: 14px;
  background: rgba(248, 248, 246, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.22);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px) scale(0.98);
  transform-origin: top center;
  transition: opacity 0.25s, transform 0.4s var(--ease), visibility 0s 0.4s;
}

.dropdown__menu::before {
  content: "";
  position: absolute;
  inset: -14px 0 auto;
  height: 14px;
}

.dropdown__menu--wide {
  min-width: 240px;
}

.dropdown.is-open .dropdown__menu,
.select.is-open .select__menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0) scale(1);
  transition: opacity 0.25s, transform 0.4s var(--ease);
}

.dropdown__menu a,
.dropdown__menu button,
.select__menu li {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border-radius: 9px;
  text-align: left;
  font-size: 14px;
  color: var(--ink-2);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, padding 0.35s var(--ease);
}

.dropdown__menu a:hover,
.dropdown__menu button:hover,
.select__menu li:hover,
.select__menu li:focus-visible {
  padding-left: 16px;
  background: rgba(0, 0, 0, 0.05);
  color: var(--ink);
}

.select__menu li[aria-selected="true"] {
  color: var(--accent);
  font-weight: 500;
}

/* burger + mobile menu */
.burger {
  position: relative;
  z-index: 2;
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--ink);
}

.burger span {
  position: absolute;
  left: 14px;
  right: 14px;
  height: 1.5px;
  background: #fff;
  transition: transform 0.5s var(--ease);
}

.burger span:first-child {
  top: 19px;
}

.burger span:last-child {
  top: 26px;
}

.menu-open .burger span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.menu-open .burger span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.menu-open .burger {
  background: var(--accent);
}

.menu-open .brand__name {
  color: var(--cream);
}

.menu-open .nav__inner::before {
  opacity: 0;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--nav-h) + 48px) var(--gutter) 40px;
  background: var(--dark);
  color: var(--cream);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 0.8s var(--ease-in-out), visibility 0s 0.8s;
}

.menu-open .mobile-menu {
  clip-path: inset(0 0 0 0);
  visibility: visible;
  transition: clip-path 0.8s var(--ease-in-out), visibility 0s;
}

.mobile-menu__links {
  display: grid;
  gap: 4px;
}

.mobile-menu__links a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-family: var(--font-display);
  font-size: clamp(38px, 10vw, 64px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.03em;
  opacity: 0;
  transform: translateY(40px);
  transition: transform 0.7s var(--ease), opacity 0.5s, color 0.3s;
}

.mobile-menu__links a:hover {
  color: var(--accent);
}

.menu-open .mobile-menu__links a {
  opacity: 1;
  transform: none;
  transition-delay: calc(0.25s + var(--i) * 60ms);
}

.mobile-menu__links small {
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.mobile-menu__foot {
  display: grid;
  gap: 6px;
  color: rgba(242, 239, 233, 0.6);
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  --hero-h: max(760px, 100svh);
  position: relative;
  min-height: var(--hero-h);
  padding: calc(var(--nav-h) + 40px) 0 36px;
  overflow: hidden;
  background: radial-gradient(120% 90% at 62% 38%, #f7f7f5 0%, #eaeae8 42%, #d8d8d5 100%);
}

.hero__backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
}

.orb--1 {
  left: 38%;
  top: 2%;
  width: 48vw;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 65%);
}

.orb--2 {
  right: -10%;
  bottom: -18%;
  width: 36vw;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(210, 173, 127, 0.32), rgba(210, 173, 127, 0) 65%);
}

.hero__word-wrap {
  position: absolute;
  inset: auto 0 -5vw;
  text-align: center;
}

.hero__word {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 31vw;
  font-weight: 600;
  line-height: 0.8;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(15, 15, 15, 0.07);
}

.dust {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* grid: statue stage sits absolutely behind the cards on desktop */
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 330px;
  grid-template-rows: auto 1fr auto;
  grid-template-areas:
    "copy    copy   clients"
    "copy    copy   .      "
    "feature social stats  ";
  min-height: calc(var(--hero-h) - var(--nav-h) - 76px);
}

.hero__stage {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 2;
  width: min(100%, 1400px);
  transform: translateX(-50%);
  pointer-events: none;
}

.statue-glow {
  position: absolute;
  left: 34%;
  top: 6%;
  width: 58%;
  aspect-ratio: 1;
}

.statue-glow::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 252, 245, 0.95) 0%, rgba(255, 255, 255, 0.45) 34%, rgba(255, 255, 255, 0) 66%);
  animation: glow 7s ease-in-out infinite;
}

@keyframes glow {
  50% {
    transform: scale(1.07);
    opacity: 0.75;
  }
}

.statue {
  position: absolute;
  left: 37.5%;
  top: calc(var(--nav-h) + 18px);
  width: 46%;
  transform: translate3d(var(--mx, 0px), calc(var(--py, 0px) + var(--my, 0px)), 0) rotate(var(--rz, 0deg));
  transform-origin: 60% 85%;
}

.statue__float {
  animation: float 9s ease-in-out infinite;
  transform-origin: 60% 90%;
}

@keyframes float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(0, -16px, 0) rotate(-0.7deg);
  }
}

.statue__reveal {
  position: relative;
  -webkit-mask-image: linear-gradient(to bottom, #000 50%, transparent 82%);
  mask-image: linear-gradient(to bottom, #000 50%, transparent 82%);
}

.js .statue__reveal {
  opacity: 0;
  transform: translateY(80px) scale(1.06);
  filter: blur(14px);
}

.is-loaded .statue__reveal {
  opacity: 1;
  transform: none;
  filter: blur(0);
  transition: opacity 1.4s var(--ease) 0.25s, transform 2s var(--ease) 0.25s, filter 1.5s var(--ease) 0.25s;
}

.statue__img,
.statue .pan {
  filter: drop-shadow(0 34px 40px rgba(50, 34, 18, 0.28));
}

/* rig: statue body + two scale pans that swing from their rings (script.js drives the rotation) */
.rig {
  position: relative;
}

.rig__body {
  width: 100%;
}

.pan {
  position: absolute;
  will-change: transform;
}

.pan--left {
  left: 1.594%;
  top: 24.463%;
  width: 18.116%;
  transform-origin: 50.4% -4.63%;
}

.pan--right {
  left: 33.225%;
  top: 25.556%;
  width: 18.297%;
  transform-origin: 48.12% -3.48%;
}

/* metallic glint that sweeps across the bronze */
.statue__shine {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  filter: brightness(1.85) saturate(1.25);
  opacity: 0.75;
  -webkit-mask-image: linear-gradient(105deg, transparent 42%, #000 50%, transparent 58%);
  mask-image: linear-gradient(105deg, transparent 42%, #000 50%, transparent 58%);
  -webkit-mask-size: 300% 100%;
  mask-size: 300% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: 100% 0;
  mask-position: 100% 0;
  animation: shine 7.5s var(--ease-in-out) 2.6s infinite;
}

@keyframes shine {
  0% {
    -webkit-mask-position: 100% 0;
    mask-position: 100% 0;
  }
  32%,
  100% {
    -webkit-mask-position: 0% 0;
    mask-position: 0% 0;
  }
}

/* hero copy */
.hero__copy {
  position: relative;
  z-index: 1;
  grid-area: copy;
  align-self: start;
  padding-top: 26px;
}

.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(40px, 5.8vw, 86px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.hero__title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
  margin-bottom: -0.06em;
}

.hero__title .line > span {
  display: inline-block;
  background: linear-gradient(96deg, var(--a) 0%, var(--b) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__title .line:nth-child(1) {
  --a: #474745;
  --b: #a4a4a1;
}

.hero__title .line:nth-child(2) {
  --a: #252524;
  --b: #8e8e8b;
}

.hero__title .line:nth-child(3) {
  --a: #0b0b0b;
  --b: #7b7b78;
}

.js .hero__title .line > span {
  transform: translateY(110%);
}

.is-loaded .hero__title .line > span {
  transform: none;
  transition: transform 1.3s var(--ease) 0.15s;
}

.is-loaded .hero__title .line:nth-child(2) > span {
  transition-delay: 0.27s;
}

.is-loaded .hero__title .line:nth-child(3) > span {
  transition-delay: 0.39s;
}

.hero__lead {
  max-width: 440px;
  margin: 26px 0 0;
  font-size: 17px;
  line-height: 1.55;
  color: var(--muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.js [data-intro] {
  opacity: 0;
  transform: translateY(30px);
}

.is-loaded [data-intro] {
  opacity: 1;
  transform: none;
  transition: opacity 1s var(--ease) var(--d, 0s), transform 1.3s var(--ease) var(--d, 0s);
}

/* clients */
.hero__clients {
  position: relative;
  z-index: 3;
  grid-area: clients;
  justify-self: end;
  width: 250px;
  padding-top: 30px;
}

.hero__clients-num {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 58px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.03em;
}

.avatars {
  display: flex;
  align-items: center;
}

.avatars img,
.avatars .round-arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid #f2f2f0;
  object-fit: cover;
  margin-right: -10px;
  transition: transform 0.45s var(--ease);
}

.avatars img:hover {
  transform: translateY(-6px);
}

.hero__clients-text {
  margin: 14px 0 0;
  max-width: 220px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--muted);
}

/* feature card */
.hero__feature {
  position: relative;
  z-index: 3;
  grid-area: feature;
  align-self: end;
}

.feature {
  display: flex;
  gap: 22px;
}

.feature__media {
  position: relative;
  flex: none;
  width: 150px;
  height: 150px;
}

.feature__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.round-arrow--sm {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 38px;
  height: 38px;
}

.feature__body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 6px 0 2px;
}

.feature__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.05;
  text-transform: uppercase;
  background: linear-gradient(95deg, #151515 10%, #8c8c89 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* socials */
.hero__social {
  position: relative;
  z-index: 3;
  grid-area: social;
  justify-self: center;
  align-self: end;
  display: flex;
  gap: 6px;
  padding: 6px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.75);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.hero__social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  color: var(--ink-2);
  transition: background 0.3s, color 0.3s;
}

.hero__social svg {
  width: 20px;
  height: 20px;
}

.hero__social a.is-active,
.hero__social a:hover {
  background: rgba(25, 25, 25, 0.38);
  color: #fff;
}

/* chart card */
.hero__stats {
  position: relative;
  z-index: 3;
  grid-area: stats;
  align-self: end;
}

.chart-card {
  padding: 22px 22px 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 30px 60px -30px rgba(40, 28, 15, 0.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
}

.chart-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.chart-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.select {
  position: relative;
}

.select__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.75);
  font-size: 13px;
}

.select__menu {
  left: auto;
  right: 0;
  min-width: 140px;
  transform: translate(0, 8px) scale(0.98);
  transform-origin: top right;
}

.select.is-open .select__menu {
  transform: none;
}

.chart {
  position: relative;
  height: 188px;
  margin-top: 16px;
}

.chart__axis {
  position: absolute;
  top: 6px;
  bottom: 26px;
  left: 0;
  width: 24px;
}

.chart__axis span {
  position: absolute;
  left: 0;
  bottom: calc(var(--v) / 45 * 100%);
  transform: translateY(50%);
  font-size: 12px;
  color: var(--muted);
}

.chart__bars {
  position: absolute;
  inset: 0 0 0 28px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 6px;
}

.bar__track {
  position: relative;
  flex: 1;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.bar__fill {
  width: min(22px, 70%);
  height: calc(var(--v, 0) / 45 * 100%);
  border-radius: 12px;
  background: linear-gradient(180deg, #2c241e 0%, #5d4c40 45%, rgba(93, 76, 64, 0.06) 100%);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: height 0.9s var(--ease), transform 1.1s var(--ease) calc(var(--i) * 80ms), background 0.3s;
}

.chart.is-on .bar__fill {
  transform: scaleY(1);
}

.bar:hover .bar__fill {
  background: linear-gradient(180deg, var(--accent) 0%, rgba(242, 106, 33, 0.55) 50%, rgba(242, 106, 33, 0.05) 100%);
}

.bar__tip {
  position: absolute;
  left: 50%;
  bottom: calc(var(--v, 0) / 45 * 100% + 8px);
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, 6px);
  pointer-events: none;
  transition: opacity 0.25s, transform 0.35s var(--ease), bottom 0.9s var(--ease);
}

.bar:hover .bar__tip {
  opacity: 1;
  transform: translate(-50%, 0);
}

.bar__label {
  height: 26px;
  line-height: 26px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

/* =========================================================
   MARQUEE
   ========================================================= */
/* editorial band: serif names, § separators, gold hairlines, faded edges */
.marquee {
  position: relative;
  z-index: 4;
  padding: 34px 0;
  overflow: hidden;
  --hairline: linear-gradient(90deg, transparent, rgba(210, 173, 127, 0.45) 20%, rgba(210, 173, 127, 0.45) 80%, transparent);
  background:
    var(--hairline) left 12px / 100% 1px no-repeat,
    var(--hairline) left calc(100% - 12px) / 100% 1px no-repeat,
    linear-gradient(90deg, #0d0c0b 0%, #1b1612 50%, #0d0c0b 100%);
  color: var(--cream);
}

/* soft fades at both screen edges, fixed while the text scrolls under them */
.marquee::before,
.marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 1;
  width: 12%;
  pointer-events: none;
}

.marquee::before {
  left: 0;
  background: linear-gradient(90deg, #0d0c0b, rgba(13, 12, 11, 0));
}

.marquee::after {
  right: 0;
  background: linear-gradient(270deg, #0d0c0b, rgba(13, 12, 11, 0));
}

.marquee__track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.marquee__group {
  display: flex;
  flex: none;
  align-items: center;
  gap: 40px;
  padding-right: 40px;
}

.mq-item {
  font-family: var(--font-serif);
  font-size: clamp(36px, 4.6vw, 66px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.005em;
  white-space: nowrap;
}

.mq-item.is-italic {
  font-style: italic;
  color: var(--bronze-lt);
}

.mq-sep {
  flex: none;
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1;
  color: var(--accent);
  opacity: 0.85;
}

/* =========================================================
   SHARED SECTION BITS
   ========================================================= */
.section {
  position: relative;
  padding-block: clamp(80px, 11vw, 150px);
}

/* section label: serif italic number, spaced caps */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 26px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.eyebrow span {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-serif);
  font-size: 28px;
  font-style: italic;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
  color: var(--accent);
}

.eyebrow--light {
  color: rgba(242, 239, 233, 0.75);
}

.h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(34px, 4.6vw, 68px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.h2--xl {
  font-size: clamp(40px, 6vw, 92px);
}

.body-lg {
  max-width: 520px;
  margin: 24px 0 0;
  font-size: 18px;
  line-height: 1.65;
  color: var(--muted);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: clamp(40px, 6vw, 72px);
}

.section-head__text {
  max-width: 400px;
  margin: 0;
  font-size: 17px;
  color: var(--muted);
}

/* short serif line with a thin accent rule */
.section-head__note {
  margin: 0;
  padding-left: 22px;
  border-left: 1px solid var(--accent);
  font-family: var(--font-serif);
  font-size: clamp(24px, 2.2vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.section-head__note em {
  color: var(--muted);
}

/* ---------- reveal system ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease) var(--d, 0s), transform 1.2s var(--ease) var(--d, 0s);
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* revealed cards keep their own hover transitions */
.js .service[data-reveal],
.js .pillar[data-reveal] {
  transition: opacity 1s var(--ease) var(--d, 0s), transform 1.2s var(--ease) var(--d, 0s), color 0.5s var(--ease),
    background-color 0.4s, border-color 0.4s, box-shadow 0.5s var(--ease);
}

.js [data-reveal="clip"] {
  opacity: 1;
  transform: none;
  clip-path: inset(100% 0 0 0 round 24px);
  transition: clip-path 1.5s var(--ease) var(--d, 0s);
}

.js [data-reveal="clip"].is-in {
  clip-path: inset(0 0 0 0 round 24px);
}

/* card that pops in with a small overshoot and tilt */
.js [data-reveal="pop"] {
  opacity: 0;
  transform: translateY(50px) scale(0.8) rotate(-6deg);
  transition: opacity 0.7s var(--ease) var(--d, 0s), transform 1.1s cubic-bezier(0.34, 1.56, 0.64, 1) var(--d, 0s);
}

.js [data-reveal="pop"].is-in {
  opacity: 1;
  transform: none;
}

/* About photos: the image zooms out as its frame opens (uses `scale` so parallax transforms still apply) */
.js .about__img img {
  scale: 1.25;
  transition: scale 1.8s var(--ease) calc(var(--d, 0s) + 0.1s);
}

.js .about__img--main.is-in img,
.js .about__img [data-reveal].is-in img {
  scale: 1;
}

[data-split] .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}

[data-split] .w > span {
  display: inline-block;
}

.js [data-split] .w > span {
  transform: translateY(110%);
  transition: transform 1.1s var(--ease);
  transition-delay: calc(var(--wi) * 45ms);
}

.js [data-split].is-in .w > span {
  transform: none;
}

.reveal-all [data-reveal],
.reveal-all [data-split] .w > span,
.reveal-all .footer__giant span,
.reveal-all .about__img img {
  opacity: 1 !important;
  transform: none !important;
  scale: 1 !important;
  clip-path: none !important;
}

/* =========================================================
   ABOUT
   ========================================================= */
.about__statement {
  max-width: 1180px;
  margin: 0 0 clamp(60px, 9vw, 120px);
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 50px);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.js .about__statement .sw {
  opacity: 0.14;
  transition: opacity 0.45s;
}

.js .about__statement .sw.is-lit {
  opacity: 1;
}

.about__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 7vw, 110px);
  align-items: center;
}

.about__media {
  position: relative;
  padding: 0 14% 16% 0;
}

.about__img {
  overflow: hidden;
  border-radius: 24px;
}

.about__img--main {
  position: relative;
  aspect-ratio: 4 / 5;
  background: #cfcfcc;
}

.about__img--main img {
  position: absolute;
  left: 0;
  top: -9%;
  width: 100%;
  height: 118%;
  object-fit: cover;
}

.about__img--float {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 54%;
  overflow: visible;
}

.about__img--float > div {
  overflow: hidden;
  border-radius: 20px;
  border: 6px solid var(--bg);
  box-shadow: var(--shadow);
}

.about__img--float img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
}

.checklist {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}

.checklist li::before {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 44px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--line);
}

.stat {
  padding: 26px 26px 22px;
  background: var(--bg);
}

.stat__num {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(40px, 4vw, 56px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.stat__label {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--muted);
}

/* =========================================================
   SERVICES
   ========================================================= */
.services {
  overflow: hidden;
  background: var(--bg-hi);
}

.services__ghost {
  position: absolute;
  right: -4%;
  top: 4%;
  width: min(520px, 40vw);
  opacity: 0.07;
  filter: grayscale(1) contrast(1.2);
  pointer-events: none;
}

.services .container {
  position: relative;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 340px;
  padding: 28px;
  overflow: hidden;
  isolation: isolate;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.95);
  transition: color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.service::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--ink);
  clip-path: circle(0% at var(--cx, 90%) var(--cy, 10%));
  transition: clip-path 0.9s var(--ease);
}

.service:hover {
  color: var(--cream);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.45);
}

.service:hover::before {
  clip-path: circle(150% at var(--cx, 90%) var(--cy, 10%));
}

.service__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.service__num {
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--muted);
  transition: color 0.5s;
}

.service__icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: var(--bg);
  transition: background 0.5s, color 0.5s, transform 0.7s var(--ease);
}

.service__icon svg {
  width: 26px;
  height: 26px;
}

.service__title {
  margin: auto 0 10px;
  padding-top: 40px;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.service__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  transition: color 0.5s;
}

.service__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  font-size: 14px;
  font-weight: 500;
}

.service__link svg {
  width: 36px;
  height: 36px;
  padding: 9px;
  border-radius: 50%;
  border: 1px solid currentColor;
  transition: transform 0.55s var(--ease), background 0.3s, border-color 0.3s;
}

.service:hover .service__num,
.service:hover .service__text {
  color: rgba(242, 239, 233, 0.6);
}

.service:hover .service__icon {
  background: var(--accent);
  color: #fff;
  transform: rotate(-8deg) scale(1.06);
}

.service:hover .service__link svg {
  transform: rotate(45deg);
  background: var(--accent);
  border-color: var(--accent);
}

/* =========================================================
   JUSTICE (dark parallax band)
   ========================================================= */
.justice {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  padding: clamp(110px, 14vw, 200px) 0;
  overflow: hidden;
  color: var(--cream);
}

.justice__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  border-radius: 40px;
  background: radial-gradient(70% 60% at 72% 42%, #2b2017 0%, #141210 55%, #0b0a09 100%);
  transform: scale(var(--s, 1));
}

.justice__scene {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.justice__halo {
  position: absolute;
  right: 2%;
  top: 4%;
  width: min(72vw, 940px);
  aspect-ratio: 1;
}

.justice__halo::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 106, 33, 0.3) 0%, rgba(201, 140, 80, 0.12) 34%, rgba(201, 140, 80, 0) 64%);
  animation: glow 8s ease-in-out infinite;
}

/* gavel photo: edges fade into the dark band; scroll drives --js, the drift keeps it alive */
.justice__visual {
  position: absolute;
  right: -6%;
  top: 16%;
  width: min(64vw, 1000px);
}

.justice__visual img {
  width: 100%;
  transform: scale(var(--js, 1));
  transform-origin: 45% 50%;
  filter: sepia(0.25) saturate(1.1) brightness(0.95);
  -webkit-mask-image: radial-gradient(ellipse 58% 62% at 55% 50%, #000 35%, transparent 78%);
  mask-image: radial-gradient(ellipse 58% 62% at 55% 50%, #000 35%, transparent 78%);
  animation: gavel-drift 14s ease-in-out infinite;
  will-change: transform;
}

@keyframes gavel-drift {
  50% {
    rotate: -2deg;
    translate: 0 -12px;
  }
}

.justice__content {
  position: relative;
}

.justice__title {
  max-width: 780px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(40px, 5.6vw, 88px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.justice__title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--bronze-lt);
}

.justice__text {
  max-width: 500px;
  margin: 28px 0 0;
  font-size: 18px;
  color: rgba(242, 239, 233, 0.65);
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 740px;
  margin: 56px 0 48px;
}

.pillar {
  padding: 22px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.pillar:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(242, 106, 33, 0.45);
}

.pillar__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: rgba(242, 106, 33, 0.14);
  color: var(--accent);
  transition: transform 0.6s var(--ease);
}

.pillar:hover .pillar__icon {
  transform: rotate(-10deg) scale(1.08);
}

.pillar__icon svg {
  width: 22px;
  height: 22px;
}

.pillar h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
}

.pillar p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(242, 239, 233, 0.55);
}

/* =========================================================
   PROCESS
   ========================================================= */
.process__track {
  position: relative;
}

.process__line {
  position: absolute;
  top: 9px;
  left: 0;
  right: 0;
  height: 2px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--line);
}

.process__line span {
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(var(--pp, 0));
}

.process__steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  position: relative;
  padding-top: 52px;
}

.step__dot {
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid rgba(15, 15, 15, 0.18);
  transition: border-color 0.4s, transform 0.5s var(--ease);
}

.step__dot::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--accent);
  transform: scale(0);
  transition: transform 0.5s var(--ease);
}

.step__num {
  display: block;
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(15, 15, 15, 0.28);
  transition: color 0.6s, -webkit-text-stroke-color 0.6s;
}

.step h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.step p {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}

.step.is-active .step__dot {
  border-color: var(--accent);
  transform: scale(1.15);
}

.step.is-active .step__dot::after {
  transform: scale(1);
}

.step.is-active .step__num {
  color: var(--ink);
  -webkit-text-stroke-color: transparent;
}

/* =========================================================
   TEAM
   ========================================================= */
.team {
  background: var(--bg-hi);
}

/* expanding portrait panels — one advocate open at a time */
.team__panels {
  display: flex;
  gap: 14px;
  height: clamp(460px, 42vw, 620px);
}

.member {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  border-radius: 24px;
  background: #1a1918;
  cursor: pointer;
  outline-offset: 4px;
}

/* keep the reveal fade/rise but let the panel width animate too */
.js .member[data-reveal] {
  transition: opacity 1s var(--ease) var(--d, 0s), transform 1.2s var(--ease) var(--d, 0s), flex-grow 0.9s var(--ease);
}

.member.is-active {
  flex-grow: 3.2;
  cursor: default;
}

.member__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) brightness(0.75) contrast(1.05);
  transform: scale(1.12);
  transition: filter 0.9s var(--ease), transform 1.4s var(--ease);
}

.member.is-active .member__photo {
  filter: none;
  transform: scale(1);
}

.member::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 9, 8, 0.85) 0%, rgba(10, 9, 8, 0.25) 45%, rgba(10, 9, 8, 0) 70%);
  pointer-events: none;
}

.member__num {
  position: absolute;
  top: 22px;
  left: 24px;
  z-index: 1;
  font-family: var(--font-serif);
  font-size: 30px;
  font-style: italic;
  line-height: 1;
  color: var(--accent);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

/* collapsed: name runs vertically up the panel */
.member__tag {
  position: absolute;
  left: 22px;
  bottom: 26px;
  z-index: 1;
  margin: 0;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: var(--cream);
  transition: opacity 0.4s;
}

.member.is-active .member__tag {
  opacity: 0;
}

/* expanded: details slide up */
.member__info {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  z-index: 1;
  color: var(--cream);
  opacity: 0;
  transform: translateY(24px);
  pointer-events: none;
  transition: opacity 0.4s, transform 0.6s var(--ease);
}

.member.is-active .member__info {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  transition: opacity 0.6s 0.35s, transform 0.9s var(--ease) 0.35s;
}

.member__role {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bronze-lt);
}

.member__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 2.6vw, 40px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.member__bio {
  max-width: 380px;
  margin: 12px 0 18px;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(242, 239, 233, 0.75);
}

.member__social {
  display: flex;
  gap: 8px;
}

.member__social a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background 0.3s, border-color 0.3s;
}

.member__social a:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.member__social svg {
  width: 18px;
  height: 18px;
}

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.testimonials__card {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: clamp(30px, 6vw, 90px);
  padding: clamp(28px, 5vw, 64px);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.95);
}

.rating {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}

.rating__num {
  margin: 0;
  font-family: var(--font-display);
  font-size: 76px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
}

.stars {
  display: flex;
  gap: 3px;
  color: var(--accent);
}

.stars svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  stroke: none;
}

.rating__text {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.slider-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 48px;
}

.slider-btn {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(15, 15, 15, 0.15);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.slider-btn:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.slider-btn svg {
  width: 20px;
  height: 20px;
}

.slider-count {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.slider-count span:first-child {
  font-weight: 600;
  color: var(--ink);
}

.slider {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-width: 0;
  touch-action: pan-y;
}

.slider__quote {
  width: 46px;
  height: 34px;
  margin-bottom: 26px;
  fill: var(--accent);
}

.slide {
  grid-row: 2;
  grid-column: 1;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.9s var(--ease), visibility 0s 0.9s;
}

.slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.8s var(--ease) 0.2s, transform 1s var(--ease) 0.2s;
}

.slide blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 36px);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.slide figcaption {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
}

.slide figcaption img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}

.slide figcaption span {
  display: flex;
  flex-direction: column;
  font-size: 14px;
  color: var(--muted);
}

.slide figcaption strong {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.slider__progress {
  grid-row: 3;
  height: 2px;
  margin-top: 40px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--line);
}

.slider__progress span {
  display: block;
  height: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}

.slider__progress span.is-running {
  animation: progress 6.5s linear forwards;
}

.slider.is-paused .slider__progress span {
  animation-play-state: paused;
}

@keyframes progress {
  to {
    transform: scaleX(1);
  }
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact {
  overflow: hidden;
  padding-bottom: clamp(120px, 14vw, 190px);
  background: var(--bg-hi);
}

.contact__ghost {
  position: absolute;
  left: -3%;
  bottom: -4%;
  width: min(480px, 36vw);
  opacity: 0.06;
  filter: grayscale(1) contrast(1.2);
  pointer-events: none;
}

.contact__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(40px, 7vw, 110px);
  align-items: start;
}

.contact__list {
  display: grid;
  gap: 22px;
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
}

.contact__list li {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 17px;
  font-weight: 500;
}

.contact__list a {
  transition: color 0.3s;
}

.contact__list a:hover {
  color: var(--accent);
}

.contact__list small {
  display: block;
  margin-bottom: 2px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 54px;
  height: 54px;
  border-radius: 15px;
  background: #fff;
  color: var(--accent);
  box-shadow: 0 10px 24px -14px rgba(0, 0, 0, 0.25);
}

.contact__icon svg {
  width: 22px;
  height: 22px;
}

.form {
  display: grid;
  gap: 18px;
  padding: clamp(24px, 4vw, 44px);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid #fff;
  box-shadow: 0 40px 80px -40px rgba(40, 28, 15, 0.35);
}

.form__title {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.field {
  display: grid;
  gap: 8px;
}

.field > span {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  outline: none;
  background: var(--bg-hi);
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.field select {
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b6b68' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  cursor: pointer;
}

.field select:invalid {
  color: #9a9a97;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #9a9a97;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(242, 106, 33, 0.12);
}

.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
  border-color: #d33a2c;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--muted);
  cursor: pointer;
}

.check input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  border: 1.5px solid rgba(15, 15, 15, 0.25);
  border-radius: 6px;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.check input:checked {
  border-color: var(--accent);
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.check.is-invalid input {
  border-color: #d33a2c;
}

.form__status {
  min-height: 1.4em;
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.form__status.is-success {
  color: #1d7f46;
}

.form__status.is-error {
  color: #c4372a;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  position: relative;
  z-index: 1;
  margin-top: -44px;
  padding: clamp(70px, 9vw, 110px) 0 28px;
  overflow: hidden;
  border-radius: 44px 44px 0 0;
  background: var(--dark);
  color: rgba(242, 239, 233, 0.7);
}

.footer__top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
}

.brand--light .brand__name {
  color: var(--cream);
}

.brand--light .brand__name span {
  color: rgba(242, 239, 233, 0.5);
}

.brand--light .px--core {
  fill: var(--cream);
}

.footer__brand p {
  max-width: 320px;
  margin: 20px 0 28px;
  font-size: 15px;
}

.newsletter {
  display: flex;
  align-items: center;
  max-width: 360px;
  padding: 6px 6px 6px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: border-color 0.3s;
}

.newsletter:focus-within {
  border-color: rgba(242, 106, 33, 0.6);
}

.newsletter input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: none;
  font: inherit;
  font-size: 14px;
  color: var(--cream);
}

.newsletter input::placeholder {
  color: rgba(242, 239, 233, 0.45);
}

.newsletter button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  transition: transform 0.45s var(--ease);
}

.newsletter button:hover {
  transform: rotate(-45deg);
}

.newsletter button svg {
  width: 18px;
  height: 18px;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 15px;
}

.footer__col h4 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  color: var(--cream);
}

.footer__col a {
  width: fit-content;
  transition: color 0.3s, transform 0.4s var(--ease);
}

.footer__col a:hover {
  color: var(--cream);
  transform: translateX(4px);
}

.footer__col p {
  margin: 0;
}

.footer__giant {
  display: flex;
  justify-content: space-between;
  margin: clamp(50px, 8vw, 100px) 0 0;
  overflow: hidden;
  font-family: var(--font-display);
  font-size: clamp(90px, 24.5vw, 390px);
  font-weight: 600;
  line-height: 0.8;
  letter-spacing: -0.05em;
}

.footer__giant span {
  display: inline-block;
  padding-bottom: 0.04em;
  background: linear-gradient(180deg, var(--cream) 15%, rgba(242, 239, 233, 0.04) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.js .footer__giant span {
  transform: translateY(100%);
  transition: transform 1.3s var(--ease);
}

.js .footer__giant span:nth-child(2) { transition-delay: 0.07s; }
.js .footer__giant span:nth-child(3) { transition-delay: 0.14s; }
.js .footer__giant span:nth-child(4) { transition-delay: 0.21s; }
.js .footer__giant span:nth-child(5) { transition-delay: 0.28s; }

.js .footer__giant.is-in span {
  transform: none;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 20px;
  padding: 24px 72px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  color: rgba(242, 239, 233, 0.45);
}

.footer__bottom p {
  margin: 0;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.footer__legal a:hover {
  color: var(--cream);
}

/* ownership watermark — small, fixed bottom-left, never blocks clicks */
.watermark {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 70;
  margin: 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(15, 15, 15, 0.5);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  pointer-events: none;
  user-select: none;
}

.watermark strong {
  font-weight: 600;
  color: #fff;
}

/* back to top */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 12px 30px -12px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translateY(20px) scale(0.8);
  pointer-events: none;
  transition: opacity 0.4s, transform 0.5s var(--ease), background 0.3s;
}

.to-top.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.to-top:hover {
  background: var(--accent);
}

.to-top__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.to-top__ring circle {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-dasharray: 138.2;
  stroke-dashoffset: calc(138.2 * (1 - var(--p, 0)));
  transition: stroke 0.3s;
}

.to-top:hover .to-top__ring circle {
  stroke: #fff;
}

.to-top__arrow {
  width: 20px;
  height: 20px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1200px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 270px;
  }

  .statue {
    left: 40%;
    width: 43%;
  }

  .hero__lead {
    max-width: 360px;
  }

  .hero__clients {
    width: 220px;
  }

  .feature__media {
    width: 124px;
    height: 124px;
  }

  .feature__title {
    font-size: 20px;
  }
}

@media (max-width: 1080px) {
  .nav__links {
    display: none;
  }

  .burger {
    display: block;
  }

  .nav__inner {
    gap: 12px;
  }

  .brand {
    margin-right: auto;
  }

  .about__grid,
  .contact__grid {
    grid-template-columns: 1fr;
  }

  .about__media {
    max-width: 640px;
  }

  .services__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .member.is-active {
    flex-grow: 2.6;
  }

  .process__steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 56px;
  }

  .process__line {
    display: none;
  }

  .testimonials__card {
    grid-template-columns: 1fr;
  }

  .footer__top {
    grid-template-columns: 1fr 1fr;
  }

  .justice__visual {
    right: -14%;
    width: min(76vw, 820px);
    opacity: 0.85;
  }
}

@media (max-width: 900px) {
  :root {
    --nav-h: 76px;
  }

  .hero {
    --hero-h: auto;
    min-height: 0;
    padding: calc(var(--nav-h) + 28px) 0 40px;
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: none;
    grid-template-areas:
      "copy    copy"
      "stage   stage"
      "clients social"
      "stats   stats"
      "feature feature";
    gap: 28px 16px;
    min-height: 0;
  }

  .hero__stage {
    position: relative;
    grid-area: stage;
    left: auto;
    width: auto;
    height: clamp(420px, 118vw, 760px);
    margin: 4px calc(var(--gutter) * -1) -24px;
    transform: none;
  }

  /* fit the whole statue (both pans, with swing room) inside the screen */
  .statue {
    --sw: min(86vw, 600px);
    left: calc(50% - var(--sw) / 2 + 14px);
    top: 16px;
    width: var(--sw);
  }

  /* fade starts below the pans so both stay fully visible */
  .statue__reveal {
    -webkit-mask-image: linear-gradient(to bottom, #000 50%, transparent 72%);
    mask-image: linear-gradient(to bottom, #000 50%, transparent 72%);
  }

  .statue-glow {
    left: 5%;
    top: 0;
    width: 90%;
  }

  .hero__copy {
    z-index: 3;
    padding-top: 0;
  }

  .hero__title {
    font-size: clamp(34px, 9.6vw, 64px);
  }

  .hero__clients {
    justify-self: start;
    align-self: end;
    width: auto;
    padding-top: 0;
  }

  .hero__clients-num {
    font-size: 46px;
  }

  .hero__social {
    justify-self: end;
    align-self: end;
  }

  .hero__word {
    font-size: 40vw;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }

  .justice {
    min-height: 0;
  }

  .justice__visual {
    top: auto;
    bottom: 2%;
    right: -30%;
    width: 130vw;
    opacity: 0.45;
  }

  .pillars {
    grid-template-columns: 1fr;
    max-width: 480px;
  }
}

@media (max-width: 640px) {
  .nav__cta {
    display: none;
  }

  .hero__actions .btn {
    flex: 1 1 auto;
  }

  .hero__grid {
    grid-template-areas:
      "copy    copy"
      "stage   stage"
      "clients clients"
      "stats   stats"
      "feature feature"
      "social  social";
  }

  .hero__social {
    justify-self: start;
  }

  .feature__media {
    width: 112px;
    height: 112px;
  }

  .services__grid,
  .form__row {
    grid-template-columns: 1fr;
  }

  .service {
    min-height: 0;
  }

  /* phones: panels stack; the open one grows taller */
  .team__panels {
    flex-direction: column;
    gap: 10px;
    height: auto;
  }

  .member {
    flex: none;
    height: 88px;
    transition: height 0.8s var(--ease);
  }

  .js .member[data-reveal] {
    transition: opacity 1s var(--ease) var(--d, 0s), transform 1.2s var(--ease) var(--d, 0s), height 0.8s var(--ease);
  }

  .member.is-active {
    height: 460px;
  }

  .member__photo {
    object-position: 50% 25%;
  }

  .member__num {
    top: 50%;
    left: 20px;
    margin-top: -15px;
    transition: top 0.6s var(--ease), margin 0.6s var(--ease);
  }

  .member.is-active .member__num {
    top: 20px;
    margin-top: 0;
  }

  .member__tag {
    left: 64px;
    bottom: auto;
    top: 50%;
    margin-top: -12px;
    writing-mode: horizontal-tb;
    transform: none;
  }

  .member__info {
    left: 20px;
    right: 20px;
    bottom: 22px;
  }

  .about__media {
    padding: 0 10% 18% 0;
  }

  .stat {
    padding: 22px 18px 18px;
  }

  .process__steps {
    grid-template-columns: 1fr;
    row-gap: 40px;
    padding-left: 40px;
  }

  .process__line {
    display: block;
    top: 0;
    bottom: 0;
    left: 9px;
    right: auto;
    width: 2px;
    height: auto;
  }

  .process__line span {
    transform-origin: top;
    transform: scaleY(var(--pp, 0));
  }

  .step {
    padding-top: 0;
  }

  .step__dot {
    left: -40px;
  }

  .step__num {
    font-size: 48px;
    margin-bottom: 12px;
  }

  .rating__num {
    font-size: 60px;
  }

  .footer__top {
    grid-template-columns: 1fr;
  }

  .to-top {
    right: 16px;
    bottom: 16px;
    width: 48px;
    height: 48px;
  }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  .statue__shine {
    display: none;
  }
}
