/* ==========================================================================
   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: none;
  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; }
.case .case-work { margin-top: 20px; }
/* 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;
  }
  /* hero lines stay 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; }
}

/* "What I did" as a short bullet list */
.case-list { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.case-list li { position: relative; padding-left: 16px; font-size: .92rem; line-height: 1.45; color: var(--ink); }
.case-list li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--spark); }

/* ===== Blog section ===== */
.blog-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; }
.blog-head .section-head { margin-bottom: 0; }
.blog-all { display: inline-flex; align-items: center; gap: 6px; font-size: .95rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.blog-all svg { color: var(--spark); transition: transform .2s; }
.blog-all:hover svg { transform: translateX(3px); }
.blog-intro { margin: 14px 0 32px; max-width: 40em; color: var(--ink-soft); }
.posts { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.post-link { display: grid; overflow: hidden; color: inherit; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .25s, transform .25s, box-shadow .25s; }
.post-link:hover { border-color: var(--ink); transform: translateY(-3px); box-shadow: var(--shadow); }
.post-body { display: flex; flex-direction: column; gap: 12px; padding: 28px 24px; }
.post-meta { margin: 0; font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.post-meta .sep { color: var(--spark); padding: 0 .2em; }
.post-body h3 { margin: 0; font-size: clamp(1.35rem, 3vw, 1.7rem); line-height: 1.2; letter-spacing: -.02em; text-wrap: balance; }
.post-body p:not(.post-meta) { margin: 0; color: var(--ink-soft); }
.post-cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-weight: 600; }
.post-cta svg { color: var(--spark); transition: transform .2s; }
.post-link:hover .post-cta svg { transform: translateX(3px); }
.post-art { position: relative; display: grid; place-items: center; padding: 36px 24px 24px; background: #0A0A0A; }
.post-art svg { width: 100%; max-width: 360px; height: auto; }
.post-sticker { position: absolute; top: 16px; right: 16px; transform: rotate(3deg); padding: 7px 11px; border-radius: 7px; background: var(--spark); color: var(--spark-ink); font-size: .75rem; font-weight: 800; }
@media (min-width: 760px) {
  .post-link { grid-template-columns: 1.3fr 1fr; }
  .post-body { padding: 36px 40px; justify-content: center; }
}

/* ==========================================================================
   Layout aligned with the blog: 1320px centered container, one left edge,
   header divider, tighter vertical rhythm
   ========================================================================== */
:root { --gutter: clamp(20px, 4vw, 64px); --container: calc(1320px + var(--gutter) * 2); }
@media (min-width: 640px) { :root { --gutter: clamp(20px, 4vw, 64px); } }
.site-header, .site-header.is-scrolled { border-bottom: 1px solid var(--nav-line); }

.hero { padding: 40px 0 56px; }
.profile-card { margin-bottom: 32px; }
.section { padding: 56px 0; }
.section-head { margin-bottom: 24px; }
.blog-intro { margin: 10px 0 24px; }
@media (min-width: 900px) {
  .hero { padding: 56px 0 72px; }
  .profile-card { margin-bottom: 40px; }
  .section { padding: 80px 0; }
  .split { grid-template-columns: 4fr 8fr; gap: 64px; }
}
@media (min-width: 1024px) {
  .hero-body { grid-template-columns: minmax(0, 1fr) 360px; gap: 80px; }
}
@media (min-width: 1100px) {
  .cards { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1500px) {
  .cases { grid-template-columns: repeat(4, 1fr); }
}
/* headline: 3 lines that always fit beside the stats box */
@media (min-width: 1024px) { .hero-title { font-size: min(3.6rem, calc((92vw - 440px) / 14)); } }
@media (max-width: 1023px) { .hero-title .line { display: inline; } }
/* availability line above the headline */
.hero-open { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; padding: 7px 14px 7px 12px; font-size: .85rem; font-weight: 600; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; }
.hero-open-dot { width: 8px; height: 8px; border-radius: 50%; background: #2E8B57; box-shadow: 0 0 0 4px rgba(46, 139, 87, .15); }
@media (min-width: 1024px) { .hero-title { font-size: min(4.6rem, calc((92vw - 440px) / 9)); } }

/* ===== Hero v2: compact, one-line title, stats box beside the profile card ===== */
.hero { padding: 32px 0 48px; }
.profile-card { margin-bottom: 24px; }
.hero-open { margin-bottom: 12px; }
.hero-title { margin-bottom: 18px; }
.hero-title::after { margin-top: 16px; }
.hero-sub { margin-bottom: 24px; }
.stat { flex-direction: column; }          /* label above value */
.hero-stats dt { margin: 0 0 4px; }
.hero-stats dd { font-size: 1.2rem; }
.stat-wide dd { font-size: .95rem; }
@media (min-width: 1024px) {
  .hero { padding: 40px 0 56px; }
  .hero .container { display: grid; grid-template-columns: minmax(0, 1fr) 340px; column-gap: 64px; align-items: start; }
  .hero .profile-card { grid-column: 1; grid-row: 1; }
  .hero-body { display: contents; }
  .hero-copy { grid-column: 1; grid-row: 2; }
  .hero-stats { grid-column: 2; grid-row: 1 / span 2; align-self: start; gap: 16px; padding: 20px 22px; }
  .hero-title-one { white-space: nowrap; font-size: min(4rem, calc((92vw - 404px) / 12)); }
}
@media (min-width: 1024px) {
  .hero-stats { margin: 0; }
}

/* ===== One layout for every section: title on top, content below, same left edge ===== */
@media (min-width: 900px) {
  #about .split { grid-template-columns: 1fr; gap: 0; }
  #about .split > .section-head { margin-bottom: 24px; }
}
#about .prose { max-width: 72ch; }
#about .prose .lead { margin-bottom: 12px; }
/* same text width for every intro paragraph */
.hero-sub, #about .prose, .blog-intro { max-width: 64ch; }

/* ===== Brand pass: white sections, dark hero like the blog ===== */
.section-alt { background: transparent; }
/* in-progress cards: one compact line of services */
.case-list.case-inline { display: flex; flex-wrap: wrap; gap: 4px 0; }
.case-inline li { padding-left: 0; }
.case-inline li::before { display: none; }
.case-inline li + li::before { display: inline-block; position: static; content: "·"; width: auto; height: auto; background: none; color: var(--spark); font-weight: 800; margin: 0 8px; }
.wip-body { gap: 8px; padding: 20px; }

/* dark hero */
.hero { background: #0A0A0A; color: #FAFAFA; border-bottom: 0; }
.hero-title, .hero .profile-name { color: #FAFAFA; }
.hero-sub { color: #A9A9A9; }
.hero .profile-card { background: #161616; border-color: #2C2C2C; box-shadow: none; }
.hero .profile-photo { border-color: #2C2C2C; }
.hero .profile-links a { color: #FAFAFA; border-color: #2C2C2C; }
.hero .profile-links .is-email:hover { background: #FAFAFA; border-color: #FAFAFA; color: #0A0A0A; }
.hero-open { background: #161616; border-color: #2C2C2C; color: #FAFAFA; }
.hero .btn-primary { background: var(--spark); color: var(--spark-ink); }
.hero .btn-primary svg { color: var(--spark-ink); }
.hero .btn-primary:hover { background: #FAFAFA; }
.hero-stats { border-color: #2C2C2C; }
.hero-stats dd { color: #FAFAFA; }
.hero-stats dt { color: #A9A9A9; }
.hero-stats { background: transparent; }
@media (min-width: 1024px) {
  .hero-stats { background: #161616; border: 1px solid #2C2C2C; box-shadow: none; align-self: center; }
}
#about.section { border-top: 0; }

/* ===== Hero fills the first screen (no white strip under it) ===== */
.hero { min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h)); display: flex; align-items: center; }
.hero > .container { width: 100%; }

/* ===== About + How I work in one section ===== */
.about-cards { margin-top: 32px; }

/* ===== Results: minimal cards ===== */
.cases .case-body { padding: 20px; }
.cases .case-meta { margin-bottom: 4px; }
.cases .chart { margin-top: 16px; }
.cases .chart-head { flex-direction: column-reverse; align-items: flex-start; justify-content: flex-start; gap: 4px; }
.cases .chart-value { font-size: 1.9rem; }
.cases .chart-metric { font-size: .7rem; }
.cases .chart-value { white-space: nowrap; }
.chart-value .arr { color: var(--spark); margin: 0 .15em; font-weight: 700; }
.cases .chart-plot { height: 48px; margin-top: 12px; }
.cases .chart-start, .cases .chart-axis, .cases .case-totals { display: none; }
.cases .case-work { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.cases .case-work-label { display: none; }
.cases .case-list li { font-size: .9rem; }
.cases .case-link { margin-top: 16px; }
.js .chart-note { display: none; }

/* ===== Softer text selection ===== */
::selection { background: rgba(255, 107, 53, .22); color: inherit; }

/* results: only one divider (the chart baseline) */
.cases .case-work { border-top: 0; padding-top: 0; }

/* hero boxes: white cards on the dark hero */
.hero .profile-card { background: #FFFFFF; border-color: #FFFFFF; }
.hero .profile-name { color: var(--ink); }
.hero .profile-photo { border-color: var(--line); }
.hero .profile-links a { color: var(--ink); border-color: var(--line); }
.hero .profile-links .is-email:hover { background: #1A1A1A; border-color: #1A1A1A; color: #FFFFFF; }
@media (min-width: 1024px) {
  .hero-stats { background: #FFFFFF; border-color: #FFFFFF; }
  .hero-stats dd { color: var(--ink); }
  .hero-stats dt { color: var(--ink-soft); }
}

/* result cards: readable meta line with space before the name, links on one line at the bottom */
.cases .case-meta { margin-bottom: 8px; font-size: .82rem; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink-soft); }
.cases .case-meta .sep { color: var(--ink-soft); padding: 0 .35em; }
.cases .case-link { margin-top: auto; padding-top: 18px; }
.cases .case-work { margin-bottom: 0; }

/* hero boxes: dark again, but clearly visible */
.hero .profile-card { background: #1C1C1C; border-color: #3A3A3A; box-shadow: 0 12px 32px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.06); }
.hero .profile-name { color: #FAFAFA; }
.hero .profile-photo { border-color: #3A3A3A; }
.hero .profile-links a { color: #FAFAFA; border-color: #3A3A3A; }
.hero .profile-links .is-email:hover { background: #FAFAFA; border-color: #FAFAFA; color: #0A0A0A; }
@media (min-width: 1024px) {
  .hero-stats { background: #1C1C1C; border-color: #3A3A3A; box-shadow: 0 12px 32px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.06); }
  .hero-stats dd { color: #FAFAFA; }
  .hero-stats dt { color: #B5B5B5; }
}

/* ===== Booking widget ===== */
.offer-list { display: grid; gap: 8px; margin: 4px 0 18px; }
.offer-list li { position: relative; padding-left: 18px; line-height: 1.5; color: var(--ink); }
.offer-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--spark); }
.booking { max-width: 460px; padding: 22px 24px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.booking-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.booking-head h3 { margin: 0; font-size: 1.15rem; font-weight: 600; letter-spacing: -.01em; }
.booking-open { font-size: 1.2rem; color: var(--ink-soft); text-decoration: none; }
.booking-open:hover { color: var(--spark); }
.booking-month { margin: 4px 0 14px; font-size: .85rem; color: var(--ink-soft); }
.booking-days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; justify-items: center; }
.booking-dow { font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); padding-bottom: 4px; }
.booking-day { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; font-size: .95rem; font-weight: 600; color: #C4C4C4; text-decoration: none; }
.booking-day.is-open { color: var(--ink); }
.booking-day.is-open:hover { background: var(--bg-alt); }
.booking-day.is-first { background: var(--ink); color: #FFFFFF; }
.booking-day.is-first:hover { background: var(--spark); color: var(--spark-ink); }
.booking-note { margin: 12px 0 0; font-size: .8rem; color: var(--ink-soft); }
@media (min-width: 900px) { .section-contact .split { grid-template-columns: minmax(0, 1fr) 460px; } }

/* Mobile hero: fit the first screen, no cut-off boxes */
@media (max-width: 767px) {
  .stat-how, .stat-wide { display: none; }
  .hero-title { font-size: clamp(2rem, 9vw, 2.4rem); }
  .hero-sub { font-size: 1rem; line-height: 1.55; }
  .hero { padding-top: 24px; padding-bottom: 36px; min-height: calc(100svh - var(--header-h)); align-items: stretch; }
  .hero > .container { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
  .hero .hero-body { display: contents; }
  .hero .profile-card { margin-bottom: 0; align-self: flex-start; }
  .hero .profile-card { margin-bottom: 18px; padding: 10px 14px; gap: 12px; }
  .hero .profile-photo, .hero .profile-photo img { width: 56px; height: 56px; }
  .hero .profile-links a { width: 36px; height: 36px; }
  .hero .profile-links svg { width: 17px; height: 17px; }
  .hero-stats { gap: 12px 20px; margin-top: 18px; padding-top: 14px; }
  .hero-body { gap: 22px; row-gap: 22px; }
  .hero-actions { margin-top: 20px; }
  .hero { padding-bottom: 24px; }
  .hero-stats dd { font-size: 1.05rem; }
  .stat-wide dd { font-size: .9rem; }
}

/* ===== Layout fixes: hero title no longer runs under the stats box; aligned About cards ===== */
@media (min-width: 1024px) {
  .hero .container { grid-template-columns: minmax(0, 1fr) 340px; }
  .hero-title-one {
    white-space: normal;
    font-size: clamp(3rem, 4.6vw, 4.5rem);
    line-height: 1.04;
    max-width: 19ch;
    text-wrap: balance;
  }
  .hero-sub { max-width: 52ch; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .hero-title-one { white-space: normal; font-size: clamp(2.6rem, 6.4vw, 3.4rem); max-width: 16ch; text-wrap: balance; }
}
@media (max-width: 767px) {
  .hero-title-one { white-space: normal; font-size: clamp(2rem, 9vw, 2.4rem); line-height: 1.08; text-wrap: balance; }
}

/* About cards: icon, heading and paragraph sit on shared rows, so every card lines up */
.cards > .card {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 3;
  row-gap: 0;
  align-content: start;
}
.cards { grid-auto-rows: auto; }
.cards .card-icon { margin-bottom: 20px; align-self: start; }
.cards .card h3 { margin: 0 0 8px; align-self: start; line-height: 1.25; }
.cards .card p { margin: 0; align-self: start; }
@media (min-width: 1100px) { .cards .card { padding: 28px 24px; } }
#about .prose { max-width: 72ch; }

/* ===== Hero: natural height (no stretched gaps), all four stats visible on mobile ===== */
.hero { min-height: 0; align-items: flex-start; padding: 48px 0 56px; }
@media (min-width: 1024px) { .hero { padding: 56px 0 64px; } .hero-stats { align-self: center; } }
@media (max-width: 767px) {
  .hero { min-height: 0; padding: 20px 0 28px; align-items: flex-start; }
  .hero > .container { display: block; }
  .hero .profile-card { margin: 0 0 16px; }
  .hero .hero-body { display: block; }
  .hero-sub { margin-bottom: 20px; }
  .hero-actions { margin-top: 0; }
  .hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; margin-top: 24px; padding-top: 18px; }
  .stat-how, .stat-wide { display: flex; }
  .stat-wide { grid-column: 1 / -1; }
  .stat-wide dd { font-size: .95rem; }
}

/* Certifications */
.certs { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.cert a, .cert > div { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 18px 20px; color: inherit; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .25s, transform .25s; }
.cert a:hover { border-color: var(--ink); transform: translateY(-2px); }
.cert-issuer { font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.cert-name { font-weight: 600; line-height: 1.3; }
.cert-verify { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 5px; font-size: .85rem; color: var(--ink-soft); }
.cert-verify svg { color: var(--spark); }

/* Blog carousel */
.posts { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 0 8px; }
.posts::-webkit-scrollbar { display: none; }
.posts .post { flex: 0 0 min(340px, 82%); scroll-snap-align: start; }
.post-link { height: 100%; grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
.post-body { justify-content: flex-start; }
.post-img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; background: #0A0A0A; }
.post-body { padding: 18px 20px 20px; gap: 8px; }
.post-body h3 { font-size: 1.1rem; line-height: 1.3; }
.post-body .post-author { margin: auto 0 0; padding-top: 6px; font-size: .85rem; color: var(--ink-soft); }
.carousel-nav { display: flex; gap: 8px; margin-top: 12px; }
.carousel-btn { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink); font-size: 1rem; cursor: pointer; transition: border-color .2s; }
.carousel-btn:hover:not(:disabled) { border-color: var(--ink); }
.carousel-btn:disabled { opacity: .35; cursor: default; }
.cert-issuer { display: flex; align-items: center; gap: 10px; }
.cert-issuer img { width: 28px; height: 28px; border-radius: 6px; object-fit: contain; }

/* ===== Mobile hero: exactly one dark screen, one compact stats box ===== */
@media (max-width: 767px) {
  .stat-how, .stat-wide { display: none; }
  .hero { min-height: calc(100svh - var(--header-h)); padding: 20px 0 24px; display: flex; align-items: center; }
  .hero > .container { display: block; }
  .hero-stats { display: flex; gap: 0; margin-top: 20px; padding: 12px 16px; border: 1px solid #3A3A3A; border-radius: var(--radius); background: #1C1C1C; }
  .hero-stats .stat { flex: 1; border-left: 0; padding-left: 0; }
  .hero-stats .stat + .stat { padding-left: 16px; border-left: 2px solid var(--spark); }
}

/* Current projects: one row */
@media (min-width: 900px) { .wips { grid-template-columns: repeat(3, 1fr); } }
/* Skills & experience */
.skill-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.skill { position: relative; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s, transform .2s; }
.skill:hover { border-color: var(--ink); transform: translateY(-2px); }
.skill-num { display: block; margin-bottom: 18px; font-size: .75rem; font-weight: 600; letter-spacing: .12em; color: var(--spark); }
.skill h3 { margin: 0 0 8px; font-size: 1.1rem; }
.skill p { margin: 0; color: var(--ink-soft); font-size: .93rem; line-height: 1.5; }
.toolbox { margin-top: 14px; padding: 8px 24px; background: var(--ink); color: var(--nav-ink); border-radius: var(--radius); }
.tool-row { display: grid; gap: 10px; padding: 18px 0; border-bottom: 1px solid var(--nav-line); }
.tool-row:last-child { border-bottom: 0; }
.tool-label { font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--spark); }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 6px 12px; font-size: .88rem; border: 1px solid var(--nav-line); border-radius: 999px; color: var(--nav-ink); }
@media (min-width: 800px) { .tool-row { grid-template-columns: 160px 1fr; align-items: center; } }
.timeline { list-style: none; margin: 0; padding: 0; max-width: 900px; }
.tl { position: relative; display: grid; gap: 6px; padding: 0 0 36px 28px; border-left: 2px solid var(--line); margin-left: 6px; }
.tl:last-child { padding-bottom: 8px; }
.tl::before { content: ""; position: absolute; left: -7px; top: 3px; width: 12px; height: 12px; border-radius: 50%; background: var(--spark); box-shadow: 0 0 0 4px var(--bg); }
.tl-date { font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.tl-body h3 { margin: 0 0 8px; font-size: 1.2rem; }
.tl-body p { margin: 0; color: var(--ink-soft); max-width: 62ch; }
.tl-body .case-list { margin-top: 6px; }
.exp-edu { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .92rem; max-width: 900px; }
.exp-edu span:not(.sep) { margin-right: 6px; font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
@media (min-width: 900px) { .skill-grid { grid-template-columns: repeat(3, 1fr); } }
