.law-hero {
  --hero-shade: #191411;
  position: relative;
  display: grid;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(510px, 42vw, 675px);
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
  background: var(--hero-shade);
}
[data-theme="navy"] .law-hero { --hero-shade: #111c2a; }
.hero-scene { position: absolute; z-index: -1; inset: 0; overflow: hidden; }
.hero-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 29%, #15100d36 48%, var(--hero-shade) 81%),
    linear-gradient(0deg, #0a080666, transparent 27%);
}
.hero-film {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 54%;
}
.hero-light-sweep {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 22% 51% at 23% 37%, #f7c3864d, transparent 86%);
  mix-blend-mode: screen;
  opacity: 0;
  animation: hero-light 20s ease-in-out infinite;
}
.law-hero .hero-identity { width: min(47%, 570px); text-align: start; }
.hero-brand {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 0 0 14px;
  color: var(--accent);
  font-size: clamp(18px, 2vw, 25px);
  font-weight: 700;
  animation: hero-arrival .65s ease-out both;
}
.hero-brand::before { content: ""; width: 38px; height: 1px; background: var(--accent); }
.law-hero h1 {
  margin: 0;
  font-size: clamp(40px, 5.9vw, 82px);
  line-height: 1.26;
  color: #f8f2e8;
  animation: hero-arrival .8s .12s ease-out both;
}
.hero-practice { color: var(--accent); font-size: clamp(18px, 2.1vw, 25px); font-weight: 600; margin: 16px 0 3px; animation: hero-arrival .7s .25s both; }
.hero-motto { color: #ded3c2; font-size: 17px; margin: 0 0 25px; animation: hero-arrival .7s .35s both; }
.law-hero .hero-buttons { justify-content: flex-start; flex-wrap: wrap; animation: hero-arrival .7s .45s both; }
.law-hero .hero-buttons a { width: auto; }
#services .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
#services .info-card { padding-inline: 20px; }
#services .info-card h3 { font-size: clamp(20px, 2.2vw, 25px); }
.footer-credit { max-width: 370px; border-inline-start: 1px solid var(--border); padding-inline-start: 22px; }
.footer-credit strong, .footer-credit a { color: var(--accent); }
.footer-credit p { font-size: .875rem; margin: 4px 0; }
.contact-details a[href^="mailto:"] { overflow-wrap: anywhere; }
.address-card { justify-content: flex-start; min-width: 0; }
.office-map { display: block; border: 1px solid var(--border); width: 100%; height: clamp(270px, 29vw, 350px); background: var(--surface); border-radius: 4px; }
.video-filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 22px; }
.video-filters button, .video-close {
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 7px 14px;
  cursor: pointer;
}
.video-filters button[aria-pressed="true"] { color: #21190f; background: var(--accent); border-color: var(--accent); }
.video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.video-card { position: relative; border: 1px solid var(--border); background: var(--surface-raised); overflow: hidden; display: flex; flex-direction: column; }
.video-card[hidden] { display: none; }
.video-cover {
  min-height: 220px;
  display: grid;
  place-items: center;
  padding: 18px;
  background: radial-gradient(ellipse at 30% 20%, #9b704c44, transparent 67%), #17191f;
}
.cover-shape {
  width: min(100%, 285px);
  aspect-ratio: 16 / 9;
  position: relative;
  display: grid;
  place-items: center;
  border: 1px solid #c7a67884;
  background: linear-gradient(145deg, #c7975633, transparent 85%), url('/assets/identity-transparent.png') center 23% / 70% auto no-repeat;
}
.cover-shape.portrait { width: 100px; aspect-ratio: 9 / 16; background-size: auto, 120% auto; }
.cover-shape { position: relative; overflow: hidden; }
.cover-shape img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-play-icon { position: relative; background: #18130ee8; color: #f5d39b; border: 1px solid #f5d39b9c; border-radius: 50%; width: 48px; height: 48px; display: grid; place-items: center; }
.video-card-body { padding: 20px; display: flex; flex-direction: column; align-items: flex-start; flex: 1; gap: 10px; }
.video-card-body h3 { color: var(--text); margin: 0; font-size: 1.15rem; }
.video-card-body small { color: var(--accent); font-size: .875rem; }
.video-card-cta { margin-top: auto; }
.video-hit-area { position: absolute; inset: 0; border: 0; background: transparent; padding: 0; cursor: pointer; }
.video-hit-area:focus-visible { outline-offset: -4px; }
.video-card:is(:hover, :focus-within) { border-color: var(--accent); }
.video-card:is(:hover, :focus-within) .video-play-icon { color: #21190f; background: var(--accent); }
.video-preview-note, .video-feedback { text-align: center; color: var(--soft-text); }
.video-preview-note { margin-top: 20px; }
.video-feedback { color: var(--accent); }
.video-tester { max-width: 690px; margin: 24px auto 0; border: 1px solid var(--border); background: var(--bg); padding: 16px 20px; }
.video-tester summary { cursor: pointer; color: var(--accent); font-weight: 700; }
.video-tester form { display: grid; gap: 12px; padding-top: 14px; }
.video-tester input, .video-tester select {
  display: block;
  width: 100%;
  padding: 10px;
  font: inherit;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}
.video-dialog {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--accent);
  padding: 20px;
  max-inline-size: calc(100% - 22px);
  max-block-size: 94dvh;
  width: 760px;
  margin: auto;
}
.video-dialog::backdrop { background: #08080adb; }
.video-dialog-head { display: flex; gap: 12px; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.video-dialog-head h3 { font-size: 1.1rem; margin: 0; }
.video-player {
  display: grid;
  place-items: center;
  overflow: hidden;
  min-height: 200px;
  aspect-ratio: 16 / 9;
  background: #100e0d;
  margin-inline: auto;
}
.video-player.portrait { width: min(100%, max(200px, 36dvh)); aspect-ratio: 9 / 16; }
.video-player iframe { width: 100%; height: 100%; border: 0; }
.video-player p { text-align: center; padding: 12px; }
.video-source { display: inline-block; margin-top: 8px; color: var(--accent); }
.video-source[hidden] { display: none; }
@keyframes hero-arrival {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes hero-light {
  0% { opacity: 0; transform: translateX(-9%); }
  42% { opacity: .64; }
  100% { opacity: 0; transform: translateX(11%); }
}
@media (max-width: 1060px) {
  #services .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 761px) and (max-width: 960px) {
  .main-nav { display: none; position: absolute; top: 100%; inset-inline: 0; padding: 12px 26px; background: var(--surface); border-bottom: 1px solid var(--border); }
  .main-nav.open { display: flex; flex-wrap: wrap; }
  .main-nav a { padding: 10px 0; }
  .menu-toggle { display: block; }
}
@media (max-width: 760px) {
  .law-hero { min-height: 0; padding: 0 0 44px; }
  .hero-scene { position: relative; height: clamp(220px, 62vw, 360px); }
  .hero-film { object-position: 25% 53%; width: 142%; max-width: none; position: absolute; left: 0; }
  .hero-scene::after { background: linear-gradient(0deg, var(--hero-shade), transparent 35%); }
  .law-hero .hero-identity { width: 100%; text-align: center; }
  .hero-brand { justify-content: center; margin-bottom: 12px; }
  .hero-brand::before { width: 20px; }
  .law-hero h1 { font-size: clamp(36px, 8.8vw, 59px); }
  .law-hero .hero-buttons { align-items: stretch; margin-inline: auto; max-width: 380px; }
  .law-hero .hero-buttons a { font-size: .925rem; }
  .video-grid { grid-template-columns: 1fr; }
  #services .cards { grid-template-columns: 1fr; }
  .footer-credit { border-inline-start: 0; border-top: 1px solid var(--border); padding: 14px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .law-hero *, .law-hero *::before { animation: none !important; }
}

/* Soft movement and pointer feedback across the site. */
@media (hover: hover) and (pointer: fine) {
  .gold-button, .outline-button, .card-link, .main-nav a,
  .theme-toggle, .floating-wa, .video-filters button,
  .reading-tools button, .video-close {
    transition: transform .25s ease, box-shadow .25s ease,
      color .25s ease, background-color .25s ease, border-color .25s ease;
  }
  .gold-button:hover, .outline-button:hover, .theme-toggle:hover,
  .floating-wa:hover, .video-filters button:hover, .video-close:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px #0005;
  }
  .main-nav a:hover, .card-link:hover { color: #ffe0a8; }
  .info-card, .article-card, .video-card, .contact-card, .address-card {
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
  }
  .info-card:hover, .article-card:hover, .video-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 12px 28px #0004;
  }
  .card-icon { transition: transform .3s ease, background-color .3s ease; }
  .info-card:hover .card-icon { transform: scale(1.12); background: #d3a8651c; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
