/* Reset & Base Typography */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #1e293b;
  background-color: #ffffff;
  line-height: 1.6;
}

/* Urgent Custody / After Hours Banner */
.urgent-banner {
  background-color: #08152e;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.7rem 1rem;
  text-align: center;
  border-bottom: 2px solid #1e3a6d;
}

.banner-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Flashing Emergency Light Siren Beacon */
.siren-beacon {
  display: inline-block;
  font-size: 1.15rem;
  margin-right: 0.25rem;
  animation: sirenLightFlash 0.6s infinite alternate cubic-bezier(0.4, 0, 0.6, 1);
}

@keyframes sirenLightFlash {
  0% {
    opacity: 0.2;
    transform: scale(0.9);
    filter: drop-shadow(0 0 0px rgba(239, 68, 68, 0));
  }
  100% {
    opacity: 1;
    transform: scale(1.35) rotate(-5deg);
    filter: drop-shadow(0 0 12px rgba(239, 68, 68, 1)) drop-shadow(0 0 20px rgba(220, 38, 38, 0.8));
  }
}

.banner-phone {
  color: #60a5fa;
  text-decoration: underline;
  font-weight: 700;
  display: inline-block;
  animation: softPulse 2.5s infinite ease-in-out;
}

@keyframes softPulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.85; }
  100% { transform: scale(1); opacity: 1; }
}

/* Navbar Base */
.navbar {
  position: sticky;
  top: 0;
  background-color: #0f2347;
  color: #ffffff;
  padding: 0.85rem 2rem;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Centered Header Container */
.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.brand-center {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1002;
}

/* Single Transparent Logo with Smooth Opening Swoop Entrance */
.brand-logo {
  height: auto;
  max-height: 80px;
  width: 270px;
  max-width: 100%;
  object-fit: contain;
  background-color: transparent;
  padding: 0;
  border-radius: 0;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.intro-swoop-logo {
  animation: logoSwoopToHeader 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.brand-center:hover .brand-logo {
  transform: scale(1.05);
}

/* Split Desktop Navigation Links */
.nav-links {
  display: flex;
  list-style: none;
  gap: 1.1rem;
  align-items: center;
  flex: 1;
}

.nav-left {
  justify-content: flex-start;
}

.nav-right {
  justify-content: flex-end;
}

.nav-links a {
  text-decoration: none;
  color: #e2e8f0;
  font-size: 0.88rem;
  font-weight: 600;
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-links a:hover {
  color: #93c5fd;
}

.nav-ig-link {
  color: #e2e8f0 !important;
  transition: color 0.2s !important;
}

.nav-ig-link:hover {
  color: #93c5fd !important;
}

/* Dropdown Menu for "Our Team" */
.nav-dropdown {
  position: relative;
}

.dropdown-toggle {
  cursor: pointer;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #0f2347;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  list-style: none;
  padding: 0.5rem 0;
  min-width: 170px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  display: none;
  z-index: 1005;
}

.dropdown-menu li a {
  display: block;
  padding: 0.6rem 1.2rem;
  color: #e2e8f0;
  font-size: 0.88rem;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}

.dropdown-menu li a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.nav-dropdown:hover .dropdown-menu {
  display: block;
}

/* Make a Payment Nav Link Button */
.nav-pay-link {
  color: #93c5fd !important;
  border: 1px solid rgba(147, 197, 253, 0.4);
  padding: 0.4rem 0.85rem;
  border-radius: 4px;
  transition: all 0.2s ease !important;
}

.nav-pay-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff !important;
  border-color: #ffffff;
}

.nav-btn {
  background-color: #ffffff;
  color: #0f2347 !important;
  padding: 0.5rem 1.1rem;
  border-radius: 4px;
  font-weight: 700 !important;
  transition: all 0.2s !important;
}

.nav-btn:hover {
  background-color: #e2e8f0 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* Mobile Hamburger Elements */
.nav-toggle {
  display: none;
}

.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger-line {
  height: 3px;
  width: 100%;
  background-color: #ffffff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Hero Section Layout */
.hero {
  background: linear-gradient(-45deg, #0f2347, #17376e, #08152e, #1a3c78);
  background-size: 400% 400%;
  animation: gradientBG 12s ease infinite;
  color: #ffffff;
  padding: 5.5rem 1.5rem 6.5rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: visible;
}

@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-content {
  max-width: 840px;
  margin: 0 auto;
  position: relative;
}

/* Headline Swoops Up From Behind Logo Position */
.hero-swoop-title {
  font-size: 2.85rem;
  line-height: 1.25;
  margin-bottom: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  opacity: 0;
  position: relative;
  z-index: 1;
  animation: titleEmergeFromBehind 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.65s forwards;
}

/* Supporting Hero Elements Fade In */
.hero-intro-text,
.hero-actions,
.hero-socials,
.hero-contact-quick {
  opacity: 0;
  animation: fadeInContent 1s ease 1.2s forwards;
}

.hero-intro-text {
  font-size: 1.2rem;
  color: #e2e8f0;
  line-height: 1.7;
  margin-bottom: 2.25rem;
}

/* Keyframe Opening Sequence Animations */
@keyframes logoSwoopToHeader {
  0% {
    opacity: 0;
    transform: translateY(180px) scale(1.45);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  }
  35% {
    opacity: 1;
    transform: translateY(150px) scale(1.35);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    box-shadow: none;
  }
}

@keyframes titleEmergeFromBehind {
  0% {
    opacity: 0;
    transform: translateY(-30px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fadeInContent {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Hero & Footer Social Links with Official SVG Logos */
.hero-socials {
  margin-top: 1.75rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.9rem;
  color: #cbd5e1;
  flex-wrap: wrap;
}
.hero-social-label-mobile { display: none; }

.hero-social-link {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.4rem 0.9rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.hero-social-link:hover {
  background-color: #ffffff;
  color: #0f2347;
  transform: translateY(-2px);
}

.social-svg {
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: middle;
}

.hero-contact-quick {
  margin-top: 1.5rem;
  color: #93c5fd;
  font-size: 0.95rem;
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

.hero-contact-quick a {
  color: #ffffff;
  text-decoration: underline;
  font-weight: 600;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  font-weight: 700;
  border-radius: 4px;
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: #0f2347;
  color: #ffffff;
  border: 2px solid #0f2347;
}

.btn-primary:hover {
  background-color: #17376e;
  border-color: #17376e;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.hero .btn-primary {
  background-color: #ffffff;
  color: #0f2347;
  border: 2px solid #ffffff;
}

.hero .btn-primary:hover {
  background-color: #e2e8f0;
  border-color: #e2e8f0;
}

.btn-outline {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.btn-outline:hover {
  background-color: #ffffff;
  color: #0f2347;
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
}

/* Sections */
.section {
  padding: 5.5rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.bg-light {
  background-color: #f8fafc;
  max-width: 100%;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-tag {
  text-transform: uppercase;
  color: #17376e;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  display: block;
  margin-bottom: 0.5rem;
}

.section-header h2 {
  font-size: 2.2rem;
  color: #0f2347;
  margin-bottom: 0.5rem;
}

.section-header p {
  color: #64748b;
  font-size: 1.1rem;
}

/* Scroll Reveal Initial States */
.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Emergency "What To Do If Arrested" Section */
.arrested-section {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

.arrested-box {
  background-color: #0a172e;
  color: #ffffff;
  padding: 3rem;
  border-radius: 12px;
  border-left: 6px solid #60a5fa;
  box-shadow: 0 10px 30px rgba(10, 23, 46, 0.15);
}

.urgent-tag {
  text-transform: uppercase;
  color: #60a5fa;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  display: block;
  margin-bottom: 0.5rem;
}

.arrested-box h2 {
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
  color: #ffffff;
}

.arrested-intro {
  font-size: 1.1rem;
  color: #cbd5e1;
  margin-bottom: 2rem;
}

.rules-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.rule-card {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.75rem;
  border-radius: 8px;
  position: relative;
}

.rule-num {
  width: 32px;
  height: 32px;
  background-color: #60a5fa;
  color: #0a172e;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  margin-bottom: 1rem;
}

.rule-card h3 {
  font-size: 1.2rem;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.rule-card p {
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.6;
}

.quote-callout {
  background-color: #0f2347;
  color: #ffffff;
  padding: 0.9rem 1.1rem;
  border-left: 4px solid #60a5fa;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
  border-radius: 0 4px 4px 0;
}

.custody-note {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 1rem;
  color: #cbd5e1;
  text-align: center;
}

.custody-note a {
  color: #60a5fa;
  font-weight: 700;
  text-decoration: underline;
}

/* About Grid & Aligned/Justified Text */
.about-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 3.5rem;
  align-items: center;
}

.lawyer-photo-wrap {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.lawyer-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}

.photo-caption {
  padding: 1.25rem;
  text-align: center;
  background-color: #ffffff;
}

.photo-caption h3 {
  font-size: 1.25rem;
  color: #0f2347;
  margin-bottom: 0.25rem;
}

.photo-caption p {
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 500;
}

.about-text h2 {
  font-size: 2.2rem;
  color: #0f2347;
  margin-bottom: 1.25rem;
  line-height: 1.3;
}

.about-text p {
  font-size: 1.05rem;
  color: #334155;
  margin-bottom: 1.25rem;
  line-height: 1.75;
  text-align: justify;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e2e8f0;
}

.stat-box {
  background: #f8fafc;
  padding: 1.25rem;
  border-radius: 6px;
  border-left: 4px solid #0f2347;
}

.stat-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: #0f2347;
  display: block;
}

.stat-lbl {
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 500;
}

/* Practice Cards & Charge Bullet Lists */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.card {
  background-color: #ffffff;
  padding: 2.25rem;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease, border-color 0.2s;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: #0f2347;
  box-shadow: 0 15px 30px rgba(15, 35, 71, 0.12);
}

.card-icon {
  width: 44px;
  height: 44px;
  color: #0f2347;
  margin-bottom: 1rem;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.3s ease;
}

.card:hover .card-icon {
  transform: scale(1.15) rotate(-4deg);
  color: #60a5fa;
}

.svg-icon {
  width: 100%;
  height: 100%;
  display: block;
}

.card h3 {
  font-size: 1.3rem;
  color: #0f2347;
  margin-bottom: 0.5rem;
}

.card-summary {
  color: #64748b;
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.practice-item-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  border-top: 1px solid #f1f5f9;
  padding-top: 1rem;
}

.practice-item-list li {
  font-size: 0.92rem;
  color: #334155;
  font-weight: 500;
  position: relative;
  padding-left: 1.25rem;
  line-height: 1.4;
}

.practice-item-list li::before {
  content: "•";
  color: #17376e;
  font-weight: bold;
  font-size: 1.2rem;
  position: absolute;
  left: 0;
  top: -2px;
}

/* Unlisted Charges Callout Box */
.unlisted-charges-callout {
  margin-top: 2.5rem;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-left: 4px solid #0f2347;
  padding: 1.25rem 1.75rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.unlisted-charges-callout p {
  font-size: 1.05rem;
  color: #334155;
  margin: 0;
}

.callout-phone {
  color: #0f2347;
  font-weight: 700;
  text-decoration: underline;
  margin-left: 0.35rem;
}

.callout-phone:hover {
  color: #17376e;
}

/* Realistic 3D Book Page-Flip Styles */
.case-flipbook {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1600px;
}

.flipbook-track {
  width: 100%;
  min-height: 290px;
  position: relative;
  transform-style: preserve-3d;
}

.flip-card {
  display: none;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px 12px 12px 4px;
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border-left: 6px solid #0f2347;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  backface-visibility: hidden;
  transform-origin: left center;
  transform-style: preserve-3d;
}

.flip-card.active {
  display: block;
  z-index: 2;
  transform: rotateY(0deg);
}

.flip-card.page-flip-out-next {
  display: block;
  z-index: 5;
  animation: bookPageTurnLeft 0.85s cubic-bezier(0.645, 0.045, 0.355, 1) forwards;
}

.flip-card.page-flip-in-next {
  display: block;
  z-index: 4;
  animation: bookPageRevealRight 0.85s cubic-bezier(0.645, 0.045, 0.355, 1) forwards;
}

.flip-card.page-flip-out-prev {
  display: block;
  z-index: 5;
  animation: bookPageTurnRight 0.85s cubic-bezier(0.645, 0.045, 0.355, 1) forwards;
}

.flip-card.page-flip-in-prev {
  display: block;
  z-index: 4;
  animation: bookPageRevealLeft 0.85s cubic-bezier(0.645, 0.045, 0.355, 1) forwards;
}

@keyframes bookPageTurnLeft {
  0% {
    transform: rotateY(0deg) rotateX(0deg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  }
  30% {
    transform: rotateY(-45deg) rotateZ(-1.5deg) scale(0.98);
    box-shadow: -15px 20px 35px rgba(15, 35, 71, 0.25);
  }
  100% {
    transform: rotateY(-180deg) rotateZ(0deg) scale(0.95);
    opacity: 0;
    box-shadow: -30px 10px 40px rgba(0, 0, 0, 0);
  }
}

@keyframes bookPageRevealRight {
  0% {
    opacity: 0;
    transform: rotateY(90deg) scale(0.96);
  }
  50% {
    opacity: 0.8;
  }
  100% {
    opacity: 1;
    transform: rotateY(0deg) scale(1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  }
}

@keyframes bookPageTurnRight {
  0% {
    transform: rotateY(0deg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  }
  30% {
    transform: rotateY(45deg) rotateZ(1.5deg) scale(0.98);
    box-shadow: 15px 20px 35px rgba(15, 35, 71, 0.25);
  }
  100% {
    transform: rotateY(180deg) scale(0.95);
    opacity: 0;
    box-shadow: 30px 10px 40px rgba(0, 0, 0, 0);
  }
}

@keyframes bookPageRevealLeft {
  0% {
    opacity: 0;
    transform: rotateY(-90deg) scale(0.96);
  }
  50% {
    opacity: 0.8;
  }
  100% {
    opacity: 1;
    transform: rotateY(0deg) scale(1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  }
}

.case-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.case-tag {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
  letter-spacing: 0.5px;
}

.case-badge-success {
  background-color: #dcfce7;
  color: #15803d;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  letter-spacing: 0.5px;
}

.flip-card h3 {
  font-size: 1.35rem;
  color: #0f2347;
  margin-bottom: 1rem;
}

.case-desc {
  font-size: 1.02rem;
  color: #475569;
  line-height: 1.7;
}

/* Flipbook Navigation Buttons */
.flip-btn {
  background-color: #0f2347;
  color: #ffffff;
  border: none;
  padding: 0.75rem 1.1rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  box-shadow: 0 4px 12px rgba(15, 35, 71, 0.2);
}

.flip-btn:hover {
  background-color: #17376e;
  transform: translateY(-50%) scale(1.08);
}

.prev-btn {
  left: -55px;
}

.next-btn {
  right: -55px;
}

/* Flipbook Dots Indicator */
.flipbook-dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.75rem;
}

.dot {
  width: 12px;
  height: 12px;
  background-color: #cbd5e1;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background-color: #0f2347;
  width: 28px;
  border-radius: 12px;
}

/* Social Media Follow Promo Box */
.social-promo-box {
  margin-top: 3.5rem;
  background-color: #0f2347;
  color: #ffffff;
  padding: 2.25rem;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.social-promo-content h3 {
  font-size: 1.4rem;
  margin-bottom: 0.35rem;
  color: #ffffff;
}

.social-promo-content p {
  color: #cbd5e1;
  font-size: 0.95rem;
  margin: 0;
}

.social-promo-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-social {
  padding: 0.7rem 1.25rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-ig {
  background-color: #e1306c;
  color: #ffffff;
}

.btn-ig:hover {
  background-color: #c1285d;
  transform: translateY(-2px);
}

.btn-fb {
  background-color: #1877f2;
  color: #ffffff;
}

.btn-fb:hover {
  background-color: #1464cc;
  transform: translateY(-2px);
}

/* Fees Section */
.fees-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 980px;
  margin: 0 auto;
}

.fee-card {
  background: #ffffff;
  padding: 2.5rem;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fee-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(15, 35, 71, 0.08);
}

.fee-card h3 {
  font-size: 1.4rem;
  color: #0f2347;
  margin-bottom: 1rem;
}

.fee-card p {
  color: #475569;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.fee-note {
  font-size: 0.9rem !important;
  color: #64748b !important;
  font-style: italic;
}

.highlight-card {
  border-top: 4px solid #0f2347;
}

/* Team Section & Team Bio Links */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.team-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease;
}

.team-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 15px 30px rgba(15, 35, 71, 0.12);
}

.highlight-team-card {
  border-top: 4px solid #17376e;
}

.team-photo-frame {
  height: 300px;
  background-color: #f1f5f9;
  overflow: hidden;
}

.team-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bio-profile-page .profile-img-nick { object-position: 50% 27%; }
.bio-profile-page .profile-img-janae { object-position: 50% 29%; }
.bio-profile-page .profile-img-cassandra { object-position: 50% 27%; }

.home-page #about .about-team-img {
  height: auto;
  aspect-ratio: 1855 / 2400;
  object-fit: contain;
  object-position: center;
}

.team-photo-link {
  display: block;
  text-decoration: none;
}

.team-name-link {
  color: #0f2347;
  text-decoration: none;
  transition: color 0.2s;
}

.team-name-link:hover {
  color: #17376e;
}

.read-bio-btn {
  display: inline-block;
  color: #17376e;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  margin-bottom: 0.75rem;
}

.read-bio-btn:hover {
  text-decoration: underline;
}

.team-info {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.team-info h3 {
  font-size: 1.35rem;
  color: #0f2347;
  margin-bottom: 0.25rem;
}

.team-role {
  color: #17376e;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  display: block;
}

.legal-aid-badge {
  display: inline-block;
  align-self: flex-start;
  background-color: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 50px;
  margin-bottom: 0.85rem;
}

.team-info p {
  color: #475569;
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.team-email {
  color: #0f2347;
  text-decoration: underline;
  font-weight: 600;
  font-size: 0.85rem;
  word-break: break-all;
}

/* Individual Bio Page Styles */
.bio-hero {
  padding: 4rem 1.5rem 3rem 1.5rem;
  text-align: center;
}

.back-link {
  color: #93c5fd;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-block;
  margin-bottom: 1rem;
}

.back-link:hover {
  text-decoration: underline;
  color: #ffffff;
}

.bio-subtitle {
  color: #93c5fd;
  font-size: 1.2rem;
  font-weight: 600;
}

.bio-detail-section {
  padding: 4rem 1.5rem;
}

.bio-detail-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 3.5rem;
  align-items: start;
}

.bio-sidebar {
  position: sticky;
  top: 100px;
}

.bio-quick-contact {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.bio-quick-contact h3 {
  font-size: 1.15rem;
  color: #0f2347;
  margin-bottom: 0.75rem;
}

.bio-quick-contact p {
  font-size: 0.92rem;
  color: #334155;
  margin-bottom: 0.5rem;
}

.bio-quick-contact a {
  color: #0f2347;
  font-weight: 600;
}

.bio-body-text h2 {
  font-size: 2rem;
  color: #0f2347;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.bio-body-text p {
  font-size: 1.05rem;
  color: #334155;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  text-align: justify;
}

/* Testimonials Horizontal Carousel */
.testimonials-slider-wrapper {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.testimonials-slider {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 1rem 0.5rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.testimonials-slider::-webkit-scrollbar {
  display: none;
}

.slide-card {
  min-width: 320px;
  max-width: 340px;
  flex-shrink: 0;
  background: #ffffff;
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stars {
  color: #d97706;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.quote {
  font-size: 0.98rem;
  color: #334155;
  line-height: 1.65;
  font-style: italic;
  margin-bottom: 1.25rem;
}

.author {
  font-weight: 700;
  color: #0f2347;
  font-size: 0.95rem;
}

.review-scroll-btn {
  background-color: #0f2347;
  color: #ffffff;
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 10;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  box-shadow: 0 4px 12px rgba(15, 35, 71, 0.25);
  transition: all 0.2s ease;
}

.review-scroll-btn:hover {
  background-color: #17376e;
  transform: translateY(-50%) scale(1.1);
}

.review-prev {
  left: -20px;
}

.review-next {
  right: -20px;
}

/* Contact Section Layout */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1050px;
  margin: 0 auto;
}

.contact-details h3 {
  font-size: 1.5rem;
  color: #0f2347;
  margin-bottom: 1.25rem;
}

.contact-item {
  margin-bottom: 0.85rem;
  font-size: 1rem;
}

.contact-item a {
  color: #0f2347;
  text-decoration: underline;
  font-weight: 600;
}

.contact-item a:hover {
  color: #17376e;
}

.address-card {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background-color: #ffffff;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

.address-card h4 {
  font-size: 1.1rem;
  color: #0f2347;
  margin-bottom: 0.5rem;
}

.hours {
  margin-top: 0.5rem;
  color: #64748b;
  font-size: 0.9rem;
}

.map-container {
  margin-top: 1.5rem;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #cbd5e1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.map-container iframe {
  display: block;
}

/* Contact Form */
.contact-form {
  background-color: #ffffff;
  padding: 2.25rem;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group label {
  font-weight: 600;
  font-size: 0.9rem;
  color: #1e293b;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.95rem;
  background-color: #ffffff;
  color: #1e293b;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #0f2347;
  box-shadow: 0 0 0 3px rgba(15, 35, 71, 0.1);
}

.contact-turnstile {
  display: flex;
  min-height: 65px;
  align-items: center;
}

.contact-turnstile[hidden] {
  display: none;
}

.contact-form-status {
  margin: 0;
  padding: .75rem .9rem;
  border-left: 3px solid #1e5b46;
  background: #f2f8f5;
  color: #244b3c;
  font-size: .9rem;
  line-height: 1.5;
}

.contact-form-status.is-error {
  border-left-color: #9d3c32;
  background: #fff5f3;
  color: #742b25;
}

.contact-form .btn:disabled {
  cursor: not-allowed;
  opacity: .68;
}

/* Footer */
.footer {
  background-color: #08152e;
  color: #cbd5e1;
  padding: 3rem 1.5rem;
  font-size: 0.85rem;
  text-align: center;
}

.footer-inner {
  max-width: 800px;
  margin: 0 auto;
}

.footer-socials {
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.footer-socials a {
  color: #60a5fa;
  text-decoration: underline;
  font-weight: 600;
}

.footer-socials a:hover {
  color: #ffffff;
}

.disclaimer {
  margin-top: 1rem;
  color: #94a3b8;
  line-height: 1.5;
}

.legal-advice-disclaimer {
  border-top: 1px solid rgba(148, 163, 184, .22);
  padding-top: .85rem;
  font-size: .9rem;
}

.legal-advice-disclaimer h2 {
  margin: 0 0 .4rem;
  color: #cbd5e1;
  font-size: .95rem;
  font-weight: 600;
}

.legal-advice-disclaimer p {
  margin: .35rem 0 0;
}

/* Mobile Responsiveness & Mobile Controls */
@media (max-width: 1024px) {
  .hamburger-btn {
    display: flex;
  }

  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .nav-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .brand-center {
    order: -1;
    padding: 0;
  }

  .brand-logo {
    width: 200px;
    max-height: 65px;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #0f2347;
    border-bottom: 2px solid #1e3a6d;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    flex-direction: column;
    padding: 0 1.5rem;
    gap: 1.25rem;
    align-items: flex-start;
  }

  .nav-left, .nav-right {
    justify-content: flex-start;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    background-color: transparent;
    border: none;
    padding-left: 1rem;
  }

  .nav-dropdown:hover .dropdown-menu {
    display: block;
  }

  .nav-toggle:checked ~ .nav-container .nav-links {
    max-height: 700px;
    padding: 1.5rem;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    font-size: 1.05rem;
    width: 100%;
  }

  .nav-btn, .nav-pay-link {
    text-align: center;
  }

  .nav-toggle:checked ~ .hamburger-btn .hamburger-line:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
  }

  .nav-toggle:checked ~ .hamburger-btn .hamburger-line:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle:checked ~ .hamburger-btn .hamburger-line:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
  }

  .about-grid,
  .rules-grid,
  .fees-grid,
  .social-promo-box {
    grid-template-columns: 1fr;
    flex-direction: column;
    text-align: center;
  }

  .about-text p, .bio-body-text p {
    text-align: left;
  }

  .lawyer-photo-wrap {
    max-width: 340px;
    margin: 0 auto 1.5rem auto;
  }

  .prev-btn { left: -15px; }
  .next-btn { right: -15px; }
  .review-prev { left: -10px; }
  .review-next { right: -10px; }
  .slide-card { min-width: 280px; }

  .bio-detail-grid {
    grid-template-columns: 1fr;
  }
  .bio-sidebar {
    position: static;
    max-width: 340px;
    margin: 0 auto 2rem auto;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}
.practice-lead {
  font-size: 0.94rem;
  font-weight: 500;
  color: #334155;
  margin-bottom: 0.85rem;
  line-height: 1.5;
}

.practice-sublist {
  list-style: none;
  padding-left: 0;
  margin: 0;
  margin-top: auto;
  border-top: 1px solid rgba(15, 35, 71, 0.08);
  padding-top: 0.85rem;
}

.practice-sublist li {
  position: relative;
  padding-left: 1.15rem;
  font-size: 0.86rem;
  color: #64748b;
  line-height: 1.55;
  margin-bottom: 0.35rem;
}

.practice-sublist li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #c29b27; /* Matching gold bullet */
  font-size: 1.15rem;
  line-height: 1;
  top: 1px;
}
/* ==========================================================================
   Practice Areas Compact Grid Fix
   ========================================================================== */
#practice-areas {
  max-width: 1360px;
  margin: 0 auto;
  padding: 4.5rem 1.5rem;
}

#practice-areas .practice-areas-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: minmax(390px, auto);
  gap: 1.8rem;
  width: 100%;
}

#practice-areas .practice-card {
  background: #ffffff;
  border-radius: 6px;
  padding: 1.85rem 1.65rem;
  border: 1px solid rgba(15, 35, 71, 0.1);
  border-top: 2px solid rgba(198, 164, 90, .6);
  box-shadow: 0 6px 20px rgba(15, 35, 71, 0.055);
  display: flex;
  flex-direction: column;
  height: auto;
  box-sizing: border-box;
}

#practice-areas .practice-icon-wrapper {
  width: 52px;
  height: 52px;
  margin-bottom: 1.1rem;
  border-radius: 6px;
  background: rgba(198, 164, 90, .12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

#practice-areas .practice-svg {
  width: 27px;
  height: 27px;
  stroke: #a38343;
}

#practice-areas .practice-card h3 {
  margin: 0 0 .65rem;
  font-family: var(--home-serif);
  font-size: 1.22rem;
  font-weight: 700;
  color: #0f2347;
  line-height: 1.3;
}

#practice-areas .practice-lead {
  font-size: .96rem;
  font-weight: 500;
  color: #334155;
  line-height: 1.58;
  margin: 0 0 .95rem;
}

#practice-areas .practice-sublist {
  list-style: none;
  padding-left: 0;
  margin: 0;
  margin-top: auto;
  border-top: 1px solid rgba(15, 35, 71, 0.08);
  padding-top: .85rem;
}

#practice-areas .practice-sublist li {
  position: relative;
  padding-left: 1.15rem;
  font-size: .88rem;
  color: #475569;
  line-height: 1.55;
  margin-bottom: .35rem;
}

#practice-areas .practice-sublist li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #c29b27;
  font-size: 1.1rem;
  line-height: 1;
  top: 1px;
}

#practice-areas .practice-card:hover {
  transform: translateY(-3px);
  border-color: rgba(198, 164, 90, .78);
  box-shadow: 0 14px 30px rgba(11, 27, 51, .1);
}

/* Tablet: 2 columns */
@media (max-width: 992px) {
  #practice-areas .practice-areas-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: minmax(365px, auto);
    gap: 1.5rem;
  }
  #practice-areas .practice-card { padding: 1.65rem 1.45rem; }
}

/* Mobile: Single column with neat card proportions */
@media (max-width: 640px) {
  #practice-areas .practice-areas-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 1.25rem;
  }
  #practice-areas .practice-card { min-height: 0; padding: 1.5rem; }
  #practice-areas .practice-icon-wrapper { width: 50px; height: 50px; margin-bottom: .9rem; }
  #practice-areas .practice-card h3 { font-size: 1.18rem; }
  #practice-areas .practice-lead { font-size: .94rem; }
  #practice-areas .practice-sublist li { font-size: .88rem; }
}

/* Mobile & Tablet Adjustments */
@media (max-width: 768px) {
  .case-real-book {
    height: 440px;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.35);
  }
  .leaf-paper-face {
    padding: 1.75rem 1.15rem;
  }
  .leaf-paper-face h3 {
    font-size: 1.05rem;
  }
  .case-desc {
    font-size: 0.82rem;
    line-height: 1.48;
  }
}


/* Mobile & Tablet Responsiveness */
@media (max-width: 768px) {
  .open-law-book {
    height: auto;
    min-height: 480px;
    flex-direction: column;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.35);
  }
  .page-parchment {
    padding: 2rem 1.25rem;
  }
}
/* ==========================================================================
   Hyper-Realistic 3D Law Book Component & Turning Physics
   ========================================================================== */
#cases {
  position: relative;
  z-index: 5;
  clear: both;
  width: 100%;
}

.book-stage {
  max-width: 980px;
  margin: 1.5rem auto 2.5rem;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  perspective: 2600px; /* High-depth 3D room */
}

.open-law-book {
  position: relative;
  width: 860px;
  max-width: 95vw;
  min-height: 470px;
  background-color: #091528; /* Bound navy leather cover */
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .012) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .014) 0 1px, transparent 1px 5px);
  border-radius: 6px 14px 14px 6px;
  border: 4px solid #060e1b;
  box-shadow: 
    0 30px 44px -14px rgba(10, 20, 40, 0.52),
    9px 10px 0 0 #f8f3e8,
    10px 11px 0 0 #d7cfbf,
    11px 12px 0 0 #fbf8f0,
    12px 13px 0 0 #d4ccbd,
    13px 14px 0 0 #f5f0e4,
    14px 15px 0 0 #d8d0c2,
    15px 16px 0 0 #ede6d8,
    0 6px 0 0 #060e1b;
  display: flex;
  box-sizing: border-box;
  transform-style: preserve-3d;
}

.book-half {
  flex: 1;
  padding: 8px;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

.book-half-left {
  padding-right: 4px;
  cursor: pointer;
}

.book-half-right {
  padding-left: 4px;
  cursor: pointer;
  isolation: isolate;
}

.page-parchment {
  background: #fdfaf3;
  background-image:
    repeating-linear-gradient(0deg, rgba(103, 86, 56, .012) 0 1px, transparent 1px 4px),
    linear-gradient(180deg, rgba(255, 255, 255, .18), rgba(218, 207, 188, .06));
  height: 100%;
  min-height: 420px;
  padding: 2.7rem 2.2rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  user-select: none;
}

.book-half-left .page-parchment {
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-right: none;
  box-shadow:
    inset 12px 0 25px rgba(0, 0, 0, 0.05),
    inset -8px 0 14px rgba(35, 28, 19, .07),
    inset -1px 0 4px rgba(255, 255, 255, .18);
}

.book-half-right .page-parchment {
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-left: none;
  box-shadow:
    inset -12px 0 25px rgba(0, 0, 0, 0.04),
    inset 8px 0 14px rgba(35, 28, 19, .07),
    inset 1px 0 4px rgba(255, 255, 255, .18);
}

.home-page .case-page-left {
  background-image:
    repeating-linear-gradient(0deg, rgba(103, 86, 56, .012) 0 1px, transparent 1px 4px),
    linear-gradient(90deg, #fdfaf3 0%, #fdfaf3 calc(100% - 16px), rgba(68, 58, 43, .05) calc(100% - 5px), rgba(17, 28, 40, .09) 100%);
}

.home-page .case-page-right {
  background-image:
    repeating-linear-gradient(0deg, rgba(103, 86, 56, .012) 0 1px, transparent 1px 4px),
    linear-gradient(270deg, #fdfaf3 0%, #fdfaf3 calc(100% - 16px), rgba(68, 58, 43, .05) calc(100% - 5px), rgba(17, 28, 40, .09) 100%);
}

.home-page .case-page-left:has(.book-page-number)::before,
.home-page .case-page-right:has(.book-page-number)::before,
.home-page .flipper-face:has(.book-page-number)::before {
  position: absolute;
  inset: .62rem;
  border: 1px solid rgba(166, 133, 68, .24);
  content: "";
  pointer-events: none;
}

.case-spread-layer {
  display: flex;
  width: 100%;
  box-sizing: border-box;
}

.case-spread-underlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.case-spread-active {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 1 1 auto;
  min-height: 454px;
}

.case-spread-active .book-half {
  min-width: 0;
}

/* Keep the destination spread below the current spread. The turning sheet's
   populated reverse face reveals the next facing page during the 3D turn. */
.open-law-book.is-turning-forward #caseDisplayArea,
.open-law-book.is-turning-backward #leftPageContent,
.open-law-book.is-mobile-turning #caseActiveSpread {
  visibility: hidden;
}

/* Turn shadow belongs to the moving leaf and follows its curl. */

/* Narrow centre groove with restrained paper-edge highlights. */
.book-spine-crease {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 50%;
  width: 24px;
  transform: translateX(-50%);
  border-radius: 2px;
  background:
    repeating-linear-gradient(0deg, rgba(236, 225, 202, .035) 0 1px, transparent 1px 4px),
    linear-gradient(90deg,
      rgba(9, 20, 35, .12) 0%,
      rgba(237, 226, 207, .16) 22%,
      rgba(37, 42, 45, .05) 42%,
      rgba(8, 18, 31, .2) 50%,
      rgba(37, 42, 45, .05) 58%,
      rgba(237, 226, 207, .15) 78%,
      rgba(9, 20, 35, .12) 100%),
    linear-gradient(180deg, rgba(9, 21, 39, .2), rgba(92, 79, 59, .14) 10%, rgba(20, 32, 47, .16) 50%, rgba(92, 79, 59, .14) 90%, rgba(9, 21, 39, .2));
  box-shadow:
    inset 0 0 2px rgba(0, 0, 0, .16),
    0 0 3px rgba(5, 12, 23, .08);
  z-index: 40;
  pointer-events: none;
}

.book-spine-crease::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 50%;
  width: 1px;
  transform: translateX(-50%);
  border-radius: 1px;
  background: rgba(5, 14, 26, .38);
}

.book-spine-crease::after {
  content: "";
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 2px;
  width: 1px;
  background: rgba(198, 164, 90, .2);
}

.book-ribbon {
  position: absolute;
  z-index: 42;
  bottom: -19px;
  left: 50%;
  width: 13px;
  height: 36px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #8e7139 0%, #c2a15a 24%, #ddc47d 50%, #a88743 78%, #775d2e 100%);
  clip-path: polygon(8% 0, 92% 0, 92% 100%, 50% 84%, 8% 100%);
  filter: drop-shadow(1px 3px 2px rgba(7, 16, 29, .3));
  pointer-events: none;
}

.book-title-page {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 100%;
  box-sizing: border-box;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  padding: 2rem 1.35rem 1.25rem;
  text-align: center;
}

.book-title-page::before,
.book-title-page-left::before {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(166, 133, 68, .28);
  content: "";
  pointer-events: none;
}

.book-title-page-left {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 100%;
  box-sizing: border-box;
  place-items: center;
}

.book-title-rule {
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(166, 133, 68, .58), transparent);
}

.book-title-logo {
  width: min(56%, 180px);
  max-height: 72px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(16%) sepia(21%) saturate(1100%) hue-rotate(177deg) brightness(83%) contrast(90%);
}

.book-title-rule { width: 34%; margin: 1.05rem 0 1.2rem; }

.book-title-page h1 {
  margin: 0;
  color: var(--home-navy, #0f2347);
  font-family: var(--home-serif, 'Times New Roman', Georgia, serif);
  font-size: clamp(1.7rem, 3vw, 2.05rem);
  font-weight: 500;
  letter-spacing: .045em;
  line-height: 1.16;
}

.book-title-page p {
  margin: 0;
  color: #475569;
  font-family: var(--home-serif, 'Times New Roman', Georgia, serif);
  font-size: 1rem;
}

.book-title-page .book-title-subtitle {
  margin-top: .8rem;
  color: #4a4f59;
  font-size: .98rem;
  font-style: italic;
}

.book-title-page .book-title-location {
  margin-top: auto;
  padding-top: 1rem;
  color: #8c713d;
  font-size: .63rem;
  letter-spacing: .11em;
}

.book-page-number {
  position: absolute;
  bottom: .8rem;
  color: #967b46;
  font-family: var(--home-serif, 'Times New Roman', Georgia, serif);
  font-size: .7rem;
  font-variant-numeric: oldstyle-nums;
  letter-spacing: .04em;
}
.book-page-number-left { left: 1rem; }
.book-page-number-right { right: 1rem; }

/* ==========================================================================
   Physical 3D Turning Sheet Animation (Forward & Backward)
   ========================================================================== */
.flipper-leaf {
  position: absolute;
  top: 8px;
  right: 8px;
  bottom: 8px;
  width: calc(50% - 8px);
  transform-origin: left center; /* Hinges precisely on the central spine */
  transform-style: preserve-3d;
  pointer-events: none;
  z-index: 50;
  display: none;
}

.flipper-leaf.is-turning-backward {
  left: 8px;
  right: auto;
  transform-origin: right center;
}

.flipper-face {
  position: absolute;
  inset: 0;
  background-color: #fdfaf3;
  background-image:
    repeating-linear-gradient(0deg, rgba(103, 86, 56, .012) 0 1px, transparent 1px 4px),
    linear-gradient(180deg, rgba(255, 255, 255, .18), rgba(218, 207, 188, .06));
  padding: 2.7rem 2.2rem;
  overflow: hidden;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-style: preserve-3d;
}

/* Front Face: sweeps up from right side */
.flipper-front {
  transform: translateZ(.1px);
  border-radius: 0 8px 8px 0;
  border-left: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow:
    inset -12px 0 25px rgba(0, 0, 0, 0.05),
    inset 8px 0 14px rgba(35, 28, 19, .07);
}

/* Back Face: lands face-up on the left side */
.flipper-back {
  transform: rotateY(180deg) translateZ(.1px);
  border-radius: 8px 0 0 8px;
  border-right: 1px solid rgba(0, 0, 0, 0.1);
  background-color: #faf6ec;
  background-image:
    repeating-linear-gradient(0deg, rgba(103, 86, 56, .014) 0 1px, transparent 1px 4px),
    linear-gradient(180deg, rgba(255, 255, 255, .2), rgba(218, 207, 188, .1));
  box-shadow:
    inset 12px 0 25px rgba(0, 0, 0, 0.06),
    inset -8px 0 14px rgba(35, 28, 19, .07);
}

.home-page .flipper-leaf:not(.is-closing-cover):not(.is-closed-cover-leaf) .flipper-back::before {
  position: absolute;
  inset: .62rem;
  border: 1px solid rgba(166, 133, 68, .24);
  content: "";
  pointer-events: none;
}

.flipper-leaf.is-turning-backward .flipper-front {
  border-radius: 8px 0 0 8px;
  border-left: none;
  border-right: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow:
    inset 12px 0 25px rgba(0, 0, 0, 0.05),
    inset -8px 0 14px rgba(35, 28, 19, .07);
}

.flipper-leaf.is-turning-backward .flipper-back {
  border-radius: 0 8px 8px 0;
  border-right: none;
  border-left: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow:
    inset -12px 0 25px rgba(0, 0, 0, 0.06),
    inset 8px 0 14px rgba(35, 28, 19, .07);
}

.flipper-desktop-page {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  flex-direction: column;
}

.flipper-mobile-spread { display: none; }

.home-page .flipper-leaf.is-turning-forward {
  display: block;
  transform-origin: left center;
  will-change: transform;
  animation: bookPageTurnForward .9s cubic-bezier(.42, .04, .2, 1) both, pageTurnDepth .9s ease both;
}

.home-page .flipper-leaf.is-turning-backward {
  display: block;
  transform-origin: right center;
  will-change: transform;
  animation: bookPageTurnBackward .9s cubic-bezier(.42, .04, .2, 1) both, pageTurnDepth .9s ease both;
}

.home-page .flipper-face::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(8, 20, 38, .2), transparent 16%, rgba(255, 255, 255, .24) 44%, rgba(255, 255, 255, .05) 58%, rgba(8, 20, 38, .13));
  background-size: 200% 100%;
  animation: pageCurlLight .9s cubic-bezier(.42, .04, .2, 1) both;
}

.home-page .flipper-back::after {
  background: linear-gradient(270deg, rgba(8, 20, 38, .16), transparent 18%, rgba(255, 255, 255, .18) 50%, rgba(8, 20, 38, .08));
}

/* The final forward turn uses the reverse side of its leaf as the book cover. */
.home-page .open-law-book.is-closing-book {
  animation:
    bookShiftClosed .82s cubic-bezier(.45, .05, .22, 1) both,
    bookShellClose .82s cubic-bezier(.45, .05, .22, 1) both;
}

.home-page .open-law-book.is-book-closed {
  transform: translateX(25%);
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.home-page .open-law-book.is-book-closed .case-spread-layer,
.home-page .open-law-book.is-book-closed .book-spine-crease {
  visibility: hidden;
}

.home-page .open-law-book.is-opening-book {
  animation:
    bookShiftOpen .82s cubic-bezier(.45, .05, .22, 1) both,
    bookShellOpen .82s cubic-bezier(.45, .05, .22, 1) both;
}

.home-page .open-law-book.is-opening-book .case-spread-layer,
.home-page .open-law-book.is-opening-book .book-spine-crease {
  visibility: visible;
  animation: bookPagesReveal .82s ease both;
}

.home-page .flipper-leaf.is-closed-cover-leaf {
  display: block;
  transform-origin: left center;
  transform: rotateY(-180deg);
  animation: none;
  pointer-events: auto;
  z-index: 60;
}

.home-page .flipper-leaf.is-opening-cover-leaf {
  display: block;
  transform-origin: left center;
  animation: bookReopen .82s cubic-bezier(.45, .05, .22, 1) both;
  pointer-events: none;
  z-index: 60;
}

.home-page .is-closed-cover-leaf .flipper-back {
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 7px 10px 10px 7px;
  background: transparent;
  box-shadow: 0 9px 18px rgba(4, 12, 25, .24);
}

.home-page .is-closed-cover-leaf .flipper-back::after {
  background: linear-gradient(135deg, rgba(255, 255, 255, .08), transparent 42%, rgba(0, 0, 0, .12));
}

.book-back-cover-content {
  position: relative;
  display: flex;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 3vh, 1.75rem);
  padding: 1.5rem;
  overflow: hidden;
  border: 1px solid rgba(198, 164, 90, .58);
  border-radius: 7px 10px 10px 7px;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .012) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .012) 0 1px, transparent 1px 5px),
    radial-gradient(ellipse at 50% 42%, rgba(39, 61, 91, .5), transparent 66%),
    linear-gradient(145deg, #102542, #091528 58%, #06101f);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), inset 0 -8px 18px rgba(0, 0, 0, .18);
}

.book-back-cover-content::before {
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(198, 164, 90, .28);
  border-radius: 3px 7px 7px 3px;
  content: "";
  pointer-events: none;
}

.book-back-logo {
  display: block;
  width: min(78%, 270px);
  max-height: 44%;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(77%) sepia(29%) saturate(560%) hue-rotate(5deg) brightness(88%) contrast(88%) drop-shadow(0 2px 4px rgba(0, 0, 0, .16));
}

.book-reopen-btn {
  position: relative;
  z-index: 1;
  padding: .55rem 1rem;
  border: 1px solid rgba(198, 164, 90, .72);
  border-radius: 3px;
  background: rgba(5, 15, 30, .52);
  color: #fff;
  font: 600 .82rem 'Times New Roman', Georgia, serif;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease;
}

.book-reopen-btn:hover,
.book-reopen-btn:focus-visible {
  border-color: #d7bd7b;
  background: rgba(198, 164, 90, .2);
}

.book-stage.is-book-closed .book-nav-bar { display: none; }

@keyframes bookShiftClosed {
  from { transform: translateX(0); }
  to { transform: translateX(25%); }
}

@keyframes bookShiftOpen {
  from { transform: translateX(25%); }
  to { transform: translateX(0); }
}

@keyframes bookShellClose {
  0%, 65% {
    background: #091528;
    border-color: #060e1b;
    box-shadow: 0 26px 52px -10px rgba(10, 20, 40, .48), 12px 14px 0 #ede6d8, 13px 15px 0 #dcd4c3, 14px 16px 0 #ede6d8, 0 6px 0 #060e1b;
  }
  100% { background: transparent; border-color: transparent; box-shadow: none; }
}

@keyframes bookShellOpen {
  0% { background: transparent; border-color: transparent; box-shadow: none; }
  35%, 100% {
    background: #091528;
    border-color: #060e1b;
    box-shadow: 0 26px 52px -10px rgba(10, 20, 40, .48), 12px 14px 0 #ede6d8, 13px 15px 0 #dcd4c3, 14px 16px 0 #ede6d8, 0 6px 0 #060e1b;
  }
}

@keyframes bookPagesReveal {
  0%, 30% { opacity: 0; }
  62%, 100% { opacity: 1; }
}

@keyframes bookReopen {
  from { transform: rotateY(-180deg); }
  to { transform: rotateY(0deg); }
}

@keyframes bookPageTurnForward {
  0% { transform: rotateY(0deg) rotateX(0deg) rotateZ(0deg) translateZ(0) scaleX(1); }
  16% { transform: rotateY(-24deg) rotateX(2deg) rotateZ(-.8deg) translateZ(9px) scaleX(.99); }
  42% { transform: rotateY(-76deg) rotateX(3deg) rotateZ(-1.4deg) translateZ(24px) scaleX(.965); }
  62% { transform: rotateY(-119deg) rotateX(1deg) rotateZ(-.8deg) translateZ(21px) scaleX(.975); }
  84% { transform: rotateY(-163deg) rotateX(-1deg) rotateZ(.3deg) translateZ(8px) scaleX(.99); }
  100% { transform: rotateY(-180deg) rotateX(0deg) rotateZ(0deg) translateZ(0) scaleX(1); }
}

@keyframes bookPageTurnBackward {
  0% { transform: rotateY(0deg) rotateX(0deg) rotateZ(0deg) translateZ(0) scaleX(1); }
  16% { transform: rotateY(24deg) rotateX(2deg) rotateZ(.8deg) translateZ(9px) scaleX(.99); }
  42% { transform: rotateY(76deg) rotateX(3deg) rotateZ(1.4deg) translateZ(24px) scaleX(.965); }
  62% { transform: rotateY(119deg) rotateX(1deg) rotateZ(.8deg) translateZ(21px) scaleX(.975); }
  84% { transform: rotateY(163deg) rotateX(-1deg) rotateZ(-.3deg) translateZ(8px) scaleX(.99); }
  100% { transform: rotateY(180deg) rotateX(0deg) rotateZ(0deg) translateZ(0) scaleX(1); }
}

@keyframes pageCurlLight {
  0% { background-position: 100% 0; opacity: .55; }
  42% { background-position: 48% 0; opacity: 1; }
  68% { background-position: 0 0; opacity: .88; }
  100% { background-position: -35% 0; opacity: .45; }
}

@keyframes pageTurnShadow {
  0%, 100% { opacity: 0; transform: scaleX(.72) translateY(2px); }
  38%, 62% { opacity: .65; transform: scaleX(1) translateY(0); }
}

@keyframes pageTurnDepth {
  0%, 100% { box-shadow: 0 0 0 rgba(11, 18, 28, 0); }
  40%, 60% { box-shadow: 0 11px 10px rgba(11, 18, 28, .22); }
}

/* Typography Inside Pages */
.left-page-title {
  font-family: 'Cinzel', serif, Georgia;
  font-size: 1.3rem;
  color: #0f2347;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.left-page-desc {
  font-size: 0.91rem;
  color: #475569;
  line-height: 1.62;
  margin-bottom: 1.25rem;
}

.left-page-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #0f2347;
}

.seal-icon {
  font-size: 1.2rem;
  color: #c29b27;
}

.page-foliage-footer {
  margin-top: auto;
  border-top: 1px dashed #cbd5e1;
  padding-top: 0.75rem;
  font-size: 0.76rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.case-tag {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: #0f2347;
}

.case-results-disclaimer {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1rem 1.25rem;
  color: var(--home-navy);
  font-size: .9rem;
  line-height: 1.5;
  text-align: center;
}

.case-badge-success {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: rgba(16, 185, 129, 0.14);
  color: #065f46;
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.case-title {
  font-family: 'Cinzel', serif, Georgia;
  font-size: 1.22rem;
  color: #0f2347;
  line-height: 1.35;
  margin-bottom: 0.75rem;
}

.case-desc {
  font-size: 0.91rem;
  line-height: 1.62;
  color: #334155;
}

/* Controls */
.book-nav-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.book-btn {
  background: #0f2347;
  color: #ffffff;
  border: 1px solid rgba(212, 175, 55, 0.5);
  padding: 0.55rem 1.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.book-btn:hover:not(:disabled) {
  background: #173460;
  border-color: #d4af37;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 35, 71, 0.25);
}

.book-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  border-color: transparent;
}

.book-page-count {
  font-size: 0.88rem;
  font-weight: 600;
  color: #0f2347;
  font-family: 'Cinzel', serif;
}

@media (max-width: 768px) {
  .open-law-book {
    flex-direction: column;
    min-height: auto;
  }
  .page-parchment {
    padding: 1.75rem 1.25rem;
    min-height: 380px;
  }
}
/* ==========================================================================
   Header Social Icon Size Lock (Fix for Team Bio Pages)
   ========================================================================== */
.site-header .nav-social-svg,
.site-header svg.nav-social-svg,
.nav-links a svg,
.nav-ig-link svg {
  width: 17px !important;
  height: 17px !important;
  max-width: 17px !important;
  max-height: 17px !important;
  stroke-width: 2 !important;
  display: inline-block !important;
  vertical-align: middle !important;
  flex-shrink: 0 !important;
}

.site-header .nav-ig-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.45rem !important;
  line-height: 1 !important;
  padding: 0.4rem 0.75rem !important;
}
/* ==========================================================================
  Live Animated Metrics Counter Strip
  ========================================================================== */
.stats-counter-strip {
  background: linear-gradient(180deg, #091322 0%, #0f2347 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 3rem 1.5rem;
  position: relative;
  z-index: 10;
}

.stats-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.stat-card {
  flex: 1;
  text-align: center;
  padding: 0.5rem 1rem;
}

.stat-number-wrapper {
  font-family: 'Cinzel', serif, Georgia;
  font-size: 3.25rem;
  font-weight: 700;
  line-height: 1.1;
  color: #ffffff;
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}

.stat-suffix {
  color: #d4af37;
  font-size: 2.4rem;
  margin-left: 2px;
  font-weight: 600;
}

.stat-label {
  color: #94a3b8;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 0.6rem;
}

.stat-divider {
  width: 1px;
  height: 60px;
  background: linear-gradient(180deg, transparent, rgba(212, 175, 55, 0.4), transparent);
}

@media (max-width: 992px) {
  .stats-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1rem;
  }
  .stat-divider {
    display: none;
  }
}

@media (max-width: 480px) {
  .stats-container {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

/* ========================================================================
   Cake Criminal Defence homepage refresh
   Scoped to .home-page so shared team profile pages retain their styling.
   ======================================================================== */

/* Stage 1: shared visual language, header and hero */
.home-page {
  --home-navy: #0b1b33;
  --home-navy-mid: #142b4c;
  --home-gold: #c6a45a;
  --home-gold-light: #dfc98e;
  --home-ink: #18263a;
  --home-muted: #5f6d7e;
  --home-paper: #f7f6f2;
  --home-line: #e4e1d8;
  --home-serif: "Times New Roman", Times, serif;
  --home-sans: "Times New Roman", Times, serif;
  font-family: var(--home-sans);
  color: var(--home-ink);
  line-height: 1.65;
  letter-spacing: .005em;
  background: #fff;
}

.home-page * { font-family: "Times New Roman", Times, serif !important; }

.home-page .urgent-banner {
  background: var(--home-navy);
  border: 0;
  border-bottom: 1px solid rgba(198, 164, 90, .62);
  padding: .58rem 1.25rem;
  font-size: .82rem;
  letter-spacing: .025em;
}

.home-page .banner-phone {
  color: var(--home-gold-light);
}

.home-page .navbar {
  background: var(--home-navy);
  box-shadow: 0 8px 28px rgba(11, 27, 51, .16);
  border-bottom: 1px solid rgba(198, 164, 90, .55);
}

.home-page .nav-links a {
  color: #fff;
  font-size: clamp(.84rem, calc(.6rem + .38vw), .9rem);
  font-weight: 600;
  letter-spacing: .015em;
}

.home-page .nav-links .nav-ig-link,
.home-page .nav-links .nav-pay-link {
  color: #fff !important;
}

.home-page .nav-links .nav-pay-link {
  border-color: rgba(150, 118, 56, .55);
}

.home-page .nav-links .dropdown-menu li a { color: #e2e8f0; }
.home-page .nav-links .dropdown-menu li a:hover { color: var(--home-gold-light); }

.home-page .nav-links .nav-btn {
  color: #fff !important;
}

.home-page .nav-links .nav-pay-link,
.home-page .nav-links .nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 150px;
  height: 42px;
  padding: 0 .65rem;
  border: 1px solid var(--home-gold);
  border-radius: 3px;
  background: var(--home-navy);
  color: #fff !important;
  font-size: .82rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .015em;
  text-align: center;
  white-space: nowrap;
}

.home-page .nav-links .nav-pay-link:hover,
.home-page .nav-links .nav-pay-link:focus-visible,
.home-page .nav-links .nav-btn:hover,
.home-page .nav-links .nav-btn:focus-visible {
  background: var(--home-navy-mid) !important;
  border-color: var(--home-gold-light);
  color: var(--home-gold-light) !important;
}

.home-page .nav-btn:hover {
  background: var(--home-navy-mid) !important;
  color: var(--home-gold-light) !important;
}

.home-page .nav-links a:hover,
.home-page .nav-links a:focus-visible {
  color: var(--home-gold-light) !important;
}

.home-page .nav-btn,
.home-page .btn-primary,
.home-page .btn-outline,
.home-page .nav-pay-link {
  border-radius: 3px;
  letter-spacing: .035em;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.home-page .hamburger-line { background-color: #fff; }

.home-page .brand-logo {
  width: 220px;
  max-height: 102px;
}

.home-page .nav-btn,
.home-page .btn-primary {
  background: var(--home-navy);
  border: 1px solid var(--home-gold);
  color: #fff;
}

.home-page .nav-btn:hover,
.home-page .btn-primary:hover {
  background: var(--home-navy-mid);
  border-color: var(--home-gold-light);
}

.home-page .hero {
  min-height: 0;
  padding: 0 1.5rem 0 0;
  background: radial-gradient(ellipse at 78% 18%, rgba(198, 164, 90, .18), transparent 34%),
              linear-gradient(125deg, #09172b 0%, #102746 58%, #0b1b33 100%);
  border-bottom: 3px solid var(--home-gold);
}

.home-page .hero-content {
  max-width: 930px;
}

.home-page .hero-swoop-title {
  max-width: 850px;
  margin: 0 auto 1.35rem;
  font-family: var(--home-serif);
  font-size: clamp(2.6rem, 5.6vw, 4.6rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.02em;
  text-wrap: balance;
}

.home-page .hero-intro-text {
  max-width: 690px;
  margin: 0 auto 2rem;
  color: #d5dce5;
  font-size: clamp(1rem, 1.4vw, 1.16rem);
  line-height: 1.8;
}

.home-page .hero-actions {
  gap: .9rem;
}

.home-page .hero-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  flex: 0 0 250px;
  width: 250px;
  height: 52px;
  min-height: 52px;
  padding: .75rem 1rem;
  border-width: 1px;
  border-radius: 3px;
  font-size: .98rem;
  line-height: 1.2;
  text-align: center;
}

.home-page .hero .btn-primary {
  background: var(--home-gold);
  color: var(--home-navy);
  border-color: var(--home-gold);
}

.home-page .hero .btn-primary:hover {
  background: var(--home-gold-light);
  border-color: var(--home-gold-light);
}

.home-page .hero .btn-outline {
  background: #fff;
  border-color: #fff;
  color: var(--home-navy);
}

.home-page .hero .btn-outline:hover {
  background: #fff;
  border-color: var(--home-gold-light);
  color: var(--home-navy);
}

.home-page .hero-contact-quick {
  color: #c6cfdb;
  gap: .5rem 1.4rem;
}

.home-page .hero-contact-quick a,
.home-page .hero-social-link {
  color: var(--home-gold-light);
}

.home-page .hero-layout {
  width: 100%;
  margin: 0;
}

.home-page .hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  margin: 0;
  text-align: left;
}

.home-page .hero-swoop-title {
  max-width: none;
  margin: 0 0 1.35rem;
}

.home-page .hero-intro-text { margin: 0 0 2rem; }
.home-page .hero-actions { justify-content: flex-start; }
.home-page .hero-support {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-top: 1.25rem;
}
.home-page .hero-support .hero-socials { justify-content: flex-start; }
.home-page .hero-support .hero-contact-quick { justify-content: flex-start; flex-wrap: wrap; }

.home-page .hero-portrait-wrap {
  position: relative;
  z-index: 0;
  width: 100%;
  height: auto;
  overflow: visible;
  pointer-events: none;
}

.home-page .hero-portrait {
  display: block;
  width: 100%;
  height: auto;
  background: transparent;
  opacity: 0;
  animation: homeHeroPortraitEntrance 900ms cubic-bezier(.22, .68, .28, 1) 850ms both;
}

@keyframes homeHeroPortraitEntrance {
  from { opacity: 0; transform: translate3d(16px, 0, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@media (min-width: 769px) {
  .home-page .hero {
    min-height: 0;
    padding: clamp(1.75rem, 3vw, 3rem) 0 0 clamp(1.5rem, 3.2vw, 3.5rem);
  }
  .home-page .hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 58fr) minmax(0, 42fr);
    grid-template-rows: auto;
    align-items: stretch;
    column-gap: clamp(.75rem, 1.3vw, 1.25rem);
  }
  .home-page .hero-copy {
    display: flex;
    grid-column: 1;
    grid-row: 1;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 0 0 .65rem;
  }
  .home-page .hero-content { grid-column: auto; grid-row: auto; }
  .home-page .hero-support {
    grid-column: auto;
    grid-row: auto;
    margin-top: .85rem;
    margin-bottom: 0;
  }
  .home-page .hero-intro-text { margin-bottom: .8rem; line-height: 1.58; }
  .home-page .hero-swoop-title { margin-bottom: .6rem; }
  .home-page .hero-support { margin-top: .45rem; }
  .home-page .hero-support .hero-socials { margin-top: .3rem; }
  .home-page .hero-portrait-wrap {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    justify-self: end;
    width: 82%;
    margin: 0;
  }
}

/* Stage 2: consistent section rhythm, editorial cards and contact area */
.home-page .section {
  padding: clamp(4rem, 7vw, 6.25rem) max(1.25rem, calc((100% - 1160px) / 2));
}

.home-page .section.bg-light {
  background: var(--home-paper);
}

.home-page .section-header {
  max-width: 760px;
  margin: 0 auto 3rem;
}

.home-page .section-tag,
.home-page .urgent-tag {
  color: #967638;
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .16em;
}

.home-page .section-header h2,
.home-page .about-text h2,
.home-page .arrested-box h2 {
  font-family: var(--home-serif);
  font-weight: 500;
  font-size: clamp(2rem, 3.6vw, 2.85rem);
  line-height: 1.18;
  letter-spacing: -.025em;
}

.home-page .section-header h2,
.home-page .about-text h2 {
  color: var(--home-navy);
}

.home-page #about,
.home-page #team {
  width: 100%;
  max-width: none;
  padding-inline: clamp(1.25rem, 5vw, 4rem);
}

.home-page .about-grid {
  grid-template-columns: minmax(260px, .75fr) minmax(0, 1.5fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
  max-width: 1320px;
  margin: 0 auto;
}

.home-page .lawyer-photo-wrap {
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 18px 18px 0 var(--home-paper), 19px 19px 0 var(--home-line);
}

.home-page #about .lawyer-photo-wrap {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.home-page .photo-caption {
  background: var(--home-navy);
  border-top: 2px solid var(--home-gold);
}

.home-page .about-text p,
.home-page .practice-lead,
.home-page .fee-card p,
.home-page .contact-item {
  color: var(--home-muted);
}

.home-page .stats-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: .7rem;
  width: min(100%, 590px);
  margin: 1.5rem auto 0;
}

.home-page .stat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--home-line);
  border-top: 2px solid var(--home-gold);
  border-radius: 3px;
  min-height: 96px;
  padding: .75rem .55rem;
  text-align: center;
  overflow-wrap: normal;
  word-break: normal;
}

.home-page .stat-num,
.home-page .stat-lbl {
  color: var(--home-navy);
}

.home-page .stat-lbl { font-size: .78rem; }

.home-page .arrested-box {
  background: linear-gradient(135deg, #0b1b33, #142b4c);
  border: 1px solid rgba(198, 164, 90, .45);
  border-left: 4px solid var(--home-gold);
  border-radius: 4px;
  padding: clamp(1.5rem, 4vw, 3.2rem);
  box-shadow: 0 18px 48px rgba(11, 27, 51, .12);
}

.home-page .urgent-tag { color: var(--home-gold-light); }
.home-page .rule-card { border-radius: 3px; border-color: rgba(223, 201, 142, .25); }
.home-page .rule-num { background: var(--home-gold); color: var(--home-navy); }
.home-page .quote-callout { border-left-color: var(--home-gold); }
.home-page .custody-note a { color: var(--home-gold-light); }
.home-page .custody-note {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .55rem 1rem;
  border-top-color: rgba(198, 164, 90, .55);
  color: #fff;
  line-height: 1.4;
}
.home-page .custody-emergency-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .25rem;
  font-size: clamp(.98rem, 1.6vw, 1.1rem);
  font-weight: 700;
}
.home-page .custody-emergency-copy .siren-beacon { margin: 0 .1rem 0 0; }
.home-page .custody-note .custody-phone {
  color: var(--home-gold-light);
  font-size: 1.08rem;
  font-weight: 700;
  white-space: nowrap;
  text-underline-offset: .2em;
}

.home-page .practice-card,
.home-page .fee-card,
.home-page .team-card,
.home-page .slide-card {
  border: 1px solid var(--home-line);
  border-radius: 4px;
  box-shadow: 0 7px 24px rgba(11, 27, 51, .045);
}

.home-page .practice-card,
.home-page .fee-card,
.home-page .team-card {
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.home-page .fee-card:hover,
.home-page .team-card:hover {
  transform: translateY(-3px);
  border-color: rgba(198, 164, 90, .75);
  box-shadow: 0 14px 32px rgba(11, 27, 51, .09);
}

.home-page .practice-icon-wrapper { color: #a38343; }
.home-page .practice-card h3,
.home-page .fee-card h3,
.home-page .team-info h3 { color: var(--home-navy); }
.home-page .practice-sublist li::before { color: #a38343; }

.home-page .book-stage { max-width: 980px; }
.home-page .page-parchment { border-color: rgba(198, 164, 90, .45); }
.home-page #caseBook { width: 860px; max-width: 95vw; height: 480px; min-height: 480px; flex: 0 0 480px; }
.home-page #caseActiveSpread { height: 100%; min-height: 0; flex: 1 1 auto; }
.home-page .case-spread-layer .page-parchment {
  height: 100%;
  min-height: 0;
  padding: 1.55rem 1.45rem;
  overflow: visible;
}
.home-page .flipper-face { padding: 1.55rem 1.45rem; }
.home-page .case-spread-layer .book-half { overflow: visible; }
.home-page .flipper-desktop-page { overflow: visible; }
.home-page .case-tag {
  display: block;
  margin: 0 0 .55rem;
  font-family: var(--home-serif);
  font-size: 1.22rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--home-navy);
}
.home-page .case-title {
  margin: 0 0 .45rem;
  font-family: var(--home-serif);
  font-size: 1.14rem;
  font-weight: 600;
  line-height: 1.3;
}
.home-page .case-section-heading {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: .62rem 0 .82rem;
  padding: 0;
  border: 0;
  color: var(--home-navy);
  font-family: var(--home-serif);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  text-transform: none;
}
.home-page .case-section-heading::after {
  display: block;
  width: 34px;
  height: 1px;
  margin-top: .32rem;
  background: linear-gradient(90deg, rgba(166, 133, 68, .76), rgba(166, 133, 68, .12));
  content: "";
}
.home-page .case-desc {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.65;
  text-wrap: pretty;
}
.home-page .case-desc + .case-desc { margin-top: .7rem; }
.home-page .case-page-right .case-desc { max-width: 42ch; }
.home-page .case-result-badge + .case-section-heading { margin: .16rem 0 .82rem; }
.home-page .case-result-badge {
  align-self: flex-end;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 .55rem;
  font-size: .8rem;
  line-height: 1.35;
  text-align: right;
  white-space: normal;
  overflow-wrap: anywhere;
}
.home-page .book-page-count { min-width: 120px; text-align: center; }
.home-page .book-btn { background: var(--home-navy); border-color: var(--home-gold); border-radius: 3px; }
.home-page .book-btn:hover:not(:disabled) { background: var(--home-navy-mid); border-color: var(--home-gold-light); }

.home-page .social-promo-box {
  border: 1px solid rgba(198, 164, 90, .45);
  border-radius: 4px;
}

@media (min-width: 769px) and (max-width: 900px) {
  .home-page .case-spread-layer .page-parchment,
  .home-page .flipper-face { padding: 1.35rem 1.25rem; }
  .home-page .case-desc { font-size: 1.08rem; line-height: 1.58; }
  .home-page .case-title { font-size: 1.16rem; }
}

.home-page .fee-card { padding: clamp(1.5rem, 3vw, 2.5rem); }
.home-page .team-photo-frame {
  height: auto;
  aspect-ratio: 1855 / 2400;
  background: #e9e7e0;
}
.home-page .team-grid { width: 100%; max-width: 1360px; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: 1.75rem; }
.home-page .team-card { min-width: 0; height: 100%; }
.home-page .team-role { color: #806832; }
.home-page .read-bio-btn,
.home-page .team-name-link { color: var(--home-navy); }

.home-page .slide-card { border-radius: 4px; }
.home-page .stars { color: #a38343; }
.home-page .testimonials-slider-wrapper { width: 100%; overflow: visible; }
.home-page .testimonials-slider {
  width: 100%;
  min-width: 0;
  padding: 1rem 3.5rem;
  scroll-snap-type: none;
  scroll-padding-inline: 3.5rem;
}
.home-page .slide-card { scroll-snap-align: start; }
.home-page .review-scroll-btn {
  background: var(--home-navy);
  border: 1px solid var(--home-gold);
  top: 50%;
  z-index: 20;
}
.home-page .review-prev { left: .35rem; }
.home-page .review-next { right: .35rem; }
.home-page .author { color: var(--home-navy); }

.home-page .contact-details h3,
.home-page .address-card h4 { color: var(--home-navy); }
.home-page .address-card,
.home-page .contact-form { border-color: var(--home-line); border-radius: 4px; }
.home-page .contact-form { box-shadow: 0 10px 32px rgba(11, 27, 51, .06); }
.home-page .form-group input:focus,
.home-page .form-group select:focus,
.home-page .form-group textarea:focus { border-color: #a38343; outline-color: #a38343; }

.home-page .footer {
  background: var(--home-navy);
  border-top: 3px solid var(--home-gold);
}

.home-page :focus-visible {
  outline: 2px solid var(--home-gold);
  outline-offset: 3px;
}

@media (max-width: 1024px) {
  .home-page .nav-links { background: var(--home-navy); }
  .home-page .nav-links a,
  .home-page .nav-links .nav-ig-link,
  .home-page .nav-links .nav-pay-link { color: #e2e8f0 !important; }
  .home-page .nav-links .nav-btn { color: #fff !important; }
  .home-page .nav-links .dropdown-menu li a { color: #e2e8f0 !important; }
  .home-page .brand-logo { width: 200px; max-height: 92px; }
}

@media (min-width: 769px) and (max-width: 1023px) {
  .home-page .about-grid { grid-template-columns: minmax(220px, .72fr) minmax(0, 1.28fr); gap: 2rem; }
  .home-page .stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-page .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .home-page .section { padding: 3.75rem 1.25rem; }
  .home-page .section-header { margin-bottom: 2.25rem; }
  .home-page .about-grid { gap: 2.5rem; }
  .home-page .lawyer-photo-wrap { box-shadow: 9px 9px 0 var(--home-paper), 10px 10px 0 var(--home-line); }
  .home-page .review-scroll-btn { width: 38px; height: 38px; }
  .home-page .slide-card { min-width: min(82vw, 340px); }
  .home-page .contact-form { padding: 1.35rem; }
  .home-page .about-grid { grid-template-columns: 1fr; }
  .home-page .stats-grid { grid-template-columns: 1fr; max-width: 310px; }
  .home-page .team-grid { grid-template-columns: 1fr; max-width: 420px; }
  .home-page .testimonials-slider { padding-inline: 2.75rem; scroll-padding-inline: 2.75rem; }
  .home-page .review-prev { left: .1rem; }
  .home-page .review-next { right: .1rem; }
  .home-page #caseBook { width: 95vw; height: clamp(720px, 190vw, 780px); min-height: clamp(720px, 190vw, 780px); flex: 0 0 clamp(720px, 190vw, 780px); overflow: hidden; }
  .home-page .book-spine-crease {
    top: 50%;
    right: 8px;
    bottom: auto;
    left: 8px;
    width: auto;
    height: 10px;
    transform: translateY(-50%);
    border-radius: 2px;
    background:
      repeating-linear-gradient(90deg, rgba(236, 225, 202, .035) 0 1px, transparent 1px 4px),
      linear-gradient(180deg,
        rgba(9, 20, 35, .1) 0%,
        rgba(237, 226, 207, .14) 24%,
        rgba(37, 42, 45, .04) 43%,
        rgba(8, 18, 31, .18) 50%,
        rgba(37, 42, 45, .04) 57%,
        rgba(237, 226, 207, .13) 76%,
        rgba(9, 20, 35, .1) 100%),
      linear-gradient(90deg, rgba(9, 21, 39, .18), rgba(92, 79, 59, .12) 10%, rgba(20, 32, 47, .14) 50%, rgba(92, 79, 59, .12) 90%, rgba(9, 21, 39, .18));
  }
  .home-page .book-spine-crease::before {
    top: 50%;
    right: 10px;
    bottom: auto;
    left: 10px;
    width: auto;
    height: 1px;
    transform: translateY(-50%);
    background: rgba(5, 14, 26, .34);
  }
  .home-page .book-spine-crease::after {
    top: 2px;
    right: 4px;
    bottom: auto;
    left: 4px;
    width: auto;
    height: 1px;
  }
  .home-page .case-spread-active,
  .home-page .case-spread-underlay { flex-direction: column; }
  .home-page #caseActiveSpread { width: 100%; min-height: 0; }
  .home-page .case-spread-layer .book-half {
    flex: 0 0 50%;
    width: 100%;
    height: 50%;
    min-height: 0;
    padding: 8px;
    overflow: visible;
  }
  .home-page .case-spread-layer .page-parchment {
    height: 100%;
    min-height: 0;
    padding: 1.05rem 1rem;
    overflow: visible;
  }
  .home-page .case-page-left {
    background-image:
      repeating-linear-gradient(0deg, rgba(103, 86, 56, .012) 0 1px, transparent 1px 4px),
      linear-gradient(180deg, #fdfaf3 0%, #fdfaf3 calc(100% - 12px), rgba(218, 207, 188, .06) calc(100% - 4px), rgba(17, 28, 40, .1) 100%);
    box-shadow: inset 0 -5px 9px rgba(35, 28, 19, .06), inset 0 5px 9px rgba(0, 0, 0, .02);
  }
  .home-page .case-page-right {
    background-image:
      repeating-linear-gradient(0deg, rgba(103, 86, 56, .012) 0 1px, transparent 1px 4px),
      linear-gradient(180deg, rgba(17, 28, 40, .1) 0%, rgba(218, 207, 188, .06) 8px, #fdfaf3 20px, #fdfaf3 100%);
    box-shadow: inset 0 5px 9px rgba(35, 28, 19, .06), inset 0 -5px 9px rgba(0, 0, 0, .02);
  }
  .home-page .case-page-left:has(.book-page-number)::before,
  .home-page .case-page-right:has(.book-page-number)::before,
  .home-page .flipper-face:has(.book-page-number)::before { inset: .5rem; }
  .home-page .flipper-leaf:not(.is-closing-cover):not(.is-closed-cover-leaf) .flipper-back::before { inset: .5rem; }
  .home-page .case-desc { font-size: 1.02rem; line-height: 1.5; }
  .home-page .case-desc + .case-desc { margin-top: .6rem; }
  .home-page .case-title { font-size: 1.12rem; }
  .home-page .case-tag { margin-bottom: .5rem; font-size: 1.12rem; }
  .home-page .case-title { margin-bottom: .4rem; font-size: 1.08rem; }
  .home-page .case-section-heading { margin: .4rem 0 .65rem; font-size: 1.03rem; }
  .home-page .case-result-badge + .case-section-heading { margin: .12rem 0 .8rem; }
  .home-page .case-result-badge { margin-bottom: .6rem; font-size: .78rem; }
  .home-page .case-spread-layer .book-half-left .page-parchment {
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 4px 4px 0 0;
  }
  .home-page .case-spread-layer .book-half-right .page-parchment {
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 0 0 8px 8px;
  }
  .home-page .flipper-leaf { left: 8px; right: 8px; width: auto; }
  .home-page .flipper-face { padding: 0; }
  .home-page .flipper-desktop-page { display: none; }
  .home-page .flipper-mobile-spread {
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    padding: 0;
  }
  .home-page .flipper-mobile-page {
    display: flex;
    flex: 1 1 0;
    min-height: 0;
    flex-direction: column;
    overflow: visible;
    box-sizing: border-box;
    position: relative;
    padding: 1.05rem 1rem;
    background-color: #fdfaf3;
    background-image:
      repeating-linear-gradient(0deg, rgba(103, 86, 56, .012) 0 1px, transparent 1px 4px),
      linear-gradient(180deg, rgba(255, 255, 255, .18), rgba(218, 207, 188, .06));
    border: 1px solid rgba(0, 0, 0, .08);
  }
  .home-page .flipper-mobile-page:first-child {
    border-radius: 4px 4px 0 0;
    box-shadow: inset 0 -6px 10px rgba(35, 28, 19, .06);
  }
  .home-page .flipper-mobile-page:last-child {
    border-radius: 0 0 8px 8px;
    box-shadow: inset 0 6px 10px rgba(35, 28, 19, .06);
  }
  .home-page .open-law-book.is-turning-forward::after,
  .home-page .open-law-book.is-turning-backward::after { display: none; }

  .home-page .open-law-book.is-closing-book,
  .home-page .open-law-book.is-opening-book {
    transform: none;
  }
  .home-page .open-law-book.is-closing-book { animation: bookShellClose .82s ease both; }
  .home-page .open-law-book.is-opening-book { animation: bookShellOpen .82s ease both; }
  .home-page .open-law-book.is-book-closed {
    transform: none;
    background: transparent;
    border-color: transparent;
    box-shadow: none;
  }
  .home-page #caseBook { overflow: visible; }
  .home-page .book-title-page { padding: .95rem .9rem .75rem; }
  .home-page .book-title-logo { width: min(54%, 155px); max-height: 58px; }
  .home-page .book-title-rule { width: 32%; margin: .75rem 0 .85rem; }
  .home-page .book-title-page h1 { font-size: clamp(1.3rem, 5.7vw, 1.65rem); }
  .home-page .book-title-page .book-title-subtitle { margin-top: .6rem; font-size: .88rem; }
  .home-page .book-title-page .book-title-location { padding-top: .7rem; font-size: .54rem; }
  .home-page .book-ribbon { bottom: -14px; width: 11px; height: 28px; }
  .home-page .is-closed-cover-leaf .flipper-mobile-spread,
  .home-page .is-opening-cover-leaf .flipper-mobile-spread {
    gap: 0;
    padding: 0;
  }
  .home-page .is-closed-cover-leaf .flipper-mobile-page,
  .home-page .is-opening-cover-leaf .flipper-mobile-page { display: none; }
  .home-page .is-closed-cover-leaf .flipper-mobile-page:first-child,
  .home-page .is-opening-cover-leaf .flipper-mobile-page:first-child {
    display: flex;
    flex: 1 1 100%;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .home-page .book-back-cover-content { padding: .9rem; gap: 1rem; }
}

@media (max-width: 480px) {
  .home-page .urgent-banner { font-size: .75rem; }
  .home-page .banner-inner { gap: .35rem .6rem; }
  .home-page .hero-contact-quick { flex-direction: column; align-items: center; }
  .home-page .rules-grid { gap: 1rem; }
  .home-page .book-nav-bar { gap: .55rem; }
  .home-page .book-btn { padding: .55rem .75rem; font-size: .78rem; }
  .home-page .custody-note { flex-direction: column; gap: .65rem; padding: 1rem .25rem 0; }
  .home-page .custody-emergency-copy { max-width: 31ch; text-align: center; }
}

.casebook-mobile-instruction,
.book-nav-page-label { display: none; }

/* Keep a two-page landscape spread on compact phones. */
@media (max-width: 768px) and (orientation: landscape) {
  .home-page .open-law-book { flex-direction: row; }
  .home-page #caseBook {
    width: 95vw;
    height: clamp(300px, 76svh, 460px);
    min-height: 300px;
    flex: 0 0 clamp(300px, 76svh, 460px);
    overflow: visible;
  }
  .home-page .case-spread-active,
  .home-page .case-spread-underlay { flex-direction: row; }
  .home-page #caseActiveSpread { width: 100%; height: 100%; min-height: 0; }
  .home-page .case-spread-layer .book-half {
    display: block;
    flex: 1 1 50%;
    width: 50%;
    height: 100%;
    min-height: 0;
    padding: 6px;
    overflow: visible;
  }
  .home-page .case-spread-layer .page-parchment {
    height: 100%;
    min-height: 0;
    padding: .75rem .8rem;
    overflow-y: auto;
  }
  .home-page .book-spine-crease {
    top: 8px;
    right: auto;
    bottom: 8px;
    left: 50%;
    width: 16px;
    height: auto;
    transform: translateX(-50%);
  }
  .home-page .book-spine-crease::before {
    top: 10px;
    right: auto;
    bottom: 10px;
    left: 50%;
    width: 1px;
    height: auto;
    transform: translateX(-50%);
  }
  .home-page .book-spine-crease::after {
    top: 4px;
    right: auto;
    bottom: 4px;
    left: 2px;
    width: 1px;
    height: auto;
  }
  .home-page .book-ribbon { bottom: -14px; left: 50%; width: 11px; height: 28px; }
  .home-page .flipper-desktop-page { display: flex; }
  .home-page .flipper-mobile-spread { display: none; }
  .home-page .flipper-face { padding: .75rem .8rem; }
  .home-page .flipper-leaf { left: 8px; right: 8px; width: calc(50% - 8px); }
}

/* Bio profiles reuse the homepage brand and share one responsive profile layout. */
.bio-profile-page .bio-detail-section {
  max-width: none;
  background: var(--home-paper);
}

.bio-profile-page .bio-detail-grid {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  grid-template-columns: minmax(0, 19fr) minmax(0, 31fr);
  gap: clamp(2rem, 3vw, 3rem);
  align-items: start;
}

@keyframes bioProfilePortraitIn {
  from { opacity: 0; transform: translate3d(-14px, 0, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes bioProfileFadeUp {
  from { opacity: 0; transform: translate3d(0, 12px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

.bio-profile-page .bio-sidebar > .lawyer-photo-wrap {
  animation: bioProfilePortraitIn 580ms cubic-bezier(.22, .68, .28, 1) 20ms both;
}

.bio-profile-page .bio-body-text > h1,
.bio-profile-page .bio-body-text > .bio-subtitle {
  animation: bioProfileFadeUp 480ms cubic-bezier(.22, .68, .28, 1) 60ms both;
}

.bio-profile-page .bio-body-text > h2,
.bio-profile-page .bio-body-text > p:not(.bio-subtitle) {
  animation: bioProfileFadeUp 420ms cubic-bezier(.22, .68, .28, 1) 160ms both;
}

.bio-profile-page .bio-body-text > p:nth-of-type(2) { animation-delay: 200ms; }
.bio-profile-page .bio-body-text > p:nth-of-type(3) { animation-delay: 240ms; }
.bio-profile-page .bio-body-text > p:nth-of-type(4) { animation-delay: 280ms; }
.bio-profile-page .bio-body-text > p:nth-of-type(5) { animation-delay: 320ms; }
.bio-profile-page .bio-body-text > p:nth-of-type(6) { animation-delay: 360ms; }

.bio-profile-page .bio-quick-contact > .legal-aid-badge,
.bio-profile-page .bio-quick-contact > h3 {
  animation: bioProfileFadeUp 360ms cubic-bezier(.22, .68, .28, 1) 200ms both;
}

.bio-profile-page .bio-quick-contact > p {
  animation: bioProfileFadeUp 360ms cubic-bezier(.22, .68, .28, 1) 260ms both;
}

.bio-profile-page .bio-quick-contact > p:nth-of-type(2) { animation-delay: 300ms; }
.bio-profile-page .bio-quick-contact > p:nth-of-type(3) { animation-delay: 340ms; }
.bio-profile-page .bio-quick-contact > p:nth-of-type(4) { animation-delay: 380ms; }

.bio-profile-page .bio-quick-contact > .btn {
  animation: bioProfileFadeUp 360ms cubic-bezier(.22, .68, .28, 1) 420ms both;
}

.bio-profile-page .lawyer-img {
  height: auto;
  aspect-ratio: 1855 / 2400;
}

.bio-profile-page .cassandra-photo-wrap {
  position: relative;
}

.bio-profile-page .cassandra-photo-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, .045);
  -webkit-mask-image: radial-gradient(ellipse 22% 15% at 50% 25%, #000 55%, transparent 100%);
  mask-image: radial-gradient(ellipse 22% 15% at 50% 25%, #000 55%, transparent 100%);
  pointer-events: none;
}

.bio-profile-page .bio-sidebar {
  position: static;
  width: 100%;
  max-width: none;
  min-width: 0;
}

.bio-profile-page .bio-quick-contact {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid var(--home-line);
  border-top: 2px solid var(--home-gold);
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(11, 27, 51, .055);
}

.bio-profile-page .bio-quick-contact h3,
.bio-profile-page .bio-body-text h1,
.bio-profile-page .bio-body-text h2 {
  color: var(--home-navy);
  font-family: var(--home-serif);
}

.bio-profile-page .bio-quick-contact h3 {
  text-wrap: balance;
  line-height: 1.25;
}

.bio-profile-page .legal-aid-badge { align-self: flex-start; }

.bio-profile-page .bio-quick-contact a:not(.btn) {
  color: var(--home-navy);
  text-decoration-color: var(--home-gold);
  text-underline-offset: .18em;
}

.bio-profile-page .bio-quick-contact a[href^="tel:"] { white-space: nowrap; }
.bio-profile-page .bio-quick-contact a[href^="mailto:"] { overflow-wrap: anywhere; }

.bio-profile-page .bio-quick-contact a:not(.btn):hover { color: #806832; }
.bio-profile-page .bio-quick-contact .btn-primary {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: auto;
  max-width: 100%;
  margin-top: 1rem;
  padding: .78rem 1.2rem;
  color: #fff !important;
  line-height: 1.25;
  text-align: center;
  white-space: nowrap;
}

.bio-profile-page .bio-body-text {
  min-width: 0;
  padding: clamp(1.75rem, 3vw, 2.75rem);
  background: #fff;
  border: 1px solid var(--home-line);
  border-top: 2px solid var(--home-gold);
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(11, 27, 51, .05);
}

.bio-profile-page .bio-body-text .back-link {
  display: inline-block;
  margin-bottom: .85rem;
  color: #806832;
}

.bio-profile-page .bio-body-text .back-link:hover,
.bio-profile-page .bio-body-text .back-link:focus-visible { color: var(--home-navy); }

.bio-profile-page .bio-body-text h1 {
  margin: 0 0 .3rem;
  font-size: clamp(2.25rem, 3.5vw, 2.85rem);
  font-weight: 500;
  line-height: 1.1;
}

.bio-profile-page .bio-body-text > .bio-subtitle {
  margin: 0 0 1.2rem;
  color: #806832;
  font-size: 1.12rem;
  font-weight: 600;
}

.bio-profile-page .bio-body-text h2 {
  margin-bottom: 1.25rem;
  font-size: clamp(1.8rem, 2.7vw, 2.25rem);
  font-weight: 500;
  line-height: 1.2;
}

.bio-profile-page .bio-body-text p {
  color: var(--home-ink);
  font-size: 1.05rem;
  line-height: 1.75;
  text-align: left;
}

.bio-profile-page .bio-body-text > p:last-child { margin-bottom: 0; }

.bio-profile-page .bio-media-section {
  width: min(100%, 1180px);
  margin: 2rem auto 0;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: #fff;
  text-align: center;
}

.bio-profile-page .bio-media-group h2 {
  margin: 0 0 1rem;
  color: var(--home-navy);
  font-family: var(--home-serif);
  font-size: clamp(1.45rem, 2.3vw, 1.8rem);
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
}

.bio-profile-page .bio-media-group p {
  margin: -.25rem 0 1rem;
  color: var(--home-muted);
  font-size: 1rem;
  line-height: 1.6;
  text-align: center;
}

.bio-profile-page .bio-media-names {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: center;
  justify-items: center;
  gap: 1.15rem 1.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bio-profile-page .bio-media-names li {
  display: block;
  min-width: 0;
  text-align: center;
}

.bio-profile-page .bio-media-wordmark {
  display: grid;
  min-height: 3.4rem;
  place-items: center;
  padding: .2rem .35rem;
  color: #806832;
  font-family: var(--home-serif);
  font-size: clamp(1.02rem, 1.35vw, 1.22rem);
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1.25;
  text-align: center;
  text-wrap: balance;
}

.bio-profile-page .bio-radio-group {
  width: min(100%, 900px);
  margin: 1.75rem auto 0;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(198, 164, 90, .55);
}

.bio-profile-page .bio-radio-names {
  max-width: 820px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 auto;
}

@media (max-width: 1024px) {
  .bio-profile-page .bio-media-names { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
  .bio-profile-page .bio-media-section { padding: 1.25rem 1rem; }
  .bio-profile-page .bio-media-names,
  .bio-profile-page .bio-radio-names {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem .75rem;
    justify-items: center;
  }

  .bio-profile-page .bio-media-names li,
  .bio-profile-page .bio-radio-names li { text-align: center; }

}

@media (min-width: 821px) and (max-width: 1024px) {
  .bio-profile-page .bio-detail-grid {
    grid-template-columns: minmax(290px, 2fr) minmax(0, 3fr);
    gap: 1.75rem;
  }

  .bio-profile-page .bio-body-text { padding: 1.75rem; }
}

@media (max-width: 820px) {
  .bio-profile-page .bio-detail-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }

  .bio-profile-page .bio-sidebar {
    max-width: 430px;
    margin: 0 auto .5rem;
  }

  .bio-profile-page .bio-body-text { width: 100%; }
}

@media (max-width: 768px) {
  .bio-profile-page .bio-detail-section { padding: 3.5rem 1.25rem; }
  .bio-profile-page .bio-body-text { padding: 1.5rem 1.25rem; }
  .bio-profile-page .bio-body-text p { font-size: 1rem; line-height: 1.7; }
}

@media (prefers-reduced-motion: reduce) {
  .home-page *,
  .home-page *::before,
  .home-page *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .home-page .hero-portrait {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .bio-profile-page .bio-sidebar > .lawyer-photo-wrap,
  .bio-profile-page .bio-body-text > h1,
  .bio-profile-page .bio-body-text > .bio-subtitle,
  .bio-profile-page .bio-body-text > h2,
  .bio-profile-page .bio-body-text > p:not(.bio-subtitle),
  .bio-profile-page .bio-quick-contact > .legal-aid-badge,
  .bio-profile-page .bio-quick-contact > h3,
  .bio-profile-page .bio-quick-contact > p,
  .bio-profile-page .bio-quick-contact > .btn {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .home-page .custody-note .siren-beacon,
  .home-page .custody-note .banner-phone {
    animation: none !important;
    transform: none !important;
    filter: none !important;
  }
}

/* Homepage phone presentation. Desktop rules above remain unchanged. */
.home-page .nav-menu-panel { display: contents; }
.home-page .nav-home-mobile { display: none; }
.home-page .nav-left { order: 0; }
.home-page .brand-center { order: 1; }
.home-page .nav-right { order: 2; }

@media (max-width: 1024px) {
  html.mobile-nav-open { overflow: hidden; }
  .home-page .navbar {
    position: sticky;
    top: 0;
    display: block;
    height: 70px;
    min-height: 70px;
    padding: 0 max(.75rem, env(safe-area-inset-right)) 0 max(.75rem, env(safe-area-inset-left));
    isolation: isolate;
  }

  .home-page .hamburger-btn {
    position: absolute;
    top: 50%;
    left: max(.65rem, env(safe-area-inset-left));
    z-index: 1010;
    display: flex;
    width: 48px;
    height: 48px;
    padding: 15px 12px;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(198, 164, 90, .45);
    border-radius: 4px;
    background: rgba(255, 255, 255, .035);
    transform: translateY(-50%);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .home-page .hamburger-btn:focus-visible {
    outline: 2px solid var(--home-gold-light);
    outline-offset: 2px;
  }

  .home-page .hamburger-line { width: 22px; height: 2px; flex: 0 0 2px; border-radius: 2px; }
  .home-page .navbar.is-menu-open .hamburger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .home-page .navbar.is-menu-open .hamburger-line:nth-child(2) { opacity: 0; }
  .home-page .navbar.is-menu-open .hamburger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .home-page .nav-container {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1005;
    display: flex;
    width: 100%;
    max-width: none;
    max-height: 0;
    margin: 0;
    padding: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    overflow: visible;
    background: transparent;
    border: 0;
    box-shadow: none;
    transition: background-color .24s ease, box-shadow .24s ease, max-height .3s ease;
  }

  .home-page .brand-center {
    position: absolute;
    top: -61px;
    left: 50%;
    z-index: 1011;
    width: auto;
    height: 52px;
    padding: 0;
    transform: translateX(-50%);
  }

  .home-page .brand-logo {
    width: clamp(94px, 26vw, 112px);
    max-height: 42px;
    animation: none;
    opacity: 1;
    transform: none;
  }

  .home-page .brand-center:hover .brand-logo { transform: none; }

  /* Keep the existing Instagram and payment links in the closed mobile header row. */
  .home-page .navbar:not(.is-menu-open) .nav-menu-panel {
    top: -70px;
    height: 70px;
    max-height: none;
    overflow: visible;
    pointer-events: none;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  .home-page .navbar:not(.is-menu-open) .nav-links {
    max-height: none;
    min-height: 0;
    padding: 0;
    overflow: visible;
    visibility: visible;
    opacity: 1;
    transform: none;
  }
  .home-page .navbar:not(.is-menu-open) .nav-links > li { display: none; }
  .home-page .navbar:not(.is-menu-open) .nav-right > .nav-mobile-header-instagram,
  .home-page .navbar:not(.is-menu-open) .nav-right > .nav-mobile-header-payment { display: block; }
  .home-page .navbar:not(.is-menu-open) .nav-mobile-header-instagram .nav-ig-link {
    position: absolute;
    top: 50%;
    left: calc(max(.65rem, env(safe-area-inset-left)) + 48px + .25rem);
    z-index: 1012;
    display: inline-flex;
    width: clamp(70px, 18.8vw, 82px);
    min-height: 42px;
    padding: .2rem .15rem;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(198, 164, 90, .5);
    border-radius: 4px;
    background: rgba(255, 255, 255, .035);
    color: #fff !important;
    font-size: clamp(.62rem, 2.5vw, .7rem);
    line-height: 1.1;
    text-align: center;
    white-space: nowrap;
    transform: translateY(-50%);
    pointer-events: auto;
  }
  .home-page .navbar:not(.is-menu-open) .nav-mobile-header-payment .nav-pay-link {
    position: absolute;
    top: 50%;
    right: max(.75rem, env(safe-area-inset-right));
    z-index: 1012;
    width: clamp(106px, 30vw, 128px);
    min-height: 42px;
    height: 42px;
    margin: 0;
    padding: .25rem .35rem;
    font-size: clamp(.64rem, 2.8vw, .72rem);
    line-height: 1.1;
    transform: translateY(-50%);
    pointer-events: auto;
  }
  .home-page .navbar.is-menu-open .nav-mobile-header-instagram .nav-ig-link,
  .home-page .navbar.is-menu-open .nav-mobile-header-payment .nav-pay-link {
    position: static;
    transform: none;
  }

  .home-page .nav-links {
    position: static;
    display: flex;
    width: 100%;
    max-height: 0;
    min-height: 0;
    padding: 0 max(1rem, env(safe-area-inset-left));
    flex: 0 0 auto;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    background: transparent;
    border: 0;
    transform: translateY(-6px);
    transition: max-height .32s ease, opacity .2s ease, transform .24s ease, visibility .24s;
  }

  .home-page .nav-links li { width: 100%; min-width: 0; }
  .home-page .nav-links a {
    display: flex;
    width: 100%;
    min-height: 46px;
    padding: .68rem .8rem;
    align-items: center;
    white-space: normal;
    font-size: .98rem;
    line-height: 1.35;
  }

  .home-page .nav-links > li + li { border-top: 1px solid rgba(223, 201, 142, .14); }
  .home-page .nav-left > li:last-child { border-bottom: 1px solid rgba(223, 201, 142, .14); }
  .home-page .nav-links .nav-pay-link,
  .home-page .nav-links .nav-btn {
    width: 100%;
    min-height: 46px;
    height: auto;
    margin-top: .35rem;
    padding: .7rem .8rem;
    white-space: normal;
  }

  .home-page .nav-dropdown { width: 100%; }
  .home-page .nav-dropdown > .dropdown-toggle { justify-content: space-between; }
  .home-page .dropdown-menu {
    position: static;
    display: block;
    width: 100%;
    min-width: 0;
    max-height: none;
    padding: 0 0 .45rem .75rem;
    overflow: visible;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  .home-page .dropdown-menu li a {
    min-height: 42px;
    padding: .55rem .8rem;
    color: #e4e8ef;
    font-size: .92rem;
  }

  .home-page .navbar.is-menu-open .nav-container {
    max-height: calc(100dvh - 145px - env(safe-area-inset-bottom));
    padding: .55rem 0 .85rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--home-navy);
    border-bottom: 2px solid var(--home-gold);
    box-shadow: 0 16px 28px rgba(4, 12, 25, .28);
  }

  .home-page .navbar.is-menu-open .nav-links {
    max-height: 620px;
    padding-block: .15rem;
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .home-page .navbar.is-menu-open .nav-right { padding-top: .3rem; }
}

/* Targeted corrections for phone navigation, hero, and paired casebook pages. */
@media (max-width: 1024px) {
  .home-page .nav-container {
    top: 100%;
    height: 0;
    max-height: none;
    overflow: visible;
    pointer-events: none;
  }
  .home-page .brand-center { display: flex; }
  .home-page .nav-menu-panel {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    pointer-events: none;
    background: var(--home-navy);
    border: 0 solid var(--home-gold);
    box-shadow: none;
    transition: max-height .32s ease, box-shadow .24s ease;
  }
  .home-page .navbar.is-menu-open .nav-menu-panel {
    max-height: calc(100dvh - 145px - env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
    pointer-events: auto;
    border-bottom-width: 2px;
    box-shadow: 0 16px 28px rgba(4, 12, 25, .28);
  }
  .home-page .navbar.is-menu-open .nav-container { max-height: none; padding: 0; overflow: visible; background: transparent; box-shadow: none; }
  .home-page .hamburger-btn { touch-action: manipulation; }
}

@media (max-width: 600px) and (orientation: portrait) {
  .home-page #cases { scroll-margin-top: 78px; }
  .home-page .nav-home-mobile { display: list-item; }
  .home-page .casebook-mobile-instruction {
    display: block;
    max-width: 34rem;
    margin: -.35rem auto .8rem;
    padding: 0 .5rem;
    color: #675a41;
    font-family: var(--home-serif, Georgia, serif);
    font-size: .82rem;
    font-style: italic;
    line-height: 1.4;
    text-align: center;
  }
  .home-page .book-nav-bar { width: min(96vw, 760px); gap: .45rem; }
  .home-page .book-nav-bar .book-btn { min-width: 0; min-height: 46px; padding: .5rem .4rem; font-size: .8rem; }
  .home-page .book-nav-case-label { display: inline; }
  .home-page .book-nav-page-label { display: none; }
  .home-page .book-page-count { min-width: 0; flex: 0 0 auto; font-size: .7rem; }
}

@media (prefers-reduced-motion: reduce) {
  .home-page .navbar.is-menu-open .nav-menu-panel,
  .home-page .nav-menu-panel,
  .home-page .navbar.is-menu-open .nav-links { transition-duration: .01ms; }
}

@media (max-width: 768px) {
  .home-page .section {
    padding: 3rem max(1rem, env(safe-area-inset-right)) 3.2rem max(1rem, env(safe-area-inset-left));
  }

  .home-page .section-header { margin-bottom: 1.8rem; }
  .home-page .section-tag { font-size: .68rem; letter-spacing: .13em; }
  .home-page .section-header h2,
  .home-page .about-text h2,
  .home-page .arrested-box h2 {
    font-size: clamp(1.7rem, 7.2vw, 2.15rem);
    line-height: 1.2;
  }
  .home-page .section-header p { font-size: .96rem; line-height: 1.55; }

  .home-page #about { padding-top: 2.7rem; padding-bottom: 3rem; }
  .home-page .about-grid { grid-template-columns: minmax(0, 1fr); gap: 1.35rem; }
  .home-page #about .lawyer-photo-wrap {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    border: 0;
    border-radius: 2px;
    box-shadow: none;
  }
  .home-page #about .about-team-img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
    object-position: center;
  }
  .home-page .about-text h2 { margin-bottom: .85rem; }
  .home-page .about-text p { margin-bottom: .85rem; font-size: .98rem; line-height: 1.65; text-align: left; }
  .home-page .stats-grid {
    width: 100%;
    max-width: none;
    margin-top: 1.1rem;
    padding-top: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .5rem;
  }
  .home-page .stat-box { min-height: 90px; padding: .55rem .3rem; border-left-width: 1px; }
  .home-page .stat-num { font-size: clamp(1rem, 4.7vw, 1.28rem); line-height: 1.2; }
  .home-page .stat-lbl { font-size: clamp(.62rem, 2.8vw, .72rem); line-height: 1.35; }

  .home-page .arrested-section { padding-top: 2.2rem; padding-bottom: 2.2rem; }
  .home-page .arrested-box { padding: 1.2rem; border-left-width: 3px; border-radius: 4px; }
  .home-page .arrested-box h2 { margin-bottom: .7rem; }
  .home-page .arrested-intro { margin-bottom: 1.15rem; font-size: .97rem; line-height: 1.55; }
  .home-page .rules-grid { grid-template-columns: minmax(0, 1fr); gap: .8rem; }
  .home-page .rule-card { padding: 1rem; }
  .home-page .rule-num { width: 30px; height: 30px; margin-bottom: .7rem; }
  .home-page .rule-card h3 { margin-bottom: .55rem; font-size: 1.08rem; line-height: 1.3; }
  .home-page .rule-card p { font-size: .94rem; line-height: 1.55; }
  .home-page .quote-callout { padding: .75rem .85rem; font-size: .98rem; line-height: 1.45; overflow-wrap: anywhere; }
  .home-page .custody-note { margin-top: 1.1rem; padding-top: 1rem; gap: .5rem; }
  .home-page .custody-emergency-copy { font-size: .96rem; }
  .home-page .custody-note .custody-phone { display: inline-flex; min-height: 44px; align-items: center; padding-inline: .75rem; font-size: 1rem; }

  .home-page #practice-areas { padding: 3rem max(1rem, env(safe-area-inset-right)) 3.2rem max(1rem, env(safe-area-inset-left)); }
  .home-page #practice-areas .section-header { margin-bottom: 1.7rem; }
  .home-page #practice-areas .practice-areas-grid { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; gap: .9rem; }
  .home-page #practice-areas .practice-card { min-width: 0; min-height: 0; padding: 1.05rem 1.1rem; }
  .home-page #practice-areas .practice-icon-wrapper { width: 44px; height: 44px; margin-bottom: .65rem; }
  .home-page #practice-areas .practice-svg { width: 24px; height: 24px; }
  .home-page #practice-areas .practice-card h3 { margin-bottom: .45rem; font-size: 1.1rem; line-height: 1.28; }
  .home-page #practice-areas .practice-lead { margin-bottom: .65rem; font-size: .94rem; line-height: 1.52; }
  .home-page #practice-areas .practice-sublist { margin-top: .15rem; padding-top: .6rem; }
  .home-page #practice-areas .practice-sublist li { margin-bottom: .25rem; font-size: .86rem; line-height: 1.45; }

  .home-page .fees-grid { grid-template-columns: minmax(0, 1fr); gap: .9rem; width: 100%; }
  .home-page .fee-card { min-width: 0; padding: 1.15rem; }
  .home-page .fee-card h3 { margin-bottom: .65rem; font-size: 1.2rem; line-height: 1.3; }
  .home-page .fee-card p { margin-bottom: .75rem; font-size: .95rem; line-height: 1.58; }
  .home-page .fee-note { font-size: .88rem !important; }

  .home-page #team { padding-top: 3rem; padding-bottom: 3rem; }
  .home-page .team-grid { width: 100%; max-width: 430px; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .home-page .team-card { min-width: 0; }
  .home-page .team-photo-frame { width: 100%; height: auto; aspect-ratio: 1855 / 2400; }
  .home-page .team-img { display: block; width: 100%; height: 100%; object-fit: cover; }
  .home-page .team-info { padding: 1rem 1.1rem 1.1rem; }
  .home-page .team-info h3 { margin-bottom: .15rem; font-size: 1.28rem; }
  .home-page .team-role { margin-bottom: .45rem; font-size: .85rem; }
  .home-page .team-info p { margin-bottom: .75rem; font-size: .93rem; line-height: 1.55; }
  .home-page .read-bio-btn { display: inline-flex; width: fit-content; min-height: 44px; margin: 0; align-items: center; font-size: .92rem; }
  .home-page .team-name-link { display: inline-block; padding-block: .15rem; }

  .home-page .testimonials-slider-wrapper { width: 100%; max-width: 100%; padding-inline: 2.35rem; overflow: visible; }
  .home-page .testimonials-slider {
    width: 100%;
    min-width: 0;
    padding: .85rem 0;
    gap: .75rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 0;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
  }
  .home-page .slide-card { min-width: 100%; max-width: 100%; flex: 0 0 100%; padding: 1.15rem; scroll-snap-align: center; }
  .home-page .quote { margin-bottom: .85rem; font-size: .94rem; line-height: 1.58; }
  .home-page .review-scroll-btn { width: 42px; height: 42px; top: 50%; }
  .home-page .review-prev { left: .05rem; }
  .home-page .review-next { right: .05rem; }

  .home-page .social-promo-box { margin-top: 1.5rem; padding: 1.2rem; flex-direction: column; align-items: stretch; gap: .9rem; text-align: center; }
  .home-page .social-promo-content h3 { font-size: 1.18rem; }
  .home-page .social-promo-content p { font-size: .91rem; line-height: 1.5; }
  .home-page .social-promo-buttons { flex-direction: column; gap: .55rem; }
  .home-page .social-promo-buttons .btn-social { width: 100%; min-height: 46px; justify-content: center; padding: .65rem .75rem; text-align: center; }

  .home-page .contact-wrapper { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .home-page .contact-details h3 { margin-bottom: .85rem; font-size: 1.3rem; }
  .home-page .contact-item { margin-bottom: .65rem; font-size: .94rem; line-height: 1.5; overflow-wrap: anywhere; }
  .home-page .contact-item a { overflow-wrap: anywhere; }
  .home-page .address-card { margin-top: 1rem; padding: 1rem; }
  .home-page .hours { font-size: .86rem; line-height: 1.5; }
  .home-page .map-container { margin-top: 1rem; }
  .home-page .map-container iframe { height: 205px; }
  .home-page .contact-form { min-width: 0; padding: 1.1rem; gap: .9rem; }
  .home-page .form-row { grid-template-columns: minmax(0, 1fr); gap: .8rem; }
  .home-page .form-group { min-width: 0; gap: .3rem; }
  .home-page .form-group label { font-size: .88rem; }
  .home-page .form-group input,
  .home-page .form-group select,
  .home-page .form-group textarea { width: 100%; min-width: 0; min-height: 46px; padding: .7rem .75rem; font-size: 16px; }
  .home-page .form-group textarea { min-height: 116px; resize: vertical; }
  .home-page .contact-turnstile { width: 100%; max-width: 100%; overflow: hidden; }
  .home-page .contact-form .btn { min-height: 48px; padding: .8rem 1rem; font-size: .92rem; }

  .home-page .footer { padding: 2.2rem max(1rem, env(safe-area-inset-right)) 2.2rem max(1rem, env(safe-area-inset-left)); }
  .home-page .footer-socials { gap: .45rem .65rem; font-size: .84rem; line-height: 1.5; }
  .home-page .footer-socials a { overflow-wrap: anywhere; }
  .home-page .legal-advice-disclaimer { text-align: left; }
}

@media (max-width: 390px) {
  .home-page .section-header h2,
  .home-page .about-text h2,
  .home-page .arrested-box h2 { font-size: clamp(1.62rem, 7.3vw, 1.9rem); }
  .home-page .stat-box { min-height: 86px; }
  .home-page .team-info { padding-inline: .95rem; }
}

@media (prefers-reduced-motion: reduce) {
  .home-page .nav-container,
  .home-page .nav-links,
  .home-page .hamburger-line { transition-duration: .01ms !important; }
}

/* Compact phone hero: text and transparent portrait share the first row. */
@media (max-width: 768px) {
  .home-page .hero {
    min-height: 0;
    padding: .7rem 0 .45rem max(1rem, env(safe-area-inset-left));
  }
  .home-page .hero-layout {
    position: relative;
    display: grid;
    width: 100%;
    min-height: clamp(20rem, 84vw, 22.5rem);
    margin: 0;
    grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: clamp(.35rem, 2vw, .65rem);
    row-gap: .3rem;
  }
  .home-page .hero-copy { display: contents; }
  .home-page .hero-content {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    max-width: none;
    margin: 0;
    text-align: left;
  }
  .home-page .hero-swoop-title { max-width: none; margin: 0 0 .25rem; font-size: clamp(1.05rem, 4.25vw, 1.28rem); line-height: 1.12; text-wrap: initial; }
  .home-page .hero-intro-text { max-width: none; margin: 0 0 .35rem; font-size: clamp(.72rem, 2.8vw, .79rem); line-height: 1.38; }
  .home-page .hero-actions { display: grid; width: 100%; max-width: none; margin: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: .28rem; }
  .home-page .hero-actions .btn { min-width: 0; width: 100%; height: auto; min-height: 42px; padding: .3rem .12rem; font-size: clamp(.6rem, 2.5vw, .68rem); line-height: 1.08; text-align: center; white-space: normal; }
  .home-page .hero-portrait-wrap { position: absolute; right: 0; bottom: -.45rem; z-index: 0; width: clamp(205px, 55vw, 236px); height: auto; max-height: none; margin: 0; overflow: visible; }
  .home-page .hero-portrait {
    display: block;
    width: 100%;
    height: auto;
    animation-duration: 1.2s;
    animation-delay: .65s;
  }
  .home-page .hero-support { grid-column: 1 / -1; grid-row: 2; width: 100%; max-width: none; margin: 0 auto; text-align: center; }
  .home-page .hero-support .hero-socials {
    display: grid;
    grid-template-columns: auto repeat(2, minmax(0, 1fr));
    align-items: center;
    justify-content: stretch;
    margin-top: 0;
    gap: .22rem;
    font-size: .72rem;
  }
  .home-page .hero-support .hero-social-label { grid-column: auto; white-space: nowrap; font-size: clamp(.56rem, 2.1vw, .62rem); }
  .home-page .hero-support .hero-social-label-desktop { display: none; }
  .home-page .hero-support .hero-social-label-mobile { display: inline; }
  .home-page .hero-support .hero-social-link {
    min-width: 0;
    min-height: 36px;
    justify-content: center;
    gap: .15rem;
    padding: .18rem .12rem;
    font-size: clamp(.52rem, 2vw, .6rem);
    white-space: nowrap;
  }
  .home-page .hero-support .social-svg { width: 12px; height: 12px; flex: 0 0 auto; }
  .home-page .hero-support { position: relative; z-index: 1; padding-right: calc(clamp(205px, 55vw, 236px) * .82 + .25rem); text-align: left; }
  .home-page .hero-support .hero-contact-quick {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    margin-top: .38rem;
    gap: .25rem;
    font-size: clamp(.59rem, 2.3vw, .64rem);
    line-height: 1.2;
  }
  .home-page .hero-support .hero-contact-quick > span:nth-child(2) { display: none; }
  .home-page .hero-support .hero-contact-quick .hero-contact-item { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; gap: .1rem; }
  .home-page .hero-support .hero-contact-quick .hero-contact-after-hours .hero-contact-label { font-size: .6rem; }
  .home-page .hero-support .hero-contact-quick a { display: block; width: fit-content; font-size: .62rem; white-space: nowrap; }
}

@media (max-width: 390px) {
  .home-page .hero { padding-top: .6rem; }
  .home-page .hero-layout { grid-template-columns: minmax(0, 1.28fr) minmax(0, 1fr); }
}

@media (max-width: 340px) {
  .home-page .hero-actions .btn { font-size: .57rem; }
  .home-page .hero-support .hero-socials { grid-template-columns: auto repeat(2, minmax(0, 1fr)); }
  .home-page .hero-support .hero-social-link { justify-content: center; padding-inline: .08rem; }
}

@media (max-width: 600px) and (orientation: portrait) {
  .home-page .nav-container { height: 0; max-height: none; overflow: visible; pointer-events: none; }
  .home-page .brand-center { pointer-events: auto; }
  .home-page .navbar.is-menu-open .nav-menu-panel { max-height: calc(100dvh - 145px - env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain; pointer-events: auto; }
  .home-page .navbar.is-menu-open .nav-container { height: 0; max-height: none; padding: 0; overflow: visible; }
}

/* Portrait casebook: proportioned spread with a single leaf hinged at the spine. */
@media (max-width: 600px) and (orientation: portrait) {
  .home-page .book-stage {
    width: calc(100% + 2rem);
    margin: .8rem -1rem 1.25rem;
    padding: 0;
    box-sizing: border-box;
  }
  .home-page #caseBook {
    width: 100%;
    max-width: 760px;
    height: clamp(340px, 80vw, 370px);
    min-height: 340px;
    flex: 0 0 clamp(340px, 80vw, 370px);
    overflow: visible;
    perspective: 1350px;
    perspective-origin: 50% 50%;
  }
  .home-page .case-spread-active,
  .home-page .case-spread-underlay { flex-direction: row; }
  .home-page #caseActiveSpread { width: 100%; height: 100%; min-height: 0; visibility: visible; }
  .home-page .case-spread-underlay { z-index: 1; }
  .home-page .case-spread-layer .book-half {
    display: block;
    flex: 0 0 50%;
    width: 50%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    padding: 5px;
    overflow: hidden;
    box-sizing: border-box;
  }
  .home-page .case-spread-layer .page-parchment {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: .45rem .42rem 2rem;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    touch-action: pan-y;
    box-sizing: border-box;
    border: 1px solid rgba(166, 133, 68, .6);
    border-radius: 3px;
    scrollbar-width: thin;
    scrollbar-color: rgba(166, 133, 68, .38) transparent;
  }
  .home-page .case-page-left {
    background-image: repeating-linear-gradient(0deg, rgba(103, 86, 56, .012) 0 1px, transparent 1px 4px), linear-gradient(90deg, #fdfaf3 0%, #fdfaf3 calc(100% - 12px), rgba(68, 58, 43, .045) calc(100% - 4px), rgba(17, 28, 40, .08) 100%);
  }
  .home-page .case-page-right {
    background-image: repeating-linear-gradient(0deg, rgba(103, 86, 56, .012) 0 1px, transparent 1px 4px), linear-gradient(270deg, #fdfaf3 0%, #fdfaf3 calc(100% - 12px), rgba(68, 58, 43, .045) calc(100% - 4px), rgba(17, 28, 40, .08) 100%);
  }
  .home-page .book-spine-crease {
    top: 6px;
    right: auto;
    bottom: 6px;
    left: 50%;
    width: 13px;
    height: auto;
    transform: translateX(-50%);
    background: linear-gradient(90deg, rgba(9,20,35,.16), rgba(237,226,207,.2) 30%, rgba(8,18,31,.22) 50%, rgba(237,226,207,.16) 72%, rgba(9,20,35,.14));
    box-shadow: inset 0 0 2px rgba(0,0,0,.18), 0 0 3px rgba(5,12,23,.1);
  }
  .home-page .book-spine-crease::before { top: 7px; right: auto; bottom: 7px; left: 50%; width: 1px; height: auto; transform: translateX(-50%); }
  .home-page .book-spine-crease::after { top: 3px; right: auto; bottom: 3px; left: 2px; width: 1px; height: auto; }
  .home-page .book-ribbon { bottom: -12px; left: 50%; width: 9px; height: 25px; }
  .home-page .case-tag { margin-bottom: .24rem; font-size: clamp(.71rem, 3vw, .78rem); line-height: 1.16; }
  .home-page .case-title { margin: 0 0 .22rem; font-size: clamp(.62rem, 2.6vw, .69rem); line-height: 1.13; overflow-wrap: anywhere; }
  .home-page .case-section-heading { margin: .18rem 0 .24rem; font-size: clamp(.57rem, 2.4vw, .63rem); line-height: 1.16; overflow-wrap: anywhere; }
  .home-page .case-desc { font-size: clamp(.58rem, 2.4vw, .62rem); line-height: 1.23; overflow-wrap: anywhere; }
  .home-page .case-desc + .case-desc { margin-top: .2rem; }
  .home-page .case-result-badge { display: inline-block; max-width: 100%; margin: 0 0 .3rem; padding: .24rem .34rem; font-size: clamp(.61rem, 2.55vw, .68rem); line-height: 1.18; text-align: left; white-space: normal; overflow-wrap: anywhere; }
  .home-page .case-page-right .case-result-badge { align-self: flex-start; }
  .home-page .book-page-number { bottom: .4rem; z-index: 2; font-size: .64rem; }
  .home-page .book-page-number-left { left: .55rem; }
  .home-page .book-page-number-right { right: .55rem; }
  .home-page .book-title-page { min-height: 100%; justify-content: center; padding: .7rem .48rem; border: 1px solid rgba(166, 133, 68, .58); border-radius: 3px; }
  .home-page .book-title-logo { width: min(88%, 140px); max-height: 48px; }
  .home-page .book-title-page h1 { font-size: clamp(.82rem, 3.8vw, .98rem); line-height: 1.2; }
  .home-page .book-title-page .book-title-subtitle { margin-top: .5rem; font-size: .7rem; line-height: 1.35; }
  .home-page .book-title-page .book-title-location { padding-top: .55rem; font-size: .46rem; line-height: 1.3; overflow-wrap: anywhere; }

  .home-page #caseBook .flipper-leaf {
    top: 5px;
    right: 5px;
    bottom: 5px;
    left: 50%;
    width: auto;
    display: none;
    transform-origin: left center;
    transform-style: preserve-3d;
    z-index: 50;
  }
  .home-page #caseBook .flipper-leaf.is-turning-forward,
  .home-page #caseBook .flipper-leaf.is-turning-backward,
  .home-page #caseBook .flipper-leaf.is-closed-cover-leaf,
  .home-page #caseBook .flipper-leaf.is-opening-cover-leaf { display: block; }
  .home-page #caseBook .flipper-leaf.is-turning-backward { right: 50%; left: 5px; width: auto; transform-origin: right center; }
  .home-page #caseBook .flipper-face {
    padding: 0;
    overflow: hidden;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }
  .home-page #caseBook .flipper-front { transform: translateZ(.5px); }
  .home-page #caseBook .flipper-back { transform: rotateY(180deg) translateZ(.5px); }
  .home-page #caseBook .flipper-desktop-page {
    position: relative;
    display: flex;
    width: 100%;
    height: 100%;
    min-height: 0;
    flex: 1 1 auto;
    flex-direction: column;
    padding: .62rem .54rem 2.15rem;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    touch-action: pan-y;
    box-sizing: border-box;
    border: 1px solid rgba(166, 133, 68, .6);
    border-radius: 3px;
    background-color: #fdfaf3;
    background-image: repeating-linear-gradient(0deg, rgba(103,86,56,.012) 0 1px, transparent 1px 4px), linear-gradient(180deg, rgba(255,255,255,.18), rgba(218,207,188,.06));
    box-shadow: inset 0 0 14px rgba(35, 28, 19, .04);
    scrollbar-width: thin;
  }
  .home-page #caseBook .flipper-mobile-spread { display: none; }
  .home-page #caseBook.is-portrait-page-turning.is-turning-forward #bookRightHalf,
  .home-page #caseBook.is-portrait-page-turning.is-closing-book #bookRightHalf { visibility: hidden; }
  .home-page #caseBook.is-portrait-page-turning.is-turning-backward #bookLeftHalf { visibility: hidden; }
  .home-page #caseBook .flipper-leaf.is-closed-cover-leaf,
  .home-page #caseBook .flipper-leaf.is-opening-cover-leaf { left: 5px; right: 5px; width: auto; transform-origin: left center; }
  .home-page #caseBook .flipper-leaf.is-closed-cover-leaf { left: 5px; right: 5px; width: auto; transform: none; transform-origin: left center; }
  .home-page #caseBook .is-closed-cover-leaf .flipper-front { display: none; }
  .home-page #caseBook .is-closed-cover-leaf .flipper-back { display: flex; transform: none; border: 0; background: transparent; box-shadow: 0 9px 18px rgba(4,12,25,.24); }
  .home-page #caseBook .is-closed-cover-leaf #flipperBackPage { padding: 0; border: 0; background: transparent; box-shadow: none; }
  .home-page .book-nav-case-label { display: inline; }
  .home-page .book-nav-page-label { display: none; }
}
