@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap");

:root {
  --ink: #392047;
  --violet: #8e2de2;
  --lavender: #cdb1d5;
  --paper: #fbf8fc;
  --muted: #66576b;
  --line: #d9c9dd;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: #382b3e;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
}

body.menu-open {
  overflow: hidden;
}

button,
a {
  font-family: inherit;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

main {
  overflow: hidden;
}

/* Header */

.topbar {
  height: 70px;
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 0 max(16px, calc((100vw - 1180px) / 2));
  background: var(--white);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.13);
}

.brand {
  margin-left: 26px;
  color: #2b2130;
  font-size: 22px;
  font-weight: 600;
  text-decoration: none;
}

.brand b {
  color: #a643bf;
}

.menu {
  width: 32px;
  padding: 3px 0;
  display: none;
  gap: 5px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu i {
  width: 100%;
  height: 3px;
  display: block;
  background: #64116d;
  border-radius: 4px;
  transition:
    transform 200ms ease,
    opacity 200ms ease;
}

.topbar nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 25px;
}

.topbar nav a {
  position: relative;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.topbar nav a::after {
  content: "";
  width: 0;
  height: 2px;
  position: absolute;
  right: 0;
  bottom: -6px;
  background: var(--violet);
  transition: width 200ms ease;
}

.topbar nav a:hover::after {
  width: 100%;
  right: auto;
  left: 0;
}

/* Hero */

.hero {
  max-width: 1180px;
  min-height: 720px;
  margin: auto;
  padding: 70px 24px 80px;
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  align-items: center;
  gap: 70px;
}

.hero-copy {
  order: 1;
}

.hero-media {
  order: 2;
}

.eyebrow {
  color: #9c43b5;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 14px 0 24px;
  color: var(--ink);
  font-size: 44px;
  line-height: 1.12;
}

.lead {
  max-width: 560px;
  font-size: 16px;
}

.hero-media img {
  width: 100%;
  height: 390px;
  display: block;
  object-fit: cover;
  border-radius: 18px;
}

.stats {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.stats span {
  padding: 13px;
  background: #f1eef1;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

.actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  min-width: 230px;
  height: 56px;
  padding: 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 40px;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 200ms ease,
    background 200ms ease,
    color 200ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.primary {
  background: var(--ink);
  color: var(--white);
}

.primary:hover {
  background: #4b285b;
}

.secondary {
  border: 1px solid #18121b;
  color: #111111;
}

.secondary:hover {
  background: var(--ink);
  color: var(--white);
}

/* Section divider */

.flourish {
  max-width: 1180px;
  height: 36px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #c5a4cb;
}

.flourish::before,
.flourish::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

.flourish span {
  display: inline-block;
  font-size: 20px;
  transform: rotate(45deg);
}

/* Shared section styles */

.section {
  max-width: 1050px;
  margin: auto;
  padding: 65px 24px 85px;
}

.section-title {
  margin-bottom: 45px;
  color: var(--ink);
  text-align: center;
}

.section-title h2 {
  margin: 0 0 7px;
  font-size: 34px;
  line-height: 1.15;
}

.section-title p {
  margin: 0;
}

/* About */

.about blockquote {
  margin: 0 auto 28px;
  color: var(--ink);
  font-size: 22px;
  text-align: center;
}

.about blockquote small {
  margin-top: 5px;
  display: block;
  font-size: 15px;
}

.center-copy {
  max-width: 720px;
  margin: 0 auto 65px;
  text-align: center;
}

.firm-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 80px;
}

.firm-grid h3,
.career-grid h3,
.contact h3 {
  margin: 0 0 20px;
  color: #343034;
  font-size: 21px;
}

.firm-grid p {
  margin: 0 0 23px;
}

.founders {
  display: grid;
  gap: 48px;
}

.founders em {
  margin-top: -18px;
  margin-bottom: 25px;
  display: block;
}

/* Accordion */

.practice {
  max-width: 850px;
}

.practice-list {
  overflow: hidden;
  background: var(--ink);
  border-radius: 8px;
}

.practice-list details {
  background: #3c2049;
  color: #d9c4dd;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.practice-list details:nth-child(n + 2) {
  background: #462952;
}

.practice-list details:nth-child(n + 4) {
  background: #51365b;
}

.practice-list details:last-child {
  border-bottom: 0;
}

.practice-list summary {
  padding: 25px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  list-style: none;
  cursor: pointer;
  font-size: 16px;
  user-select: none;
}

.practice-list summary::-webkit-details-marker {
  display: none;
}

.practice-list summary::marker {
  display: none;
  content: "";
}

.practice-list summary:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: -4px;
}

.accordion-arrow {
  flex-shrink: 0;
  display: inline-block;
  font-size: 18px;
  transition: transform 250ms ease;
}

.practice-list details[open] .accordion-arrow {
  transform: rotate(180deg);
}

.accordion-content {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition:
    grid-template-rows 280ms ease,
    opacity 250ms ease;
}

.practice-list details[open] .accordion-content {
  grid-template-rows: 1fr;
  opacity: 1;
}

.accordion-content ul {
  min-height: 0;
  margin: 0;
  padding: 4px 60px 30px;
  overflow: hidden;
}

.accordion-content li {
  margin: 12px 0;
}

/* Team carousel */

.team {
  max-width: 1180px;
}

.team-carousel {
  width: 100%;
  position: relative;
}

.team-viewport {
  width: min(100%, 780px);
  margin: 0 auto;
  padding: 15px 0;
  overflow: hidden;
  touch-action: pan-y;
}

.team-viewport:focus-visible {
  border-radius: 10px;
  outline: 2px solid var(--violet);
  outline-offset: 5px;
}

.team-track {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 32px;

  transition: transform 450ms cubic-bezier(0.22, 1, 0.36, 1);
}

.team-card {
  width: 300px;
  flex: 0 0 300px;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
  border: 1px solid var(--lavender);
  border-radius: 10px;

  opacity: 0.4;
  pointer-events: none;

  transition:
    opacity 350ms ease,
    box-shadow 350ms ease,
    border-color 350ms ease;
}

.team-card.is-active {
  opacity: 1;
  pointer-events: auto;
  border-color: var(--violet);
  box-shadow: 0 14px 35px rgba(57, 32, 71, 0.17);
}

.portrait {
  height: 310px;
  position: relative;
  overflow: hidden;
  background: #e1e1e1;
}

.portrait img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.portrait-fallback {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  background: #dfdfdf;
  color: var(--ink);
  font-size: 46px;
  font-weight: 700;
}

.team-card.image-missing .portrait img {
  display: none;
}

.team-card.image-missing .portrait-fallback {
  display: grid;
}

.team-info {
  min-height: 90px;
  padding: 16px 18px 18px;
}

.team-info h3 {
  margin: 0;
  font-size: 16px;
}

.team-info p {
  margin: 5px 0;
  color: #c9b8cb;
  font-size: 11px;
}

.team-info strong {
  margin-top: 5px;
  display: block;
  font-size: 11px;
}

.team-dots {
  min-height: 15px;
  margin-top: 16px;
  display: flex;
  justify-content: center;
  gap: 7px;
}

.team-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--lavender);
  cursor: pointer;
  transition:
    width 200ms ease,
    background 200ms ease;
}

.team-dot.is-active {
  width: 20px;
  border-radius: 10px;
  background: var(--ink);
}

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

/* Careers */

.career-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.career-grid h3 {
  margin-top: 30px;
}

.career-grid ul {
  padding: 0;
  list-style: none;
}

.career-grid li::before {
  content: "· ";
}

.apply {
  width: 290px;
  margin: 45px auto 0;
  display: flex;
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 70px;
}

.phone-row {
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: start;
  gap: 10px;
}

.phone-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.phone-links a {
  display: block;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .phone-links a {
    font-size: 13px;
  }
}

.address h3 span,
.contact-details > p > span {
  margin-right: 10px;
  color: var(--violet);
  font-size: 25px;
}

.address strong {
  display: block;
  font-size: 16px;
}

.address p {
  color: #84778a;
}

.map-container {
  width: 100%;
  height: 260px;
  margin-top: 20px;
  overflow: hidden;
  border-radius: 8px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.map-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--violet);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.map-link:hover {
  text-decoration: underline;
}

.email-row {
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: start;
  gap: 10px;
}

.email-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.email-links a {
  display: block;

  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;

  white-space: nowrap;
}

@media (max-width: 760px) {
  .email-links a {
    font-size: 13px;
  }
}

.contact-details p {
  margin: 0 0 32px;
  display: grid;
  grid-template-columns: 32px 1fr;
  font-weight: 600;
}

.contact-details p a {
  display: block;
  color: #2811c1;
  overflow-wrap: anywhere;
}

.contact-details p small {
  grid-column: 2;
  margin-top: 16px;
  font-weight: 400;
  line-height: 2;
}

/* Footer */

footer {
  height: 78px;
  padding: 0 max(16px, calc((100vw - 1050px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--ink);
  color: var(--white);
  font-size: 12px;
}

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

.social a {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: var(--white);
  color: var(--ink);
  border-radius: 50%;
  font-weight: 700;
  text-decoration: none;
}

/* Tablet */

@media (max-width: 900px) {
  .topbar nav {
    gap: 15px;
  }

  .hero {
    gap: 35px;
  }

  .hero h1 {
    font-size: 37px;
  }

  .firm-grid {
    gap: 45px;
  }
}

/* Mobile */

@media (max-width: 760px) {
  body {
    font-size: 14px;
  }

  .topbar {
    height: 68px;
    padding: 0 16px;
  }

  .menu {
    display: grid;
    order: 2;
    margin-left: auto;
  }

  .menu.is-open i:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .menu.is-open i:nth-child(2) {
    opacity: 0;
  }

  .menu.is-open i:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .brand {
    margin-left: 0;
    font-size: 16px;
    order: 1;
  }

  .topbar nav {
    width: 100%;
    height: calc(100vh - 68px);
    padding: 35px 22px;
    position: fixed;
    top: 68px;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--white);
    visibility: hidden;
    opacity: 0;
    transform: translateX(-100%);
    transition:
      transform 250ms ease,
      opacity 250ms ease,
      visibility 250ms ease;
  }

  .topbar nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateX(0);
  }

  .topbar nav a {
    width: 100%;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
  }

  .hero {
    min-height: 0;
    padding: 54px 16px 100px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    text-align: center;
  }

  .hero-copy {
    display: contents;
  }

  .hero-media {
    display: contents;
  }

  .eyebrow {
    display: none;
  }

  .hero h1 {
    order: 1;
    margin: 0 0 8px;
    font-size: 25px;
  }

  .hero-media img {
    height: 248px;
    order: 2;
    border-radius: 15px;
  }

  .stats {
    width: 100%;
    margin: 0;
    order: 3;
    gap: 14px;
  }

  .stats span {
    padding: 12px 4px;
    font-size: 10px;
  }

  .lead {
    margin: 14px 0 0;
    order: 4;
    font-size: 13px;
  }

  .actions {
    width: 100%;
    margin-top: 15px;
    order: 5;
    display: grid;
    gap: 14px;
  }

  .button {
    width: 82%;
    min-width: 0;
    height: 56px;
    margin: auto;
  }

  .flourish {
    margin: 0 16px;
  }

  .section {
    padding: 45px 16px 80px;
  }

  .section-title {
    margin-bottom: 45px;
  }

  .section-title h2 {
    font-size: 27px;
  }

  .firm-grid,
  .career-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .center-copy {
    margin-bottom: 65px;
  }

  .about blockquote {
    font-size: 19px;
  }

  .firm-grid h3,
  .career-grid h3,
  .contact h3 {
    font-size: 20px;
  }

  /* Mobile accordion */

  .practice {
    padding-right: 16px;
    padding-left: 16px;
  }

  .practice-list {
    border-radius: 7px;
  }

  .practice-list summary {
    padding: 23px 16px;
    font-size: 13px;
  }

  .accordion-content ul {
    padding: 4px 38px 25px;
    font-size: 12px;
  }

  /* Mobile team carousel */

  .team {
    padding-right: 0;
    padding-left: 0;
  }

  .team .section-title {
    padding: 0 16px;
  }

  .team-viewport {
    width: 100%;
    padding: 10px 0;
  }

  .team-track {
    gap: 16px;
  }

  .team-card {
    width: 258px;
    flex-basis: 258px;
  }

  .portrait {
    height: 285px;
  }

  .team-info {
    min-height: 80px;
    padding: 12px 13px 14px;
  }

  .team-info h3 {
    font-size: 14px;
  }

  .team-info p {
    font-size: 10px;
  }

  .team-info strong {
    font-size: 10px;
  }
  .career-grid {
    gap: 10px;
  }

  .contact-grid {
    gap: 38px;
  }

  .map-container {
    height: 280px;
  }

  .contact-details p {
    font-size: 14px;
  }

  footer {
    height: 72px;
    padding: 0 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ========================================
   DISCLAIMER
======================================== */

body.disclaimer-open {
  overflow: hidden;
}

.disclaimer-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 24px;

  background: rgba(35, 22, 41, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  opacity: 1;
  visibility: visible;

  transition:
    opacity 250ms ease,
    visibility 250ms ease;
}

.disclaimer-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.disclaimer-modal {
  width: min(100%, 700px);
  max-height: 90vh;
  overflow-y: auto;

  padding: 42px 46px;

  background: #ffffff;
  border-radius: 14px;

  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.25);

  animation: disclaimerAppear 350ms ease;
}

@keyframes disclaimerAppear {
  from {
    opacity: 0;
    transform: translateY(15px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.disclaimer-brand {
  margin-bottom: 30px;

  color: #2b2130;
  font-size: 19px;
  font-weight: 600;
  text-align: center;
}

.disclaimer-brand strong {
  color: #a643bf;
}

.disclaimer-modal h2 {
  margin: 0 0 25px;

  color: var(--ink);
  font-size: 30px;
  text-align: center;
}

.disclaimer-content {
  color: #55495a;
  font-size: 13px;
  line-height: 1.75;
}

.disclaimer-content p {
  margin: 0 0 18px;
}

.disclaimer-content strong {
  color: var(--ink);
}

.disclaimer-actions {
  margin-top: 32px;
  display: flex;
  justify-content: center;
}

.disclaimer-button {
  min-width: 180px;
  height: 50px;

  padding: 0 25px;

  border-radius: 30px;

  font-family: inherit;
  font-size: 13px;
  font-weight: 700;

  cursor: pointer;

  transition:
    transform 200ms ease,
    background 200ms ease,
    color 200ms ease;
}

.disclaimer-button:hover {
  transform: translateY(-2px);
}

.disclaimer-accept {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #ffffff;
}

.disclaimer-accept:hover {
  background: #4b285b;
}

/* Mobile disclaimer */

@media (max-width: 600px) {
  .disclaimer-overlay {
    padding: 16px;
  }

  .disclaimer-modal {
    max-height: 88vh;
    padding: 30px 22px;
    border-radius: 12px;
  }

  .disclaimer-brand {
    margin-bottom: 22px;
    font-size: 16px;
  }

  .disclaimer-modal h2 {
    margin-bottom: 20px;
    font-size: 25px;
  }

  .disclaimer-content {
    font-size: 12px;
    line-height: 1.7;
  }

  .disclaimer-actions {
    flex-direction: column-reverse;
  }

  .disclaimer-button {
    width: 100%;
    min-width: 0;
  }
}
