:root {
  --ink: #0c1114;
  --harbor: #121e24;
  --merlot: #4a1222;
  --champagne: #eadcb4;
  --fog: #dde3e1;
  --muted: #a4b2af;
  --sea: #7fa89f;
  --rule: rgba(234, 220, 180, .28);

  --display: "Libre Caslon Display", "Big Caslon", Georgia, "Times New Roman", serif;
  --text: "Libre Franklin", "Franklin Gothic Medium", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(1.25rem, 5vw, 3.5rem);
  --page: 72rem;
  --measure: 38rem;

  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { color-scheme: dark; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ink); color: var(--fog);
  font: 400 1.075rem/1.7 var(--text); -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .wordmark, dt.serif { font-family: var(--display); font-weight: 400; letter-spacing: 0; }
h2 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); line-height: 1.05; margin: 0 0 1.25rem; }
h3 { font-size: 1.6rem; line-height: 1.15; margin: 0 0 .4rem; }
p { margin: 0 0 1.1em; }
.muted { color: var(--muted); }
.intro { max-width: var(--measure); color: var(--muted); }
.tag { color: var(--champagne); font-weight: 500; margin-bottom: .75rem; }

a { color: inherit; }
:focus-visible { outline: 2px solid var(--champagne); outline-offset: 4px; }

.skip { position: absolute; left: var(--gutter); top: -4rem; background: var(--fog); color: var(--ink); padding: .6rem 1rem; z-index: 50; }
.skip:focus { top: .75rem; }

/* header floats over the hero */
.top {
  position: absolute; inset: 0 0 auto 0; z-index: 20;
  display: flex; flex-wrap: wrap; gap: .75rem 2rem; align-items: baseline; justify-content: space-between;
  max-width: var(--page); margin: 0 auto; padding: 1.5rem var(--gutter);
}
.wordmark { font-size: 1.5rem; text-decoration: none; line-height: 1.15; display: inline-flex; flex-direction: column; }
.wordmark span { font: 400 .8rem/1.4 var(--text); color: var(--muted); margin-top: .1rem; }
.top nav { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; font-size: .95rem; }
.top nav a { text-decoration: none; opacity: .85; padding: .25rem 0; }
.top nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--champagne); }

.wrap { max-width: var(--page); margin: 0 auto; padding: clamp(3.5rem, 9vw, 6.5rem) var(--gutter); }
.band { background: var(--harbor); }

.button {
  display: inline-block; text-decoration: none; cursor: pointer; background: var(--champagne); color: var(--ink);
  font: 600 1rem/1 var(--text); padding: 1rem 1.6rem; border: 0; border-radius: 2px; transition: background .2s;
}
.button:hover { background: #f5e9c4; }
.link { text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--sea); }
.link:hover { color: var(--champagne); }

/* photo slots: a moody gradient shows in the hero until its photo exists, other empty slots collapse.
   Every photo gets the same film grade and grain. */
.shot {
  position: relative; margin: 0; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(55% 60% at 80% 85%, rgba(234, 220, 180, .24), transparent 70%),
    radial-gradient(60% 60% at 10% 5%, rgba(74, 18, 34, .8), transparent 70%),
    linear-gradient(180deg, #16303a, #0a0f12);
}
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: contrast(1.1) saturate(.85) brightness(.92); }
.shot::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background-image: var(--grain); background-size: 180px; opacity: .13; mix-blend-mode: overlay; }
.shot figcaption { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 1.1rem; z-index: 2; font: italic 400 1.1rem/1.35 var(--display); text-shadow: 0 1px 12px rgba(0,0,0,.7); }
.shot.empty { display: none; }

/* hero */
/* text on the left, photo panel on the right, so the headline never sits on a face */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: min(46rem, 100svh); }
.hero .shot { grid-column: 2; grid-row: 1; }
.hero .shot.empty { display: block; }
.hero .shot::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(90deg, var(--ink) 0%, rgba(12,17,20,.55) 18%, transparent 45%), linear-gradient(0deg, var(--ink) 0%, transparent 22%), linear-gradient(180deg, rgba(12,17,20,.6) 0%, transparent 25%);
}
.hero-text {
  grid-column: 1; grid-row: 1; align-self: end; position: relative; z-index: 3; min-width: 0;
  padding: 9rem 2rem clamp(3.5rem, 8vw, 5.5rem) max(var(--gutter), calc((100vw - var(--page)) / 2 + var(--gutter)));
}
.hero h1 { font-size: clamp(3rem, 8vw, 7rem); line-height: .95; margin: 0 0 1.5rem; }
.lede { font-size: clamp(1.1rem, 2.2vw, 1.3rem); max-width: 36rem; margin-bottom: 2rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin: 0; }

/* the firm */
.firm-text { margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.firm-text p { max-width: var(--measure); }
.bios { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2rem); align-items: start; }
.bio:has(.shot.empty) { border-left: 1px solid var(--champagne); padding-left: 1.5rem; }
.bio-fig { margin: 0 0 1.1rem; }
.bio .portrait { aspect-ratio: 4 / 5; }
.bio-fig figcaption { margin-top: .6rem; font: italic 400 .95rem/1.4 var(--display); color: var(--muted); }
.bio-fig:has(.shot.empty) { display: none; }
.bio .title { color: var(--champagne); font-weight: 500; margin-bottom: .6rem; }
.bio p:last-child { margin: 0; color: var(--muted); }

/* ads */
.ads { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; padding-block: 0 clamp(3.5rem, 9vw, 6rem); }
.ad { border: 1px solid var(--rule); outline: 1px solid var(--rule); outline-offset: -7px; padding: 1.75rem 1.5rem; text-align: center; }
.ad-label { font: italic 400 .8rem/1 var(--text); color: var(--muted); margin-bottom: 1rem; }
.ad h3 { font-size: 1.4rem; }
.ad p:last-child { margin: 0; color: var(--muted); font-size: .98rem; }

/* cases */
.ledger { list-style: none; margin: 2.5rem 0 0; padding: 0; border-top: 1px solid var(--rule); }
.ledger li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) 11rem; gap: .5rem 2rem; align-items: baseline; padding: 1.6rem 0; border-bottom: 1px solid var(--rule); }
.ledger h3 { margin: 0; }
.ledger p { margin: 0; }
.ledger p:nth-child(2) { color: var(--muted); }
.result { font-style: italic; color: var(--champagne); }

/* now investigating */
.shot.wide { aspect-ratio: 21 / 8; min-height: 14rem; }
.shot.wide::before, .shot.sus::before { content: ""; position: absolute; inset: auto 0 0 0; height: 45%; z-index: 1; pointer-events: none; background: linear-gradient(0deg, rgba(12,17,20,.8), transparent); }
.shot.board { aspect-ratio: 21 / 9; }
.now-side { display: grid; gap: 1.5rem; min-width: 0; }
.shot.sus { aspect-ratio: 16 / 9; }
.shot.sus figcaption { left: 1rem; right: 1rem; font-size: 1rem; }
.now { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.now-text p:not(.tag) { max-width: var(--measure); }
.notice { margin: 1.5rem 0; }
.notice > div { padding: .9rem 0 .9rem 1.25rem; border-left: 1px solid var(--rule); }
.notice dt { font-family: var(--display); font-size: 1.25rem; }
.notice dd { margin: .15rem 0 0; color: var(--muted); }
.file { margin: 0; background: var(--harbor); border: 1px solid var(--rule); border-top: 3px solid var(--merlot); padding: 1.5rem 1.75rem; }
.file > div { padding: .85rem 0; border-bottom: 1px solid var(--rule); }
.file > div:last-child { border-bottom: 0; }
.file dt { font-size: .85rem; color: var(--champagne); font-weight: 500; }
.file dd { margin: .2rem 0 0; }

.interest { padding-top: 0; }
.people { list-style: none; margin: 2rem 0 0; padding: 0; max-width: 46rem; border-top: 1px solid var(--rule); }
.people li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.role { font-family: var(--display); font-size: 1.25rem; }
.redact {
  cursor: pointer; font: inherit; text-align: left; padding: .15rem .6rem; border: 0; border-radius: 2px;
  background: #000; color: #000; user-select: none; min-height: 2.25rem; transition: background .2s, color .2s;
}
.redact:hover { background: #1c1c1c; color: #1c1c1c; }
.redact[aria-pressed="true"] { background: transparent; color: var(--champagne); font-style: italic; user-select: auto; }

.board { margin-top: clamp(1rem, 3vw, 2rem); }

/* hire */
.hire-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.rates { margin: 2rem 0 0; }
.rates > div { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--rule); }
.rates > div:last-child { border-bottom: 1px solid var(--rule); }
.rates dt { font-family: var(--display); font-size: 1.3rem; line-height: 1.2; }
.rates dd { margin: 0; color: var(--muted); }
.tipline { border: 1px solid var(--rule); padding: 1.75rem; background: var(--ink); }
.closed { color: var(--muted); font-style: italic; margin: 0; }
.signup label { display: block; font-weight: 500; margin-bottom: .5rem; color: var(--champagne); }
.signup .row { display: flex; flex-wrap: wrap; gap: .6rem; }
.signup input[type="email"] { flex: 1 1 13rem; min-width: 0; padding: 1rem; font: inherit; color: var(--fog); background: var(--harbor); border: 1px solid var(--rule); border-radius: 2px; }
.signup input[type="email"]::placeholder { color: var(--muted); }
.signup .hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.status { min-height: 1.5em; margin: .75rem 0 0; color: var(--champagne); font-size: .95rem; }

/* footer */
.foot { max-width: var(--page); margin: 0 auto; padding: 3rem var(--gutter) 4rem; }
.foot .wordmark { margin: 0 0 .5rem; }
.foot p:last-child { margin: 0; font-size: .95rem; }

/* tablet and phone */
@media (max-width: 62rem) {
  .ledger li { grid-template-columns: minmax(0, 1fr) 11rem; }
  .ledger li p:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .top { position: relative; background: var(--ink); }
  .hero { display: block; min-height: 0; }
  .hero .shot, .hero .shot.empty { aspect-ratio: 4 / 3; }
  .hero .shot::before { background: linear-gradient(0deg, var(--ink) 0%, transparent 22%); }
  .hero-text { padding: 1.75rem var(--gutter) clamp(3.5rem, 9vw, 6rem); }
}
@media (max-width: 48rem) {
  .now, .hire-grid { grid-template-columns: 1fr; }
  .bios { grid-template-columns: 1fr; max-width: 26rem; gap: 2.25rem; }
  .shot.board { aspect-ratio: 4 / 3; }
  .hero .shot, .hero .shot.empty { aspect-ratio: 1 / 1; }
  .ads { grid-template-columns: 1fr; }
  .shot.wide { aspect-ratio: 4 / 3; }
  .ledger li { grid-template-columns: 1fr; }
  .ledger li p:nth-child(2) { grid-column: auto; grid-row: auto; }
  .rates > div { grid-template-columns: 1fr; gap: .25rem; }
  .bio { grid-template-columns: 8.5rem minmax(0, 1fr); gap: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .redact, .button { transition: none; }
}
