@import url('../colors_and_type.css');

/* ============ Page shell ============ */
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--fg); }
body { font-family: var(--font-body); font-size: 16px; line-height: 1.6; }
#root { min-height: 100vh; }

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 96px 80px;
}
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 760px; margin-bottom: 56px; }
.section-head h2 { font-family: var(--font-display); font-weight: 300; font-size: clamp(32px, 4vw, 52px); line-height: 1.1; letter-spacing: -0.005em; color: inherit; }
.section-head .lead { font-size: 18px; line-height: 1.6; color: var(--fg-muted); margin: 0; max-width: 60ch; }

.surface-paper, .surface-paper .section-head .lead { color: var(--fg-on-paper); }
.surface-paper .section-head .lead { color: var(--slate-500); }

/* ============ Buttons ============ */
.btn { font-family: var(--font-body); font-weight: 600; font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; padding: 14px 22px; cursor: pointer; border: 1px solid transparent; transition: all 140ms var(--ease-standard); background: transparent; color: inherit; border-radius: 0; }
.btn-primary { background: var(--gold-500); color: var(--navy-900); }
.btn-primary:hover { box-shadow: 0 0 0 1px var(--gold-500), 0 12px 32px rgba(175,158,122,.25); }
.btn-primary:active { transform: translateY(1px); opacity: 0.92; }
.btn-ghost { border-color: var(--rule-strong); color: #fff; }
.btn-ghost:hover { background: var(--navy-500); }
.surface-paper .btn-ghost { color: var(--navy-700); border-color: rgba(12,25,36,.20); }
.surface-paper .btn-ghost:hover { background: var(--paper-100); }

.text-link { font-family: var(--font-body); font-weight: 600; font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-500); border-bottom: 1px solid transparent; padding-bottom: 4px; align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; }
.text-link:hover { border-bottom-color: var(--gold-500); }
.text-link .arrow { transition: transform 140ms var(--ease-standard); }
.text-link:hover .arrow { transform: translateX(3px); }

/* ============ Eyebrow row ============ */
.eyebrow-row { display: flex; align-items: center; gap: 14px; }
.eyebrow-row .kicker-label { font-family: var(--font-body); font-weight: 500; font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--fg-muted); }
.eyebrow-row .kicker-right { margin-left: auto; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; color: var(--fg-faint); text-transform: uppercase; }
.surface-paper .kicker-label { color: var(--slate-500); }
.surface-paper .kicker-right { color: var(--slate-400); }

/* ============ Nav ============ */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 10; transition: background 240ms var(--ease-standard), backdrop-filter 240ms var(--ease-standard), border-color 240ms; border-bottom: 1px solid transparent; }
.nav.is-scrolled { background: rgba(12,25,36,.72); backdrop-filter: blur(14px); border-bottom-color: var(--rule); }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 18px 80px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-brand img { height: 22px; display: block; }
.nav-links { display: flex; gap: 32px; }
.nav-links a { font-family: var(--font-body); font-weight: 500; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-muted); border-bottom: 1px solid transparent; }
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav .btn-primary { padding: 11px 18px; font-size: 11px; }

/* ============ Hero ============ */
.hero {
  position: relative;
  padding-top: 180px; padding-bottom: 140px;
  background:
    radial-gradient(120% 70% at 80% -10%, rgba(175,158,122,0.06), transparent 60%),
    var(--navy-700);
  border-bottom: 1px solid var(--rule);
}
.hero-inner { max-width: 1200px; margin: 0 auto; padding: 0 80px; display: flex; flex-direction: column; gap: 32px; }
.hero-title { font-family: var(--font-display); font-weight: 200; font-size: clamp(56px, 8vw, 112px); line-height: 1.0; letter-spacing: -0.01em; color: #fff; margin: 0; max-width: 14ch; }
.hero-italic { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: 0; }
.hero-accent { color: var(--gold-500); }
.hero-lead { font-size: 19px; line-height: 1.55; color: var(--fg-muted); max-width: 56ch; margin: 0; }
.hero-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 64px; padding-top: 28px; margin-top: 24px; border-top: 1px solid var(--rule); }
.hero-meta .meta-col { display: flex; flex-direction: column; gap: 8px; }
.hero-meta .meta-num { font-family: var(--font-display); font-weight: 300; font-size: 28px; color: #fff; letter-spacing: -0.005em; }

/* ============ Services ============ */
.services { background: var(--navy-700); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.service-card { display: flex; flex-direction: column; gap: 14px; padding: 28px; background: var(--navy-800); border: 1px solid var(--rule); position: relative; min-height: 360px; transition: background 240ms var(--ease-standard), border-color 240ms; }
.service-card:hover { background: var(--navy-600); border-color: var(--rule-strong); }
.service-n { position: absolute; top: 22px; right: 24px; font-family: var(--font-mono); font-size: 11px; color: var(--gold-500); letter-spacing: 0.18em; }
.service-card h3 { font-family: var(--font-display); font-weight: 400; font-size: 22px; line-height: 1.22; color: #fff; margin: 0; max-width: 22ch; }
.service-card p { font-size: 14.5px; line-height: 1.6; color: var(--fg-muted); margin: 0; }
.service-bullets { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; padding-top: 12px; border-top: 1px solid var(--rule); }
.service-bullets li { font-size: 13px; color: var(--fg-muted); padding-left: 16px; position: relative; }
.service-bullets li:before { content: '·'; position: absolute; left: 4px; color: var(--gold-500); font-weight: 700; }
.service-card .text-link { margin-top: auto; }

/* ============ Case study (paper) ============ */
.case { background: var(--bg-paper); color: var(--fg-on-paper); }
.case h2 { color: var(--navy-700); }
.case h2 .serif-accent { font-family: var(--font-serif); font-style: italic; font-weight: 400; }
.case-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; align-items: start; }
.case-body .lead { font-size: 19px; line-height: 1.6; color: var(--slate-600); margin: 0 0 32px; max-width: 50ch; }
.case-body blockquote { margin: 0 0 28px; font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: 32px; line-height: 1.25; color: var(--navy-700); max-width: 22ch; }
.case-body blockquote cite { display: block; margin-top: 14px; font-style: normal; font-family: var(--font-body); font-weight: 500; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--slate-500); }
.case-stats { display: flex; flex-direction: column; gap: 24px; padding: 28px; background: #fff; border: 1px solid rgba(12,25,36,.10); }
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat .stat-n { font-family: var(--font-display); font-weight: 300; font-size: 48px; line-height: 1; letter-spacing: -0.01em; color: var(--navy-700); margin-top: 8px; }
.stat .stat-l { font-family: var(--font-body); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--slate-500); }

/* ============ Insights ============ */
.insights { background: var(--navy-700); }
.insights-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.insight { display: grid; grid-template-columns: 160px 1fr 160px; gap: 48px; align-items: start; padding: 28px 0; border-bottom: 1px solid var(--rule); transition: padding 240ms var(--ease-standard); }
.insight:first-child { border-top: 1px solid var(--rule); }
.insight:hover { padding-left: 12px; }
.insight-meta { display: flex; flex-direction: column; gap: 8px; }
.insight-date { font-family: var(--font-mono); font-size: 11px; color: var(--fg-faint); letter-spacing: 0.06em; }
.insight-body h3 { font-family: var(--font-display); font-weight: 400; font-size: 24px; line-height: 1.25; color: #fff; margin: 0 0 6px; max-width: 36ch; }
.insight-body p { font-size: 14px; line-height: 1.55; color: var(--fg-muted); margin: 0; max-width: 56ch; }
.insight .text-link { justify-self: end; align-self: center; }

/* ============ Contact ============ */
.contact { background: var(--bg-paper); color: var(--fg-on-paper); }
.contact h2 { color: var(--navy-700); }
.contact .lead { color: var(--slate-500); }
.contact-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 24px; align-items: end; max-width: 760px; padding: 32px; background: #fff; border: 1px solid rgba(12,25,36,.10); }
.contact-form .field { display: flex; flex-direction: column; gap: 8px; }
.contact-form label { font-family: var(--font-body); font-weight: 500; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--slate-500); }
.contact-form input { background: transparent; border: 0; border-bottom: 1px solid rgba(12,25,36,.20); padding: 10px 2px; color: var(--navy-700); font-family: var(--font-body); font-size: 16px; outline: none; transition: border-color 140ms; }
.contact-form input:focus { border-bottom-color: var(--gold-500); }
.contact-sent { padding: 32px; background: #fff; border: 1px solid rgba(12,25,36,.10); display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.contact-sent h3 { font-family: var(--font-display); font-weight: 400; font-size: 24px; color: var(--navy-700); margin: 0; }
.contact-sent p { color: var(--slate-500); margin: 0; }

/* ============ Practice block (paper) ============ */
.practice { background: var(--bg-paper); color: var(--fg-on-paper); }
.practice h2 { color: var(--navy-700); }
.practice h2 .serif-accent { font-family: var(--font-serif); font-style: italic; font-weight: 400; }
.practice-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 80px; align-items: center; }
.practice-photo { position: relative; }
.practice-photo img {
  display: block; width: 100%; height: auto;
  filter: saturate(0.65) brightness(0.95);
  border: 1px solid rgba(12,25,36,.10);
}
.practice-photo-meta {
  position: absolute; left: -1px; bottom: -1px; right: 24%;
  background: var(--navy-700); color: #fff;
  padding: 18px 22px;
  display: flex; flex-direction: column; gap: 6px;
}
.pp-name { font-family: var(--font-display); font-weight: 400; font-size: 20px; color: #fff; margin-top: 6px; }
.pp-role { font-family: var(--font-mono); font-size: 11px; color: var(--gold-500); letter-spacing: 0.14em; text-transform: uppercase; }
.practice-body { display: flex; flex-direction: column; gap: 20px; }
.practice-body .lead { font-size: 19px; line-height: 1.6; color: var(--slate-600); margin: 0; max-width: 50ch; }
.practice-points { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-direction: column; }
.practice-points li {
  font-size: 14.5px; line-height: 1.6; color: var(--slate-600);
  padding: 14px 0 14px 20px;
  border-top: 1px solid rgba(12,25,36,.10);
  position: relative;
}
.practice-points li:last-child { border-bottom: 1px solid rgba(12,25,36,.10); }
.practice-points li:before { content: '·'; position: absolute; left: 4px; top: 12px; color: var(--gold-500); font-weight: 700; font-size: 18px; }
.practice-points strong { color: var(--navy-700); font-weight: 600; }

/* ============ Footer ============ */
.footer { background: var(--navy-900); padding: 80px 0 32px; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 80px; }
.footer-top { display: grid; grid-template-columns: 1.2fr 2fr; gap: 64px; align-items: start; padding-bottom: 56px; }
.footer-mark { max-width: 360px; opacity: 0.9; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-cols ul { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-direction: column; gap: 8px; }
.footer-cols a, .footer-cols li { font-family: var(--font-body); font-size: 13px; color: var(--fg-muted); border-bottom: 0; }
.footer-cols a:hover { color: var(--gold-500); }
.footer-rule { height: 1px; background: var(--rule); margin-bottom: 24px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 24px; font-family: var(--font-mono); font-size: 11px; color: var(--fg-faint); letter-spacing: 0.14em; text-transform: uppercase; }
.footer-bottom .footer-tag { color: var(--gold-500); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { color: var(--fg-muted); border: 0; }

/* ============ Dialog ============ */
.dialog-scrim { position: fixed; inset: 0; background: rgba(6,15,26,.62); backdrop-filter: blur(2px); display: flex; align-items: center; justify-content: center; z-index: 50; }
.dialog { background: var(--navy-700); border: 1px solid var(--rule-strong); width: min(520px, 92vw); padding: 32px; box-shadow: var(--shadow-3); }
.dialog-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.dialog-x { margin-left: auto; background: transparent; border: 0; color: var(--fg-muted); font-size: 24px; cursor: pointer; line-height: 1; }
.dialog-x:hover { color: #fff; }
.dialog-title { font-family: var(--font-display); font-weight: 300; font-size: 28px; color: #fff; margin: 0 0 16px; }
.dialog .field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.dialog label { font-family: var(--font-body); font-weight: 500; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-muted); }
.dialog input { background: transparent; border: 0; border-bottom: 1px solid var(--rule-strong); padding: 10px 2px; color: #fff; font-family: var(--font-body); font-size: 16px; outline: none; }
.dialog input:focus { border-bottom-color: var(--gold-500); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 24px; }
