@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=DM+Sans:wght@400;500;600&display=swap");

/* ─── TOKENS ─────────────────────────────────────────────── */
:root {
  --bg:    #ffffff;
  --bg2:   #f5f4f0;
  --text:  #111110;
  --muted: rgba(17,17,16,0.52);
  --line:  rgba(17,17,16,0.10);

  --teal:        #0D7377;
  --teal-light:  #0f8a8f;
  --teal-bg:     rgba(13,115,119,0.07);
  --teal-border: rgba(13,115,119,0.20);

  --max:      1080px;
  --radius:   12px;
  --radiusLg: 18px;

  --fontDisplay: 'Playfair Display', Georgia, serif;
  --fontBody:    'DM Sans', system-ui, sans-serif;
}

/* ─── RESET ───────────────────────────────────────────────── */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: var(--fontBody); line-height: 1.72; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--fontDisplay); line-height: 1.06; margin: 0 0 16px 0; letter-spacing: -0.02em; }
h1 { font-size: clamp(42px, 6vw, 72px); font-weight: 900; }
h2 { font-size: clamp(28px, 3.5vw, 42px); font-weight: 700; }
h3 { font-size: 18px; font-weight: 700; font-family: var(--fontBody); }
p { margin: 0 0 20px 0; }
p:last-child { margin-bottom: 0; }
.small  { font-size: 15px; color: var(--muted); line-height: 1.65; }
.italic { font-style: italic; }
.bold   { font-weight: 600; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 32px; }

/* ─── HEADER ──────────────────────────────────────────────── */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.94); backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); }
.headerInner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 0; }
.brandBlock { display: flex; flex-direction: column; gap: 2px; }
.brandName { font-family: var(--fontDisplay); font-weight: 700; font-size: 20px; color: var(--text); letter-spacing: -0.01em; }
.brandRole { font-size: 11px; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; justify-content: flex-end; }
.nav a { padding: 8px 14px; color: var(--muted); border-radius: 8px; font-size: 14px; font-weight: 500; transition: background 0.15s, color 0.15s; }
.nav a:hover { background: rgba(17,17,16,0.05); color: var(--text); text-decoration: none; }
.nav a.active { color: var(--teal); font-weight: 600; }

/* ─── KICKER ──────────────────────────────────────────────── */
.kicker { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--teal); margin: 0 0 18px 0; display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.kicker::before { content: ""; width: 20px; height: 2px; background: var(--teal); display: inline-block; }

/* ─── SECTIONS ────────────────────────────────────────────── */
.section    { padding: 80px 0; }
.sectionAlt { padding: 80px 0; background: var(--bg2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ─── HERO ────────────────────────────────────────────────── */
.heroSection { padding: 80px 0 64px; border-bottom: 1px solid var(--line); }
.heroLayout  { display: grid; grid-template-columns: 1fr 380px; gap: 48px; align-items: start; }
.heroEyebrow { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; font-weight: 600; }
.heroHeadline { font-family: var(--fontDisplay); font-size: clamp(44px, 6vw, 76px); font-weight: 900; line-height: 1.02; letter-spacing: -0.025em; margin: 0 0 28px 0; }
.period { color: var(--teal); }
.heroBody { font-size: 16px; color: var(--muted); line-height: 1.7; max-width: 520px; margin-bottom: 32px; }
.heroActions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.heroImageBox { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radiusLg); overflow: hidden; aspect-ratio: 3/4; display: flex; align-items: center; justify-content: center; }
.portraitPlaceholder { color: var(--muted); font-size: 12px; letter-spacing: 0.08em; text-align: center; padding: 20px; }
.portraitImg { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ─── ABOUT HERO ──────────────────────────────────────────── */
.aboutHero { padding: 80px 0 0; border-bottom: 1px solid var(--line); }
.aboutHeroInner { display: grid; grid-template-columns: 1fr 340px; gap: 64px; align-items: end; }
.aboutImageBox { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radiusLg) var(--radiusLg) 0 0; overflow: hidden; aspect-ratio: 3/4; display: flex; align-items: center; justify-content: center; }

/* ─── STRIP ───────────────────────────────────────────────── */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px 0; background: var(--text); overflow: hidden; }
.stripInner { display: flex; gap: 48px; white-space: nowrap; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.6); font-weight: 600; }
.stripDot { color: var(--teal); }

/* ─── STATS ───────────────────────────────────────────────── */
.statsRow { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.statItem { background: var(--bg); padding: 32px 28px; }
.statNumber { font-family: var(--fontDisplay); font-weight: 900; font-size: 52px; line-height: 1; color: var(--text); margin: 0 0 8px 0; }
.statNumber span { color: var(--teal); }
.statLabel { font-size: 13px; color: var(--muted); line-height: 1.5; margin: 0; }

/* ─── WORK GRID ───────────────────────────────────────────── */
.workGrid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radiusLg); overflow: hidden; }
.workItem { background: var(--bg); padding: 36px; transition: background 0.15s; cursor: pointer; }
.workItem:hover { background: var(--teal-bg); }
.workNumber { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal); font-weight: 600; margin-bottom: 16px; }
.workTitle { font-family: var(--fontDisplay); font-size: 22px; font-weight: 700; line-height: 1.15; margin: 0 0 12px 0; letter-spacing: -0.01em; }
.workDesc { font-size: 14px; color: var(--muted); line-height: 1.6; margin: 0 0 20px 0; }
.workLink { font-size: 13px; font-weight: 600; color: var(--teal); letter-spacing: 0.04em; }
.workLink:hover { text-decoration: underline; }

/* ─── STATEMENT ROW ───────────────────────────────────────── */
.statementRow { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.statementCard { border: 1px solid var(--line); padding: 24px; border-radius: var(--radius); font-size: 15px; font-weight: 500; line-height: 1.55; color: var(--text); background: var(--bg); }

/* ─── PRACTICE GRID ───────────────────────────────────────── */
.practiceGrid { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radiusLg); overflow: hidden; }
.practiceItem { padding: 36px; border-bottom: 1px solid var(--line); transition: background 0.15s; }
.practiceItem:last-child { border-bottom: none; }
.practiceItem:hover { background: var(--teal-bg); }
.practiceHeader { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 12px; }
.practiceTitle { font-family: var(--fontDisplay); font-size: 24px; font-weight: 700; margin: 0; letter-spacing: -0.01em; }
.practiceDesc { font-size: 15px; color: var(--muted); line-height: 1.6; margin: 0 0 16px 0; }
.practiceList { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.practiceTag { font-size: 12px; padding: 4px 10px; border-radius: 99px; background: var(--teal-bg); border: 1px solid var(--teal-border); color: var(--teal); font-weight: 500; }

/* ─── CASE STUDY LINKS ────────────────────────────────────── */
.caseStudyLinks { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.caseStudyLabel { font-size: 10px; letter-spacing: 0.20em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin: 0 0 8px 0; }
.caseStudyLink  { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--teal); text-decoration: none; margin-right: 16px; font-weight: 600; }
.caseStudyLink:hover { text-decoration: underline; }

/* ─── CREDENTIALS ─────────────────────────────────────────── */
.credGrid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.credLabel { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--teal); font-weight: 600; margin: 0 0 14px 0; }
.credItem { font-size: 15px; color: var(--muted); line-height: 1.7; margin: 0 0 6px 0; }
.credItem:last-child { margin-bottom: 0; }

/* ─── SPLITS ──────────────────────────────────────────────── */
.splitLayout     { display: grid; grid-template-columns: 1fr 1fr;   gap: 64px; align-items: start; }
.splitLayoutWide { display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; align-items: start; }

/* ─── BUTTONS ─────────────────────────────────────────────── */
.button        { display: inline-flex; align-items: center; gap: 8px; background: var(--text); color: #fff; padding: 14px 26px; font-weight: 700; font-size: 14px; letter-spacing: 0.02em; text-decoration: none; border-radius: 99px; transition: background 0.15s, transform 0.12s; font-family: var(--fontBody); }
.button:hover  { background: var(--teal); color: #fff; text-decoration: none; transform: translateY(-1px); }
.buttonOutline { display: inline-flex; align-items: center; gap: 8px; background: transparent; color: var(--text); padding: 13px 26px; font-weight: 600; font-size: 14px; text-decoration: none; border-radius: 99px; border: 1.5px solid var(--line); transition: border-color 0.15s, color 0.15s; font-family: var(--fontBody); }
.buttonOutline:hover { border-color: var(--teal); color: var(--teal); text-decoration: none; }
.buttonTeal    { display: inline-flex; align-items: center; gap: 8px; background: var(--teal); color: #fff; padding: 14px 26px; font-weight: 700; font-size: 14px; text-decoration: none; border-radius: 99px; transition: background 0.15s, transform 0.12s; font-family: var(--fontBody); }
.buttonTeal:hover { background: var(--teal-light); color: #fff; text-decoration: none; transform: translateY(-1px); }

/* ─── CTA BAND ────────────────────────────────────────────── */
.ctaBand      { background: var(--text); padding: 80px 0; }
.ctaBand h2   { color: #fff; }
.ctaBand p    { color: rgba(255,255,255,0.6); font-size: 16px; line-height: 1.65; margin-bottom: 32px; }
.ctaBandInner { display: flex; justify-content: space-between; align-items: center; gap: 48px; flex-wrap: wrap; }

/* ─── FOOTER ──────────────────────────────────────────────── */
.footer       { border-top: 1px solid var(--line); padding: 28px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-name  { font-family: var(--fontDisplay); font-weight: 700; font-size: 16px; color: var(--text); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 13px; color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--teal); }
.footer-copy  { font-size: 13px; color: var(--muted); }

/* ─── CASE STUDY PAGES ────────────────────────────────────── */
.cs-hero  { padding: 80px 0 56px; border-bottom: 1px solid var(--line); }
.cs-back  { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--teal); font-weight: 600; margin-bottom: 28px; text-decoration: none; }
.cs-back:hover { text-decoration: underline; }
.cs-lead  { font-size: 17px; color: var(--muted); max-width: 680px; line-height: 1.7; margin-top: 16px; }

.cs-meta  { display: flex; gap: 40px; flex-wrap: wrap; margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--line); }
.cs-meta-label { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--teal); font-weight: 600; margin: 0 0 4px 0; }
.cs-meta-value { font-size: 14px; color: var(--text); margin: 0; }
.cs-meta-note  { font-style: italic; color: var(--muted); }

.cs-section { padding: 80px 0; }
.cs-alt     { background: var(--bg2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cs-split   { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }

/* callout */
.cs-callout { border: 1px solid var(--line); border-radius: var(--radiusLg); overflow: hidden; }
.cs-callout-label { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--teal); font-weight: 600; margin: 0 0 12px 0; }
.cs-callout-text  { font-size: 17px; font-weight: 600; line-height: 1.5; color: var(--text); margin: 0; font-family: var(--fontDisplay); }
.cs-callout-top   { padding: 28px; background: var(--teal-bg); border-bottom: 1px solid var(--teal-border); }
.cs-stat-row      { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); }
.cs-stat-row > div { background: var(--bg); padding: 24px; }
.cs-stat-num      { font-family: var(--fontDisplay); font-weight: 900; font-size: 44px; line-height: 1; color: var(--text); margin: 0 0 6px 0; }
.cs-stat-num span { color: var(--teal); }
.cs-stat-label    { font-size: 13px; color: var(--muted); line-height: 1.5; margin: 0; }

/* phases */
.cs-phases    { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radiusLg); overflow: hidden; }
.cs-phase     { display: grid; grid-template-columns: 56px 1fr; border-bottom: 1px solid var(--line); }
.cs-phase:last-child { border-bottom: none; }
.cs-phase-num { background: var(--teal-bg); border-right: 1px solid var(--teal-border); display: flex; align-items: flex-start; justify-content: center; padding: 32px 0 0; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; color: var(--teal); writing-mode: vertical-rl; text-transform: uppercase; }
.cs-phase-body { padding: 32px 36px; }
.cs-phase-body h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.cs-phase-body p  { font-size: 15px; color: var(--muted); line-height: 1.7; }

/* outcomes */
.cs-outcomes  { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radiusLg); overflow: hidden; }
.cs-outcome   { display: flex; gap: 16px; align-items: flex-start; padding: 20px 24px; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.55; }
.cs-outcome:last-child { border-bottom: none; }
.cs-outcome-icon { color: var(--teal); font-weight: 700; font-size: 16px; flex-shrink: 0; margin-top: 2px; }

/* cta */
.cs-cta       { background: var(--text); padding: 80px 0; }
.cs-cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 48px; flex-wrap: wrap; }
.cs-cta h2    { color: #fff; }
.cs-cta p     { color: rgba(255,255,255,0.6); font-size: 16px; line-height: 1.65; max-width: 520px; margin: 0; }
.cs-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; flex-shrink: 0; }

/* ─── ROADMAP ─────────────────────────────────────────────── */
.roadmap { display: grid; gap: 0; }

.roadmap-phase { position: relative; padding-left: 48px; padding-bottom: 48px; }
.roadmap-phase-last { padding-bottom: 0; }

.roadmap-phase-marker { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; align-items: center; height: 100%; }
.roadmap-phase-dot    { width: 16px; height: 16px; border-radius: 99px; background: var(--teal); border: 3px solid var(--bg2); flex-shrink: 0; position: relative; z-index: 1; }
.roadmap-phase-dot-last { background: var(--text); }
.roadmap-phase-line   { width: 2px; background: var(--teal-border); position: absolute; top: 16px; left: 7px; bottom: -48px; }

.roadmap-phase-header { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.roadmap-phase-title-block { flex: 1; min-width: 200px; }
.roadmap-phase-label  { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--teal); font-weight: 600; margin: 0 0 4px 0; }
.roadmap-phase-title  { font-family: var(--fontDisplay); font-size: 28px; font-weight: 700; margin: 0; letter-spacing: -0.01em; }
.roadmap-phase-tag    { padding: 6px 14px; border-radius: 99px; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; background: var(--bg); border: 1px solid var(--line); color: var(--muted); white-space: nowrap; margin-top: 4px; align-self: flex-start; }
.roadmap-phase-tag-teal { background: var(--teal-bg); border-color: var(--teal-border); color: var(--teal); }

.roadmap-phase-body   { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radiusLg); padding: 32px; }
.roadmap-phase-desc   { font-size: 15px; color: var(--muted); line-height: 1.7; margin-bottom: 24px; }
.roadmap-deliverables { display: grid; gap: 12px; }
.roadmap-deliverable  { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.6; color: var(--text); }
.roadmap-deliverable-dot { width: 6px; height: 6px; border-radius: 99px; background: var(--teal); flex-shrink: 0; margin-top: 7px; }

/* ─── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 980px) {
  .headerInner     { flex-direction: column; align-items: flex-start; }
  .nav             { width: 100%; justify-content: flex-start; }
  .heroLayout      { grid-template-columns: 1fr; }
  .aboutHeroInner  { grid-template-columns: 1fr; }
  .aboutImageBox   { aspect-ratio: 4/3; border-radius: var(--radiusLg); }
  .workGrid        { grid-template-columns: 1fr; }
  .statementRow    { grid-template-columns: 1fr; }
  .statsRow        { grid-template-columns: 1fr; }
  .credGrid        { grid-template-columns: 1fr; gap: 32px; }
  .splitLayout     { grid-template-columns: 1fr; gap: 40px; }
  .splitLayoutWide { grid-template-columns: 1fr; gap: 40px; }
  .ctaBandInner    { flex-direction: column; align-items: flex-start; }
  .footer-inner    { flex-direction: column; align-items: flex-start; }
  .cs-split        { grid-template-columns: 1fr; gap: 40px; }
  .cs-stat-row     { grid-template-columns: 1fr; }
  .cs-cta-inner    { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .cs-meta   { gap: 20px; }
  .cs-phase  { grid-template-columns: 1fr; }
  .cs-phase-num { writing-mode: horizontal-tb; border-right: none; border-bottom: 1px solid var(--teal-border); padding: 12px 16px; }
}
