/* ==========================================================================
   Daniel J. Klapper: personal site
   Aesthetic: primarily white, navy accents; classic, tailored, editorial.
   Mobile-first. Brand tokens live in :root; change them there.
   ========================================================================== */

:root {
  /* Navy: the single accent color (Fox & Chester standard) */
  --navy: #0b1f3a;
  --navy-700: #14305a;
  --navy-600: #24426f;
  --navy-tint: #eef1f6;

  /* Paper and ink */
  --white: #ffffff;
  --ivory: #f8f6f1;        /* warm off-white for alternating sections */
  --ink: #1a1f29;
  --muted: #5b6270;
  --hairline: #e4dfd5;     /* warm hairline rules */
  --hairline-strong: #cfc8ba;

  /* EB Garamond throughout: headings, body, labels, buttons */
  --font-display: "EB Garamond", Garamond, "Times New Roman", Times, Georgia, serif;
  --font-body: "EB Garamond", Garamond, "Times New Roman", Times, Georgia, serif;

  --header-h: 68px;
  --gutter: 20px;
  --maxw: 1200px;
  --tracking-caps: 0.18em;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0 0 0.5em; font-family: var(--font-display); font-weight: 500; color: var(--navy); line-height: 1.1; }
h1 { font-size: clamp(3rem, 11vw, 6rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(2.25rem, 6vw, 3.4rem); letter-spacing: -0.005em; }
h3 { font-size: 1.6rem; font-weight: 600; line-height: 1.2; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--navy-600); }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 100;
  padding: 10px 14px; background: var(--navy); color: var(--white);
}
.skip-link:focus { top: 12px; }

/* Small caps label used throughout (Ralph Lauren-style tracking) */
.eyebrow, .section-mark, .service-label, .case-tag, .cred-item dt, .affiliations-label,
.highlight-kicker, .case-body dt, .site-nav a, .btn {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
}

/* ---------- Buttons: square, navy, tailored ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 30px;
  line-height: 1; text-decoration: none; border-radius: 0;
  border: 1px solid var(--navy); background: var(--navy); color: var(--white);
  cursor: pointer; transition: background-color .2s ease, color .2s ease;
}
.btn:hover { background: var(--white); color: var(--navy); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 0.76rem; }
.btn-lg { min-height: 56px; padding: 0 36px; font-size: 0.84rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--hairline);
}
.header-inner { display: grid; grid-template-columns: 1fr; align-items: center; height: var(--header-h); }
.wordmark { display: flex; align-items: center; justify-content: center; gap: 12px; text-decoration: none; color: var(--navy); }
.wordmark:hover { color: var(--navy); }
.wordmark-crest { width: 36px; height: 36px; color: var(--navy); flex: none; }
.wordmark-text { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.site-nav, .header-end { display: none; }

/* ---------- Hero ---------- */
.hero { padding: 40px 0 0; }
.hero-grid { display: grid; gap: 36px; align-items: center; }
.eyebrow { color: var(--muted); margin-bottom: 20px; }
.hero h1 { margin-bottom: 16px; }
.hero-tagline {
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: clamp(1.4rem, 3.6vw, 1.9rem); line-height: 1.3; color: var(--navy-700);
  margin-bottom: 22px;
}
.hero-lede { font-size: 1.25rem; color: var(--muted); max-width: 46ch; }
.hero-actions { margin-top: 30px; }
.hero-note { margin: 14px 0 0; font-size: 1rem; color: var(--muted); }

/* Portrait: a frame within a frame, like a picture hung in a study */
.hero-portrait { margin: 0; position: relative; width: 100%; max-width: 420px; justify-self: center; padding: 14px; border: 1px solid var(--hairline-strong); }
.portrait-placeholder, .hero-portrait img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.portrait-placeholder {
  display: grid; place-items: center;
  background-color: var(--navy);
  /* Subtle chalk pinstripe, like suiting cloth */
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,0.06) 0 1px, transparent 1px 18px);
}
.portrait-crest { width: 38%; height: auto; aspect-ratio: 1; color: rgba(255,255,255,0.55); }

.cred-strip {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  margin-top: 56px; padding: 22px 0;
  border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline);
  font-family: var(--font-display); font-size: 1.15rem; font-style: italic; color: var(--navy-700); text-align: center;
}

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-ivory { background: var(--ivory); }
.section-mark { color: var(--muted); margin-bottom: 18px; display: flex; align-items: center; gap: 14px; }
.section-mark span { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; letter-spacing: 0.04em; color: var(--navy); text-transform: none; }
.section-mark::after { content: ""; flex: 0 0 48px; height: 1px; background: var(--hairline-strong); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head-center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head-center .section-mark { justify-content: center; }
.section-intro, .lead { color: var(--muted); max-width: 60ch; }
.lead { font-size: 1.2rem; }

/* About */
.split { display: grid; gap: 40px; }
.cred-list { margin: 0; border-top: 1px solid var(--navy); }
.cred-item { padding: 16px 0; border-bottom: 1px solid var(--hairline); }
.cred-item dt { color: var(--muted); }
.cred-item dd { margin: 4px 0 0; font-family: var(--font-display); font-size: 1.3rem; font-weight: 500; line-height: 1.3; color: var(--navy); }

.highlights { display: grid; margin-top: 64px; border-top: 1px solid var(--hairline); }
.highlight { padding: 28px 0; border-bottom: 1px solid var(--hairline); }
.highlight-kicker { display: block; margin-bottom: 8px; color: var(--muted); }
.highlight p { margin: 0; font-family: var(--font-display); font-size: 1.45rem; line-height: 1.3; color: var(--navy); }

.affiliations { margin-top: 64px; text-align: center; }
.affiliations-label { color: var(--muted); margin-bottom: 22px; }
.logo-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 0; }
.logo-row li {
  padding: 0 18px;
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; letter-spacing: 0.03em; color: var(--navy);
  border-left: 1px solid var(--hairline-strong);
}
.logo-row li:first-child { border-left: 0; }
.logo-row img { height: 32px; width: auto; }

/* Editorial band */
.band {
  --band-image: none;
  position: relative; color: var(--white);
  background-color: var(--navy);
  background-image:
    linear-gradient(rgba(11,31,58,0.86), rgba(11,31,58,0.92)),
    var(--band-image),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 22px);
  background-size: cover; background-position: center;
}
.band-inner { padding-top: 88px; padding-bottom: 88px; text-align: center; max-width: 900px; }
.band-crest { width: 56px; height: 56px; color: rgba(255,255,255,0.7); margin-bottom: 28px; }
.band-quote { margin: 0; font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: clamp(1.6rem, 4.4vw, 2.5rem); line-height: 1.35; }

/* Focus areas: editorial list */
.services { border-top: 1px solid var(--navy); counter-reset: none; }
.service { display: grid; grid-template-columns: 48px 1fr; gap: 6px 16px; padding: 30px 0; border-bottom: 1px solid var(--hairline-strong); }
.service-num { font-family: var(--font-display); font-size: 1.4rem; font-weight: 500; color: var(--muted); line-height: 1.3; }
.service-title h3 { margin-bottom: 6px; }
.service-label { margin: 0; color: var(--muted); }
.service-desc { grid-column: 2; margin: 8px 0 0; color: var(--muted); max-width: 52ch; }

/* Case studies */
.cases { display: grid; gap: 56px; }
.case { border-top: 1px solid var(--navy); padding-top: 26px; }
.case-tag { color: var(--muted); margin-bottom: 14px; }
.case h3 { font-size: clamp(1.7rem, 4vw, 2.1rem); font-weight: 500; margin-bottom: 24px; }
.case-body { margin: 0; display: grid; gap: 20px; }
.case-body dt { color: var(--navy); margin-bottom: 4px; }
.case-body dd { margin: 0; color: var(--muted); }
.case-outcome { padding-left: 18px; border-left: 2px solid var(--navy); }
.case-outcome dd { color: var(--ink); font-family: var(--font-display); font-size: 1.3rem; line-height: 1.4; }

/* Testimonials */
.quotes { display: grid; gap: 48px; }
.quote { margin: 0; text-align: center; }
.quote blockquote { margin: 0 0 16px; font-family: var(--font-display); font-style: italic; font-size: 1.6rem; line-height: 1.4; color: var(--navy); }
.quote blockquote p { margin: 0; }
.quote figcaption { font-size: 1rem; color: var(--muted); }

/* Booking */
.booking-grid { display: grid; gap: 40px; }
.booking-copy > p { color: var(--muted); max-width: 44ch; }
.booking-points { display: grid; gap: 12px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--hairline-strong); }
.booking-points li { position: relative; padding-left: 26px; font-family: var(--font-display); font-size: 1.2rem; color: var(--navy); }
.booking-points li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 12px; height: 1px; background: var(--navy); }
.booking-panel {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 48px 24px; background: var(--white); border: 1px solid var(--hairline-strong);
  outline: 1px solid var(--hairline-strong); outline-offset: -14px; /* frame within a frame, as on the portrait */
}
.booking-crest { width: 56px; height: 56px; color: var(--navy); margin-bottom: 20px; }
.booking-panel-title { margin-bottom: 8px; font-family: var(--font-display); font-size: 1.75rem; font-weight: 500; line-height: 1.2; color: var(--navy); }
.booking-panel-note { max-width: 36ch; margin-bottom: 28px; color: var(--muted); font-size: 1.05rem; }
.booking-alt { margin: 22px 0 0; font-size: 1rem; color: var(--muted); }

/* Footer: the one full navy surface besides the band */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.72); padding: 64px 0 calc(40px + 80px); font-size: 1rem; text-align: center; }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: rgba(255,255,255,0.75); }
.footer-crest { width: 52px; height: 52px; color: var(--white); margin-bottom: 16px; }
.footer-name { margin: 0 0 4px; font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--white); }
.footer-role { margin-bottom: 24px; }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 28px; }
.footer-links a { font-size: 0.8rem; font-weight: 600; letter-spacing: var(--tracking-caps); text-transform: uppercase; text-decoration: none; }
.footer-legal { max-width: 760px; margin: 40px auto 0; padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.15); font-size: 0.85rem; line-height: 1.7; color: rgba(255,255,255,0.55); }
.copyright { margin: 14px 0 0; }

/* Mobile sticky CTA */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,0.97); border-top: 1px solid var(--hairline);
  transform: translateY(110%); transition: transform .25s ease;
}
.mobile-cta.is-visible { transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .mobile-cta, .btn { transition: none; } }

/* ---------- Tablet ---------- */
@media (min-width: 640px) {
  :root { --gutter: 32px; }
  .cred-strip { flex-direction: row; justify-content: center; gap: 0; }
  .cred-strip li { padding: 0 24px; border-left: 1px solid var(--hairline-strong); }
  .cred-strip li:first-child { border-left: 0; }
  .highlights { grid-template-columns: repeat(3, 1fr); border-top: 0; }
  .highlight { padding: 0 28px; border-bottom: 0; border-left: 1px solid var(--hairline-strong); }
  .highlight:first-child { padding-left: 0; border-left: 0; }
  .quotes { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Desktop ---------- */
@media (min-width: 960px) {
  :root { --header-h: 84px; --gutter: 40px; }
  .header-inner { grid-template-columns: 1fr auto 1fr; }
  .site-nav { display: block; }
  .site-nav ul { display: flex; gap: 32px; }
  .site-nav a { text-decoration: none; color: var(--ink); }
  .site-nav a:hover { color: var(--navy); text-decoration: underline; }
  .header-end { display: flex; justify-content: flex-end; }
  .wordmark { flex-direction: column; gap: 4px; }
  .wordmark-crest { width: 30px; height: 30px; }
  .wordmark-text { font-size: 1.15rem; letter-spacing: 0.14em; }

  .hero { padding-top: 88px; }
  .hero-grid { grid-template-columns: 1.25fr 1fr; gap: 80px; }
  .hero-portrait { justify-self: end; }
  .cred-strip { margin-top: 88px; }

  .section { padding: 120px 0; }
  .split { grid-template-columns: 1.2fr 1fr; gap: 96px; align-items: start; }
  .band-inner { padding-top: 120px; padding-bottom: 120px; }

  .service { grid-template-columns: 80px minmax(0, 1.1fr) minmax(0, 1fr); gap: 0 40px; padding: 40px 0; align-items: baseline; }
  .service-desc { grid-column: 3; margin: 0; }
  .service-num { font-size: 1.6rem; }

  .cases { grid-template-columns: repeat(2, 1fr); gap: 64px; }
  .booking-grid { grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
  .booking-panel { padding: 64px 48px; }

  .site-footer { padding-bottom: 48px; }
  .mobile-cta { display: none; }
}
