/* DJ Law Chambers — editorial heritage theme */
:root {
  --paper: #f4efe6;
  --paper-2: #ebe3d4;
  --ink: #1a1613;
  --ink-2: #231e1a;
  --text: #2b2520;
  --muted: #6b6157;
  --rule: #d5cab8;
  --accent: #7a2430;     /* oxblood */
  --sand: #c8a97e;       /* sandstone, on dark */
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 84px;
  /* pointed (Mughal) arch, used for the logo, portraits and the practice photo */
  --arch: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 133' preserveAspectRatio='none'%3E%3Cpath d='M0 133V46C0 24 20 9 50 0c30 9 50 24 50 46v87z'/%3E%3C/svg%3E");
  --arch-line: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 133' preserveAspectRatio='none'%3E%3Cpath d='M.5 133V46C.5 24 20 9.5 50 .5c30 9 49.5 23.5 49.5 45.5v87' fill='none' stroke='%23000' stroke-width='1' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.65 var(--sans); color: var(--text); background: var(--paper); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
address { font-style: normal; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; color: var(--ink); }
h2 { font-size: clamp(2.2rem, 4.6vw, 3.75rem); line-height: 1.04; letter-spacing: -.02em; margin-bottom: 1.5rem; }
h2 em, h1 em { font-style: italic; color: var(--accent); }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: #fff; }

.container { width: min(1240px, 100% - 40px); margin-inline: auto; }
section[id] { scroll-margin-top: var(--header-h); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: .6rem 1rem; background: var(--paper); }
.skip:focus { left: 8px; }

.label {
  margin-bottom: 1.5rem; font: 600 .72rem/1.3 var(--sans);
  letter-spacing: .18em; text-transform: uppercase; color: var(--accent);
}

/* Buttons & links */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 1rem 1.5rem; background: var(--ink); color: var(--paper);
  font: 600 .75rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap; transition: background-color .25s, color .25s;
}
.btn:hover { background: var(--accent); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: var(--sand); color: var(--ink); }
.text-link {
  font: 600 .75rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; padding: .5rem 0; border-bottom: 1px solid currentColor;
}
.text-link span { display: inline-block; transition: transform .25s; }
.text-link:hover span { transform: translateX(4px); }

/* Top bar + header */
.topbar { background: var(--ink); color: #b9ada0; font-size: .8rem; }
.topbar-inner { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; }
.topbar a { margin-left: 1.75rem; text-decoration: none; transition: color .2s; }
.topbar a:hover { color: var(--sand); }

.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(244, 239, 230, .95);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule);
}
.header-inner { display: flex; align-items: center; gap: 2.5rem; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: .9rem; margin-right: auto; text-decoration: none; color: var(--ink); }
.emblem { width: 34px; height: 44px; flex: none; overflow: visible; }
.emblem path { fill: none; stroke: var(--accent); stroke-width: 1.5; }
.emblem text { font: 500 17px var(--serif); fill: var(--ink); text-anchor: middle; }
.brand-name { font: 500 1.55rem/1 var(--serif); letter-spacing: -.01em; }
.brand-name small { display: block; margin-top: .35rem; font: 500 .62rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.nav { display: flex; gap: 2.25rem; }
.nav a { position: relative; padding: .4rem 0; font: 500 .9rem/1 var(--sans); text-decoration: none; white-space: nowrap; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.nav a:hover::after { transform: scaleX(1); }
.cta-narrow { display: none; }

@media (max-width: 900px) {
  :root { --header-h: 108px; }
  .topbar { display: none; }
  .header-inner { flex-wrap: wrap; gap: .4rem 1rem; min-height: 0; padding-top: .75rem; }
  .brand-name { font-size: 1.3rem; }
  .brand-name small { font-size: .56rem; letter-spacing: .14em; }
  .emblem { width: 28px; height: 36px; }
  .cta-wide { display: none; }
  .cta-narrow { display: inline-flex; padding: .8rem 1.1rem; }
  .nav {
    order: 3; flex: 0 0 calc(100% + 40px); margin-inline: -20px; padding: .4rem 20px .7rem;
    gap: 1rem; justify-content: space-between; overflow-x: auto; scrollbar-width: none;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { font-size: .875rem; }
}

/* Hero */
.hero {
  position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-rows: 1fr auto;
  min-height: min(88svh, 900px); color: #fff; background: var(--ink);
}
.hero-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(26, 22, 19, .72) 0%, rgba(26, 22, 19, .25) 55%, rgba(26, 22, 19, 0) 100%),
    linear-gradient(180deg, rgba(26, 22, 19, .1) 30%, rgba(26, 22, 19, .85) 100%);
}
.hero-content { align-self: end; padding: 7rem 0 3.5rem; }
.kicker { margin-bottom: 1.5rem; font: 600 .75rem/1.3 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--sand); }
.hero h1 { max-width: 11ch; font-size: clamp(3.4rem, 9vw, 7.75rem); line-height: .92; letter-spacing: -.035em; color: #fff; }
.hero h1 em { display: block; color: var(--sand); }
.hero-sub { max-width: 34rem; margin: 2rem 0 0; font-size: 1.1rem; color: rgba(255, 255, 255, .85); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; margin-top: 2.25rem; }
.hero-actions .text-link { color: #fff; }
.hero-facts { border-top: 1px solid rgba(255, 255, 255, .22); background: rgba(26, 22, 19, .35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hero-facts dl { display: grid; grid-template-columns: repeat(2, 1fr); margin-block: 0; }
.hero-facts dl > div { padding: 1.35rem 1.25rem 1.35rem 0; }
.hero-facts dt { font: 600 .66rem/1.2 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--sand); }
.hero-facts dd { margin: .45rem 0 0; font: 400 clamp(1.25rem, 2.2vw, 1.75rem)/1.1 var(--serif); }
@media (min-width: 900px) {
  .hero-facts dl { grid-template-columns: repeat(4, 1fr); }
  .hero-facts dl > div + div { padding-left: 1.75rem; border-left: 1px solid rgba(255, 255, 255, .18); }
}
.photo-caption {
  position: absolute; right: 20px; top: 2rem; margin: 0; writing-mode: vertical-rl;
  font: 500 .66rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .6);
}
@media (max-width: 900px) { .photo-caption { display: none; } }
@media (prefers-reduced-motion: no-preference) {
  .hero-img { animation: settle 2.4s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-content { animation: rise 1.1s .2s cubic-bezier(.2, .7, .2, 1) both; }
}
@keyframes settle { from { transform: scale(1.08); } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

/* Sections */
.section { padding: clamp(5rem, 10vw, 8.5rem) 0; }
.tinted { background: var(--paper-2); }
.dark { background: var(--ink); color: #b9ada0; }
.dark h2, .dark h3 { color: var(--paper); }
.dark h2 em { color: var(--sand); }
.dark .label { color: var(--sand); }

/* Scroll reveal: progressive enhancement, CSS only */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% cover 22%; }
  }
}

/* Intro */
.intro { display: grid; gap: 1rem; padding-bottom: clamp(4rem, 8vw, 7rem); margin-bottom: clamp(4rem, 8vw, 7rem); border-bottom: 1px solid var(--rule); }
.statement { margin: 0; font: 300 clamp(1.65rem, 3.3vw, 2.75rem)/1.22 var(--serif); letter-spacing: -.015em; color: var(--ink); }
@media (min-width: 900px) { .intro { grid-template-columns: 3fr 9fr; gap: 2rem; } }

/* Arch portraits */
.portrait { width: 100%; max-width: 340px; margin: 0 auto; }
.arch { position: relative; padding: 14px; color: var(--accent); }
.arch::before {
  content: ""; position: absolute; inset: 0; background: currentColor;
  -webkit-mask: var(--arch-line) center / 100% 100% no-repeat; mask: var(--arch-line) center / 100% 100% no-repeat;
}
.arch img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 0;
  -webkit-mask: var(--arch) center / 100% 100% no-repeat; mask: var(--arch) center / 100% 100% no-repeat;
}
.memorial img { filter: grayscale(1) contrast(1.08) brightness(1.02); }
.portrait figcaption { margin-top: 1.25rem; font-size: .85rem; color: var(--muted); text-align: center; }
.portrait figcaption strong { display: block; font: 400 1.4rem/1.2 var(--serif); color: var(--ink); }
.dark .arch { color: var(--sand); }

/* Legacy */
.legacy { display: grid; gap: 3rem; align-items: center; }
.legacy-text p:not(.label) { max-width: 38rem; color: var(--muted); }
@media (min-width: 900px) { .legacy { grid-template-columns: 4fr 7fr; gap: 6rem; } }

.timeline { display: grid; margin: clamp(4rem, 8vw, 6.5rem) 0 0; padding: 0 0 0 1.75rem; list-style: none; border-left: 1px solid var(--rule); }
.timeline li { position: relative; padding-bottom: 2.25rem; font-size: .95rem; color: var(--muted); }
.timeline li::before {
  content: ""; position: absolute; left: calc(-1.75rem - 5px); top: .85rem; width: 9px; height: 9px;
  background: var(--paper); border: 1px solid var(--accent); transform: rotate(45deg);
}
.timeline span { display: block; margin-bottom: .5rem; font: 400 2.1rem/1 var(--serif); letter-spacing: -.02em; color: var(--ink); }
@media (min-width: 900px) {
  .timeline { grid-template-columns: repeat(5, 1fr); padding: 0; border-left: 0; border-top: 1px solid var(--rule); }
  .timeline li { padding: 2.25rem 2rem 0 0; }
  .timeline li::before { left: 0; top: -5px; }
}

/* Profile */
.profile { display: grid; gap: 3.5rem; align-items: start; }
.role { margin: -.75rem 0 2.5rem; font: italic 400 1.35rem/1.3 var(--serif); color: var(--sand); }
.facts { margin: 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.facts > div { display: grid; gap: .35rem; padding: 1.1rem 0; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.facts dt { font: 600 .68rem/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: #8f8478; }
.facts dd { margin: 0; color: #e4dccf; }
@media (min-width: 700px) { .facts > div { grid-template-columns: 11rem 1fr; gap: 2rem; } }
@media (min-width: 900px) { .profile { grid-template-columns: 4fr 7fr; gap: 6rem; } .profile .portrait { position: sticky; top: calc(var(--header-h) + 3rem); } }

/* Practice */
.practice { display: grid; gap: 3rem; }
.practice-photo { display: none; margin: 2.5rem 0 0; }
.practice-photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; -webkit-mask: var(--arch) center / 100% 100% no-repeat; mask: var(--arch) center / 100% 100% no-repeat; }
@media (min-width: 900px) {
  .practice { grid-template-columns: 5fr 7fr; gap: 6rem; }
  .practice-aside { position: sticky; top: calc(var(--header-h) + 2.5rem); align-self: start; }
  .practice-photo { display: block; max-width: 300px; }
}
.area { display: grid; grid-template-columns: 2.75rem 1fr; padding: 2.25rem 0; border-top: 1px solid var(--rule); }
.area:first-child { border-top-color: var(--ink); }
.area-num { font: italic 400 1.35rem/1.6 var(--serif); color: var(--accent); }
.area h3 { font-size: clamp(1.75rem, 3vw, 2.4rem); line-height: 1.1; letter-spacing: -.015em; transition: color .25s; }
.area:hover h3 { color: var(--accent); }
.area ul { grid-column: 2; margin: 1.1rem 0 0; padding: 0; list-style: none; }
.area li { position: relative; padding: .3rem 0 .3rem 1.4rem; color: var(--muted); }
.area li::before { content: "—"; position: absolute; left: 0; color: var(--rule); }
.matters { padding-top: 2.25rem; border-top: 1px solid var(--rule); }
.matters p:last-child { margin: 0; font: 400 clamp(1.2rem, 1.8vw, 1.45rem)/1.6 var(--serif); color: var(--ink); }
.matters i { padding: 0 .35em; font-style: normal; color: var(--accent); }

/* Clients */
.split-head { display: grid; gap: 1rem; margin-bottom: 3.5rem; }
.split-head p:not(.label) { max-width: 36rem; margin: 0; color: var(--muted); }
@media (min-width: 900px) { .split-head { grid-template-columns: 3fr 9fr; gap: 2rem; } }
.client-list { display: grid; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.client-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem; padding: 1.5rem 0; border-bottom: 1px solid var(--rule); }
.client-list span { font: 400 clamp(1.35rem, 2.3vw, 1.85rem)/1.2 var(--serif); letter-spacing: -.01em; color: var(--ink); }
.client-list small { flex: none; max-width: 9rem; font: 600 .66rem/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); text-align: right; }
.client-list .more span { font-style: italic; color: var(--accent); }
@media (min-width: 900px) { .client-list { grid-template-columns: 1fr 1fr; column-gap: 5rem; } }

/* Network */
.network { display: grid; gap: 3rem; align-items: center; }
.network p:not(.label) { max-width: 30rem; }
.cities { display: grid; grid-template-columns: 1fr 1fr; column-gap: 2rem; margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(255, 255, 255, .14); }
.cities li { padding: 1.1rem 0; border-bottom: 1px solid rgba(255, 255, 255, .14); font: 400 clamp(1.3rem, 2.2vw, 1.75rem)/1.2 var(--serif); color: var(--paper); }
.cities .home { color: var(--sand); }
.cities small { display: block; margin-top: .3rem; font: 600 .62rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: #8f8478; }
@media (min-width: 900px) { .network { grid-template-columns: 5fr 7fr; gap: 6rem; } }

/* Contact */
.contact { display: grid; gap: 3.5rem; }
.big-link {
  display: block; width: fit-content; max-width: 100%; margin-top: .75rem;
  font: 400 clamp(1.6rem, 3.4vw, 2.6rem)/1.2 var(--serif); letter-spacing: -.015em; color: var(--ink);
  text-decoration: none; overflow-wrap: anywhere; background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 1px no-repeat;
  transition: background-size .35s, color .25s;
}
.big-link:hover { color: var(--accent); background-size: 100% 1px; }
.note { margin-top: 2rem; font-size: .9rem; color: var(--muted); }
.offices { border-top: 1px solid var(--ink); }
.office { display: grid; gap: .4rem; padding: 1.6rem 0; border-bottom: 1px solid var(--rule); }
.office h3 { font-size: 1.6rem; letter-spacing: -.01em; }
.office address { color: var(--muted); }
.office a { width: fit-content; font: 600 .72rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); text-decoration: none; }
.office a:hover { text-decoration: underline; }
@media (min-width: 700px) { .office { grid-template-columns: 1fr 1.3fr auto; align-items: baseline; gap: 2rem; } }
@media (min-width: 1000px) { .contact { grid-template-columns: 5fr 7fr; gap: 6rem; align-items: end; } }

/* Footer */
.site-footer { padding: clamp(4rem, 8vw, 6rem) 0 2rem; background: #12100e; color: #8f8478; font-size: .9rem; overflow: hidden; }
.footer-mark {
  margin: 0 0 3.5rem; font: 400 clamp(3rem, 10.5vw, 9.5rem)/.9 var(--serif); letter-spacing: -.045em;
  color: var(--paper); white-space: nowrap;
}
.footer-grid { display: grid; gap: 2.5rem; padding-top: 2.5rem; border-top: 1px solid rgba(255, 255, 255, .1); }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 2fr 1fr 1.3fr; } }
.footer-about { max-width: 22rem; font: 400 1.25rem/1.4 var(--serif); color: #cfc5b8; }
.footer-links { display: grid; gap: .55rem; margin: 0; padding: 0; list-style: none; }
.site-footer a { text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--sand); }
.disclaimer { margin: 3.5rem 0 0; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .78rem; line-height: 1.7; color: #6f665d; }
.disclaimer strong { color: #8f8478; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem; margin-top: 1.5rem; font-size: .78rem; }

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