/* Layout: a left-aligned "case file" column. Each section is an exhibit,
   labelled with an exhibit sticker; every page footer carries a Bates-style
   page stamp, the way CVFAULK tells clients to stamp their own exhibits. */
:root {
  --paper: #f6f7f8;          /* page */
  --sheet: #ffffff;          /* raised surfaces */
  --ink: #15202b;            /* text */
  --muted: #55616d;          /* secondary text */
  --rule: #d8dde2;           /* hairlines */
  --sticker: #f3c623;        /* plaintiff-yellow exhibit sticker */
  --sticker-ink: #1b1600;
  --blue: #1f5fa8;           /* defendant-blue exhibit sticker, links */
  --band: #15202b;           /* dark band */
  --band-ink: #eef1f4;

  --display: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --body: "Public Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: 1.75rem;
  --step-3: clamp(2.1rem, 4vw, 2.8rem);
  --step-4: clamp(2.6rem, 7vw, 4.6rem);
  --max: 72rem;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0f161d; --sheet: #16202a; --ink: #e7ebef; --muted: #9aa6b2;
    --rule: #2a3742; --sticker: #f0c43a; --sticker-ink: #1b1600; --blue: #7fb2ee;
    --band: #0a1015; --band-ink: #e7ebef; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0f161d; --sheet: #16202a; --ink: #e7ebef; --muted: #9aa6b2;
  --rule: #2a3742; --sticker: #f0c43a; --sticker-ink: #1b1600; --blue: #7fb2ee;
  --band: #0a1015; --band-ink: #e7ebef; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--step-0)/1.6 var(--body);
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-underline-offset: 0.18em; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--sticker); outline-offset: 2px;
}
h1, h2, h3 { font-family: var(--display); line-height: 1.08; text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }

.wrap {
  max-width: var(--max);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* Header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--paper); }
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.8rem; flex-wrap: wrap; }
.brand { font: 800 1.35rem/1 var(--display); letter-spacing: 0.06em; color: var(--ink); text-decoration: none; font-stretch: 112%; }
.brand span { color: var(--muted); font-weight: 500; }
.nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.1rem; font: 500 var(--step--1)/1 var(--body); }
.nav a { color: var(--muted); text-decoration: none; padding-block: 0.35rem; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--sticker); }

/* Exhibit sticker */
.sticker {
  display: inline-flex; flex-direction: column; align-items: flex-start;
  background: var(--sticker); color: var(--sticker-ink);
  font: 600 0.7rem/1.15 var(--mono); letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.35rem 0.55rem 0.4rem; border-radius: 2px;
  transform: rotate(-1.5deg);
}
.sticker b { font-size: 1.05rem; letter-spacing: 0.02em; font-weight: 700; }
.sticker.blue { background: var(--blue); color: #fff; }

/* Hero */
.hero { padding-block: clamp(3rem, 8vw, 6rem) clamp(2.5rem, 6vw, 4.5rem); }
.hero .wrap { display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: end; }
.hero h1 { font-size: var(--step-4); font-weight: 800; font-stretch: 100%; }
.hero h1 em { font-style: normal; font-stretch: 125%; letter-spacing: 0.02em; background: linear-gradient(transparent 62%, color-mix(in srgb, var(--sticker) 80%, transparent) 62%); padding-inline: 0.05em; }
.hero .lede { margin-top: 1.4rem; font-size: var(--step-1); color: var(--muted); max-width: 34rem; }
.hero .actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.page-hero { padding-block: clamp(2.5rem, 6vw, 4.5rem) 2rem; }
.page-hero h1 { font-size: var(--step-3); font-weight: 800; }
.page-hero .lede { margin-top: 1rem; font-size: var(--step-1); color: var(--muted); max-width: 40rem; }

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font: 600 var(--step--1)/1 var(--body); text-decoration: none;
  padding: 0.85rem 1.2rem; border-radius: 3px; border: 1.5px solid var(--ink);
  color: var(--ink); background: transparent; cursor: pointer;
}
.btn.primary { background: var(--ink); color: var(--paper); }
.btn:hover { transform: translateY(-1px); }

/* Photo slot: where a photoshoot image goes */
.photo {
  position: relative; aspect-ratio: 4 / 5; max-width: 100%;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--blue) 30%, var(--band)) 0%, var(--band) 70%);
  border-radius: 2px; overflow: hidden;
  display: flex; align-items: flex-end; padding: 1rem;
  color: var(--band-ink); font: 500 0.75rem/1.4 var(--mono); letter-spacing: 0.04em;
}
.photo.wide { aspect-ratio: 16 / 9; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo .slot-label { position: relative; opacity: 0.75; }
.photo .sticker { position: absolute; top: 1rem; right: 1rem; }

/* Sections */
.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); border-top: 1px solid var(--rule); }
.section-head { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 2rem; flex-wrap: wrap; }
.section-head h2 { font-size: var(--step-3); font-weight: 800; }
.section-head p { color: var(--muted); max-width: 36rem; margin-top: 0.6rem; }

.band { background: var(--band); color: var(--band-ink); }
.band .section { border-top: 0; }
.band .muted, .band .section-head p { color: color-mix(in srgb, var(--band-ink) 70%, var(--band)); }

.prose { max-width: 40rem; display: grid; gap: 1rem; }
.prose p { font-size: var(--step-0); }

/* Services list: one exhibit per service */
.exhibits { display: grid; gap: 0; }
.exhibit {
  display: grid; grid-template-columns: 8rem minmax(0, 1fr) minmax(0, 18rem); gap: 1.5rem 2rem;
  padding-block: 2rem; border-top: 1px solid var(--rule); align-items: start;
}
.exhibit:first-child { border-top: 0; }
.exhibit h3 { font-size: var(--step-2); font-weight: 700; margin-bottom: 0.6rem; }
.exhibit p { color: var(--muted); max-width: 38rem; }
.exhibit .photo { aspect-ratio: 4 / 3; }

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: 1rem; }
.quote {
  background: var(--sheet); border: 1px solid var(--rule); border-radius: 3px;
  padding: 1.5rem; display: flex; flex-direction: column; gap: 1.2rem;
}
.band .quote { background: color-mix(in srgb, var(--band-ink) 6%, var(--band)); border-color: color-mix(in srgb, var(--band-ink) 14%, var(--band)); }
.quote blockquote { margin: 0; font: 500 var(--step-1)/1.4 var(--display); }
.quote figcaption { margin-top: auto; font-size: var(--step--1); display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; }
.quote figcaption strong { display: block; font-weight: 600; }
.quote figcaption span { color: var(--muted); }
.band .quote figcaption span { color: color-mix(in srgb, var(--band-ink) 65%, var(--band)); }
.watch { font: 600 0.75rem/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.band .watch { color: var(--sticker); }

.feature-quote { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
.feature-quote blockquote { margin: 0; font: 700 var(--step-3)/1.15 var(--display); max-width: 52rem; }
.feature-quote figcaption { color: color-mix(in srgb, var(--band-ink) 70%, var(--band)); }

/* Facts strip */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: 1.5rem; }
.fact { border-top: 2px solid var(--ink); padding-top: 0.8rem; }
.fact b { display: block; font: 800 var(--step-2)/1.1 var(--display); }
.fact span { color: var(--muted); font-size: var(--step--1); }

/* Experience */
.matters { display: grid; gap: 1rem; }
.matter { background: var(--sheet); border: 1px solid var(--rule); border-radius: 3px; padding: 1.5rem; display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); gap: 1rem 2rem; }
.matter .meta { font: 500 var(--step--1)/1.5 var(--mono); color: var(--muted); }
.matter h3 { font-size: var(--step-1); font-weight: 700; margin-bottom: 0.5rem; }
.matter p { color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.8rem; }
.tag { font: 500 0.72rem/1 var(--mono); letter-spacing: 0.04em; border: 1px solid var(--rule); padding: 0.35rem 0.5rem; border-radius: 2px; color: var(--muted); }
.note { font-size: var(--step--1); color: var(--muted); border-left: 3px solid var(--sticker); padding: 0.4rem 0 0.4rem 0.9rem; max-width: 40rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 3rem; }
form { display: grid; gap: 1rem; }
.field { display: grid; gap: 0.35rem; }
.field label { font: 600 var(--step--1)/1.2 var(--body); }
.field input, .field textarea {
  font: inherit; color: var(--ink); background: var(--sheet);
  border: 1px solid var(--rule); border-radius: 3px; padding: 0.75rem 0.85rem; width: 100%;
}
.field textarea { min-height: 9rem; resize: vertical; }
.row2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 1rem; }
.form-status { font-size: var(--step--1); color: var(--muted); min-height: 1.4em; }
.card-list { display: grid; gap: 1.5rem; align-content: start; }
.card-list h3 { font: 600 0.75rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.4rem; }
.card-list p { font-size: var(--step-1); }

/* Footer with Bates stamp */
.site-footer { background: var(--band); color: var(--band-ink); margin-top: 0; }
.site-footer .wrap { padding-block: 3rem 2rem; display: grid; gap: 2rem; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); }
.site-footer .tagline { font: 800 var(--step-2)/1.1 var(--display); }
.site-footer .tagline em { font-style: normal; color: var(--sticker); font-stretch: 125%; letter-spacing: 0.03em; }
.site-footer h3 { font: 600 0.72rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: color-mix(in srgb, var(--band-ink) 60%, var(--band)); margin-bottom: 0.7rem; }
.site-footer a { color: var(--band-ink); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; font-size: var(--step--1); }
.site-footer address { font-style: normal; font-size: var(--step--1); line-height: 1.7; }
.bates {
  grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  border-top: 1px solid color-mix(in srgb, var(--band-ink) 15%, var(--band)); padding-top: 1.2rem;
  font: 500 0.72rem/1.4 var(--mono); letter-spacing: 0.06em; color: color-mix(in srgb, var(--band-ink) 60%, var(--band));
}

@media (max-width: 860px) {
  .hero .wrap, .contact-grid, .site-footer .wrap { grid-template-columns: minmax(0, 1fr); }
  .exhibit { grid-template-columns: minmax(0, 1fr); }
  .exhibit .photo { max-width: 28rem; }
  .matter { grid-template-columns: minmax(0, 1fr); }
  .hero .photo { max-width: 26rem; aspect-ratio: 4 / 3; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } .btn:hover { transform: none; } }
.feature-quote .sticker { justify-self: start; }
.cards4 { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
