:root {
  --navy: #001754;
  --blue: #3446eb;
  --ink: #101828;
  --slate: #475467;
  --muted: #667085;
  --line: #dfe4ec;
  --pale: #f4f7ff;
  --ice: #eaf0ff;
  --white: #ffffff;
  --max: 1180px;
  --radius: 18px;
  --shadow: 0 18px 55px rgba(0, 23, 84, 0.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: white; padding: .7rem 1rem; }
.skip-link:focus { left: 8px; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.eyebrow { margin: 0 0 .85rem; color: var(--blue); font-size: .82rem; line-height: 1.2; letter-spacing: .13em; text-transform: uppercase; font-weight: 800; }
h1, h2, h3 { margin: 0; color: var(--navy); font-family: Georgia, "Times New Roman", serif; line-height: 1.08; letter-spacing: -.025em; }
h1 { font-size: clamp(2.75rem, 6vw, 5.6rem); max-width: 13ch; }
h2 { font-size: clamp(2.1rem, 4vw, 3.65rem); max-width: 16ch; }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1rem; }
.lede { max-width: 62ch; color: var(--slate); font-size: clamp(1.1rem, 2vw, 1.35rem); line-height: 1.55; }
h1 + .lede, h2 + .lede { margin-top: 1.35rem; }
h2 + p, h3 + p { margin-top: 1rem; }
.muted { color: var(--muted); }
.button-row { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; margin-top: 1.8rem; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: .72rem 1.15rem; border: 1px solid var(--navy); border-radius: 999px; background: var(--navy); color: white; font-weight: 750; text-decoration: none; transition: transform .18s ease, background .18s ease, border-color .18s ease; }
.button:hover { transform: translateY(-2px); background: #0c2b74; }
.button.secondary { background: transparent; color: var(--navy); }
.button.secondary:hover { background: var(--pale); }
.button.light { background: white; color: var(--navy); border-color: white; }
.text-link { color: var(--blue); font-weight: 750; text-decoration-thickness: 1px; text-underline-offset: 4px; }

.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(223, 228, 236, .9); background: rgba(255, 255, 255, .94); backdrop-filter: blur(12px); }
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; }
.brand { display: inline-flex; align-items: center; gap: .8rem; color: var(--navy); text-decoration: none; }
.brand-signature { width: 168px; height: 42px; flex: 0 0 auto; background: url('/phil-wofford-logo.png') top center / 100% auto no-repeat; }
.brand-copy { display: grid; line-height: 1.12; }
.brand-copy span { max-width: 215px; color: var(--muted); font-size: .69rem; letter-spacing: .045em; line-height: 1.3; text-transform: uppercase; }
.desktop-nav { display: flex; align-items: center; gap: 1.15rem; }
.desktop-nav a:not(.button) { color: var(--slate); font-size: .92rem; font-weight: 700; text-decoration: none; }
.desktop-nav a:hover, .desktop-nav a[aria-current="page"] { color: var(--blue); }
.menu-button { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: white; color: var(--navy); font-size: 1.25rem; }
.mobile-menu { border-top: 1px solid var(--line); padding: .6rem 20px 1rem; }
.mobile-menu a { display: block; padding: .65rem 0; color: var(--navy); font-weight: 700; text-decoration: none; }

.hero { position: relative; overflow: hidden; padding: clamp(4.8rem, 9vw, 8.5rem) 0 4.6rem; background: linear-gradient(125deg, #fff 0 58%, var(--pale) 58% 100%); }
.hero::after { content: ""; position: absolute; right: -9rem; top: 3rem; width: 31rem; height: 31rem; border: 1px solid rgba(52, 70, 235, .18); border-radius: 50%; box-shadow: 0 0 0 5rem rgba(52, 70, 235, .035), 0 0 0 10rem rgba(52, 70, 235, .025); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr); gap: clamp(2rem, 6vw, 6rem); align-items: end; }
.hero h1 span { color: var(--blue); }
.hero-note { border-left: 3px solid var(--blue); padding-left: 1.25rem; color: var(--slate); }
.hero-note strong { display: block; margin-bottom: .4rem; color: var(--navy); font-size: 1.05rem; }
.promise-strip { background: var(--navy); color: white; }
.promise-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.promise-grid div { padding: 1.3rem 1.4rem; border-left: 1px solid rgba(255,255,255,.18); font-weight: 800; text-align: center; }
.promise-grid div:first-child { border-left: 0; }

section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section-head { display: grid; grid-template-columns: .8fr 1.2fr; gap: 3rem; margin-bottom: 2.6rem; align-items: end; }
.section-head p { max-width: 62ch; margin-bottom: 0; color: var(--slate); font-size: 1.08rem; }
.problem-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--line); }
.problem-item { min-height: 120px; padding: 1.45rem; background: white; display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; }
.problem-number { color: var(--blue); font-size: .8rem; font-weight: 850; letter-spacing: .08em; }
.problem-item p { margin: 0; color: var(--slate); font-size: 1.03rem; }
.pale-section { background: var(--pale); }
.three-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.card { padding: 1.7rem; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: 0 8px 30px rgba(0,23,84,.04); }
.card-kicker { color: var(--blue); font-size: .8rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.card h3 { margin: .45rem 0 .8rem; }
.card p { color: var(--slate); }
.card .text-link { display: inline-block; margin-top: .25rem; }
.service-card { display: flex; flex-direction: column; }
.service-card .text-link { margin-top: auto; }
.owner-section { background: var(--navy); color: white; }
.owner-section h2, .owner-section h3 { color: white; }
.owner-section .section-head p { color: #d7def5; }
.dependency-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: .75rem; }
.dependency { padding: 1.25rem; border: 1px solid rgba(255,255,255,.19); border-radius: 14px; background: rgba(255,255,255,.055); }
.dependency span { display: block; margin-bottom: .5rem; color: #9dadff; font-size: .78rem; font-weight: 850; }
.dependency h3 { font-family: Inter, sans-serif; font-size: 1.02rem; letter-spacing: 0; }
.system-flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; counter-reset: steps; }
.system-step { position: relative; padding: 1.25rem; border-top: 3px solid var(--blue); background: white; box-shadow: var(--shadow); }
.system-step::before { counter-increment: steps; content: "0" counter(steps); display: block; margin-bottom: .8rem; color: var(--blue); font-size: .8rem; font-weight: 900; }
.system-step h3 { font-family: Inter, sans-serif; font-size: 1rem; letter-spacing: 0; }
.proof-band { padding: 3.5rem 0; background: #071a50; color: white; }
.proof-band .band-title { margin-bottom: 2rem; color: white; font-size: clamp(1.7rem, 3vw, 2.45rem); }
.proof-grid { display: grid; grid-template-columns: repeat(6, 1fr); }
.proof-item { padding: 1rem 1.35rem; border-left: 1px solid rgba(255,255,255,.18); }
.proof-item:first-child { border-left: 0; }
.proof-item:nth-child(-n+3) { grid-column: span 2; }
.proof-item:nth-child(n+4) { grid-column: span 3; border-top: 1px solid rgba(255,255,255,.18); margin-top: 1.25rem; padding-top: 2rem; }
.proof-item:nth-child(4) { border-left: 0; }
.proof-item strong { display: block; margin-bottom: .35rem; font-family: Georgia, serif; font-size: clamp(2rem, 4vw, 3rem); line-height: 1; }
.proof-item span { color: #d7def5; font-size: .9rem; }
.testimonial-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.testimonial-grid.three { grid-template-columns: repeat(3, 1fr); }
.testimonial { margin: 0; padding: 1.75rem; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: 0 8px 30px rgba(0,23,84,.04); }
.testimonial p { margin: 0; color: var(--navy); font-family: Georgia, "Times New Roman", serif; font-size: 1.2rem; line-height: 1.55; }
.testimonial footer { margin-top: 1.1rem; color: var(--slate); font-size: .88rem; font-weight: 750; }
.content-grid .testimonial, .content-grid .testimonial-grid { margin-top: 2rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.credential-list { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; padding: 0; list-style: none; }
.credential-list li { padding: .8rem 0; border-bottom: 1px solid var(--line); color: var(--navy); font-weight: 750; }
.profile-visual { position: relative; height: 500px; overflow: hidden; border-radius: 24px; background: linear-gradient(145deg, #001754, #3446eb); box-shadow: var(--shadow); }
.profile-visual img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 37%; }
.about-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: clamp(2rem, 7vw, 6rem); align-items: center; }
.about-portrait { overflow: hidden; aspect-ratio: 1; border: 7px solid white; border-radius: 24px; background: white; box-shadow: var(--shadow); }
.about-portrait img { width: 100%; height: 100%; object-fit: cover; }
.cta-section { background: var(--blue); color: white; }
.cta-section h2 { color: white; }
.cta-section .lede { color: #eff2ff; }

.page-hero { padding: 5rem 0 4rem; background: linear-gradient(125deg, #fff 0 64%, var(--pale) 64%); border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 14ch; font-size: clamp(2.7rem, 5vw, 4.9rem); }
.page-hero h1 + .lede { margin-top: 1.45rem; }
.breadcrumbs { margin-bottom: 1.4rem; color: var(--muted); font-size: .88rem; }
.breadcrumbs a { color: var(--blue); }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr); gap: 4rem; }
.content-grid h2 { margin: 2.8rem 0 1rem; font-size: clamp(1.9rem, 3vw, 2.8rem); }
.content-grid h2:first-child { margin-top: 0; }
.content-grid h3 { margin: 1.8rem 0 .7rem; font-family: Inter, sans-serif; font-size: 1.15rem; letter-spacing: 0; }
.content-grid p, .content-grid li { color: var(--slate); }
.content-grid ul { padding-left: 1.2rem; }
.side-panel { align-self: start; position: sticky; top: 108px; padding: 1.6rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--pale); }
.side-panel h3 { margin-top: 0; color: var(--navy); font-family: Georgia, serif; font-size: 1.5rem; }
.side-panel h3 + p { margin-top: 1rem; }
.result-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.result-card { padding: 1.65rem; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.result-card .metric { display: block; color: var(--blue); font-family: Georgia, serif; font-size: 2.7rem; font-weight: 800; line-height: 1; }
.result-card h3 { margin: .8rem 0 .65rem; }
.tag { display: inline-block; margin-bottom: .8rem; padding: .25rem .55rem; border-radius: 999px; background: var(--ice); color: var(--navy); font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.article-card { min-height: 250px; display: flex; flex-direction: column; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.article-card h3 { margin: .55rem 0 .75rem; }
.article-card p { color: var(--slate); }
.article-card .text-link { margin-top: auto; }
.contact-list { display: grid; gap: .7rem; margin-top: 1.5rem; }
.contact-list a { color: var(--blue); font-weight: 750; }

.site-footer { padding: 3rem 0 1.6rem; background: #000d34; color: white; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 2rem; }
.footer-grid h3 { color: white; font-family: Inter, sans-serif; font-size: .92rem; letter-spacing: .08em; text-transform: uppercase; }
.footer-grid p, .footer-grid a { color: #cbd4ef; }
.footer-grid a { display: block; margin: .45rem 0; text-decoration: none; }
.footer-bottom { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.15); color: #9cabc9; font-size: .85rem; }

@media (max-width: 1120px) {
  .desktop-nav { display: none; }
  .menu-button { display: inline-grid; place-items: center; }
}

@media (max-width: 960px) {
  .desktop-nav { display: none; }
  .menu-button { display: inline-grid; place-items: center; }
  .hero-grid, .section-head, .split, .content-grid, .about-hero-grid { grid-template-columns: 1fr; }
  .hero { background: linear-gradient(160deg, #fff 0 72%, var(--pale) 72%); }
  .hero-note { max-width: 52ch; }
  .dependency-grid, .system-flow { grid-template-columns: repeat(2, 1fr); }
  .three-grid, .article-grid { grid-template-columns: 1fr 1fr; }
  .proof-grid { grid-template-columns: 1fr 1fr; }
  .proof-item:nth-child(n) { grid-column: auto; margin-top: 0; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.18); }
  .proof-item:nth-child(odd) { border-left: 0; }
  .proof-item:nth-child(-n+2) { border-top: 0; }
  .testimonial-grid.three { grid-template-columns: 1fr 1fr; }
  .side-panel { position: static; }
  .about-portrait { width: min(280px, 70vw); }
}

@media (max-width: 640px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .brand-signature { width: 138px; height: 35px; }
  .brand-copy { display: none; }
  h1 { font-size: clamp(2.5rem, 14vw, 4rem); }
  .promise-grid, .problem-list, .three-grid, .dependency-grid, .system-flow, .proof-grid, .result-grid, .article-grid, .footer-grid, .credential-list, .testimonial-grid, .testimonial-grid.three { grid-template-columns: 1fr; }
  .promise-grid div, .proof-item, .proof-item:nth-child(n) { border-left: 0; border-top: 1px solid rgba(255,255,255,.18); }
  .promise-grid div:first-child, .proof-item:first-child { border-top: 0; }
  .problem-item { min-height: 0; }
  .profile-visual { height: 390px; }
  .button-row { align-items: stretch; }
  .button { width: 100%; }
}
