:root {
  --ink: #0c1626;
  --ink-2: #142033;
  --muted: #657082;
  --cream: #f4efe7;
  --paper: #ffffff;
  --line: rgba(12, 22, 38, 0.12);
  --gold: #c1aa85;
  --gold-dark: #9c8562;
  --shadow: 0 24px 80px rgba(12, 22, 38, 0.18);
  --radius: 22px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Aptos", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: #f8f6f2;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 10px; background: var(--paper); padding: 10px 14px; z-index: 100; }
.skip-link:focus { left: 10px; }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(248, 246, 242, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(12, 22, 38, 0.08);
}
.header-grid {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 18px;
  min-height: 78px;
}
.brand { display: inline-flex; align-items: center; }
.brand-logo { width: 132px; height: auto; }
.main-nav { display: flex; justify-content: center; align-items: center; gap: 24px; color: var(--ink-2); font-size: 0.94rem; font-weight: 600; }
.main-nav a { position: relative; padding: 12px 0; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .22s ease; }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }
.header-cta { border: 1px solid rgba(12, 22, 38, 0.18); border-radius: 999px; padding: 10px 16px; font-weight: 700; white-space: nowrap; }
.header-cta:hover { border-color: var(--gold-dark); color: var(--gold-dark); }
.lang-switch { display: inline-flex; align-items: center; gap: 2px; border: 1px solid rgba(12, 22, 38, 0.16); border-radius: 999px; padding: 3px; background: rgba(255,255,255,.62); white-space: nowrap; }
.lang-switch a { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; min-height: 30px; padding: 6px 9px; border-radius: 999px; color: var(--muted); font-size: .78rem; font-weight: 900; letter-spacing: .06em; }
.lang-switch a:hover { color: var(--gold-dark); }
.lang-switch a.active { background: var(--ink); color: #fff; }
.menu-toggle { display: none; border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 10px 14px; color: var(--ink); }

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: var(--ink);
  padding: 150px 0 80px;
}
.hero-bg { position: absolute; inset: 0; background: url("assets/images/hero-courtroom.webp") center/cover no-repeat; transform: scale(1.02); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,13,24,.92), rgba(7,13,24,.75) 48%, rgba(7,13,24,.38)); }
.hero-content { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) 360px; align-items: end; gap: 56px; color: var(--paper); }
.eyebrow { margin: 0 0 14px; color: var(--gold); font-size: .82rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 800; }
.eyebrow.dark { color: var(--gold-dark); }
h1, h2, h3 { margin: 0; line-height: 1.1; font-family: Georgia, "Times New Roman", serif; font-weight: 700; }
h1 { max-width: 860px; font-size: clamp(3rem, 6vw, 5.7rem); letter-spacing: -0.055em; }
h2 { font-size: clamp(2rem, 4vw, 3.6rem); letter-spacing: -0.035em; }
h3 { font-size: 1.35rem; letter-spacing: -0.02em; }
p { margin: 0; }
.hero-lead { max-width: 680px; margin-top: 24px; font-size: clamp(1.1rem, 2vw, 1.35rem); color: rgba(255,255,255,.82); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 999px; padding: 12px 22px; font-weight: 800; transition: transform .18s ease, background .18s ease, border-color .18s ease; border: 1px solid transparent; cursor: pointer; }
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: var(--gold); color: #10121a; }
.btn.primary:hover { background: #d0bc9a; }
.btn.ghost { border-color: rgba(255,255,255,.32); color: #fff; }
.btn.ghost:hover { border-color: var(--gold); color: var(--gold); }
.hero-card { background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(20px); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.hero-avatar { width: 150px; aspect-ratio: 1; object-fit: cover; border-radius: 50%; margin-bottom: 20px; border: 3px solid rgba(193,170,133,.65); background: #0a0f1a; }
.card-title { font-family: Georgia, "Times New Roman", serif; font-size: 1.5rem; font-weight: 700; }
.card-role { color: var(--gold); margin-top: 4px; font-size: .94rem; font-weight: 800; letter-spacing: .02em; }
.card-text { color: rgba(255,255,255,.78); margin-top: 8px; font-size: .98rem; }

.intro-strip { background: var(--ink); color: #fff; border-top: 1px solid rgba(255,255,255,.1); }
.strip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,.12); }
.strip-grid > div { background: var(--ink); padding: 30px 28px; }
.strip-grid strong { display: block; font-family: Georgia, "Times New Roman", serif; font-size: 1.25rem; margin-bottom: 8px; }
.strip-grid span { display: block; color: rgba(255,255,255,.68); }

.section { padding: 110px 0; background: #f8f6f2; }
.section-light { background: var(--paper); }
.section-split { background: linear-gradient(90deg, var(--cream) 0 48%, #f8f6f2 48% 100%); }
.two-col { display: grid; grid-template-columns: .95fr 1.05fr; gap: 74px; align-items: center; }
.media-card, .portrait-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); position: relative; }
.media-card::after, .portrait-frame::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(255,255,255,.35); border-radius: inherit; pointer-events: none; }
.media-card img { width: 100%; min-height: 520px; object-fit: cover; }
.portrait-frame { background: #ebe7de; }
.portrait-frame img { width: 100%; min-height: 640px; object-fit: cover; object-position: center top; }
.section-copy p:not(.eyebrow) { margin-top: 18px; color: #394457; font-size: 1.04rem; }
.centered { text-align: center; margin-inline: auto; max-width: 780px; }
.section-heading { max-width: 760px; margin-bottom: 42px; }
.section-heading p:not(.eyebrow) { margin-top: 16px; color: var(--muted); font-size: 1.08rem; }

.practice-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 44px; }
.practice-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; min-height: 245px; display: flex; flex-direction: column; box-shadow: 0 18px 44px rgba(12,22,38,.06); }
.practice-card.featured { grid-column: span 2; background: var(--ink); color: #fff; border-color: rgba(255,255,255,.12); }
.practice-number { color: var(--gold-dark); font-weight: 900; margin-bottom: 32px; letter-spacing: .12em; }
.practice-card.featured .practice-number { color: var(--gold); }
.practice-card p { margin-top: 14px; color: var(--muted); }
.practice-card.featured p { color: rgba(255,255,255,.74); }

.timeline { margin-top: 34px; border-left: 1px solid rgba(12,22,38,.18); padding-left: 26px; }
.timeline-item { position: relative; padding: 0 0 30px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before { content: ""; position: absolute; left: -34px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 7px rgba(193,170,133,.22); }
.timeline-item span { display: inline-block; color: var(--gold-dark); font-weight: 900; letter-spacing: .08em; font-size: .86rem; margin-bottom: 8px; }
.timeline-item p { color: #394457; margin-top: 8px; }

.case-layout { display: grid; grid-template-columns: .7fr 1.3fr; gap: 44px; align-items: start; }
.cases-stack { display: grid; gap: 28px; }
.case-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow); }
.case-top { border-bottom: 1px solid var(--line); padding-bottom: 24px; margin-bottom: 24px; }
.case-badge { display: inline-block; background: var(--cream); color: var(--gold-dark); border-radius: 999px; padding: 8px 12px; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 900; margin-bottom: 18px; }
.case-card p { margin-top: 16px; color: #394457; }
details { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 18px; }
summary { cursor: pointer; font-weight: 900; color: var(--ink); }
.case-details { margin-top: 12px; }

.contact-section { background: var(--ink); color: #fff; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 820px); gap: 56px; align-items: start; justify-content: center; }
.contact-panel h2 { color: #fff; }
.contact-panel p:not(.eyebrow) { color: rgba(255,255,255,.72); margin-top: 18px; max-width: 590px; }
.contact-list { display: grid; gap: 14px; margin-top: 34px; }
.contact-list a { display: block; border: 1px solid rgba(255,255,255,.15); border-radius: 18px; padding: 18px 20px; color: rgba(255,255,255,.86); background: rgba(255,255,255,.04); }
.contact-list a:hover { border-color: rgba(193,170,133,.7); }
.contact-list span { display: block; color: var(--gold); font-size: .76rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 900; margin-bottom: 4px; }
.contact-form { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 34px; box-shadow: 0 24px 80px rgba(0,0,0,.35); }
.contact-form label { display: grid; gap: 8px; color: #334055; font-weight: 800; margin-bottom: 18px; }
.contact-form input, .contact-form textarea { width: 100%; border: 1px solid rgba(12,22,38,.16); border-radius: 14px; padding: 13px 14px; color: var(--ink); background: #fbfaf8; outline: none; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--gold-dark); box-shadow: 0 0 0 4px rgba(193,170,133,.16); }
.contact-form textarea { resize: vertical; }
.form-note { margin-top: 14px; color: var(--muted); font-size: .9rem; }

.site-footer { background: #080e18; color: rgba(255,255,255,.72); padding: 36px 0; border-top: 1px solid rgba(255,255,255,.08); }
.footer-grid { display: grid; grid-template-columns: 1fr 1.2fr auto; gap: 28px; align-items: center; }
.footer-logo { width: 112px; filter: invert(1) grayscale(1) brightness(4); opacity: .92; margin-bottom: 8px; }
.footer-affiliation { margin-top: 4px; color: var(--gold); font-weight: 800; }
.back-top { color: var(--gold); font-weight: 900; white-space: nowrap; }

@media (max-width: 1020px) {
  .header-grid { grid-template-columns: auto 1fr auto auto; gap: 10px; }
  .menu-toggle { display: inline-flex; justify-self: end; grid-column: auto; }
  .lang-switch { justify-self: end; }
  .main-nav { position: absolute; top: 78px; left: 20px; right: 20px; flex-direction: column; align-items: stretch; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 12px; display: none; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 14px; border-radius: 12px; }
  .main-nav a:hover { background: #f6f2ea; }
  .header-cta { display: none; }
  .hero-content, .two-col, .case-layout, .contact-grid { grid-template-columns: 1fr; }
  .hero-content { align-items: start; }
  .hero-card { max-width: 420px; }
  .practice-grid { grid-template-columns: repeat(2, 1fr); }
  .practice-card.featured { grid-column: span 2; }
  .strip-grid { grid-template-columns: 1fr; }
  .section-split { background: #f8f6f2; }
  .reverse-on-mobile .portrait-frame { order: -1; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .brand-logo { width: 104px; }
  .lang-switch a { min-width: 30px; padding: 5px 7px; font-size: .72rem; }
  .hero { min-height: auto; padding: 122px 0 56px; }
  .hero-overlay { background: linear-gradient(180deg, rgba(7,13,24,.9), rgba(7,13,24,.78)); }
  .hero-content { gap: 32px; }
  h1 { font-size: clamp(2.65rem, 15vw, 4rem); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .section { padding: 72px 0; }
  .two-col { gap: 34px; }
  .media-card img, .portrait-frame img { min-height: 380px; }
  .practice-grid { grid-template-columns: 1fr; }
  .practice-card.featured { grid-column: auto; }
  .case-card, .contact-form { padding: 26px; }
}
