.hero {
  --hero-bg-image: none;
  position: relative;
  overflow: hidden;
  min-height: 42rem;
  align-items: end;
  background-image:
    linear-gradient(90deg, rgba(255, 251, 244, 0.92) 0%, rgba(255, 251, 244, 0.72) 48%, rgba(255, 251, 244, 0.5) 100%),
    var(--hero-bg-image);
  background-size: cover;
  background-position: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -8% -24% auto;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(183, 140, 63, 0.16), transparent 66%);
  pointer-events: none;
}

.hero-copy {
  padding-right: 2rem;
}

.hero-panel {
  align-self: stretch;
  padding: 1.6rem;
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(183, 140, 63, 0.12), rgba(255, 255, 255, 0.06)),
    rgba(255, 251, 244, 0.74);
  border: 1px solid rgba(183, 154, 101, 0.3);
}

.hero-panel .quiet-list li + li {
  margin-top: 0.7rem;
}

.feature-card h3,
.article-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.65rem;
}

.expertise-marquee {
  overflow: hidden;
}

#expertise-grid .empty-state {
  margin: 0;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(183, 154, 101, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  color: rgba(53, 42, 26, 0.72);
}

.marquee-row {
  display: block;
  position: relative;
  overflow: hidden;
  min-height: 4.5rem;
  padding: 0.15rem 0;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

.marquee-track {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.9rem;
  width: max-content;
  white-space: nowrap;
  animation: marqueeLeft 90s linear infinite;
  animation-play-state: paused;
  will-change: auto;
}

.marquee-track[style*="running"] {
  will-change: transform;
}

.marquee-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  gap: 1.1rem;
  min-width: 24rem;
  min-height: 10.5rem;
  padding: 1.1rem 1.6rem;
  border-radius: 16px;
  border: 1px solid rgba(183, 154, 101, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(244, 234, 212, 0.88)),
    rgba(255, 251, 244, 0.9);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.95rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(24, 18, 12, 0.06);
}

.marquee-chip-logo {
  width: 92px;
  height: 92px;
  padding: 14px;
  object-fit: contain;
  flex: 0 0 auto;
  border: 1px solid rgba(183, 140, 63, 0.25);
  border-radius: 50%;
  background: rgba(255, 253, 248, 0.72);
}

.about-section,
.representation-section,
.why-section,
.partner-section {
  position: relative;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.45fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.about-copy {
  max-width: 78ch;
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  line-height: 1.85;
}

.about-copy p {
  margin: 0;
}

.about-copy p + p {
  margin-top: 1.15rem;
}

.about-signature {
  display: grid;
  gap: 0.65rem;
  padding: 1.5rem;
  border-left: 3px solid var(--accent);
  background: rgba(255, 253, 248, 0.62);
}

.about-signature span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.about-signature strong {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 550;
}

.representation-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 5rem);
  color: #fffaf0;
  background: linear-gradient(140deg, #17120d, #382816);
  border-color: rgba(216, 179, 106, 0.28);
}

.representation-copy h2 {
  color: #fffaf0;
}

.representation-copy > p:last-child {
  margin: 1.1rem 0 0;
  color: rgba(255, 250, 240, 0.7);
  line-height: 1.75;
}

.representation-section .eyebrow {
  color: #d8b36a;
}

.forum-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.forum-card {
  min-height: 104px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid rgba(216, 179, 106, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
}

.forum-card span {
  color: #d8b36a;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

.forum-card strong {
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 500;
}

.trust-statement {
  margin: clamp(1.5rem, 4vw, 3rem) 0;
  padding: clamp(2.5rem, 7vw, 5.5rem) var(--page-gutter);
  text-align: center;
  border-top: 1px solid rgba(183, 140, 63, 0.32);
  border-bottom: 1px solid rgba(183, 140, 63, 0.32);
}

.trust-statement p {
  max-width: 1000px;
  margin: 0 auto;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

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

.why-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  min-height: 210px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  background-image:
    linear-gradient(180deg, rgba(13, 11, 8, 0.18) 10%, rgba(13, 11, 8, 0.88) 100%),
    var(--why-image);
  background-position: center;
  background-size: cover;
  box-shadow: 0 16px 34px rgba(24, 18, 12, 0.18);
}

.why-card::before {
  content: "";
  display: block;
  width: 42px;
  height: 2px;
  margin-bottom: 2rem;
  background: var(--accent);
}

.why-card h3 {
  position: relative;
  margin: 0 0 0.65rem;
  color: #fffdf8;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 550;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95), 0 1px 2px rgba(0, 0, 0, 0.9);
}

.why-card p {
  position: relative;
  margin: 0;
  color: rgba(255, 253, 248, 0.94);
  line-height: 1.65;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.98), 0 1px 2px rgba(0, 0, 0, 0.95);
}

.why-card:nth-child(1) { --why-image: url("../images/why/strategic-representation.jpg"); }
.why-card:nth-child(2) { --why-image: url("../images/why/practical-solutions.jpg"); }
.why-card:nth-child(3) { --why-image: url("../images/why/integrity-confidentiality.jpg"); }
.why-card:nth-child(4) { --why-image: url("../images/why/meticulous-preparation.jpg"); }
.why-card:nth-child(5) { --why-image: url("../images/why/clear-communication.jpg"); }
.why-card:nth-child(6) { --why-image: url("../images/why/comprehensive-service.jpg"); }

.partner-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  background:
    linear-gradient(rgba(255, 253, 248, 0.76), rgba(255, 253, 248, 0.9)),
    url("../images/supreme-court-background.jpg") center 46% / cover no-repeat;
  box-shadow: inset 0 0 70px rgba(255, 253, 248, 0.52);
}

.partner-section h2 {
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
}

.partner-section > p:last-child {
  max-width: 72ch;
  margin: 1rem auto 0;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.75;
}

.site-footer {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: 2.5rem var(--page-gutter) 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border-top: 1px solid rgba(183, 154, 101, 0.28);
}

.site-footer img {
  width: 94px;
  height: 94px;
  object-fit: contain;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  text-align: right;
}

.lead-section {
  margin-bottom: 3rem;
}

@media (max-width: 900px) {
  .about-layout,
  .representation-section {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .forum-grid,
  .why-grid {
    grid-template-columns: 1fr;
  }

  .why-card {
    min-height: auto;
  }

  .site-footer {
    flex-direction: column;
    text-align: center;
  }

  .site-footer p {
    text-align: center;
  }
}

@keyframes marqueeLeft {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes marqueeRight {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}
