/* The Pool Firm. Strict black, white and gray palette. Mobile first. */
:root {
  --black: #0b0b0b;
  --ink: #161616;
  --ink-soft: #3d3d3d;
  --muted: #6e6e6e;
  --line: #dcdcdc;
  --line-dark: #3a3a3a;
  --paper: #ffffff;
  --paper-2: #f4f4f4;
  --max: 1120px;
  --serif: "Source Serif Pro", Georgia, "Times New Roman", serif;
  --sans: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
}

@font-face { font-family: "Cinzel"; src: url("fonts/Cinzel.ttf") format("truetype"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Libre Franklin"; src: url("fonts/LibreFranklin.ttf") format("truetype"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Libre Franklin"; src: url("fonts/LibreFranklin-Italic.ttf") format("truetype"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Source Serif Pro"; src: url("fonts/SourceSerifPro-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Source Serif Pro"; src: url("fonts/SourceSerifPro-It.ttf") format("truetype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Source Serif Pro"; src: url("fonts/SourceSerifPro-Semibold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Source Serif Pro"; src: url("fonts/SourceSerifPro-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 7.5rem; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 1rem; line-height: 1.7; font-weight: 400; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.2; margin: 0; letter-spacing: 0.005em; }
h2 { font-size: 1.85rem; margin-bottom: 1.5rem; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1rem; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--black); color: #fff; padding: 0.75rem 1rem; z-index: 100; }
.skip:focus { left: 0.5rem; top: 0.5rem; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

.eyebrow { font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.9rem; font-weight: 500; }
.eyebrow::before { content: ""; display: inline-block; width: 1.75rem; height: 1px; background: currentColor; vertical-align: middle; margin-right: 0.75rem; }
.eyebrow-light { color: #c8c8c8; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.97); border-bottom: 1px solid var(--line); }
.header-inner { max-width: var(--max); margin: 0 auto; padding: 0.8rem 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.wordmark { text-decoration: none; display: flex; flex-direction: column; line-height: 1.1; min-height: 44px; justify-content: center; }
.wordmark-name { font-family: "Cinzel", var(--serif); font-size: 1.2rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--black); }
.wordmark-place { font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-top: 0.3rem; }
.pay-link { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem; border: 1px solid var(--black); color: var(--black); text-decoration: none; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; white-space: nowrap; }
.pay-link:hover { background: var(--black); color: #fff; }
.primary-nav { border-top: 1px solid var(--line); }
.primary-nav ul { list-style: none; margin: 0 auto; padding: 0 0.5rem; max-width: var(--max); display: flex; overflow-x: auto; scrollbar-width: none; }
.primary-nav ul::-webkit-scrollbar { display: none; }
.primary-nav a { display: flex; align-items: center; min-height: 44px; padding: 0 0.75rem; text-decoration: none; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); white-space: nowrap; }
.primary-nav a:hover { color: var(--black); text-decoration: underline; text-underline-offset: 6px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 1.6rem; font-family: var(--sans); font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500; text-decoration: none; border: 1px solid var(--black); background: var(--black); color: #fff; cursor: pointer; }
.btn-light { background: #fff; color: var(--black); border-color: #fff; }
.btn-light:hover { background: transparent; color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.7); }
.btn-ghost:hover { background: #fff; color: var(--black); }
.btn-outline-light { background: transparent; color: #fff; border-color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--black); }

/* Hero */
.hero { position: relative; color: #fff; background: var(--black); min-height: 78vh; display: flex; align-items: flex-end; overflow: hidden; }
.hero-photo, .hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-photo img { object-fit: cover; object-position: 40% 50%; filter: grayscale(1); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.55) 45%, rgba(0,0,0,0.85) 100%); }
.hero-inner { position: relative; z-index: 1; max-width: var(--max); margin: 0 auto; padding: 6rem 1.25rem 3.25rem; width: 100%; }
.hero h1 { font-size: 2.15rem; line-height: 1.15; max-width: 17em; margin-bottom: 1.25rem; }
.hero .lede { font-size: 1.05rem; color: #e2e2e2; max-width: 36rem; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Sections */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--paper-2); }
.section-dark { background: var(--black); color: #f2f2f2; }
.two-col { display: grid; gap: 1.5rem; }
.prose p { color: var(--ink-soft); font-size: 1.05rem; }
.intro { color: var(--ink-soft); max-width: 40rem; margin-bottom: 2rem; }

/* Consulting areas */
.practice-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.practice-list li { display: grid; grid-template-columns: 2.75rem 1fr; gap: 0.75rem; padding: 1.75rem 0; border-bottom: 1px solid var(--line); }
.practice-num { font-family: var(--serif); font-size: 1.15rem; color: var(--muted); padding-top: 0.05rem; }
.practice-list h3 { margin-bottom: 0.6rem; }
.practice-list p { color: var(--ink-soft); margin: 0; }

/* Photos */
.photo-band { margin: 0; background: var(--black); }
.photo-band img { width: 100%; height: 52vw; max-height: 520px; object-fit: cover; filter: grayscale(1); }
.approach-layout { display: grid; gap: 2.5rem; }
.approach-photo { margin: 0; }
.approach-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(1); }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 0 0 1.6rem 3rem; }
.steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 0.1rem; font-family: var(--serif); font-size: 1rem; color: var(--muted); }
.steps h3 { margin-bottom: 0.35rem; }
.steps p { color: var(--ink-soft); margin: 0; }

/* Clients */
.client-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ink); }
.client-list li { padding: 1rem 0.5rem 1rem 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 1.1rem; }

/* Affiliates */
.company-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.company-card { display: block; height: 100%; padding: 1.75rem; border: 1px solid var(--line); text-decoration: none; transition: border-color 0.15s; }
.company-card:hover { border-color: var(--black); }
.company-kicker { display: block; font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.75rem; }
.company-card h3 { font-size: 1.35rem; font-weight: 400; margin-bottom: 0.5rem; }
.company-card p { color: var(--ink-soft); }
.company-link { font-size: 0.85rem; text-decoration: underline; text-underline-offset: 4px; color: var(--ink); }

/* Consultation */
.contact-layout { display: grid; gap: 2.5rem; }
.section-dark h2 { color: #fff; }
.contact-details > p { color: #cfcfcf; }
.detail-list { margin: 2rem 0 0; border-top: 1px solid var(--line-dark); }
.detail-list div { display: grid; grid-template-columns: 6rem 1fr; gap: 1rem; padding: 0.85rem 0; border-bottom: 1px solid var(--line-dark); }
.detail-list dt { font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: #9a9a9a; padding-top: 0.2rem; }
.detail-list dd { margin: 0; color: #f2f2f2; }
.contact-form { border: 1px solid var(--line-dark); padding: 1.5rem; }
.form-preview-note { font-size: 0.8rem; color: #a8a8a8; font-style: italic; margin-bottom: 1.25rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: #bdbdbd; margin-bottom: 0.4rem; }
.optional { text-transform: none; letter-spacing: 0; color: #8a8a8a; }
.field input, .field textarea, .field select { width: 100%; min-height: 48px; padding: 0.7rem 0.8rem; font: inherit; font-size: 1rem; color: #fff; background: #151515; border: 1px solid #4a4a4a; border-radius: 0; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #bbb 50%), linear-gradient(135deg, #bbb 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.5rem; }
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: #fff; }

/* Footer */
.site-footer { background: #000; color: #bdbdbd; padding: 3.5rem 0 1.5rem; font-size: 0.92rem; border-top: 1px solid #222; }
.footer-grid { display: grid; gap: 2.25rem; }
.footer-brand { font-family: "Cinzel", var(--serif); color: #fff; font-size: 1.1rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.75rem; }
.footer-label { font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: #fff; margin-bottom: 0.75rem; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-base { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid #222; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; font-size: 0.8rem; color: #8a8a8a; }

@media (min-width: 720px) {
  h2 { font-size: 2.2rem; }
  .hero h1 { font-size: 3rem; }
  .hero-inner { padding: 8rem 2rem 4.5rem; }
  .wrap, .header-inner { padding-left: 2rem; padding-right: 2rem; }
  .section { padding: 6rem 0; }
  .company-grid { grid-template-columns: 1fr 1fr; }
  .client-list { grid-template-columns: repeat(3, 1fr); }
  .practice-list li { grid-template-columns: 4rem 1fr; }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
}

@media (min-width: 1024px) {
  html { scroll-padding-top: 5rem; }
  .site-header { display: flex; align-items: center; }
  .site-header { justify-content: space-between; padding: 0 max(2rem, calc((100vw - var(--max)) / 2 + 2rem)); }
  .header-inner { display: contents; }
  .wordmark { order: 1; }
  .primary-nav { order: 2; border-top: 0; margin-left: auto; }
  .primary-nav ul { padding: 0; }
  .pay-link { order: 3; margin-left: 1rem; }
  .site-header { min-height: 76px; }
  .hero h1 { font-size: 3.6rem; }
  .two-col { grid-template-columns: 1fr 1.3fr; gap: 4rem; }
  .practice-list li { grid-template-columns: 5rem 1fr; }
  .practice-list li > div { display: grid; grid-template-columns: 1fr 1.5fr; gap: 3rem; }
  .approach-layout { grid-template-columns: 1.2fr 1fr; gap: 4.5rem; align-items: center; }
  .contact-layout { grid-template-columns: 1fr 1.1fr; gap: 4.5rem; }
  .contact-form { padding: 2.25rem; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* Narrow phone header refinements */
.wordmark-place { white-space: nowrap; }
@media (max-width: 479px) {
  .wordmark-name { font-size: 1.05rem; letter-spacing: 0.1em; }
  .wordmark-place { font-size: 0.56rem; letter-spacing: 0.14em; }
  .pay-link { padding: 0 0.75rem; font-size: 0.66rem; letter-spacing: 0.1em; }
  .primary-nav a { padding: 0 0.6rem; font-size: 0.66rem; letter-spacing: 0.1em; }
  .primary-nav { -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
}

/* Courtyard and arch details: simple, clean, light */
.arch-frame { margin: 0; overflow: hidden; border-radius: 999px 999px 0 0; background: var(--paper-2); }
.arch-frame img { width: 100%; filter: grayscale(1); }
.firm-layout { display: grid; gap: 2.75rem; align-items: center; }
.firm-photo { width: min(78%, 340px); justify-self: center; }
.firm-photo img { aspect-ratio: 3 / 4; object-fit: cover; }
.approach-photo.arch-frame img { aspect-ratio: 3 / 4; object-position: 60% 50%; }
.arch-divider { display: flex; align-items: flex-end; justify-content: center; gap: 1.25rem; color: var(--ink); padding: 3rem 1.25rem 0; background: var(--paper); }
.arch-divider::before, .arch-divider::after { content: ""; flex: 0 1 9rem; height: 1px; background: var(--ink); margin-bottom: 0; }
.arch-divider svg { display: block; }
.arch-divider + .section-alt { margin-top: 0; }
.section { padding: 5rem 0; }
@media (min-width: 720px) { .section { padding: 7rem 0; } }
@media (min-width: 1024px) {
  .section { padding: 8.5rem 0; }
  .firm-layout { grid-template-columns: 0.8fr 1.2fr; gap: 6rem; }
  .firm-photo { width: 100%; max-width: 400px; }
  .approach-photo { max-width: 440px; justify-self: end; width: 100%; }
}
.prose .eyebrow { font-size: 0.72rem; color: var(--muted); }
.arch-divider { padding: 0 1.25rem 4rem; margin-top: -1rem; }

/* Contact and footer links */
.detail-list a,
.footer-contact a,
.pay-modal-contact a,
.form-preview-note a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.detail-list a { color: #fff; }
.detail-list dd a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-contact a { color: #f2f2f2; display: inline-flex; align-items: center; min-height: 44px; }
.footer-contact a:hover,
.detail-list a:hover,
.form-preview-note a:hover { color: #fff; }
.form-preview-note a { color: #f2f2f2; }

/* Pay-an-invoice fallback (used until SQUARE_PAY_URL is set) */
.pay-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}
.pay-modal[hidden] { display: none; }
.pay-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}
.pay-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 28rem);
  background: var(--paper);
  color: var(--ink);
  padding: 2.4rem 1.85rem 1.85rem;
  border: 1px solid var(--black);
  max-height: calc(100vh - 2.5rem);
  overflow: auto;
}
.pay-modal-dialog h2 { font-size: 1.65rem; margin-bottom: 1rem; }
.pay-modal-dialog p { color: var(--ink-soft); }
.pay-modal-contact { margin: 1.25rem 0 1.5rem; }
.pay-modal-contact a { color: var(--black); display: inline-flex; align-items: center; min-height: 44px; }
.pay-modal-contact a:hover { color: var(--black); }
.pay-modal-close {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.pay-modal-close:hover { color: var(--black); }
body.pay-modal-open { overflow: hidden; }
.nowrap { white-space: nowrap; }


/* Blog */
.primary-nav a[aria-current="page"] { color: var(--black); text-decoration: underline; text-underline-offset: 6px; }
.page-hero { padding: 4.5rem 0 0; }
.page-hero h1 { font-size: 2.15rem; margin-bottom: 1.25rem; max-width: 18em; }
@media (min-width: 720px) { .page-hero h1 { font-size: 3rem; } }
@media (min-width: 1024px) { .page-hero { padding-top: 6rem; } .page-hero h1 { font-size: 3.6rem; } }
.blog-empty { color: var(--ink-soft); font-size: 1.05rem; max-width: 36rem; margin: 0; }
.blog-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.blog-list li { padding: 1.75rem 0; border-bottom: 1px solid var(--line); }
.blog-list h2 { font-size: 1.5rem; margin: 0 0 0.5rem; }
.blog-list h2 a { text-decoration: none; }
.blog-list h2 a:hover { text-decoration: underline; text-underline-offset: 6px; }
.blog-date { display: block; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.6rem; font-weight: 500; }
.blog-list .summary { color: var(--ink-soft); margin: 0; }
.article { max-width: 40rem; }
.article-header { margin-bottom: 2.5rem; }
.article-body { font-size: 1.05rem; }
.article-body p, .article-body li { color: var(--ink-soft); }
.article-body h2 { font-size: 1.5rem; margin: 2.25rem 0 1rem; }
.article-body h3 { margin: 1.75rem 0 0.75rem; }
.article-body a { text-decoration: underline; text-underline-offset: 4px; }
.article-body ul, .article-body ol { margin: 0 0 1rem; padding-left: 1.25rem; }
.article-back { margin-top: 3rem; }
.article-back a { font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; font-weight: 500; }
.article-back a:hover { text-decoration: underline; text-underline-offset: 6px; }
