/* Jason Harlton Marketing — v3 */
:root {
  --cream: #f5f8fc;
  --cream-2: #e9eff8;
  --white: #ffffff;
  --sage: #e6eefa;
  --sage-2: #cddcf3;
  --pine: #0b2545;
  --pine-2: #13315c;
  --pine-3: #1d4a8a;
  --text: #121c2e;
  --text-2: #2d3a50;
  --muted: #56627a;
  --on-pine: #e8eef8;
  --on-pine-muted: #b5c4dc;
  --line: #d6dfeb;
  --line-pine: #24406b;
  --orange: #3b82f6;
  --orange-ink: #1f5fd1;   /* AA on cream */
  --orange-soft: #dbe8fd;
  --orange-on-pine: #7fb2ff;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Hanken Grotesk', 'Segoe UI', sans-serif;

  --text-xs: clamp(.78rem, .76rem + .1vw, .84rem);
  --text-sm: clamp(.9rem, .88rem + .1vw, .96rem);
  --text-base: clamp(1rem, .97rem + .15vw, 1.075rem);
  --text-lg: clamp(1.15rem, 1.08rem + .35vw, 1.35rem);
  --text-xl: clamp(1.5rem, 1.3rem + 1vw, 2.2rem);
  --text-2xl: clamp(2rem, 1.5rem + 2.3vw, 3.4rem);
  --text-hero: clamp(2.6rem, 1.7rem + 4vw, 5.2rem);

  --space-2: .5rem; --space-3: .75rem; --space-4: 1rem; --space-6: 1.5rem;
  --space-8: 2rem; --space-12: 3rem; --space-16: 4rem;
  --section: clamp(4.5rem, 9vw, 8rem);
  --wrap: 1200px;
  --radius: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--cream); color: var(--text); font-family: var(--font-body); font-size: var(--text-base); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 500; line-height: 1.1; letter-spacing: -0.015em; text-wrap: balance; font-optical-sizing: auto; }
h1 em, h2 em { font-style: italic; color: var(--orange-ink); font-weight: 400; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--pine); color: var(--cream); padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(245,248,252,.9); backdrop-filter: saturate(150%) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s ease, box-shadow .2s ease; }
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); min-height: 74px; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand svg { width: 38px; height: 38px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.22rem; letter-spacing: -0.01em; color: var(--pine); }
.brand-tag { font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: 5px; font-weight: 600; }
.nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 1.75rem); }
.nav a { text-decoration: none; font-size: var(--text-sm); font-weight: 500; color: var(--text-2); }
.nav a:hover { color: var(--pine); }
.nav a[aria-current="page"] { color: var(--orange-ink); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--pine); border-radius: 999px; padding: .5rem .95rem; font: inherit; font-size: var(--text-sm); font-weight: 600; cursor: pointer; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; font-family: var(--font-body); font-weight: 600; font-size: var(--text-sm); padding: .9rem 1.4rem; border-radius: 999px; text-decoration: none; border: 1.5px solid transparent; transition: transform .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--pine); color: var(--cream); }
.btn-primary:hover { background: var(--pine-2); }
.btn-accent { background: var(--orange); color: #fff; }
.btn-accent:hover { background: #174fb3; }
.btn-ghost { border-color: var(--pine); color: var(--pine); }
.btn-ghost:hover { background: var(--pine); color: var(--cream); }
.btn-light { background: var(--cream); color: var(--pine); }
.btn-light:hover { background: #fff; }
.nav .btn { padding: .62rem 1.1rem; color: var(--cream); }
.arrow { width: 1em; height: 1em; }

.eyebrow { display: inline-flex; align-items: center; gap: .6rem; font-size: var(--text-xs); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--orange-ink); }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.on-pine .eyebrow { color: var(--orange-on-pine); }

/* Hero */
.hero .wrap { display: grid; grid-template-columns: 1.3fr .9fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; padding-block: clamp(3rem, 7vw, 6.5rem) clamp(4rem, 8vw, 7rem); }
.hero h1 { font-size: var(--text-hero); margin-top: var(--space-6); color: var(--pine); font-weight: 500; }
.hero .lede { font-size: var(--text-lg); color: var(--text-2); margin-top: var(--space-6); max-width: 44ch; line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }
.hero-meta { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin-top: var(--space-8); }
.hero-meta li { font-size: var(--text-xs); font-weight: 600; color: var(--pine); background: var(--sage); border-radius: 999px; padding: .4rem .85rem; }
.portrait { position: relative; justify-self: end; width: min(100%, 430px); }
.portrait-frame { border-radius: 220px 220px 24px 24px; overflow: hidden; background: var(--sage); aspect-ratio: 4/5; }
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; mix-blend-mode: multiply; }
.hero-card { position: absolute; left: -2.5rem; bottom: 2rem; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 1rem 1.1rem; box-shadow: 0 24px 48px -24px rgba(23,58,51,.35); width: 250px; }
.hero-card small { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.mini-funnel { list-style: none; display: grid; gap: 5px; margin-top: .6rem; }
.mini-funnel li { height: 24px; border-radius: 6px; background: var(--pine); color: var(--cream); font-size: .72rem; font-weight: 600; display: flex; align-items: center; padding-left: .6rem; }
.mini-funnel li:nth-child(1) { width: 100%; background: var(--sage-2); color: var(--pine); }
.mini-funnel li:nth-child(2) { width: 86%; background: var(--pine-3); }
.mini-funnel li:nth-child(3) { width: 72%; }
.mini-funnel li:nth-child(4) { width: 58%; background: var(--orange); color: #fff; }

/* Stats */
.stats { background: var(--pine); color: var(--on-pine); }
.stats ul { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); }
.stats li { padding: clamp(1.75rem, 3.5vw, 2.6rem) clamp(1rem, 2vw, 2rem); border-left: 1px solid var(--line-pine); }
.stats li:first-child { border-left: 0; padding-left: 0; }
.stat-num { font-family: var(--font-display); font-weight: 500; font-size: var(--text-xl); color: var(--cream); line-height: 1; font-variant-numeric: lining-nums; }
.stat-num span { color: var(--orange-on-pine); }
.stat-label { margin-top: .7rem; font-size: var(--text-sm); color: var(--on-pine-muted); line-height: 1.45; }

/* Sections */
.section { padding-block: var(--section); }
.bg-white { background: var(--white); }
.bg-sage { background: var(--sage); }
.bg-pine { background: var(--pine); color: var(--on-pine); }
.section-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--space-8); align-items: end; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 { font-size: var(--text-2xl); margin-top: var(--space-4); color: var(--pine); }
.bg-pine .section-head h2 { color: var(--cream); }
.bg-pine h2 em { color: var(--orange-on-pine); }
.section-head p { color: var(--muted); max-width: 54ch; }
.bg-pine .section-head p { color: var(--on-pine-muted); }

/* Philosophy */
.philosophy { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 6vw, 6rem); }
.philosophy h2 { font-size: var(--text-2xl); color: var(--pine); margin-top: var(--space-4); }
.philosophy .intro { font-size: var(--text-lg); color: var(--text-2); line-height: 1.6; }
.principles { list-style: none; display: grid; gap: 0; margin-top: var(--space-8); border-top: 1px solid var(--line); }
.principles li { display: grid; grid-template-columns: 3rem 1fr; gap: var(--space-4); padding: var(--space-6) 0; border-bottom: 1px solid var(--line); }
.principles b { font-family: var(--font-display); font-weight: 500; font-style: italic; color: var(--orange-ink); font-size: 1.3rem; line-height: 1.2; }
.principles h3 { font-size: 1.3rem; color: var(--pine); }
.principles p { color: var(--muted); margin-top: .35rem; font-size: var(--text-sm); }

/* Funnel */
.funnel { list-style: none; display: grid; gap: var(--space-3); }
.stage { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--sage-2); }
.stage-label { position: relative; padding: var(--space-6); color: var(--cream); background: var(--pine); display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-4); }
.stage:nth-child(1) .stage-label { background: var(--pine-3); }
.stage:nth-child(2) .stage-label { background: var(--pine-2); }
.stage:nth-child(3) .stage-label { background: var(--pine); }
.stage:nth-child(4) .stage-label { background: var(--orange); }
.stage-label .num { font-size: var(--text-xs); letter-spacing: .16em; text-transform: uppercase; font-weight: 700; opacity: .8; }
.stage-label h3 { font-size: var(--text-xl); color: inherit; margin-top: .3rem; }
.stage-label p { font-size: var(--text-sm); opacity: .9; }
.stage-bar { height: 6px; border-radius: 3px; background: rgba(255,255,255,.28); overflow: hidden; }
.stage-bar i { display: block; height: 100%; background: rgba(255,255,255,.9); border-radius: 3px; }
.stage-body { padding: var(--space-6) clamp(1.25rem, 3vw, 2.25rem); display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--space-6) var(--space-8); align-items: start; }
.stage-body h4 { font-family: var(--font-body); font-size: var(--text-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: .55rem; }
.stage-body ul { list-style: none; display: grid; gap: .4rem; font-size: var(--text-sm); color: var(--text-2); }
.stage-body ul li { padding-left: 1.1rem; position: relative; }
.stage-body ul li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.kpis { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; }
.stage-body .kpis li { padding: .2rem .6rem; background: var(--sage); border-radius: 999px; font-size: .78rem; font-weight: 600; color: var(--pine); }
.stage-body .kpis li::before { display: none; }
.proof { grid-column: 1 / -1; display: flex; gap: .6rem; align-items: baseline; padding-top: var(--space-4); border-top: 1px dashed var(--line); font-size: var(--text-sm); color: var(--text-2); }
.proof strong { font-family: var(--font-display); font-weight: 600; color: var(--orange-ink); font-size: 1.05rem; white-space: nowrap; }
.funnel-foot { margin-top: var(--space-6); display: flex; gap: var(--space-4); align-items: center; background: var(--pine); color: var(--on-pine); border-radius: var(--radius); padding: var(--space-6) var(--space-8); }
.funnel-foot svg { flex: none; width: 34px; height: 34px; color: var(--orange-on-pine); }
.funnel-foot p { font-size: var(--text-sm); }
.funnel-foot strong { color: var(--cream); }

/* Consult + execute */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); }
.split-col { border-radius: var(--radius); padding: clamp(1.75rem, 3.5vw, 2.75rem); }
.split-col.consult { background: var(--sage); }
.split-col.execute { background: var(--white); border: 1px solid var(--line); }
.split-col .tag { display: inline-block; font-size: var(--text-xs); letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--orange-ink); }
.split-col h3 { font-size: var(--text-xl); color: var(--pine); margin-top: var(--space-3); }
.split-col > p { color: var(--text-2); margin-top: var(--space-3); }
.svc-list { list-style: none; margin-top: var(--space-6); display: grid; gap: 0; }
.svc-list li { padding: var(--space-4) 0; border-top: 1px solid rgba(23,58,51,.14); }
.svc-list h4 { font-family: var(--font-body); font-weight: 700; font-size: 1rem; color: var(--pine); }
.svc-list p { font-size: var(--text-sm); color: var(--muted); margin-top: .2rem; }

/* Engagements */
.engage { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); margin-top: clamp(3rem, 6vw, 4.5rem); }
.engage li { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-8) var(--space-6); display: flex; flex-direction: column; }
.engage li.featured { background: var(--pine); color: var(--on-pine); border-color: var(--pine); }
.engage .kicker { font-size: var(--text-xs); letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.engage .featured .kicker { color: var(--orange-on-pine); }
.engage h3 { font-size: 1.55rem; color: var(--pine); margin-top: var(--space-3); }
.engage .featured h3 { color: var(--cream); }
.engage p { font-size: var(--text-sm); color: var(--text-2); margin-top: var(--space-3); }
.engage .featured p { color: var(--on-pine-muted); }
.engage .fit { margin-top: auto; padding-top: var(--space-6); font-size: var(--text-sm); }
.engage .fit b { display: block; font-size: var(--text-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .2rem; }
.engage .featured .fit b { color: var(--on-pine-muted); }
.engage-title { font-size: var(--text-xl); color: var(--pine); margin-top: var(--section); }

/* Steps */
.steps { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-6); }
.step { border-top: 1px solid var(--line-pine); padding-top: var(--space-6); display: flex; flex-direction: column; }
.step-num { font-family: var(--font-display); font-style: italic; font-size: 1.15rem; color: var(--orange-on-pine); }
.step h3 { font-size: 1.6rem; color: var(--cream); margin-top: var(--space-2); }
.step p { color: var(--on-pine-muted); margin-top: var(--space-3); font-size: var(--text-sm); }
.step .get { margin-top: auto; padding-top: var(--space-4); font-size: var(--text-sm); color: var(--cream); }
.step .get b { display: block; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-on-pine); margin-bottom: .2rem; }

/* Case teaser */
.case-teaser { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.case-teaser h2 { font-size: var(--text-2xl); color: var(--pine); margin-top: var(--space-4); }
.case-teaser > div > p { color: var(--text-2); margin-top: var(--space-4); }
.case-points { list-style: none; margin-top: var(--space-6); display: grid; gap: .7rem; }
.case-points li { display: flex; gap: .7rem; align-items: flex-start; font-size: var(--text-sm); color: var(--text-2); }
.case-points li::before { content: ""; flex: none; margin-top: .55em; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.case-teaser .btn { margin-top: var(--space-8); }

/* Mockup */
.mock { position: relative; padding: clamp(1.25rem, 3vw, 2.25rem); background: var(--sage); border-radius: 24px; }
.browser { background: #fff; border-radius: 12px; box-shadow: 0 30px 60px -28px rgba(23,58,51,.45), 0 0 0 1px rgba(23,58,51,.08); overflow: hidden; }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: #eef0f2; }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: #cdd2d8; }
.browser-bar .url { margin-left: 10px; flex: 1; height: 18px; border-radius: 6px; background: #fff; font-size: 10px; line-height: 18px; color: #8a909b; padding-left: 8px; }
.m-nav { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; background: #12304f; }
.m-logo { width: 74px; height: 12px; border-radius: 3px; background: rgba(255,255,255,.85); }
.m-links { display: flex; gap: 10px; align-items: center; }
.m-links i { width: 28px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.35); }
.m-hero { background: linear-gradient(120deg, #12304f 0%, #1a5072 60%, #2a7b88 100%); padding: 26px 18px 30px; color: #fff; }
.m-hero .h { font-family: var(--font-body); font-weight: 800; font-size: clamp(14px, 1.6vw, 19px); line-height: 1.15; max-width: 18ch; }
.m-hero .s { margin-top: 8px; width: 70%; height: 6px; border-radius: 3px; background: rgba(255,255,255,.45); }
.m-hero .s + .s { width: 52%; margin-top: 5px; }
.m-ctas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; }
.m-cta { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); border-radius: 8px; padding: 9px 8px; }
.m-cta small { display: block; font-size: 8px; text-transform: uppercase; letter-spacing: .1em; opacity: .75; }
.m-cta span { display: block; font-weight: 700; font-size: 11px; margin-top: 2px; }
.m-cta.primary { background: #fff; color: #12304f; border-color: #fff; }
.m-body { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 16px 18px 20px; }
.m-card { border-radius: 8px; background: #f2f5f8; padding: 10px; }
.m-card i { display: block; height: 42px; border-radius: 6px; background: #d5dee7; }
.m-card b { display: block; margin-top: 8px; width: 70%; height: 6px; border-radius: 3px; background: #9aa9b8; }
.m-card s { display: block; margin-top: 5px; width: 90%; height: 5px; border-radius: 3px; background: #c6d0da; }
.phone { position: absolute; right: 4%; bottom: -1.5rem; width: 26%; min-width: 112px; background: #111; border-radius: 22px; padding: 7px; box-shadow: 0 24px 50px -16px rgba(23,58,51,.55); }
.phone-screen { background: #fff; border-radius: 16px; overflow: hidden; }
.phone-screen .m-nav { padding: 8px 10px; }
.phone-screen .m-logo { width: 40px; height: 8px; }
.phone-screen .burger { width: 14px; height: 8px; border-top: 2px solid #fff; border-bottom: 2px solid #fff; }
.phone-screen .m-hero { padding: 14px 10px 16px; }
.phone-screen .m-hero .h { font-size: 11px; line-height: 1.3; }
.phone-screen .stack { display: grid; gap: 5px; margin-top: 10px; }
.phone-screen .stack span { display: block; font-size: 8.5px; font-weight: 700; padding: 5px 6px; border-radius: 6px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); }
.phone-screen .stack span:first-child { background: #fff; color: #12304f; }
.phone-screen .pad { padding: 10px; display: grid; gap: 6px; }
.phone-screen .pad i { display: block; height: 22px; border-radius: 5px; background: #e6ebf0; }
.mock-caption { margin-top: 2.5rem; font-size: var(--text-xs); color: var(--muted); }

/* About */
.about { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.about h2 { font-size: var(--text-2xl); color: var(--pine); margin-top: var(--space-4); }
.about-copy p { color: var(--text-2); }
.about-copy p + p { margin-top: var(--space-4); }
.about-copy .lead { font-family: var(--font-display); font-size: var(--text-lg); color: var(--pine); line-height: 1.45; }
.about-copy .worked { margin-top: var(--space-8); padding-top: var(--space-6); border-top: 1px solid var(--line); font-size: var(--text-sm); color: var(--muted); }
.about-copy .worked span { color: var(--text); font-weight: 600; }
.cert-strip { margin-top: clamp(3rem, 6vw, 4.5rem); padding: var(--space-6) var(--space-8); background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4) var(--space-8); }
.cert-strip h3 { font-size: 1.3rem; color: var(--pine); }
.cert-list { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; }
.cert-list li { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: .45rem .9rem; font-size: var(--text-sm); font-weight: 500; }
.cert-list li span { color: var(--muted); font-weight: 400; }

/* Testimonials */
.quotes { columns: 3 300px; column-gap: var(--space-6); }
.quote { break-inside: avoid; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-8) var(--space-6) var(--space-6); margin: 0 0 var(--space-6); }
.quote blockquote { margin: 0; color: var(--text-2); font-size: var(--text-sm); line-height: 1.7; }
.quote blockquote::before { content: "\201C"; display: block; font-family: var(--font-display); font-size: 3rem; line-height: .6; color: var(--orange); margin-bottom: .6rem; }
.quote figcaption { margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--line); }
.quote figcaption strong { display: block; font-size: .95rem; color: var(--pine); }
.quote figcaption span { display: block; font-size: var(--text-xs); color: var(--muted); margin-top: 2px; }

/* Tool */
.tool { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--space-8); align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: clamp(1.75rem, 4vw, 3rem); }
.tool h2 { font-size: var(--text-xl); color: var(--pine); margin-top: var(--space-4); }
.tool p { color: var(--muted); margin-top: var(--space-3); }
.tool ul { list-style: none; display: grid; gap: .6rem; font-size: var(--text-sm); }
.tool ul li { display: flex; gap: .6rem; }
.tool ul li svg { flex: none; width: 18px; height: 18px; color: var(--orange-ink); margin-top: 3px; }
.tool .btn { margin-top: var(--space-6); }

/* Contact */
.contact { padding-block: var(--section); }
.contact-panel { background: var(--pine); color: var(--on-pine); border-radius: 28px; padding: clamp(2rem, 6vw, 4.5rem); display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; position: relative; overflow: hidden; }
.contact-panel::after { content: ""; position: absolute; right: -120px; top: -120px; width: 340px; height: 340px; border-radius: 50%; border: 60px solid rgba(59,130,246,.12); pointer-events: none; }
.contact h2 { font-size: var(--text-2xl); color: var(--cream); margin-top: var(--space-4); }
.contact h2 em { color: var(--orange-on-pine); }
.contact-panel > div > p { margin-top: var(--space-4); font-size: var(--text-lg); color: var(--on-pine-muted); max-width: 42ch; }
.call-steps { list-style: none; margin-top: var(--space-6); display: grid; gap: .5rem; font-size: var(--text-sm); color: var(--on-pine); }
.call-steps li { display: flex; gap: .6rem; }
.call-steps li b { color: var(--orange-on-pine); font-family: var(--font-display); font-style: italic; font-weight: 500; }
.contact-list { list-style: none; display: grid; gap: var(--space-3); position: relative; z-index: 1; }
.contact-list a { display: flex; align-items: center; gap: var(--space-4); background: rgba(255,255,255,.06); border: 1px solid var(--line-pine); color: var(--cream); border-radius: 14px; padding: 1rem 1.15rem; text-decoration: none; transition: background-color .18s ease, transform .18s ease; }
.contact-list a:hover { background: rgba(255,255,255,.12); transform: translateX(3px); }
.contact-list svg { flex: none; width: 22px; height: 22px; }
.contact-list strong { display: block; font-size: 1rem; }
.contact-list span { display: block; font-size: var(--text-xs); color: var(--on-pine-muted); }
.contact-list .primary { background: var(--orange); border-color: var(--orange); color: #fff; }
.contact-list .primary:hover { background: #174fb3; }
.contact-list .primary span { color: rgba(255,255,255,.85); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); font-size: var(--text-sm); color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: var(--space-4) var(--space-8); align-items: center; justify-content: space-between; padding-block: var(--space-8); }
.site-footer nav { display: flex; gap: var(--space-6); flex-wrap: wrap; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--pine); }
.foot-brand { display: inline-flex; align-items: center; gap: .6rem; }
.foot-brand svg { width: 26px; height: 26px; }

/* Case study page */
.cs-hero .wrap { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2.5rem, 5vw, 4rem); }
.cs-hero h1 { font-size: var(--text-2xl); color: var(--pine); margin-top: var(--space-6); max-width: 20ch; }
.cs-hero .lede { color: var(--text-2); font-size: var(--text-lg); margin-top: var(--space-6); max-width: 60ch; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); margin: var(--space-12) 0 0; padding-top: var(--space-8); border-top: 1px solid var(--line); }
.facts dt { font-size: var(--text-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--orange-ink); font-weight: 700; }
.facts dd { margin: .4rem 0 0; font-size: var(--text-sm); color: var(--text-2); }
.cs-visual { padding-bottom: var(--space-16); }
.cs-visual .mock { max-width: 960px; margin-inline: auto; }
.cs-block { display: grid; grid-template-columns: 260px 1fr; gap: clamp(1.5rem, 5vw, 5rem); }
.cs-block + .cs-block { margin-top: var(--section); }
.cs-label .step-num { color: var(--orange-ink); font-size: 1rem; }
.cs-label h2 { font-size: var(--text-xl); color: var(--pine); margin-top: var(--space-3); }
.cs-content > p { color: var(--text-2); max-width: 64ch; }
.cs-content > p + p { margin-top: var(--space-4); }
.checklist { list-style: none; display: grid; gap: .7rem; margin-top: var(--space-6); }
.checklist li { display: flex; gap: .75rem; align-items: flex-start; padding: .95rem 1.1rem; background: var(--white); border: 1px solid var(--line); border-radius: 12px; font-size: var(--text-sm); }
.checklist li b { font-family: var(--font-display); font-style: italic; color: var(--orange-ink); flex: none; width: 1.6rem; }
.journeys { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); margin-top: var(--space-8); }
.journey { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-6); border-top: 4px solid var(--orange); }
.journey small { font-size: var(--text-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.journey h3 { font-size: 1.35rem; color: var(--pine); margin-top: var(--space-2); }
.journey p { font-size: var(--text-sm); color: var(--muted); margin-top: var(--space-3); }
.built { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4); margin-top: var(--space-8); }
.built div { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-6); }
.built h3 { font-family: var(--font-body); font-size: 1.02rem; font-weight: 700; color: var(--pine); letter-spacing: 0; }
.built p { font-size: var(--text-sm); color: var(--muted); margin-top: var(--space-2); }
.ba { width: 100%; border-collapse: collapse; margin-top: var(--space-8); font-size: var(--text-sm); background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.ba th, .ba td { text-align: left; padding: .9rem 1.1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.ba thead th { font-size: var(--text-xs); letter-spacing: .12em; text-transform: uppercase; background: var(--sage); color: var(--pine); }
.ba tbody tr:last-child td { border-bottom: 0; }
.ba td:first-child { color: var(--muted); width: 50%; }
.ba td:last-child { font-weight: 600; color: var(--pine); }
.pull { margin-top: var(--space-8); padding: var(--space-8); background: var(--pine); color: var(--cream); border-radius: var(--radius); font-family: var(--font-display); font-size: var(--text-lg); line-height: 1.45; }
.pull em { color: var(--orange-on-pine); }
.skills { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin-top: var(--space-6); }
.skills li { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: .4rem .85rem; font-size: var(--text-sm); font-weight: 600; color: var(--pine); }
.sub-h { font-size: 1.3rem; color: var(--pine); margin-top: var(--space-12); }
.note { margin-top: var(--space-6); font-size: var(--text-xs); color: var(--muted); }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1100px) {
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: var(--space-12); }
  .stage-body { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .menu-btn { display: inline-block; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--cream); border-bottom: 1px solid var(--line); padding: .5rem 1.25rem 1.25rem; display: none; }
  .nav.open { display: flex; }
  .nav a { padding: .85rem 0; border-bottom: 1px solid var(--line); font-size: var(--text-base); }
  .nav .btn { margin-top: 1rem; border-bottom: 0; }
  .hero .wrap, .case-teaser, .tool, .contact-panel, .section-head, .philosophy, .about, .split { grid-template-columns: 1fr; }
  .portrait { justify-self: center; width: min(82%, 360px); margin-top: var(--space-4); }
  .hero-card { left: -1rem; }
  .stats ul { grid-template-columns: repeat(2, 1fr); }
  .stats li { border-left: 0; padding-left: 0; border-top: 1px solid var(--line-pine); }
  .stats li:nth-child(-n+2) { border-top: 0; }
  .stage { grid-template-columns: 1fr; }
  .engage { grid-template-columns: 1fr; }
  .cs-block { grid-template-columns: 1fr; gap: var(--space-4); }
  .journeys, .built { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .steps { grid-template-columns: 1fr; }
  .hero-card { left: -.75rem; bottom: -1.5rem; width: 210px; }
  .portrait { margin-bottom: 1.5rem; }
  .m-body { grid-template-columns: repeat(2, 1fr); }
  .m-body .m-card:nth-child(3) { display: none; }
  .m-hero .h { max-width: 14ch; }
  .m-ctas { grid-template-columns: 1fr; max-width: 58%; }
  .m-ctas .m-cta:nth-child(n+2) { display: none; }
  .phone { right: 3%; width: 34%; bottom: -1.75rem; }
  .cert-strip { padding: var(--space-6); }
  .funnel-foot { padding: var(--space-6); align-items: flex-start; }
  .proof { flex-direction: column; gap: .2rem; }
}
.stage-body ul.kpis { display: flex; flex-wrap: wrap; gap: .4rem; }
/* contrast: white text on orange uses deeper orange */
.btn-accent, .contact-list .primary { background: #1f5fd1; border-color: #1f5fd1; }
.btn-accent:hover, .contact-list .primary:hover { background: #174fb3; }
.stage:nth-child(4) .stage-label, .mini-funnel li:nth-child(4) { background: #1f5fd1; }
.nowrap { white-space: nowrap; }

/* v3.1 logo */
.brand-logo { display: block; height: 54px; width: auto; }
@media (max-width: 560px) { .brand-logo { height: 44px; } }

/* LinkedIn links */
.social-link { display: inline-flex; align-items: center; gap: .45rem; color: var(--pine) !important; text-decoration: none; }
.social-link svg { width: 18px; height: 18px; flex: none; }
.social-link:hover { color: var(--orange-ink) !important; }
.nav .social-link .social-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nav .social-link { width: 38px; height: 38px; justify-content: center; border: 1px solid var(--line); border-radius: 999px; }
.social-mobile { display: none !important; }
.site-footer nav .social-link { color: var(--muted) !important; }
.site-footer nav .social-link svg { color: var(--pine); }
.site-footer nav .social-link:hover { color: var(--pine) !important; }
@media (max-width: 900px) {
  .social-mobile { display: inline-flex !important; width: 38px; height: 38px; justify-content: center; border: 1px solid var(--line); border-radius: 999px; margin-left: auto; margin-right: .5rem; }
  .nav .social-link { display: none; }
}
@media (max-width: 420px) { .hero-meta li { font-size: .74rem; padding: .4rem .7rem; letter-spacing: -.005em; } }
@media (max-width: 380px) { .hero-meta li { font-size: .69rem; padding: .4rem .6rem; } }

/* Photo beside hero text on all screens */
.hero-avatar { display: none; }
@media (max-width: 900px) and (min-width: 601px) {
  .hero .wrap { grid-template-columns: 1.35fr .65fr; gap: 2rem; align-items: center; }
  .portrait { justify-self: end; width: 100%; margin-top: 0; }
  .hero-card { display: none; }
}
@media (max-width: 600px) {
  .portrait { display: none; }
  .hero-avatar { display: block; float: right; width: 112px; height: 140px; object-fit: cover; object-position: center 18%; border-radius: 60px 60px 16px 16px; background: var(--sage); mix-blend-mode: multiply; margin: 1.25rem 0 .5rem 1rem; shape-outside: inset(0 round 60px 60px 16px 16px); }
  .hero .lede { clear: none; }
}
@media (max-width: 380px) { .hero-avatar { width: 96px; height: 120px; } }

/* Natural, frameless portrait */
.portrait { width: min(100%, 470px); }
.portrait::before { content: ""; position: absolute; z-index: 0; left: 8%; right: 2%; top: 4%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 50% 45%, rgba(205,220,243,.85) 0%, rgba(227,233,225,.55) 45%, rgba(245,248,252,0) 70%); }
.portrait-frame { position: relative; z-index: 1; border-radius: 0; overflow: visible; background: none; aspect-ratio: auto; }
.portrait-frame img { width: 100%; height: auto; object-fit: contain; mix-blend-mode: normal; display: block; }
.hero-card { z-index: 2; bottom: 12%; }
@media (max-width: 600px) {
  .hero-avatar { width: 128px; height: auto; object-fit: contain; border-radius: 0; background: radial-gradient(circle at 50% 42%, rgba(205,220,243,.9) 0%, rgba(227,233,225,.5) 45%, rgba(245,248,252,0) 70%); mix-blend-mode: normal; margin: .75rem -.25rem .25rem .75rem; shape-outside: circle(50%); }
}
@media (max-width: 380px) { .hero-avatar { width: 108px; height: auto; } }
.hero-card { left: -4.5rem; bottom: -1.5rem; width: 230px; }
@media (max-width: 1100px) { .hero-card { left: -2rem; } }

/* Legibility type system (v4) */
:root { --font-display: 'Sora', 'Segoe UI', system-ui, sans-serif; --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif; }
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -.025em; }
h1 em, h2 em, h3 em { font-style: normal; font-weight: inherit; }
blockquote { font-family: var(--font-body) !important; font-style: normal !important; }
* { font-synthesis: none; }
em, i, b, .principles b, .step-num, .call-steps li b, .checklist li b, [class*="kicker"], [class*="label"] { font-style: normal !important; }

/* Orange accent on the blue system (v4) */
:root { --orange: #e4702a; --orange-ink: #b4501a; --orange-soft: #fdeadd; --orange-on-pine: #f39a5e; }
.btn-accent, .contact-list .primary { background: #bf5418 !important; border-color: #bf5418 !important; color: #fff !important; }
.btn-accent:hover, .contact-list .primary:hover { background: #a8470f !important; border-color: #a8470f !important; }
h1 em, h2 em, h3 em { color: #cf5d1d; }
.btn-primary { background: #bf5418 !important; border-color: #bf5418 !important; color: #fff !important; }
.btn-primary:hover { background: #a8470f !important; border-color: #a8470f !important; }
