/* Colours and spacing used across the whole site */
:root {
  --bg: #f3efe7;
  --fg: #161512;
  --muted: #6d685e;
  --line: #d8d1c3;
  --accent: #1f5c4a;
  --card: #fbf9f4;
  --pad: clamp(16px, 4vw, 48px);
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--fg); }
html { scroll-behavior: smooth; }
body { font-family: Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; line-height: 1.5; }
.serif { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; }
a { color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 12px 20px; border-radius: 999px; background: var(--fg); color: var(--bg);
  text-decoration: none; font: 500 15px Inter, sans-serif; border: 1px solid var(--fg); cursor: pointer; transition: transform .2s, background .2s, color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--fg); }
.btn-small { padding: 8px 16px; font-size: 14px; }

/* Top bar */
.nav { position: sticky; top: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 12px var(--pad); background: rgba(243, 239, 231, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line); }
.nav-name { font-weight: 600; text-decoration: none; }
.nav-links { display: flex; gap: 28px; font-size: 14px; }
.nav-links a { text-decoration: none; color: var(--muted); }
.nav-links a:hover { color: var(--fg); }
@media (max-width: 720px) { .nav-links { display: none; } }

/* Opening screen */
.hero { min-height: calc(100vh - 60px); display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 5vw, 80px);
  align-items: center; padding: clamp(40px, 6vw, 80px) var(--pad); max-width: 1400px; margin: 0 auto; }
.status { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; margin: 0 0 24px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #2fa36b; box-shadow: 0 0 0 0 rgba(47, 163, 107, .5); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(47, 163, 107, 0); } 100% { box-shadow: 0 0 0 0 rgba(47, 163, 107, 0); } }
h1 { font-size: clamp(52px, 6.6vw, 112px); line-height: .95; letter-spacing: -0.02em; margin: 0; }
h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
h1 .line > span { display: block; }
h1 em { color: var(--accent); }
.intro { color: var(--muted); font-size: clamp(16px, 1.5vw, 19px); line-height: 1.55; max-width: 40ch; margin: 28px 0 0; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.photo { margin: 0; justify-self: center; width: 100%; max-width: 460px; aspect-ratio: 4 / 5; border-radius: 6px; overflow: hidden;
  background: #ddd5c6; clip-path: inset(0 0 0 0); }
.photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; transform-origin: center top; }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .photo { max-width: 400px; }
}

/* Numbers */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: clamp(28px, 4vw, 56px) clamp(16px, 2.5vw, 32px); border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.num { font-size: clamp(48px, 6vw, 92px); line-height: 1; font-variant-numeric: tabular-nums; }
.stat-label { color: var(--muted); font-size: 14px; margin-top: 12px; line-height: 1.4; }
@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* The path, sideways scroll */
.hwrap { height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.hhead { padding: 0 var(--pad); margin-bottom: 32px; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.hhead h2 { font-size: clamp(36px, 4.5vw, 64px); margin: 0; line-height: 1; }
.hint { color: var(--muted); font-size: 14px; margin: 0; }
.track { display: flex; gap: 24px; padding: 0 var(--pad); width: max-content; }
.card { width: min(78vw, 520px); background: var(--card); border: 1px solid var(--line); border-radius: 6px;
  padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 16px; min-height: 52vh; }
.card .when { font-size: 12px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.card .kicker { font-size: clamp(28px, 3vw, 38px); font-style: italic; margin: 0; line-height: 1.05; }
.card p { color: var(--muted); margin: 0; line-height: 1.5; font-size: 15px; }
.card .big { font-size: clamp(64px, 8vw, 112px); line-height: .9; color: var(--accent); margin-top: auto; }
.card .big.long { font-size: clamp(44px, 5.5vw, 80px); }
.progress { height: 2px; background: var(--line); margin: 32px var(--pad) 0; }
.progress i { display: block; height: 100%; width: 0; background: var(--accent); }

/* Shared section styles */
.section, .contact { padding: clamp(80px, 12vw, 160px) var(--pad); max-width: 1200px; margin: 0 auto; }
.eyebrow { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 0 0 16px; font-weight: 600; }
.section h2, .contact h2 { font-size: clamp(44px, 6vw, 88px); line-height: 1; margin: 0; }
.lede { color: var(--muted); font-size: clamp(17px, 1.6vw, 20px); max-width: 52ch; margin: 20px 0 0; }

/* Case study */
.pps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
.pps-item { border-top: 1px solid var(--fg); padding-top: 20px; }
.pps-tag { font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.pps-item p { color: var(--muted); margin: 12px 0 0; }
@media (max-width: 760px) { .pps { grid-template-columns: 1fr; } }

.flow { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 64px; }
.flow-step { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; background: none; border: 0;
  cursor: pointer; font: inherit; color: var(--muted); padding: 0; }
.flow-n { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--line);
  font-weight: 600; transition: background .3s, color .3s, border-color .3s, transform .3s; }
.flow-label { font-size: 14px; font-weight: 500; }
.flow-step.on { color: var(--fg); }
.flow-step.on .flow-n { background: var(--accent); border-color: var(--accent); color: #fff; transform: scale(1.1); }
.flow-step:hover .flow-n { border-color: var(--fg); }
.flow-line { position: absolute; top: 24px; left: 12.5%; right: 12.5%; height: 2px; background: var(--line); }
.flow-line i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .5s ease; }
.flow-detail { text-align: center; max-width: 52ch; margin: 32px auto 0; min-height: 3em; font-size: 17px; }
.flow-hint { text-align: center; color: var(--muted); font-size: 13px; margin: 8px 0 0; }

/* How I work */
.habits { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; }
.habit { border-top: 1px solid var(--line); padding: 28px 0; display: grid; grid-template-columns: 64px 1fr; column-gap: 16px; }
.habit-n { font-size: 40px; line-height: 1; color: var(--accent); grid-row: span 2; }
.habit h3 { margin: 0; font-size: 20px; font-weight: 600; }
.habit p { margin: 8px 0 0; color: var(--muted); }
@media (max-width: 760px) { .habits { grid-template-columns: 1fr; } .habit { grid-template-columns: 48px 1fr; } .habit-n { font-size: 32px; } }

/* Recommendations */
.quote-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(24px, 4vw, 64px); margin-top: 24px; }
.quote { margin: 0; display: flex; flex-direction: column; gap: 24px; padding: clamp(24px, 3vw, 40px); background: var(--card);
  border: 1px solid var(--line); border-radius: 6px; }
.quote blockquote { margin: 0; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.25; }
.quote figcaption { margin-top: auto; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.quote figcaption span { color: var(--muted); }
.quote-source { display: inline-block; margin-top: 24px; font-size: 14px; color: var(--muted); }
.quote-source:hover { color: var(--fg); }
@media (max-width: 760px) { .quote-grid { grid-template-columns: 1fr; } }

/* How I sell / How I lead switch */
.toggle { display: inline-flex; gap: 4px; padding: 4px; margin-top: 40px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); }
.toggle-btn { font: 500 15px Inter, sans-serif; padding: 10px 22px; border-radius: 999px; border: 0; background: transparent; color: var(--muted);
  cursor: pointer; transition: background .25s, color .25s; }
.toggle-btn.on { background: var(--fg); color: var(--bg); }
.toggle-btn:not(.on):hover { color: var(--fg); }
.panel { margin-top: 40px; }
.panel[hidden] { display: none; }
.panel-lede { font-size: clamp(28px, 3.4vw, 46px); line-height: 1.1; margin: 0; max-width: 24ch; }
.panel-lede em { color: var(--accent); }
.panel-sub { color: var(--muted); font-size: 17px; max-width: 56ch; margin: 16px 0 0; }
.panel .habits { margin-top: 40px; }
.tag { grid-column: 2; justify-self: start; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent); background: rgba(31, 92, 74, .08); padding: 3px 8px; border-radius: 999px; margin-bottom: 8px; }
.habit-n { grid-row: span 3; }
.proof { margin: 24px 0 0; padding: 20px 24px; background: var(--card); border: 1px solid var(--line); border-radius: 6px; font-size: 15px; color: var(--muted); }
.proof strong { color: var(--fg); }
@media (max-width: 520px) { .toggle { display: flex; } .toggle-btn { flex: 1; padding: 10px 12px; } }

/* Background */
.background { padding-top: 0; }
.bg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.bg-grid > div { border-top: 1px solid var(--line); padding-top: 20px; }
.bg-grid h3 { font-size: 17px; margin: 0; font-weight: 600; }
.bg-grid p { color: var(--muted); margin: 8px 0 0; font-size: 15px; }
@media (max-width: 760px) { .bg-grid { grid-template-columns: 1fr; } }

/* Contact */
.contact { text-align: center; border-top: 1px solid var(--line); max-width: none; }
.contact .lede { margin-left: auto; margin-right: auto; }
.contact-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px; margin-top: 48px; }
.contact-email { font-size: clamp(28px, 4.5vw, 60px); text-decoration: none; border-bottom: 1px solid var(--line); line-height: 1.2;
  overflow-wrap: anywhere; transition: border-color .2s, color .2s; }
.contact-email:hover { color: var(--accent); border-color: var(--accent); }
.contact-links { display: flex; justify-content: center; gap: 12px; margin-top: 32px; }

/* Footer */
.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 24px var(--pad); color: var(--muted); font-size: 13px;
  border-top: 1px solid var(--line); }

/* Reduced motion: no pinning or sideways scroll, everything simply visible */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dot { animation: none; }
}
.reduced .hwrap { height: auto; padding: 64px 0; }
.reduced .track { flex-direction: column; width: auto; }
.reduced .card { width: auto; min-height: 0; }
.reduced .progress, .reduced .hint { display: none; }
