/* Layout concept: a calm consulting site — navy ink on near-white, one warm orange for actions,
   and the "connected dots" network as the single recurring motif (logo, hero, timeline). */
:root {
  --bg: #ffffff;
  --surface: #f3f4f8;      /* navy-tinted grey for alternating bands */
  --ink: #2d3748;          /* brand navy, headings + body */
  --muted: #5b6579;
  --line: #e1e4ec;
  --accent: #d9733d;       /* brand orange: buttons, dots, links */
  --accent-strong: #b5582a;/* orange for small text on light bg (contrast) */
  --on-accent: #ffffff;
  --dot: rgba(217, 115, 61, .35);
  --logo-ink: #4d525c;
  --logo-acc: #e8743b;
  --font-display: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Open Sans", "Segoe UI", Roboto, Arial, sans-serif;
  --step--1: .875rem; --step-0: 1.0625rem; --step-1: 1.25rem; --step-2: 1.6rem; --step-3: 2.1rem; --step-4: clamp(2.2rem, 5vw, 3.4rem);
  --radius: 10px;
  --max: 1140px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141922; --surface: #1c2330; --ink: #e6e9f0; --muted: #a5aec0; --line: #2c3545;
    --accent: #e5834f; --accent-strong: #f09a69; --on-accent: #1a1208; --dot: rgba(229, 131, 79, .35); --logo-ink: #d3d8e1; --logo-acc: #ec8550;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #141922; --surface: #1c2330; --ink: #e6e9f0; --muted: #a5aec0; --line: #2c3545;
  --accent: #e5834f; --accent-strong: #f09a69; --on-accent: #1a1208; --dot: rgba(229, 131, 79, .35); --logo-ink: #d3d8e1; --logo-acc: #ec8550;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--step-0)/1.65 var(--font-body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-strong); text-underline-offset: .18em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.2; text-wrap: balance; margin: 0; }
h1 { font-size: var(--step-4); font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: var(--step-3); font-weight: 700; }
h3 { font-size: var(--step-1); font-weight: 700; }
p { margin: 0; }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 16px; top: 16px; z-index: 50; background: var(--bg); padding: 8px 12px; }

.wrap, .wrap-narrow {
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.wrap { max-width: var(--max); }
.wrap-narrow { max-width: 760px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .8em 1.4em; border-radius: 999px;
  background: var(--accent); color: var(--on-accent); font: 600 1rem/1.2 var(--font-display); text-decoration: none; border: 2px solid var(--accent);
  transition: transform .15s ease, background .15s ease; }
.btn:hover { color: var(--on-accent); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { color: var(--ink); border-color: var(--accent); }
.btn-small { padding: .55em 1.1em; font-size: .9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); }
.header-row { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.logo { display: inline-flex; color: var(--ink); }
.logo-svg { width: 86px; height: auto; display: block; }
.logo-lines line { stroke: var(--logo-ink); stroke-width: 16; }
.logo-ink { fill: var(--logo-ink); }
.logo-acc { fill: var(--logo-acc); }
.logo-word { font: 700 262px/1 var(--font-display); fill: var(--logo-ink); }
.main-nav { display: flex; gap: 22px; margin-left: auto; }
.main-nav a { color: var(--ink); text-decoration: none; font: 600 .95rem/1 var(--font-display); padding-block: 8px; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a[aria-current] { border-color: var(--accent); color: var(--ink); }
.nav-toggle { display: none; }
@media (max-width: 960px) {
  .header-row { gap: 12px; }
  .header-cta { margin-left: auto; }
  .nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 10px;
    background: none; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
  .nav-toggle span { height: 2px; background: var(--ink); border-radius: 2px; }
  .main-nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; background: var(--bg);
    border-bottom: 1px solid var(--line); padding: 8px max(20px, env(safe-area-inset-right, 0px)) 16px max(20px, env(safe-area-inset-left, 0px)); }
  .main-nav a { padding-block: 14px; border-bottom: 1px solid var(--line); }
  .main-nav:not(.open) { display: none; }
}
@media (max-width: 380px) { .header-cta { padding: .5em .8em; font-size: .85rem; } }

/* Bands */
.band { padding-block: clamp(44px, 6vw, 72px); }
.band-alt { background: var(--surface); }
.section-title { margin-bottom: 12px; }
.section-lead { color: var(--muted); max-width: 60ch; margin-bottom: 36px; }
.eyebrow { display: inline-block; font: 700 .78rem/1 var(--font-display); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-strong); text-decoration: none; margin-bottom: 14px; }
.center-block { text-align: center; display: grid; gap: 16px; justify-items: center; }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--surface); padding-block: clamp(48px, 7vw, 96px); }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero .wrap { position: relative; display: grid; gap: 24px; justify-items: center; text-align: center; }
.hero h1 { max-width: 18ch; }
.hero .lead { font-size: var(--step-1); color: var(--muted); max-width: 46ch; }
.rotator { color: var(--accent); display: inline-block; text-align: left; transition: opacity .35s ease, transform .35s ease; }
.rotator.out { opacity: 0; transform: translateY(.3em); }

/* Two audience cards on home */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.audience { display: grid; gap: 14px; align-content: start; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.audience ul { margin: 0; padding-left: 1.1em; color: var(--muted); display: grid; gap: 6px; }
.audience .btn { justify-self: start; margin-top: 6px; }

/* Feature rows (expertise / for PMs) */
.features { display: grid; gap: clamp(44px, 6vw, 72px); }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.feature:nth-child(even) .feature-media { order: -1; }
.feature-text { display: grid; gap: 16px; min-width: 0; }
.feature-text > p { color: var(--muted); }
.feature-media { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--surface)
  radial-gradient(var(--dot) 2px, transparent 2.5px) 0 0/22px 22px; aspect-ratio: 4/3; max-width: 100%; }
.feature-media img { width: 100%; height: 100%; object-fit: cover; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 28px; }
.checks li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--dot); }
.checks strong { font-weight: 600; color: var(--ink); }
@media (max-width: 760px) { .feature { grid-template-columns: 1fr; } .feature:nth-child(even) .feature-media { order: 0; } }

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.quote { margin: 0; display: grid; gap: 18px; align-content: space-between; padding: 28px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); }
.quote blockquote { margin: 0; font-size: 1.02rem; }
.quote figcaption { display: flex; align-items: center; gap: 12px; }
.quote img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--surface); }
.quote cite { font-style: normal; display: grid; line-height: 1.3; }
.quote cite b { font-family: var(--font-display); }
.quote cite span { color: var(--muted); font-size: var(--step--1); }

/* Pricing / training offers */
.offers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.offer { display: grid; grid-template-rows: auto auto auto 1fr auto; gap: 16px; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.offer.featured { border-color: var(--accent); }
.price { font: 700 var(--step-2)/1.1 var(--font-display); }
.price small { display: block; font: 400 var(--step--1)/1.4 var(--font-body); color: var(--muted); margin-top: 4px; }
.offer > p { color: var(--muted); }
.offer .btn { justify-self: start; }
.topic-list { columns: 2 220px; gap: 32px; padding-left: 1.1em; margin: 0; }
.topic-list li { margin-bottom: 8px; break-inside: avoid; }

/* Timeline (My Journey) — the steps are a real sequence */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 48px; }
.timeline::before { content: ""; position: absolute; left: 19px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline li { position: relative; display: grid; grid-template-columns: 40px 1fr 220px; gap: 24px; align-items: start; }
.timeline .node { width: 40px; height: 40px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); display: grid; place-items: center;
  font: 700 .9rem/1 var(--font-display); color: var(--accent-strong); position: relative; }
.timeline .t-text { display: grid; gap: 8px; min-width: 0; }
.timeline .t-text p { color: var(--muted); }
.timeline img { border-radius: var(--radius); background: var(--surface); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
@media (max-width: 760px) { .timeline li { grid-template-columns: 40px 1fr; } .timeline img { grid-column: 2; max-width: 320px; } }

/* About / contact on home */
.about-grid { display: grid; grid-template-columns: 320px 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.portrait { border-radius: 50%; aspect-ratio: 1; object-fit: cover; width: 100%; max-width: 320px; background: var(--surface); box-shadow: 0 0 0 10px var(--dot); }
.about-text { display: grid; gap: 16px; min-width: 0; }
@media (max-width: 760px) { .about-grid { grid-template-columns: 1fr; justify-items: center; } .portrait { max-width: 220px; } }

/* Article cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.card-article { display: grid; grid-template-rows: auto 1fr; text-decoration: none; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .15s ease, transform .15s ease; }
.card-article:hover { border-color: var(--accent); color: var(--ink); transform: translateY(-2px); }
.card-thumb { aspect-ratio: 16/9; background: var(--surface) radial-gradient(var(--dot) 2px, transparent 2.5px) 0 0/22px 22px; overflow: hidden; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 20px 22px 24px; display: grid; gap: 8px; align-content: start; }
.card-body time { font-size: var(--step--1); color: var(--muted); }
.card-body p { color: var(--muted); font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 32px; }

/* Subscribe strip */
.subscribe { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 28px 32px; border-radius: var(--radius); background: var(--ink); color: var(--bg); margin-top: 40px; }
.subscribe p { max-width: 52ch; }
.subscribe strong { font-family: var(--font-display); }

/* Article page */
.post-head { padding-top: clamp(48px, 7vw, 88px); display: grid; gap: 14px; }
.post-head h1 { font-size: clamp(2rem, 4.4vw, 2.9rem); }
.post-meta { color: var(--muted); font-size: var(--step--1); }
.prose { padding-block: 32px 16px; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: var(--step-2); margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; }
.prose h4 { font-size: var(--step-0); margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose img { border-radius: var(--radius); margin: 1.6em auto; background: var(--surface); width: auto; max-height: 420px; object-fit: contain; }
.prose blockquote { margin-inline: 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent); color: var(--muted); }
.prose mark { background: var(--dot); color: var(--ink); padding: 0 .2em; border-radius: 3px; }
.prose .lane { font: 700 var(--step-1)/1.3 var(--font-display); margin-top: 1.8em; }
.post-foot { display: grid; gap: 28px; padding-bottom: clamp(48px, 7vw, 88px); }
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: var(--step--1); padding: 4px 12px; border-radius: 999px; background: var(--surface); color: var(--muted); }
.post-cta { display: grid; gap: 16px; justify-items: start; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); }

/* Legal */
.legal { padding-block: clamp(48px, 7vw, 88px); }
.legal h1 { font-size: var(--step-3); margin-bottom: 24px; }
.legal p + p { margin-top: 1em; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 48px 28px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-brand { display: grid; gap: 14px; justify-items: start; color: var(--muted); max-width: 36ch; }
.site-footer nav, .footer-social { display: grid; gap: 8px; align-content: start; }
.site-footer nav a, .footer-social a { color: var(--ink); text-decoration: none; }
.site-footer nav a:hover, .footer-social a:hover { color: var(--accent-strong); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: var(--step--1); }
.footer-legal a { color: var(--muted); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
.h3 { font-size: var(--step-1); }
.visually-hidden, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.subscribe { display: grid; grid-template-columns: 1fr minmax(0, 420px); align-items: center; gap: 12px 24px; }
.subscribe-copy { max-width: 52ch; }
.subscribe-row { display: flex; gap: 8px; min-width: 0; }
.subscribe input[type=email] { flex: 1; min-width: 0; padding: .75em 1em; border-radius: 999px; border: 2px solid transparent; font: inherit; font-size: 1rem; background: var(--bg); color: var(--ink); }
.subscribe input[type=email]:focus-visible { outline: none; border-color: var(--accent); }
.subscribe-status { grid-column: 1 / -1; font-size: var(--step--1); min-height: 0; }
.subscribe-status:empty { display: none; }
.post-foot .subscribe { margin-top: 0; }
@media (max-width: 760px) { .subscribe { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .subscribe-row { flex-direction: column; } }

/* Hero with portrait */
.hero .hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr); gap: clamp(32px, 6vw, 72px); align-items: center; justify-items: stretch; text-align: left; }
.hero-text { display: grid; gap: 22px; justify-items: start; min-width: 0; }
.hero-text .eyebrow { margin-bottom: 0; }
.hero h1 { max-width: 16ch; }
.hero .lead { max-width: 44ch; }
.hero-photo { display: grid; place-items: center; }
.hero-photo .portrait { max-width: 360px; }
@media (max-width: 860px) {
  .hero .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { order: -1; justify-items: start; place-items: start; }
  .hero-photo .portrait { max-width: 140px; box-shadow: 0 0 0 6px var(--dot); }
}
#about.band .about-text { justify-items: start; }

/* Illustrations (inline SVG, theme-aware) */
.feature-media.ill-wrap { background: var(--surface); display: grid; place-items: center; padding: 6%; }
.ill { width: 100%; height: auto; overflow: visible; }
.ill .il-n { fill: var(--logo-ink); }
.ill .il-a { fill: var(--accent); }
.ill .il-l { stroke: var(--logo-ink); stroke-width: 2.5; opacity: .55; }
.ill .il-l2 { stroke: var(--logo-ink); stroke-width: 2; opacity: .25; }
.ill .il-dash { stroke-dasharray: 5 7; }
.ill .il-ring { fill: none; stroke: var(--line); stroke-width: 2; }
.ill .il-ring-acc { stroke: var(--accent); stroke-width: 2.5; stroke-dasharray: 6 6; }
.ill .il-axis { stroke: var(--line); stroke-width: 2; }
.ill .il-track { stroke: var(--line); stroke-width: 6; stroke-linecap: round; }
.ill .il-path { fill: none; stroke: var(--accent); stroke-width: 3.5; stroke-linecap: round; }
.ill .il-soft { fill: var(--dot); }
.ill .il-accbox { fill: var(--accent); opacity: .9; }
.ill .il-box { fill: var(--bg); stroke: var(--line); stroke-width: 2; }
.ill .il-bar { fill: var(--line); }
.ill .il-bar-on { fill: var(--on-accent); opacity: .85; }
.ill .il-spark { fill: var(--on-accent); }
.ill .il-t { font: 600 14px var(--font-body); fill: var(--muted); }

/* Article reading aids */
.read-progress { position: fixed; left: 0; right: 0; top: env(safe-area-inset-top, 0px); height: 3px; z-index: 40; pointer-events: none; }
.read-progress span { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }
.toc { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; background: var(--surface); }
.toc p { font: 700 .78rem/1 var(--font-display); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--accent-strong); text-decoration: underline; }
.prose h2[id] { scroll-margin-top: 90px; }
.post-foot .subscribe { grid-template-columns: 1fr; }

/* Phone-sized headings */
@media (max-width: 600px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .audience h2, .offer h2 { font-size: 1.3rem; }
  .hero h1 { font-size: 2.05rem; }
  .post-head h1 { font-size: 1.85rem; }
  .prose h2 { font-size: 1.35rem; }
  .band { padding-block: 40px; }
  .audience, .offer { padding: 24px; }
}
.timeline .t-ill { border-radius: var(--radius); background: var(--surface); aspect-ratio: 4/3; display: grid; place-items: center; padding: 8%; }
@media (max-width: 760px) { .timeline .t-ill { grid-column: 2; max-width: 320px; } }
.video-frame { margin: 32px 0 0; }
.video-frame video { display: block; width: 100%; height: auto; aspect-ratio: 16/9; border-radius: var(--radius); background: var(--surface); box-shadow: 0 8px 28px rgba(45,55,72,.12); }
.video-frame figcaption { margin-top: 10px; font-size: .9rem; color: var(--muted); text-align: center; }
