:root {
  --header-progress: 0;
  --bg: #0c1f4a;
  --bg-soft: #15336f;
  --paper: rgba(13, 33, 75, 0.72);
  --paper-strong: rgba(16, 40, 92, 0.9);
  --ink: #eef4ff;
  --ink-soft: #c5d3ef;
  --line: rgba(214, 227, 255, 0.18);
  --accent: #153d86;
  --accent-deep: #0a234d;
  --accent-warm: #d4a63a;
  --shadow: 0 24px 60px rgba(10, 24, 54, 0.14);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --content-width: min(1180px, calc(100vw - 2rem));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: #08183a;
}

body {
  margin: 0;
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--ink);
  background: transparent;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at top left, rgba(212, 166, 58, 0.18), transparent 24%),
    radial-gradient(circle at top right, rgba(34, 91, 190, 0.18), transparent 22%),
    linear-gradient(180deg, #143576 0%, #10295c 24%, #0a1d46 58%, #08183a 100%);
}

img {
  display: block;
  width: 100%;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.page-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  margin: 0;
  padding: 0.28rem max(1rem, calc((100vw - 1180px) / 2));
  background: rgb(247 243 232 / var(--header-progress));
  border-bottom: 1px solid rgb(21 61 134 / calc(var(--header-progress) * 0.14));
  box-shadow: 0 12px 30px rgb(7 20 45 / calc(var(--header-progress) * 0.12));
  backdrop-filter: blur(calc(var(--header-progress) * 18px));
  transition:
    background-color 120ms linear,
    border-color 120ms linear,
    box-shadow 120ms linear,
    backdrop-filter 120ms linear;
}

.site-header::before {
  display: none;
}

.brand-home {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 6.2rem;
  height: 3.2rem;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-lockup {
  display: flex;
  flex-direction: column;
  padding-left: 0;
}

.brand-eyebrow,
.section-kicker,
.contact-label,
.firm-note-label {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-warm);
}

.brand-name {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1;
  color: color-mix(
    in srgb,
    #f7fbff calc((1 - var(--header-progress)) * 100%),
    var(--accent-deep) calc(var(--header-progress) * 100%)
  );
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding-right: 0;
}

.site-nav a {
  padding: 0.8rem 1rem;
  border-radius: 999px;
  color: color-mix(
    in srgb,
    rgba(244, 248, 255, 0.84) calc((1 - var(--header-progress)) * 100%),
    rgba(10, 35, 77, 0.78) calc(var(--header-progress) * 100%)
  );
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: color-mix(
    in srgb,
    #ffffff calc((1 - var(--header-progress)) * 100%),
    var(--accent-deep) calc(var(--header-progress) * 100%)
  );
  background: color-mix(
    in srgb,
    rgba(255, 255, 255, 0.1) calc((1 - var(--header-progress)) * 100%),
    rgba(21, 61, 134, 0.08) calc(var(--header-progress) * 100%)
  );
  transform: translateY(-1px);
}

.site-nav a.is-current {
  color: color-mix(
    in srgb,
    #ffffff calc((1 - var(--header-progress)) * 100%),
    var(--accent-deep) calc(var(--header-progress) * 100%)
  );
  background: color-mix(
    in srgb,
    rgba(255, 255, 255, 0.12) calc((1 - var(--header-progress)) * 100%),
    rgba(21, 61, 134, 0.1) calc(var(--header-progress) * 100%)
  );
}

.site-nav .nav-cta {
  color: var(--accent-deep);
  background: linear-gradient(135deg, #dfb861 0%, var(--accent-warm) 100%);
  box-shadow: 0 12px 25px rgba(212, 166, 58, 0.22);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  width: 3rem;
  height: 3rem;
  margin-right: 0.35rem;
  border: 0;
  border-radius: 999px;
  background: color-mix(
    in srgb,
    rgba(255, 255, 255, 0.1) calc((1 - var(--header-progress)) * 100%),
    rgba(21, 61, 134, 0.08) calc(var(--header-progress) * 100%)
  );
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 1.2rem;
  height: 2px;
  margin: 0 auto;
  background: color-mix(
    in srgb,
    #ffffff calc((1 - var(--header-progress)) * 100%),
    var(--accent-deep) calc(var(--header-progress) * 100%)
  );
}

main {
  display: block;
  flex: 1;
  padding-top: 4rem;
}

.section-pad,
.hero-section {
  width: var(--content-width);
  margin: 0 auto;
}

.hero-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: start;
  gap: 3rem;
  padding: 1.9rem 0 3rem;
}

.hero-copy {
  order: 2;
}

.page-hero {
  width: var(--content-width);
  margin: 0 auto;
  padding: 2.5rem 0 0.5rem;
}

.page-hero-copy {
  max-width: 46rem;
}

.page-hero h1 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(3rem, 6vw, 5.2rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.hero-copy h1,
.section-heading h2 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.03em;
}

.hero-copy h1 {
  max-width: 11ch;
  font-size: clamp(3.5rem, 7vw, 6.5rem);
}

.hero-text,
.section-intro,
.about-story p,
.service-card p,
.contact-card p,
.firm-note p {
  color: var(--ink-soft);
  line-height: 1.75;
}

.hero-text {
  max-width: 38rem;
  margin: 1.35rem 0 0;
  font-size: 1.06rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.4rem;
  padding: 0.9rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

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

.button-primary {
  color: var(--accent-deep);
  background: linear-gradient(135deg, #dfb861 0%, var(--accent-warm) 100%);
  box-shadow: 0 15px 28px rgba(212, 166, 58, 0.22);
}

.button-secondary {
  color: var(--ink);
  border-color: rgba(214, 227, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.4rem;
}

.hero-highlights article,
.service-card,
.contact-card,
.firm-note {
  padding: 1.35rem;
  border: 1px solid rgba(214, 227, 255, 0.14);
  border-radius: var(--radius-md);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.hero-highlights span {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.hero-highlights strong {
  font-size: 0.98rem;
  line-height: 1.45;
}

.hero-visual {
  order: 1;
  width: min(100%, 34rem);
  justify-self: start;
  display: grid;
  grid-template-rows: minmax(24.5rem, 1fr) minmax(13.25rem, 0.56fr);
  gap: 1rem;
  align-content: start;
}

.hero-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(214, 227, 255, 0.14);
  box-shadow: var(--shadow);
}

.hero-portrait-card {
  min-height: 24.5rem;
}

.hero-portrait-card img,
.hero-secondary-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-secondary-card {
  min-height: 13.25rem;
}

.hero-identity-card {
  position: absolute;
  right: 1rem;
  left: 1rem;
  bottom: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(214, 227, 255, 0.2);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(11, 30, 70, 0.95), rgba(20, 52, 116, 0.92));
  backdrop-filter: blur(12px);
}

.hero-identity-card p {
  margin: 0 0 1rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.55rem;
  line-height: 1.05;
}

.hero-identity-card span {
  color: #d8e4fa;
  font-weight: 600;
}

.hero-identity-card-secondary p {
  font-size: 1.4rem;
}

.section-pad {
  padding: 3rem 0 0;
}

.section-heading {
  max-width: 46rem;
}

.section-heading h2 {
  font-size: clamp(2.6rem, 4vw, 4.25rem);
}

.section-intro {
  margin-top: 1rem;
  max-width: 34rem;
}

.about-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 2rem;
  margin-top: 2rem;
}

.about-story {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

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

.about-values article {
  padding: 1.25rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(214, 227, 255, 0.14);
}

.about-values h3,
.service-card h3 {
  margin: 0 0 0.7rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.7rem;
}

.about-values p,
.service-card p,
.contact-card p,
.firm-note p {
  margin: 0;
}

.about-media {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.portrait-frame {
  margin: 0;
  padding: 1rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(214, 227, 255, 0.14);
  box-shadow: var(--shadow);
}

.portrait-frame img {
  height: 100%;
  border-radius: calc(var(--radius-lg) - 8px);
  object-fit: cover;
}

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

.attorney-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.attorney-preview-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.attorney-preview-card figure {
  margin: 0;
  aspect-ratio: 4 / 4.35;
  overflow: hidden;
  border-radius: calc(var(--radius-md) - 4px);
  border: 1px solid rgba(214, 227, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
}

.attorney-preview-card img {
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.attorney-preview-card h3,
.attorney-preview-card p {
  position: relative;
  z-index: 1;
}

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

.summary-card {
  position: relative;
  min-height: 15rem;
  padding: 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-md);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(17, 43, 96, 0.94), rgba(11, 28, 68, 0.9)),
    linear-gradient(135deg, rgba(212, 166, 58, 0.08), transparent 60%);
  box-shadow: var(--shadow);
}

.summary-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0.34;
  filter: saturate(0.9) brightness(0.9);
  transform: scale(1.06);
}

.summary-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 24, 58, 0.34), rgba(8, 24, 58, 0.7)),
    radial-gradient(circle at top right, rgba(212, 166, 58, 0.12), transparent 36%);
}

.summary-card > * {
  position: relative;
  z-index: 1;
}

.practice-civil::before {
  background-image: url("images/backgrounds/civil-litigation-photo-v2.webp");
  background-position: center 42%;
}

.practice-criminal::before {
  background-image: url("images/backgrounds/criminal-law-photo.webp");
  background-position: center 28%;
}

.practice-estate::before {
  background-image: url("images/backgrounds/estate-planning-photo.webp");
  background-position: center 36%;
}

.practice-ip::before {
  background-image: url("images/backgrounds/ip-protection-photo.webp");
  background-position: center 40%;
}

.practice-patent::before {
  background-image: url("images/backgrounds/patents-photo.webp");
  background-position: center 34%;
}

.practice-medical::before {
  background-image: url("images/backgrounds/medical-malpractice-photo.webp");
  background-position: center;
}

.summary-card h3 {
  margin: 0 0 0.7rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.7rem;
}

.summary-card p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.75;
}

.service-card {
  min-height: 15rem;
  background:
    linear-gradient(180deg, rgba(17, 43, 96, 0.94), rgba(11, 28, 68, 0.9)),
    linear-gradient(135deg, rgba(212, 166, 58, 0.08), transparent 60%);
}

.contact-section {
  padding-bottom: 4rem;
}

.cta-band {
  padding-bottom: 4rem;
}

.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(18, 45, 100, 0.96), rgba(10, 28, 68, 0.94)),
    linear-gradient(135deg, rgba(21, 61, 134, 0.06), transparent 60%);
  box-shadow: var(--shadow);
}

.cta-band-inner h2 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 0.98;
}

.contact-panel {
  display: grid;
  gap: 1.35rem;
}

.contact-list {
  display: grid;
  gap: 1rem;
}

.contact-item {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.95rem;
  padding-bottom: 0.95rem;
  border-bottom: 1px solid rgba(214, 227, 255, 0.14);
}

.contact-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.7rem;
  height: 2.7rem;
  margin-top: 0.15rem;
  border-radius: 999px;
  color: var(--accent-warm);
  background: rgba(212, 166, 58, 0.12);
}

.contact-icon svg {
  width: 1.35rem;
  height: 1.35rem;
  fill: currentColor;
}

.contact-item-copy {
  display: grid;
  gap: 0.2rem;
}

.contact-item-copy a {
  display: inline-block;
  font-weight: 700;
  font-size: 1.2rem;
}

.contact-item-copy p {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.7;
}

.contact-note {
  padding: 1rem 1.1rem;
  border: 1px solid rgba(214, 227, 255, 0.14);
  border-radius: var(--radius-md);
  background: rgba(212, 166, 58, 0.18);
}

.contact-note p {
  margin: 0.45rem 0 0;
}

.contact-form {
  display: grid;
  gap: 0.8rem;
  padding: 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: var(--radius-lg);
  background: rgba(11, 28, 68, 0.86);
  box-shadow: var(--shadow);
}

.contact-form label {
  font-weight: 700;
  color: var(--ink);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(214, 227, 255, 0.18);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.94);
  color: var(--accent-deep);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(21, 61, 134, 0.24);
  border-color: rgba(21, 61, 134, 0.4);
}

.contact-form textarea {
  resize: vertical;
}

.form-status {
  min-height: 1.5rem;
  margin: 0;
  color: var(--ink-soft);
}

.form-status[data-state="success"] {
  color: var(--accent-deep);
}

.form-status[data-state="error"] {
  color: #8a2d2d;
}

.site-footer {
  width: 100%;
  margin-top: auto;
  border-top: 1px solid rgba(214, 227, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(7, 20, 45, 0.98), rgba(4, 14, 33, 0.98)),
    linear-gradient(135deg, rgba(212, 166, 58, 0.08), transparent 60%);
  color: rgba(238, 245, 255, 0.82);
}

.site-footer a {
  color: #f7fbff;
  font-weight: 700;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 2rem;
  width: var(--content-width);
  margin: 0 auto;
  padding: 2.4rem 0 3rem;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-column h3 {
  margin: 0 0 0.3rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2rem;
  color: var(--accent-warm);
}

.footer-logo {
  width: min(16rem, 100%);
  padding: 0.65rem;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.footer-brand-column p,
.footer-contact-column p {
  margin: 0;
  line-height: 1.75;
}

.footer-nav-column a,
.footer-contact-column a {
  width: fit-content;
}

.footer-nav-column a:hover,
.footer-contact-column a:hover,
.footer-nav-column a:focus-visible,
.footer-contact-column a:focus-visible {
  color: var(--accent-warm);
}

@media (max-width: 1024px) {
  .hero-section,
  .about-grid,
  .contact-grid,
  .cta-band-inner {
    grid-template-columns: 1fr;
  }

  .hero-section {
    padding-top: 1.4rem;
  }

  .hero-copy {
    order: 1;
  }

  .hero-copy h1 {
    max-width: 13ch;
  }

  .hero-visual {
    order: 2;
    width: min(100%, 31rem);
    grid-template-rows: minmax(22rem, 1fr) minmax(12rem, 0.56fr);
  }

  .about-values,
  .attorney-preview-grid,
  .service-grid,
  .hero-highlights,
  .summary-grid,
  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta-band-inner {
    display: grid;
  }
}

@media (max-width: 760px) {
  .site-header {
    padding: 0.22rem 1rem;
  }

  .menu-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.65rem);
    right: 1rem;
    left: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.6rem;
    border: 1px solid rgba(212, 166, 58, 0.24);
    border-radius: 24px;
    background: rgba(244, 238, 226, 0.98);
    box-shadow: 0 14px 30px rgba(10, 24, 54, 0.18);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a,
  .site-nav .nav-cta {
    width: 100%;
    text-align: center;
  }

  .hero-section {
    gap: 2rem;
    padding-top: 1.2rem;
  }

  .hero-copy h1 {
    max-width: none;
    font-size: clamp(2.9rem, 14vw, 4.4rem);
  }

  .hero-visual {
    width: 100%;
    grid-template-rows: minmax(20rem, 1fr) minmax(10.5rem, 0.56fr);
  }

  .hero-portrait-card {
    min-height: 20rem;
  }

  .hero-secondary-card {
    min-height: 10.5rem;
  }

  .hero-identity-card {
    right: 0.75rem;
    left: 0.75rem;
    bottom: 0.75rem;
    padding: 0.8rem 0.9rem;
  }

  .hero-identity-card p {
    margin-bottom: 0.45rem;
    font-size: 1.18rem;
  }

  .hero-identity-card span {
    font-size: 0.92rem;
  }

  .about-values,
  .attorney-preview-grid,
  .service-grid,
  .hero-highlights,
  .summary-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .contact-form,
  .contact-card,
  .service-card,
  .hero-highlights article,
  .firm-note {
    padding: 1.15rem;
  }

  .brand-home {
    max-width: calc(100% - 4rem);
  }

  .brand-mark {
    width: 5.2rem;
    height: 2.7rem;
  }

  .brand-name {
    font-size: 1.55rem;
  }
}
