:root {
  --cream: #f5f1e6;
  --cream-deep: #ebe4d6;
  --ink: #3e2a1c;
  --ink-soft: #5a4333;
  --muted: #7a6656;
  --line: rgba(62, 42, 28, 0.14);
  --gold: #a68a64;
  --gold-bright: #c4a574;
  --brown: #2f1f15;
  --white: #fffdf8;
  --shadow: 0 24px 60px rgba(47, 31, 21, 0.12);
  --radius: 18px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Manrope", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--cream);
  padding: 10px 14px;
  z-index: 100;
}

.skip:focus {
  left: 12px;
  top: 12px;
}

.wrap {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 241, 230, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px rgba(47, 31, 21, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 78px;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.logo span {
  font-weight: 600;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}

.nav a:hover,
.nav a.is-active {
  color: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--brown);
  color: var(--cream);
}

.btn-primary:hover {
  background: var(--ink);
}

.btn-outline {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.btn-outline:hover {
  background: var(--ink);
  color: var(--cream);
}

.btn-lg {
  min-height: 54px;
  padding: 0 26px;
}

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  place-items: center;
  cursor: pointer;
}

.menu-btn span,
.menu-btn span::before,
.menu-btn span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
}

.menu-btn span::before,
.menu-btn span::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-btn span::before {
  top: -6px;
}

.menu-btn span::after {
  top: 6px;
}

/* Hero */
.hero {
  position: relative;
  padding: 48px 0 20px;
  overflow: hidden;
}

.hero-copy {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 28px;
}

.hero-kicker {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  font-weight: 700;
}

.hero-lead {
  margin: 18px auto 0;
  max-width: 42rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-actions {
  margin-top: 26px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-stage {
  position: relative;
  margin-top: 36px;
  min-height: clamp(420px, 62vh, 640px);
  display: grid;
  place-items: center;
}

.lawyer-watermark {
  position: absolute;
  inset: 18% 0 auto;
  text-align: center;
  font-family: var(--font-body);
  font-size: clamp(4.5rem, 18vw, 12rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: rgba(62, 42, 28, 0.06);
  line-height: 0.85;
  pointer-events: none;
  user-select: none;
  text-transform: uppercase;
  animation: watermark-drift 12s ease-in-out infinite alternate;
}

@keyframes watermark-drift {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-12px);
  }
}

.justice-wrap {
  position: relative;
  z-index: 2;
  width: min(420px, 70vw);
  filter: drop-shadow(0 30px 40px rgba(47, 31, 21, 0.2));
  animation: justice-rise 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.justice-wrap img {
  width: 100%;
  height: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
  mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
}

@keyframes justice-rise {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-aside {
  position: absolute;
  z-index: 3;
  max-width: 220px;
}

.hero-aside.left {
  left: 2%;
  top: 42%;
}

.hero-aside.right {
  right: 2%;
  top: 36%;
  display: grid;
  gap: 14px;
}

.aside-note {
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.45;
}

.aside-note strong {
  color: var(--ink);
  font-weight: 800;
}

.award {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 253, 248, 0.7);
  backdrop-filter: blur(8px);
}

.award-mark {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  color: var(--gold);
}

.award strong {
  display: block;
  font-size: 0.82rem;
  line-height: 1.25;
}

.award span {
  font-size: 0.72rem;
  color: var(--muted);
}

.scroll-chip {
  width: 92px;
  height: 92px;
  margin: 18px auto 0;
  border-radius: 50%;
  background: var(--brown);
  color: var(--cream);
  display: grid;
  place-items: center;
  position: relative;
  animation: scroll-bob 2.4s ease-in-out infinite;
}

.scroll-chip svg {
  width: 18px;
  height: 18px;
}

.scroll-ring {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  animation: spin 12s linear infinite;
}

.scroll-ring text {
  fill: var(--cream);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

@keyframes scroll-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Mission + stats */
.mission {
  padding: 72px 0 40px;
  text-align: center;
}

.mission p {
  margin: 0 auto;
  max-width: 48rem;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.2vw, 2.25rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-weight: 600;
}

.stats {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stats article {
  padding: 28px 18px;
  text-align: center;
}

.stats article + article {
  border-left: 1px solid var(--line);
}

.stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.stats span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

/* Sections */
.section {
  padding: 72px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 18ch;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.stories {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 22px;
  align-items: stretch;
}

.portrait-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.portrait {
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  aspect-ratio: 1.15 / 1;
  background: var(--cream-deep);
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  transition: transform 0.45s ease, filter 0.45s ease;
}

.portrait:hover img {
  transform: scale(1.04);
  filter: grayscale(0.2) contrast(1.05);
}

.quote-card {
  background: var(--brown);
  color: var(--cream);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 42px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
  box-shadow: var(--shadow);
}

.quote-mark {
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 0.7;
  color: var(--gold-bright);
}

.quote-card h3 {
  margin: 18px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  line-height: 1.2;
  font-weight: 600;
}

.quote-card p {
  margin: 16px 0 0;
  color: rgba(245, 241, 230, 0.78);
  font-size: 0.98rem;
}

.quote-meta {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.quote-meta strong {
  display: block;
  font-size: 0.98rem;
}

.quote-meta span {
  color: rgba(245, 241, 230, 0.65);
  font-size: 0.86rem;
}

.stars {
  display: flex;
  gap: 4px;
  color: var(--gold-bright);
}

/* Services grid */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.card .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(166, 138, 100, 0.14);
  color: var(--gold);
  margin-bottom: 16px;
}

.card h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: -0.01em;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.card .link {
  display: inline-flex;
  margin-top: 16px;
  font-weight: 700;
  color: var(--ink);
  gap: 6px;
}

/* Consult */
.consult {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: start;
}

.consult h2 {
  margin: 0 0 22px;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 16ch;
}

.form {
  display: grid;
  gap: 14px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 10px 2px;
  outline: none;
  transition: border-color 0.2s ease;
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-bottom-color: var(--ink);
}

.form-success {
  display: none;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(166, 138, 100, 0.14);
  border: 1px solid rgba(166, 138, 100, 0.35);
  color: var(--ink);
  font-weight: 600;
}

.form.is-sent .form-success {
  display: block;
  animation: success-pop 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.form.is-sent .form-fields {
  display: none;
}

@keyframes success-pop {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.consult-visual {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 520px;
  background: var(--cream-deep);
}

.consult-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 520px;
}

/* Page hero */
.page-hero {
  padding: 56px 0 28px;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 16ch;
}

.page-hero p {
  margin: 14px 0 0;
  max-width: 40rem;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
}

.split img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.split h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.15;
}

.split p {
  margin: 0;
  color: var(--muted);
}

.case-list {
  display: grid;
  gap: 16px;
}

.case-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: transform 0.25s ease;
}

.case-item:hover {
  transform: translateY(-4px);
}

.case-item img {
  width: 100%;
  height: 100%;
  min-height: 90px;
  object-fit: cover;
  border-radius: 10px;
}

.case-item h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.case-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.team-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.28s ease;
}

.team-card:hover {
  transform: translateY(-6px);
}

.team-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  filter: grayscale(0.35);
}

.team-card .body {
  padding: 18px 18px 22px;
}

.team-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.team-card .role {
  margin: 4px 0 0;
  color: var(--gold);
  font-size: 0.84rem;
  font-weight: 700;
}

.team-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Footer */
.site-footer {
  background: var(--brown);
  color: rgba(245, 241, 230, 0.82);
  padding: 64px 0 28px;
  position: relative;
  overflow: hidden;
}

.footer-watermark {
  position: absolute;
  left: 50%;
  bottom: -2%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: clamp(5rem, 18vw, 12rem);
  font-weight: 700;
  color: rgba(245, 241, 230, 0.05);
  white-space: nowrap;
  pointer-events: none;
  line-height: 0.8;
}

.footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
  gap: 28px;
}

.site-footer .logo {
  color: var(--cream);
}

.site-footer p {
  margin: 12px 0 0;
  max-width: 28ch;
  font-size: 0.92rem;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: var(--cream);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.site-footer a:hover {
  color: var(--cream);
}

.socials {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(245, 241, 230, 0.2);
  display: grid;
  place-items: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.socials a:hover {
  background: rgba(245, 241, 230, 0.1);
  transform: translateY(-2px);
}

.footer-bottom {
  position: relative;
  z-index: 1;
  margin-top: 48px;
  padding-top: 18px;
  border-top: 1px solid rgba(245, 241, 230, 0.12);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.84rem;
  color: rgba(245, 241, 230, 0.55);
}

/* Motion */
.reveal,
.reveal-left,
.reveal-right {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal-left {
  transform: translateX(-28px);
}

.reveal-right {
  transform: translateX(28px);
}

.reveal.is-in,
.reveal-left.is-in,
.reveal-right.is-in {
  opacity: 1;
  transform: none;
}

.hero-enter > * {
  opacity: 0;
  transform: translateY(22px);
  animation: hero-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-enter > *:nth-child(1) {
  animation-delay: 0.05s;
}
.hero-enter > *:nth-child(2) {
  animation-delay: 0.16s;
}
.hero-enter > *:nth-child(3) {
  animation-delay: 0.28s;
}
.hero-enter > *:nth-child(4) {
  animation-delay: 0.4s;
}

@keyframes hero-in {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .reveal-left,
  .reveal-right,
  .hero-enter > *,
  .justice-wrap,
  .lawyer-watermark,
  .scroll-chip,
  .scroll-ring {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }

  .btn:hover,
  .card:hover,
  .case-item:hover,
  .team-card:hover,
  .portrait:hover img {
    transform: none;
  }
}

@media (max-width: 980px) {
  .stats,
  .stories,
  .cards-3,
  .consult,
  .split,
  .team-grid,
  .footer-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .stats article + article {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .hero-aside {
    position: static;
    max-width: none;
    margin-top: 16px;
  }

  .hero-aside.right {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .hero-stage {
    min-height: auto;
    padding-bottom: 8px;
  }

  .portrait-stack {
    grid-template-columns: repeat(3, 1fr);
  }

  .section-head {
    flex-direction: column;
    align-items: start;
  }

  .case-item {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .menu-btn {
    display: grid;
  }

  .nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 18px;
    gap: 4px;
    display: none;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 12px 8px;
    border-radius: 10px;
  }

  .nav a:hover {
    background: var(--cream-deep);
  }

  .header-cta {
    display: none;
  }

  .hero-aside.right {
    grid-template-columns: 1fr;
  }

  .portrait-stack {
    grid-template-columns: 1fr;
  }
}
