:root {
  --cream: #fafafc;
  --mist: #f8f9fa;
  --paper: #f3f1ec;
  --navy: #0f172a;
  --navy-soft: #1e293b;
  --gold: #c9a96a;
  --gold-deep: #a8874a;
  --line: rgba(15, 23, 42, 0.08);
  --muted: #64748b;
  --text: #0f172a;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
  --radius: 18px;
  --nav-h: 64px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: Manrope, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
}

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

button,
input,
textarea {
  font: inherit;
}

h1,
h2,
h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0 0 12px;
}

h1 {
  font-size: clamp(2.15rem, 8vw, 3.15rem);
}

h2 {
  font-size: clamp(1.7rem, 6.4vw, 2.25rem);
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(250, 250, 252, 0.38) 0%, rgba(248, 249, 250, 0.48) 42%, rgba(250, 250, 252, 0.72) 100%),
    url("../images/justice-sculpture-bg.png") 18% 8% / cover no-repeat;
}

h1,
h2 {
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.65), 0 10px 28px rgba(250, 250, 252, 0.55);
}

.hero-lead,
.section-lead {
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

.nav,
main,
.footer,
.modal {
  position: relative;
  z-index: 1;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: calc(var(--nav-h) + var(--safe-top));
  padding: calc(10px + var(--safe-top)) 16px 10px;
  background: rgba(250, 250, 252, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.brand-mark {
  flex: none;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  color: var(--navy);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-name {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 0.98rem;
  font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 380px) {
  .brand-name {
    display: none;
  }
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.icon-btn {
  min-height: 44px;
  min-width: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  touch-action: manipulation;
}

.btn-gold {
  background: linear-gradient(180deg, #d7bc84, var(--gold-deep));
  color: #fff;
}

.btn-navy {
  background: var(--navy);
  color: #fff;
}

.btn-spinner {
  display: none;
  width: 18px;
  height: 18px;
  margin-right: 10px;
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.btn.is-loading {
  pointer-events: none;
  opacity: 0.88;
}

.btn.is-loading .btn-spinner {
  display: inline-block;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.btn-lg {
  min-height: 54px;
  padding: 14px 22px;
  width: 100%;
}

.btn-full {
  width: 100%;
}

.nav-cta {
  min-height: 44px;
  padding: 8px 14px;
  font-size: 0.82rem;
  white-space: nowrap;
}

main {
  padding: 8px 16px 40px;
}

.hero,
.section,
.contact,
.footer {
  max-width: 560px;
  margin: 0 auto;
}

.hero {
  padding: 28px 0 12px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold-deep);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-lead,
.section-lead {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 0.98rem;
}

.hero-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 22px;
}

.pill {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 8px;
  text-align: center;
}

.pill strong {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem;
  color: var(--navy);
}

.pill span {
  display: block;
  margin-top: 4px;
  font-size: 0.68rem;
  color: var(--muted);
  line-height: 1.3;
}

.section {
  padding: 36px 0 8px;
}

.compare-head,
.compare-row {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 8px;
  align-items: start;
}

.compare-head {
  margin: 18px 0 8px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.compare-us {
  color: var(--gold-deep);
}

.compare-them {
  color: var(--muted);
}

.compare-row {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 10px;
  margin-bottom: 8px;
}

.compare-row .metric {
  font-size: 0.78rem;
  font-weight: 600;
}

.compare-row .win {
  color: var(--navy);
  font-weight: 700;
  font-size: 0.82rem;
}

.compare-row .lose {
  color: var(--muted);
  font-size: 0.78rem;
}

.cards,
.team {
  display: grid;
  gap: 12px;
}

.card,
.partner {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.card h3,
.partner h3 {
  font-size: 1.28rem;
  margin-bottom: 8px;
}

.card p,
.partner p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.partner-role {
  color: var(--gold-deep) !important;
  font-size: 0.78rem !important;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px !important;
}

.avatar {
  width: 52px;
  height: 52px;
  margin-bottom: 12px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: linear-gradient(160deg, #fff, var(--paper));
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.15rem;
  color: var(--navy);
}

.carousel-wrap {
  margin-top: 8px;
}

.carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 4px 2px 12px;
  scrollbar-width: none;
}

.carousel::-webkit-scrollbar {
  display: none;
}

.case-card {
  flex: 0 0 min(86vw, 460px);
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  min-height: 280px;
  box-shadow: var(--shadow);
}

.case-index {
  color: var(--gold-deep);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.case-card h3 {
  margin-top: 10px;
  font-size: 1.4rem;
}

.case-card p {
  margin: 0;
  color: var(--muted);
}

.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.tag {
  font-size: 0.72rem;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--mist);
  color: var(--navy-soft);
}

.carousel-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #d6d3cc;
  cursor: pointer;
}

.dots button.active {
  background: var(--navy);
  width: 18px;
  border-radius: 999px;
}

.form {
  display: grid;
  gap: 14px;
}

.form label {
  display: grid;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
}

.form input,
.form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--navy);
}

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

.form input:focus,
.form textarea:focus {
  outline: 2px solid rgba(201, 169, 106, 0.45);
  border-color: var(--gold);
}

.footer {
  padding: 24px 16px calc(28px + var(--safe-bottom));
  text-align: center;
  color: var(--muted);
}

.footer p {
  margin: 0 0 8px;
}

.fine {
  font-size: 0.75rem;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.28);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.85s ease, visibility 0.85s ease;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-card {
  width: min(100%, 420px);
  background: var(--cream);
  border-radius: 20px;
  padding: 24px 20px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(28px) scale(0.96);
  transition: opacity 0.95s ease, transform 0.95s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal.is-open .modal-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.modal-card h3 {
  font-size: 1.45rem;
  margin-bottom: 18px;
}

@media (min-width: 720px) {
  main {
    padding: 16px 24px 56px;
  }

  .hero,
  .section,
  .contact,
  .footer {
    max-width: 760px;
  }

  .btn-lg {
    width: auto;
  }

  .cards,
  .team {
    grid-template-columns: 1fr 1fr;
  }

  .case-card {
    flex-basis: 420px;
  }
}
