/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
  --bg: #FAFAFA;
  --bg-alt: #F2F2F2;
  --surface: #FFFFFF;
  --ink: #111111;
  --ink-soft: #555555;
  --spark: #FF6B35;      /* orange accent: small elements only */
  --spark-ink: #0A0A0A;
  --line: #E0E0E0;
  /* solid black header, as on lush.com */
  --nav-bg: #0A0A0A;
  --nav-ink: #FAFAFA;
  --nav-ink-soft: #BDBDBD;
  --nav-line: #3A3A3A;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 24px rgba(0, 0, 0, .07);

  --font-logo: 'Fraunces', Georgia, 'Times New Roman', serif; /* logo only */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --radius: 14px;
  --container: 1120px;
  --gutter: 20px;
  --header-h: 64px;
}


/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { margin: 0; line-height: 1.15; font-weight: 600; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: var(--ink); text-decoration-color: var(--spark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--spark); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--spark); color: var(--spark-ink); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 100;
  padding: 8px 14px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 8px;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--nav-bg);
  color: var(--nav-ink);
  border-bottom: 1px solid transparent;
  transition: border-color .25s;
}
.site-header.is-scrolled { border-bottom-color: var(--nav-line); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.logo {
  font-family: var(--font-logo);
  font-weight: 600;
  font-size: 1.7rem;
  line-height: 1;
  letter-spacing: .02em;
  color: var(--nav-ink);
  text-decoration: none;
}
.logo-dot { color: var(--spark); }

.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-list a {
  display: block;
  padding: 8px 10px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--nav-ink-soft);
  text-decoration: none;
  border-radius: 8px;
}
.nav-list a:hover { color: var(--nav-ink); }
.nav-list li:not(:last-child) { display: none; }
.nav-list .nav-cta {
  color: var(--nav-ink);
  border: 1px solid var(--nav-line);
  padding: 7px 14px;
  border-radius: 999px;
}
.nav-list .nav-cta:hover { color: var(--nav-ink); border-color: var(--nav-ink); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  font: 600 .95rem/1 var(--font-body);
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--spark); color: var(--spark-ink); }
.btn-primary:hover svg { transform: translateX(3px); color: var(--spark-ink); }
.btn-primary svg { color: var(--spark); transition: transform .2s, color .2s; }
.btn:disabled { opacity: .6; cursor: progress; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { padding: 40px 0 80px; }



.hero-title {
  font-size: clamp(2.4rem, 7.5vw, 5.25rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -.035em;
  margin-bottom: 28px;
  overflow-wrap: break-word;
}
/* line 2 always starts on its own line */
.hero-title .line { display: block; }
/* short orange rule under the headline */
.hero-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  margin-top: 24px;
  background: var(--spark);
  border-radius: 2px;
}


/* Profile / connect card */
.profile-card {
  display: flex;
  align-items: center;
  gap: 20px;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 40px;
  padding: 14px 24px 14px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow);
}
.profile-photo {
  flex: none;
  width: 88px;
  height: 88px;
  overflow: hidden;
  border-radius: 50%;
  border: 1px solid var(--line);
}
.profile-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.2);
  transform-origin: 50% 40%; /* keeps the face centred with shoulders in frame */
}
.profile-name {
  margin: 0 0 8px;
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.02em;
}
.profile-links { display: flex; gap: 10px; }
.profile-links a {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: background-color .18s, border-color .18s, color .18s;
}
/* hover: fill with the platform's brand colour, glyph turns white */
.profile-links a:hover { color: #FFFFFF; }
.profile-links .is-email:hover { background: #1A1A1A; border-color: #1A1A1A; }
.profile-links .is-linkedin:hover { background: #0A66C2; border-color: #0A66C2; }
.profile-links .is-whatsapp:hover { background: #25D366; border-color: #25D366; }
.profile-links svg { width: 22px; height: 22px; }

.hero-sub {
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 52ch;
  margin-bottom: 32px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Stats / proof panel: below the buttons on small screens, beside the copy on wide ones */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 16px;
  margin: 48px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.stat {
  display: flex;
  flex-direction: column-reverse; /* value above label visually; label stays first in the markup */
  padding-left: 14px;
  border-left: 2px solid var(--spark);
}
.stat-wide { grid-column: 1 / -1; }
.hero-stats dd {
  margin: 0;
  font-size: clamp(1.25rem, 3.4vw, 1.5rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.02em;
  color: var(--ink);
}
.stat-wide dd { font-size: clamp(1rem, 2.8vw, 1.1rem); font-weight: 500; letter-spacing: -.01em; }
.hero-stats .sep { color: var(--spark); padding: 0 .15em; }
.hero-stats dt {
  margin-top: 6px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}


/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: 72px 0; border-top: 1px solid var(--line); }
.section-alt { background: var(--bg-alt); }

.section-head { margin-bottom: 28px; }
.section-head h2 { font-size: clamp(1.9rem, 5vw, 2.75rem); letter-spacing: -.01em; }
.section-num {
  display: block;
  margin-bottom: 10px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

.split { display: grid; gap: 8px; }

.prose { max-width: 62ch; }
.lead { font-size: clamp(1.1rem, 2.4vw, 1.3rem); line-height: 1.55; color: var(--ink); }
.prose p:not(.lead) { color: var(--ink-soft); }

/* Cards */
.cards { display: grid; gap: 16px; }
.card {
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.card-icon {
  width: 40px;
  height: 40px;
  padding: 8px;
  margin-bottom: 20px;
  color: var(--ink);
  background: color-mix(in srgb, var(--ink) 7%, transparent);
  border-radius: 10px;
  transition: color .25s;
}
/* hover lift only on real pointers, so a tap can't leave one card stuck outlined */
@media (hover: hover) {
  .card:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow); }
  .card:hover .card-icon { color: var(--spark); }
}
.card h3 { font-size: 1.2rem; margin-bottom: 8px; text-wrap: balance; }
.card p { color: var(--ink-soft); font-size: .97rem; }

/* Portfolio */
.work-group + .work-group { margin-top: 64px; }
.group-title { font-size: 1.35rem; margin-bottom: 20px; }
.group-sub { margin: -12px 0 20px; color: var(--ink-soft); font-size: .95rem; }
.group-title::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 2px;
  margin-right: 12px;
  vertical-align: middle;
  background: var(--spark);
}

/* SEO case studies: same card chrome as the Focus cards */
.cases { display: grid; gap: 16px; }
.case {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.case-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}
.case-meta {
  margin-bottom: 6px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.case-meta .sep { color: var(--spark); padding: 0 .2em; }
.case-meta .nowrap { white-space: nowrap; }
.case h4 { margin: 0; font-size: 1.2rem; font-weight: 600; line-height: 1.2; letter-spacing: -.02em; }

@media (hover: hover) {
  .case:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow); }
}

/* Growth chart: static head, plot drawn by script.js from data-* values */
.chart { margin: 20px 0 0; }
.chart-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
.chart-metric {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.chart-value {
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.chart-plot {
  position: relative;
  height: 88px;
  margin: 14px 0 0;
}
.chart-plot svg { display: block; width: 100%; height: 100%; overflow: visible; }
.chart-line { fill: none; stroke: var(--spark); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart-base { stroke: var(--line); stroke-width: 1; }
.chart-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  background: var(--spark);
  border: 2px solid var(--surface);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--spark);
}
.chart-dot.is-start { background: var(--surface); }
.chart-start {
  position: absolute;
  left: 0;
  padding: 0 0 0 10px;
  transform: translateY(-130%);
  font-size: .8rem;
  font-weight: 600;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.chart-axis {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: .75rem;
  color: var(--ink-soft);
}
/* the note only describes the drawn charts, so hide it when script.js can't draw them */
.chart-note { display: none; margin: 16px 0 0; font-size: .82rem; color: var(--ink-soft); }
.js .chart-note { display: block; }

.case-totals {
  display: flex;
  gap: 28px;
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.case-totals div { display: flex; flex-direction: column-reverse; }
.case-totals dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.case-totals dt { font-size: .8rem; color: var(--ink-soft); }
.case-result { margin: 18px 0 16px; color: var(--ink-soft); font-size: .95rem; }
/* what I did: short scope line under the numbers */
.case-work { margin: 0 0 20px; font-size: .92rem; line-height: 1.55; color: var(--ink); }
.case-work-label {
  display: block;
  margin-bottom: 4px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.wip .case-work { margin: 0; }
.case-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  font-size: .9rem;
  font-weight: 500;
}
.case-link svg { color: var(--spark); }

/* In-progress work: dashed, muted frame + badge so it reads as unfinished next to the case studies */
.wips { display: grid; gap: 16px; }
.wip {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px dashed color-mix(in srgb, var(--ink) 22%, transparent);
  border-radius: var(--radius);
}
.wip-body { display: flex; flex-direction: column; gap: 10px; padding: 24px; }
.wip-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.wip h4 { margin: 0; font-size: 1.2rem; font-weight: 600; line-height: 1.2; letter-spacing: -.02em; }
.wip .case-link { margin-top: 0; }
.badge, .market {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-radius: 999px;
}
.badge { color: var(--ink); background: color-mix(in srgb, var(--spark) 12%, transparent); }
.market { color: var(--ink-soft); border: 1px solid var(--line); }
.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--spark); }

@media (prefers-reduced-motion: no-preference) {
  .badge-dot { animation: pulse 2s ease-in-out infinite; }
  @keyframes pulse { 50% { opacity: .35; } }
}

/* Contact */
.section-contact .lead { margin-bottom: 24px; max-width: 44ch; }
.contact-alt { color: var(--ink-soft); line-height: 1.8; }

.contact-form {
  display: grid;
  gap: 18px;
  margin-top: 32px;
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.field { display: grid; gap: 6px; }
.field label { font-size: .88rem; font-weight: 600; }
.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: 1rem; /* prevents iOS zoom */
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 12%, transparent);
}
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: #C62828; }
.contact-form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { min-height: 1.4em; font-size: .92rem; color: var(--ink-soft); margin: 0; }
.form-status.is-success { color: var(--ink); }
.form-status.is-error { color: #C62828; }

/* Footer */
.site-footer {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  font-size: .88rem;
  color: var(--ink-soft);
}
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.footer-inner p { margin: 0; }
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

/* ==========================================================================
   Scroll reveal (only when JS is running)
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .6s ease, transform .6s ease;
  }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* ==========================================================================
   Breakpoints (mobile-first)
   ========================================================================== */
@media (min-width: 640px) {
  :root { --gutter: 32px; }
  .nav-list li:not(:last-child) { display: block; }
  .cards { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .cases, .wips { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .contact-form { padding: 32px; }
}

@media (min-width: 900px) {
  .hero { padding: 64px 0 112px; }
  .profile-card { margin-bottom: 64px; }
  .section { padding: 112px 0; }
  .split { grid-template-columns: 5fr 7fr; gap: 48px; align-items: start; }
  .split > .section-head { margin-bottom: 0; }
  .contact-form { margin-top: 0; }
}

@media (min-width: 1024px) {
  .cases { grid-template-columns: repeat(3, 1fr); }
  /* copy on the left, proof panel on the right */
  .hero-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 48px;
    align-items: center;
  }
  /* sized so "Digital Growth Strategist." stays on one line from 1024px up */
  .hero-title { font-size: min(3.6rem, 4.8vw); }
  .hero-title .line { white-space: nowrap; }
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 24px;
    margin: 0;
    padding: 28px 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
  }
  .stat-wide dd { font-size: .95rem; white-space: nowrap; }
}
