@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

/* ==========================================================================
   liranzablo.com homepage
   --------------------------------------------------------------------------
   Loaded only by /index.html. The blog keeps its own dark theme in
   styles.css, so nothing here has to coexist with those rules.

   Placeholder panels come in two explicit variants, .img-placeholder and
   .img-placeholder.is-dark, rather than inheriting from an ancestor's
   background. A descendant rule like `.on-navy .img-placeholder` silently
   wins over component-level overrides and paints light text onto white
   cards, so the variant is always stated on the element itself.
   ========================================================================== */

:root {
  color-scheme: light;

  /* Core palette */
  --navy-900: #071A2E;
  --navy-800: #0A2440;
  --navy-700: #12345A;
  --blue-600: #2F6FCE;
  --blue-500: #4181D8;
  /* Small uppercase text needs a touch more depth: #2F6FCE lands at 4.49
     against the warm off-white, a hair under the 4.5 AA floor. */
  --blue-700: #2A63B8;
  --blue-100: #DCE9F8;
  --offwhite: #F7F5F0;
  --cool-50: #F2F6FB;
  --white: #FFFFFF;
  --ink: #111827;
  --muted: #667085;
  --border: #DDDAD3;

  /* On-navy variants */
  --navy-border: rgba(220, 233, 248, 0.16);
  --navy-text: rgba(233, 240, 250, 0.82);
  --navy-dim: rgba(233, 240, 250, 0.58);
  --navy-eyebrow: #9DC0EE;
  --navy-heading: #F4F8FD;

  --radius-lg: 18px;
  --radius: 14px;
  --radius-sm: 10px;

  --container: 77.5rem; /* 1240px */
  --measure: 42rem;     /* ~670px reading column */
  --section-y: clamp(3.5rem, 5.6vw, 5.5rem); /* 56px mobile -> 88px desktop */

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;

  --shadow-sm: 0 1px 2px rgba(7, 26, 46, 0.06), 0 2px 8px rgba(7, 26, 46, 0.04);
  --shadow-md: 0 4px 12px rgba(7, 26, 46, 0.08), 0 12px 32px rgba(7, 26, 46, 0.08);
  --shadow-lg: 0 8px 24px rgba(7, 26, 46, 0.12), 0 24px 60px rgba(7, 26, 46, 0.16);
  --shadow-navy: 0 24px 60px rgba(0, 0, 0, 0.4);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: clamp(1.0625rem, 0.35vw + 1rem, 1.1875rem); /* 17px -> 19px */
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.12;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.25rem); /* -> 68px */
  line-height: 1.06;
}

h2 {
  font-size: clamp(2rem, 3.6vw, 3.125rem); /* -> 50px */
}

h3 {
  font-size: clamp(1.625rem, 2.2vw, 2rem); /* 26px -> 32px */
  line-height: 1.2;
}

h4 {
  font-size: 1.0625rem;
  line-height: 1.35;
  letter-spacing: -0.015em;
}

p {
  margin: 0 0 1.15em;
}

p:last-child {
  margin-bottom: 0;
}

:focus-visible {
  outline: 2px solid var(--blue-600);
  outline-offset: 3px;
  border-radius: 4px;
}

.on-navy :focus-visible {
  outline-color: var(--blue-100);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ------------------------------ Layout ---------------------------------- */

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

@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }
}

.section {
  padding-block: var(--section-y);
  scroll-margin-top: 5.5rem;
}

.section-offwhite { background: var(--offwhite); }
.section-white    { background: var(--white); }
.section-cool     { background: var(--cool-50); }

.on-navy {
  background: var(--navy-900);
  color: var(--navy-text);
}

.on-navy h1,
.on-navy h2,
.on-navy h3,
.on-navy h4 {
  color: var(--navy-heading);
}

.measure { max-width: var(--measure); }

/* Eyebrow labels */
.eyebrow {
  display: block;
  margin: 0 0 1rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-700);
}

.on-navy .eyebrow { color: var(--navy-eyebrow); }

.lead {
  font-size: clamp(1.0625rem, 0.4vw + 1rem, 1.1875rem);
  color: var(--muted);
  max-width: var(--measure);
}

.on-navy .lead { color: var(--navy-text); }

/* ------------------------------ Buttons --------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 0.875rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease,
    box-shadow 0.18s ease, transform 0.18s ease;
}

.btn-primary {
  background: var(--blue-600);
  border-color: var(--blue-600);
  color: var(--white);
  box-shadow: 0 2px 10px rgba(47, 111, 206, 0.28);
}

.btn-primary:hover {
  background: var(--blue-500);
  border-color: var(--blue-500);
  box-shadow: 0 4px 16px rgba(47, 111, 206, 0.34);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border-color: rgba(220, 233, 248, 0.3);
  color: #EAF1FA;
}

.btn-outline:hover {
  border-color: rgba(220, 233, 248, 0.6);
  background: rgba(220, 233, 248, 0.08);
}

.btn-quiet {
  background: var(--white);
  border-color: var(--border);
  color: var(--ink);
}

.btn-quiet:hover {
  border-color: var(--blue-600);
  color: var(--blue-600);
}

.btn-sm {
  padding: 0.6875rem 1.125rem;
  font-size: 0.875rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--blue-600);
  transition: gap 0.18s ease, color 0.18s ease;
}

.link-arrow:hover {
  gap: 0.6rem;
  color: var(--navy-700);
}

.on-navy .link-arrow { color: var(--navy-eyebrow); }
.on-navy .link-arrow:hover { color: var(--white); }

/* Source link held as text until the real URL is supplied. */
.link-pending {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
  border-bottom: 1px dashed var(--border);
  padding-bottom: 1px;
}

.link-pending.is-dark {
  color: var(--navy-dim);
  border-bottom-color: var(--navy-border);
}

/* --------------------------- Image placeholders -------------------------- */

.img-placeholder {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.25rem;
  text-align: center;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(47, 111, 206, 0.055) 0 12px,
      rgba(47, 111, 206, 0.015) 12px 24px
    ),
    var(--cool-50);
  border: 1px dashed rgba(47, 111, 206, 0.42);
  border-radius: var(--radius);
  color: var(--navy-700);
}

.img-placeholder .ph-tag {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-600);
}

.img-placeholder .ph-label {
  margin: 0;
  max-width: 34rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--navy-700);
}

/* Explicit dark variant for placeholders sitting on navy. */
.img-placeholder.is-dark {
  background:
    repeating-linear-gradient(
      135deg,
      rgba(220, 233, 248, 0.06) 0 12px,
      rgba(220, 233, 248, 0.02) 12px 24px
    ),
    rgba(255, 255, 255, 0.02);
  border-color: rgba(220, 233, 248, 0.28);
}

.img-placeholder.is-dark .ph-tag { color: var(--navy-eyebrow); }
.img-placeholder.is-dark .ph-label { color: var(--navy-text); }

.ph-16x9  { aspect-ratio: 16 / 9; }
.ph-16x10 { aspect-ratio: 16 / 10; }
.ph-4x3   { aspect-ratio: 4 / 3; }
.ph-4x5   { aspect-ratio: 4 / 5; }
.ph-1x1   { aspect-ratio: 1 / 1; }

/* Compact placeholders need smaller type than a full-width one. */
.img-placeholder.is-compact { padding: 0.75rem; gap: 0.3rem; }
.img-placeholder.is-compact .ph-tag { font-size: 0.5625rem; letter-spacing: 0.1em; }
.img-placeholder.is-compact .ph-label { font-size: 0.75rem; line-height: 1.35; }

/* ============================== Header =================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--navy-900);
  transition: box-shadow 0.25s ease, background-color 0.25s ease;
}

.site-header.scrolled {
  background: rgba(7, 26, 46, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--navy-border), 0 8px 24px rgba(7, 26, 46, 0.35);
}

.site-nav {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .site-nav { padding: 0 2rem; }
}

.logo {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--navy-heading);
  white-space: nowrap;
}

.logo:hover { color: var(--blue-100); }

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 940px) {
  .nav-links { display: flex; }
}

.nav-links ul {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(233, 240, 250, 0.72);
  transition: color 0.18s ease;
  white-space: nowrap;
}

.nav-link:hover { color: var(--white); }

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0;
  background: none;
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

@media (min-width: 940px) {
  .hamburger { display: none; }
}

.hamburger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: #EAF1FA;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  display: none;
  background: var(--navy-900);
  border-top: 1px solid var(--navy-border);
  padding: 0.5rem 1.25rem 1.5rem;
}

.mobile-menu.open { display: block; }

@media (min-width: 940px) {
  .mobile-menu.open { display: none; }
}

.mobile-menu ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mobile-menu li + li { border-top: 1px solid var(--navy-border); }

.mobile-menu a {
  display: block;
  padding: 0.9rem 0;
  font-size: 1rem;
  font-weight: 500;
  color: #EAF1FA;
}

.mobile-menu .mobile-cta {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--navy-border);
}

/* `.mobile-menu a` outranks `.btn-primary`, so the CTA has to restate its own
   colour and weight or it renders as a dimmed menu link. */
.mobile-menu .mobile-cta .btn {
  width: 100%;
  font-weight: 600;
  padding: 0.875rem 1.5rem;
}

.mobile-menu .mobile-cta .btn-primary { color: var(--white); }

/* =============================== Hero ==================================== */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 5vw, 4rem);
}

/* Full-viewport hero on larger screens; content vertically centred. Falls
   back to natural height on short viewports so nothing is clipped. */
@media (min-width: 768px) {
  .hero {
    min-height: calc(100svh - 72px);
    display: flex;
    align-items: center;
  }
  .hero > .container { width: 100%; }
}

.hero::before {
  content: '';
  position: absolute;
  top: -20rem;
  right: -12rem;
  width: 44rem;
  height: 44rem;
  background: radial-gradient(circle, rgba(47, 111, 206, 0.32), transparent 66%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(220, 233, 248, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(220, 233, 248, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 30% 30%, #000 20%, transparent 75%);
  pointer-events: none;
}

.hero > .container {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  gap: clamp(2.75rem, 5vw, 4rem);
  align-items: center;
}

@media (min-width: 1000px) {
  .hero-grid {
    grid-template-columns: 53fr 47fr;
    gap: 4rem;
  }
}

.hero h1 { margin-bottom: 1.5rem; }

.hero-lead {
  color: var(--navy-text);
  max-width: 34rem;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-bottom: 2.75rem;
}

@media (max-width: 520px) {
  .hero-actions .btn { width: 100%; }
}

/* Proof strip */
.proof-strip {
  padding-top: 1.75rem;
  border-top: 1px solid var(--navy-border);
}

.proof-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 3vw, 2rem);
}

.proof-metrics > div + div {
  padding-left: clamp(1rem, 3vw, 2rem);
  border-left: 1px solid var(--navy-border);
}

@media (max-width: 430px) {
  .proof-metrics { grid-template-columns: 1fr; gap: 1rem; }
  .proof-metrics > div + div {
    padding-left: 0;
    padding-top: 1rem;
    border-left: 0;
    border-top: 1px solid var(--navy-border);
  }
}

.proof-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2.6vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--white);
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}

.proof-label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  line-height: 1.35;
  color: var(--navy-dim);
}


/* Hero visual: one dominant photo, one overlapping proof panel. */
.hero-visual { position: relative; }

/* A single hero photo. With no proof panel beneath it, a slightly taller
   crop keeps the visual column from looking short next to the copy. */
.hero-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(220, 233, 248, 0.14);
  box-shadow: var(--shadow-navy);
  background: var(--navy-800);
}

.hero-photo img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  object-position: 50% 32%;
}

@media (min-width: 1000px) {
  /* A landscape crop that keeps the studio context around Liran, rather than
     a tight portrait that clips the frame. */
  .hero-photo img { aspect-ratio: 5 / 4; }
}

/* ========================== What I've Built =============================== */

.built-intro {
  max-width: 54rem;
  margin-bottom: clamp(2.25rem, 4vw, 3.25rem);
}

.built-intro h2 { margin-bottom: 1.5rem; }

.built-intro p {
  color: var(--muted);
  max-width: var(--measure);
}

/* The section opener is a single orienting line, deliberately quieter than
   the proof headlines below it so the numbers carry the section. */
.built-lede {
  max-width: var(--measure);
  margin-bottom: 0;
  font-family: var(--font-sans);
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
  color: var(--muted);
}

/* Each proof story leads with its own result, so the headline runs larger
   than a normal h3 and carries the number. */
.story-headline {
  font-size: clamp(1.625rem, 2.8vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--navy-900);
  font-variant-numeric: tabular-nums;
  margin-bottom: 1.125rem;
}

.story.is-dark .story-headline { color: var(--navy-heading); }

.story p { color: var(--muted); }

.story.is-dark p { color: var(--navy-text); }

/* --------------------------------------------------------------------------
   Shared proof pattern
   One two-column layout for every proof story: a copy column and a media
   column of equal weight, vertically centred, alternating sides. The media
   column holds either an on-brand stat panel or a single photo - never a
   raw product screenshot.
   -------------------------------------------------------------------------- */
.proof {
  display: grid;
  gap: clamp(2rem, 4vw, 3.25rem);
  align-items: stretch;
}

@media (min-width: 900px) {
  .proof { grid-template-columns: 1fr 1fr; }
  .proof.is-reversed .proof-media { order: -1; }
}

/* Copy column vertically centred against its media partner. */
.proof-copy {
  align-self: center;
  max-width: 34rem;
}

.proof.is-reversed .proof-copy { margin-left: auto; }

.proof-media { display: flex; }

/* Single photo in the media column. Fills the column height so it stays level
   with the copy; a portrait source is framed a little shorter than a
   landscape one so it does not tower. */
.proof-photo {
  flex: 1;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  max-height: 34rem;
}

.proof-photo img {
  width: 100%;
  height: 100%;
  min-height: 22rem;
  object-fit: cover;
  object-position: 50% 40%;
}

/* A portrait source (e.g. the celebration cake) is shown whole at its own
   ratio - not height-filled and cropped - and kept narrow so it doesn't
   tower over the copy. The copy column centres itself against it. */
.proof-photo.is-portrait {
  flex: 0 1 22rem;
  align-self: center;
  max-height: none;
  margin-inline: auto;
}

.proof-photo.is-portrait img {
  height: auto;
  min-height: 0;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 45%;
}

/* A screenshot is shown whole at its own ratio inside a light frame, never
   cover-cropped. */
.proof-photo.is-shot {
  align-self: center;
  max-height: none;
  padding: 0.6rem;
  background: var(--white);
}

.proof-photo.is-shot img {
  height: auto;
  min-height: 0;
  border-radius: 10px;
}

.video-strip { margin-top: clamp(2rem, 3.5vw, 2.75rem); }

/* --------------------------------------------------------------------------
   Blog / organic proof
   Same two-column proof pattern. The headline figure lives inside the copy
   column as a large typographic element; the media column holds a framed
   shot of the blog.
   -------------------------------------------------------------------------- */
.proof-figure {
  display: flex;
  flex-direction: column;
  margin-top: 1.75rem;
  padding-left: clamp(1rem, 3vw, 1.5rem);
  border-left: 3px solid var(--blue-600);
}

.proof-figure-num {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--navy-900);
  font-variant-numeric: tabular-nums;
}

.proof-figure-label {
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

/* Video strip */
.video-strip {
  display: grid;
  gap: 0.875rem;
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 560px) {
  .video-strip {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

.video-card {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.video-card:hover {
  border-color: var(--blue-600);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.video-thumb {
  position: relative;
  background: var(--navy-800);
}

.video-thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Bottom left: several source thumbnails carry YouTube's own duration badge
   in the bottom-right corner. */
.video-views {
  position: absolute;
  left: 0.5rem;
  bottom: 0.5rem;
  padding: 0.15rem 0.45rem;
  background: rgba(7, 26, 46, 0.86);
  border-radius: 5px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}

.video-body { padding: 0.75rem 0.875rem 0.875rem; }

.video-body p {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--navy-900);
}

/* Founder endorsement, presented as a citation inside the case study rather
   than a floating testimonial card: a thin rule, the quote sitting directly on
   the section background, attribution beneath it. */
.endorsement {
  /* Zero the sides too: a bare `figure` carries a 40px UA side margin. */
  margin: 2rem 0 0;
  padding: 0 0 0 1.25rem;
  border-left: 2px solid var(--blue-600);
  background: none;
}

.endorsement blockquote {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--navy-900);
}

.endorsement blockquote::before { content: '\201C'; }
.endorsement blockquote::after { content: '\201D'; }

.endorsement-attrib {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--muted);
}

.endorsement-attrib strong {
  font-weight: 600;
  color: var(--ink);
}

.endorsement-link {
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--blue-700);
}

.endorsement-link:hover { color: var(--navy-900); }


/* ============================== About ==================================== */

.about-grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
}

@media (min-width: 940px) {
  .about-grid { grid-template-columns: 42fr 58fr; }
}

/* A single portrait beside the copy. */
.about-visual {
  display: grid;
  grid-template-columns: 1fr;
}

.about-visual figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(220, 233, 248, 0.14);
  box-shadow: var(--shadow-navy);
}

.about-visual .about-primary img { aspect-ratio: 4 / 5; }

.about-visual img {
  width: 100%;
  object-fit: cover;
  object-position: 50% 20%;
}

@media (min-width: 940px) {
  /* Keep the portrait from towering over the copy column. */
  .about-visual { max-width: 27rem; }
}

.about-copy h2 { margin-bottom: 1.5rem; }

.about-copy p { max-width: var(--measure); }

/* ========================== Collaborations =============================== */

.collabs {
  padding-block: clamp(3rem, 5vw, 4.5rem);
}

.collabs-head {
  max-width: var(--measure);
  margin-bottom: clamp(2rem, 3.5vw, 2.75rem);
}

.collabs h2 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  margin-bottom: 0.75rem;
  color: var(--navy-900);
}

.collabs-head p {
  margin: 0;
  color: var(--muted);
}

/* Three across on desktop, two rows. The people and the context are the
   proof, so the images run large and the cards stay flat: no shadow, no
   testimonial-card framing. */
.collab-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

@media (max-width: 640px) {
  .collab-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem 1rem;
  }
}

.collab-card { margin: 0; }

.collab-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.collab-card figcaption {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-top: 0.875rem;
}

.collab-name {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--navy-900);
}

.collab-role {
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--muted);
}

.collab-reach {
  margin-top: 0.15rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--blue-700);
  font-variant-numeric: tabular-nums;
}

/* Unverified figures stay obviously unfinished during review. */
.collab-reach.is-pending {
  font-weight: 500;
  color: var(--muted);
  font-style: italic;
}

@media (max-width: 640px) {
  .collab-name { font-size: 0.9375rem; }
  .collab-role { font-size: 0.8125rem; }
  .collab-reach { font-size: 0.75rem; }
}

/* =========================== How I can help ============================== */

/* A touch deeper than section-cool so the white cards clearly sit above it. */
#how-i-can-help.section-cool { background: #E9F0F9; }

.help-head {
  max-width: var(--measure);
  margin-bottom: clamp(2.5rem, 4vw, 3.5rem);
}

/* Two service cards. Each is one unit: a full-bleed photo on one side sharing
   a seam with a copy panel on the other, sides alternating. The copy uses the
   full width of its half - no narrow centred column - and a blue accent plus
   real elevation lift the card off the section. */
.service-grid {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.25rem);
}

.service-card {
  display: grid;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.service-card:hover {
  border-color: var(--blue-500);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

@media (min-width: 860px) {
  .service-card { grid-template-columns: 1fr 1fr; }
  .service-card.is-reversed .service-media { order: 2; }
}

/* Photo side: full-bleed, fills the card height, cropped to match the copy. */
.service-media {
  margin: 0;
  position: relative;
  min-height: 17rem;
  background: var(--navy-900);
}

.service-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 859px) {
  .service-media { min-height: 0; }
  .service-media img { position: static; aspect-ratio: 16 / 10; }
}

#youtube-consulting .service-media img { object-position: 50% 32%; }
.service-card.is-reversed .service-media img { object-position: 22% 22%; }

.service-media .img-placeholder {
  position: absolute;
  inset: 0;
  border: 0;
  border-radius: 0;
}

@media (max-width: 859px) {
  .service-media .img-placeholder { position: static; aspect-ratio: 16 / 10; }
}

/* Copy side: fills its half, left-aligned, generous padding, blue accent
   along the edge that meets the photo. */
.service-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(1.75rem, 4vw, 3rem);
  border-top: 3px solid var(--blue-600);
}

@media (min-width: 860px) {
  .service-body {
    border-top: 0;
    border-left: 3px solid var(--blue-600);
  }
  .service-card.is-reversed .service-body {
    border-left: 0;
    border-right: 3px solid var(--blue-600);
  }
}

.service-card h3 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.375rem, 2vw, 1.75rem);
  color: var(--navy-900);
}

/* Tier 1: the promise. A statement in navy, not grey body copy. */
.service-promise {
  margin-bottom: 0.875rem;
  font-family: var(--font-display);
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--navy-800);
}

/* Tier 2: supporting detail, quieter. */
.service-detail {
  margin-bottom: 1.25rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

/* Tier 3: what's covered. One scannable line, semibold, above a hairline. */
.service-covers {
  margin: 0 0 1.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.6;
  color: var(--navy-700);
}

/* Pins the button to the bottom edge of the copy panel. */
.service-cta {
  margin-top: auto;
  align-self: flex-start;
}

/* Slim closing strip: one line of text and a link, not a third offer. The
   link sits right after the sentence, not pushed to the far edge. */
.help-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1rem;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  padding: clamp(1.25rem, 2.5vw, 1.5rem) clamp(1.25rem, 3vw, 1.75rem);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.help-strip p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--muted);
}

.help-strip strong { color: var(--navy-900); font-weight: 600; }

.help-strip .link-arrow { flex-shrink: 0; }

/* ============================== Contact ================================== */

/* The contact section and the footer share the same navy, so the CTA is
   lifted onto a raised panel: it reads as an action sitting on the page,
   with the footer flat behind it. Extra space below separates the two. */
.section.on-navy:has(.contact-panel) {
  padding-bottom: clamp(4.5rem, 8vw, 7rem);
}

.contact-panel {
  padding: clamp(2rem, 5vw, 3.5rem);
  background: linear-gradient(155deg, var(--navy-700), var(--navy-800) 60%);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

/* Two contact routes - email and LinkedIn - as equal tiles, no form. */
.contact-inner {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
}

@media (min-width: 940px) {
  .contact-inner { grid-template-columns: 42fr 58fr; }
}

/* Primary action, above the two secondary route tiles. */
.contact-cta {
  margin-top: 1.75rem;
}

.contact-copy h2 { margin-bottom: 1.25rem; }
.contact-copy .lead { max-width: 34rem; }

.contact-methods {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 560px) {
  .contact-methods { grid-template-columns: 1fr 1fr; }
}

.contact-method {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: clamp(1.5rem, 3vw, 2rem);
  background: rgba(7, 26, 46, 0.55);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-lg);
  transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.contact-method:hover {
  border-color: var(--blue-500);
  background: rgba(7, 26, 46, 0.75);
  transform: translateY(-2px);
}

.contact-method-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy-eyebrow);
}

.contact-method-value {
  font-family: var(--font-display);
  /* Sized so the email address stays on one line in the two-up grid. */
  font-size: clamp(1rem, 1.4vw, 1.1875rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--navy-heading);
  /* Only break as a last resort, and never mid-word (keeps ".com" attached). */
  overflow-wrap: break-word;
}

.contact-method-note {
  font-size: 0.875rem;
  color: var(--navy-dim);
}

/* =============================== Footer ================================== */

.site-footer {
  background: var(--navy-900);
  color: var(--navy-text);
  padding-block: clamp(3rem, 5vw, 4rem) 2rem;
  /* Contact sits on the same navy; a hairline keeps the footer distinct. */
  border-top: 1px solid var(--navy-border);
}

.footer-top {
  display: grid;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--navy-border);
}

@media (min-width: 860px) {
  .footer-top { grid-template-columns: 1fr auto; gap: 4rem; }
}

.footer-brand .name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--navy-heading);
}

/* The parent track is `auto`, so auto-fit resolves against a near-zero width
   and stacks every column. State the track count instead. */
.footer-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(7.5rem, max-content));
  gap: 2rem 2.5rem;
}

@media (min-width: 640px) {
  .footer-cols {
    grid-template-columns: repeat(3, minmax(7.5rem, max-content));
    gap: 2rem 3.5rem;
  }
}

.footer-col-title {
  margin: 0 0 0.875rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(233, 240, 250, 0.6);
}

.footer-cols ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.625rem;
}

.footer-cols a {
  font-size: 0.9375rem;
  color: rgba(233, 240, 250, 0.72);
  transition: color 0.18s ease;
}

.footer-cols a:hover { color: var(--white); }

.footer-bottom {
  padding-top: 1.75rem;
  font-size: 0.8125rem;
  color: rgba(233, 240, 250, 0.6);
}

/* ============================ Reduced motion ============================= */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .btn:hover,
  .video-card:hover,
  .collab-card:hover img { transform: none; }
}


