/* ==========================================================================
   Leadink Media — main stylesheet
   Mobile-first. Edit design tokens in :root; everything else reads from them.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Colors (from the logo) */
  --bg:            #141416;   /* page background, near black */
  --surface:       #1C1C1F;   /* cards */
  --border:        #2A2A2E;
  --text:          #F5F5F2;   /* off-white */
  --text-2:        #A1A1A6;   /* secondary text */
  --red:           #E30F28;   /* brand red: buttons, key words, accents only */
  --red-hover:     #FF2A42;
  --red-deep:      #5A0610;   /* wine red, used only inside the hero / final CTA glow */

  /* Fonts */
  --font-display:  "Clash Display", "Satoshi", system-ui, sans-serif;
  --font-body:     "Satoshi", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Type scale (fluid: min at 375px, max at 1440px) */
  --fs-hero:  clamp(2.625rem, 1.3rem + 4.8vw, 5.5rem);   /* 42px → 88px  (was 44px → 116px: clamp(2.75rem, 1.2rem + 6.6vw, 7.25rem)) */

  /* Headline spacing — loosened for readability (previous values in brackets) */
  --tracking-heading: -0.01em;    /* letters, section titles      [was -0.02em]  */
  --tracking-display: -0.02em;    /* letters, hero + final CTA    [was -0.035em] */
  --word-gap:          0.1em;     /* extra space between words    [was 0]        */
  --fs-h2:    clamp(2.125rem, 1.3rem + 3.5vw, 4.5rem);   /* 34px → 72px  */
  --fs-h3:    clamp(1.375rem, 1.1rem + 1.1vw, 2rem);     /* 22px → 32px  */
  --fs-lead:  clamp(1.0625rem, 0.95rem + 0.5vw, 1.375rem);
  --fs-body:  1rem;
  --fs-small: 0.875rem;
  --fs-eyebrow: 0.8125rem;

  /* Spacing scale (8px base) */
  --s-1: 0.5rem;   /* 8  */
  --s-2: 1rem;     /* 16 */
  --s-3: 1.5rem;   /* 24 */
  --s-4: 2rem;     /* 32 */
  --s-5: 3rem;     /* 48 */
  --s-6: 4rem;     /* 64 */
  --s-7: 6rem;     /* 96 */
  --s-8: 8rem;     /* 128 */
  --section-y: clamp(5rem, 3rem + 8vw, 10rem);   /* vertical padding per section */

  /* Layout */
  --container: 1280px;
  --gutter: clamp(1.25rem, 0.5rem + 3vw, 3rem);
  --radius: 2px;            /* near-square corners, matches the pixel-block logo */
  --nav-h: 72px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.7s;
}

/* --------------------------------------------------------------------------
   2. Reset / base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--nav-h);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
/* No grey flash on tap, no double-tap delay */
a, button, summary { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
ul, ol { list-style: none; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: var(--tracking-heading);
  word-spacing: var(--word-gap);
  text-wrap: balance;
}
p { text-wrap: pretty; }

::selection { background: var(--red); color: var(--text); }

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

/* Key words highlighted in brand red */
.accent { color: var(--red); }

/* --------------------------------------------------------------------------
   3. Layout helpers
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); position: relative; }

/* Visually hidden but readable by screen readers */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------------------
   4. Shared components
   -------------------------------------------------------------------------- */

/* Logo mark (inline SVG of 8 square blocks) */
.logo-mark { fill: var(--red); }

/* Eyebrow label with a square bullet (pixel-block motif) */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text);
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  background: var(--red);
  flex: none;
}

/* Buttons
   Primary: red, a deeper red fills up from below on hover, arrow nudges right.
   Ghost: outline, border brightens on hover. */
.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  height: 3.25rem;
  padding: 0 1.625rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  white-space: nowrap;
  transition: color 0.3s var(--ease-out), border-color 0.3s var(--ease-out), background-color 0.3s var(--ease-out);
}
.btn--sm { height: 2.5rem; padding: 0 1.125rem; font-size: 0.9375rem; }

/* Primary ("Book a call"): feels like a physical button.
   Rest: red with a soft top highlight and a little depth.
   Hover: lifts, the red brightens into a warm gradient, glows, and a light sheen sweeps across.
   Press: sinks back down. */
.btn--primary {
  color: #fff;
  background: linear-gradient(180deg, #F0213A 0%, var(--red) 55%, #C80B22 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),        /* top highlight */
    inset 0 -2px 0 rgba(0, 0, 0, 0.18),             /* bottom edge */
    0 8px 22px -10px rgba(227, 15, 40, 0.65);       /* soft red shadow */
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), filter 0.35s var(--ease-out);
}
/* Hover colour layer: a brighter red-to-coral gradient that fades in */
.btn--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(115deg, #FF2E47 0%, #E30F28 45%, #FF5A3C 100%);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
}
/* Light sheen that sweeps across once on hover */
.btn--primary::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: -60%;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
}
@media (hover: hover) { .btn--primary:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -2px 0 rgba(0, 0, 0, 0.15),
    0 16px 36px -12px rgba(255, 46, 71, 0.75),
    0 0 0 1px rgba(255, 90, 60, 0.35);
} }
@media (hover: hover) { .btn--primary:hover::before { opacity: 1; } }
@media (hover: hover) { .btn--primary:hover::after { left: 130%; transition: left 0.75s var(--ease-out); } }
.btn--primary:active {
  transform: translateY(0) scale(0.98);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.25), 0 4px 12px -8px rgba(227, 15, 40, 0.6);
  transition-duration: 0.1s;
}

/* Ghost (outline) buttons, e.g. "See our work":
   Hover: lifts, edge brightens, surface warms slightly, a thin red line draws in along the bottom.
   Press: sinks back. */
.btn--ghost {
  border: 1px solid #3A3A40;
  color: var(--text);
  background: rgba(245, 245, 242, 0.02);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 0.35s var(--ease-out), border-color 0.35s var(--ease-out),
              background-color 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.btn--ghost::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}
@media (hover: hover) { .btn--ghost:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 245, 242, 0.7);
  background: rgba(245, 245, 242, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 14px 30px -14px rgba(0, 0, 0, 0.9);
} }
@media (hover: hover) { .btn--ghost:hover::after { transform: scaleX(1); } }
.btn--ghost:active { transform: translateY(0) scale(0.98); transition-duration: 0.1s; }

/* "See our work" gallery icon: 2×2 square blocks that fill red one by one on hover */
.btn__blocks { display: grid; grid-template-columns: repeat(2, 6px); gap: 2px; }
.btn__blocks i {
  width: 6px; height: 6px;
  border: 1px solid currentColor;
  opacity: 0.7;
  transition: background-color 0.25s var(--ease-out), border-color 0.25s var(--ease-out), transform 0.35s var(--ease-out);
}
@media (hover: hover) { .btn:hover .btn__blocks i { background: var(--red); border-color: var(--red); opacity: 1; } }
@media (hover: hover) { .btn:hover .btn__blocks i:nth-child(2) { transition-delay: 0.06s; } }
@media (hover: hover) { .btn:hover .btn__blocks i:nth-child(4) { transition-delay: 0.12s; } }
@media (hover: hover) { .btn:hover .btn__blocks i:nth-child(3) { transition-delay: 0.18s; } }
@media (hover: hover) { .btn:hover .btn__blocks { animation: blocks-pop 0.5s var(--ease-out); } }
@keyframes blocks-pop { 50% { transform: scale(1.2); } }

.btn__arrow { width: 1rem; height: 1rem; transition: transform 0.35s var(--ease-out); }
@media (hover: hover) { .btn:hover .btn__arrow { transform: translateX(4px); } }

/* Labelled placeholder for assets that haven't been supplied yet */
.placeholder {
  position: relative;
  border: 1px dashed #3A3A40;
  background:
    linear-gradient(var(--border) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, var(--border) 1px, transparent 1px) 0 0 / 24px 24px,
    var(--surface);
  background-blend-mode: normal;
}
.placeholder__label {
  font-size: var(--fs-small);
  color: var(--text-2);
  text-align: center;
  line-height: 1.5;
}
.placeholder__label small { font-size: 0.75rem; opacity: 0.75; }

/* --------------------------------------------------------------------------
   5. Navigation
   -------------------------------------------------------------------------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
}
/* Solid background once the visitor scrolls (class set in main.js) */
.nav.is-scrolled,
.nav.is-open {
  background: rgba(20, 20, 22, 0.94);
  border-bottom-color: var(--border);
}
.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
}
.nav__logo { display: inline-flex; align-items: center; gap: 0.625rem; }
.nav__logo .logo-mark { width: 30px; height: auto; }
.nav__wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
@media (max-width: 400px) {
  .nav__logo { gap: 0.5rem; }
  .nav__logo .logo-mark { width: 26px; }
  .nav__wordmark { font-size: 1rem; }
  .nav .btn--sm { padding: 0 0.875rem; }
}

.nav__actions { display: flex; align-items: center; gap: var(--s-1); }

/* Mobile: links live in a drop-down panel */
.nav__links {
  position: absolute;
  top: var(--nav-h);
  left: 0; right: 0;
  display: flex;
  flex-direction: column;
  padding: var(--s-2) var(--gutter) var(--s-4);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out), visibility 0.3s;
}
.nav.is-open .nav__links { visibility: visible; opacity: 1; transform: none; }
.nav__links a {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.nav__toggle {
  width: 40px; height: 40px;
  display: grid;
  place-content: center;
  gap: 6px;
  border: 1px solid #3A3A40;
  border-radius: var(--radius);
}
.nav__toggle-bar {
  display: block;
  width: 16px; height: 1.5px;
  background: var(--text);
  transition: transform 0.3s var(--ease-out);
}
/* nth-child(2|3): the first child is the screen-reader "Menu" label */
.nav.is-open .nav__toggle-bar:nth-child(2) { transform: translateY(3.75px) rotate(45deg); }
.nav.is-open .nav__toggle-bar:nth-child(3) { transform: translateY(-3.75px) rotate(-45deg); }

@media (min-width: 900px) {
  .nav__toggle { display: none; }
  .nav__links {
    position: static;
    flex-direction: row;
    gap: var(--s-4);
    padding: 0;
    background: none;
    border: 0;
    visibility: visible;
    opacity: 1;
    transform: none;
  }
  .nav__links a {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 500;
    padding: 0;
    border: 0;
    color: var(--text-2);
    transition: color 0.25s;
  }
  .nav__links a:hover { color: var(--text); }
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: calc(var(--nav-h) + clamp(2.5rem, 1rem + 6vw, 5.5rem));
  padding-bottom: clamp(4rem, 2rem + 6vw, 7rem);
  text-align: center;
}

/* Background glow: one red arc from the top, fading back into the page.
   Text sits in the darker part so it always stays readable. */
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__glow {
  position: absolute;
  inset: 0;
  background:
    /* bright core just under the nav */
    radial-gradient(38% 26% at 50% -2%, rgba(255, 40, 64, 0.7) 0%, rgba(227, 15, 40, 0.3) 50%, transparent 100%),
    /* wide red arc */
    radial-gradient(75% 52% at 50% -6%, rgba(227, 15, 40, 0.5) 0%, rgba(150, 8, 26, 0.32) 45%, rgba(60, 4, 12, 0.2) 70%, transparent 100%),
    /* soft red haze behind the work frame */
    radial-gradient(50% 22% at 50% 70%, rgba(180, 10, 30, 0.22) 0%, transparent 100%);
}
/* Fade the bottom of the hero into the page background */
.hero__bg::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 30%;
  background: linear-gradient(to bottom, transparent, var(--bg));
}

/* Tiny square "pixels" scattered in the glow (created in main.js) */
.hero__pixels { position: absolute; inset: 0 0 35% 0; }
.pixel {
  position: absolute;
  width: var(--size, 3px);
  height: var(--size, 3px);
  background: var(--c, rgba(245, 245, 242, 0.55));
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__mark {
  width: clamp(44px, 3vw + 30px, 64px);
  height: auto;
  fill: var(--red);
  margin-bottom: var(--s-4);
  overflow: visible;
}
.hero__mark rect { transform-box: fill-box; transform-origin: center; }

.hero__eyebrow {
  padding: 0.5rem 0.875rem;
  border: 1px solid rgba(245, 245, 242, 0.16);
  background: rgba(20, 20, 22, 0.35);
  border-radius: var(--radius);
  text-align: left;
}

.hero__title {
  margin-top: var(--s-4);
  max-width: 12.5em;
  font-size: var(--fs-hero);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: var(--tracking-display);
}

.hero__sub {
  margin-top: var(--s-4);
  max-width: 34rem;
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: #C9C9CC;
}

.hero__ctas {
  margin-top: var(--s-5);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-2);
}


/* Hero visual: big profile frame in the middle, post designs at the sides (desktop) */
.hero__visual {
  margin-top: clamp(3.5rem, 2rem + 5vw, 6rem);
  display: grid;
  grid-template-columns: 1fr;
  align-items: end;
}
.hero__side { display: none; }

.hero__frame {
  position: relative;
  padding: clamp(6px, 1vw, 12px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 -30px 120px -30px rgba(227, 15, 40, 0.35), 0 40px 80px -40px rgba(0, 0, 0, 0.8);
}
/* Thin red line on top of the frame */
.hero__frame::before {
  content: "";
  position: absolute;
  top: -1px; left: 12%; right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
}

/* Hero profile image: show the top of the square screenshot
   (banner, photo, name, buttons) and stop just above "Featured". */
.hero__profile {
  width: 100%;
  aspect-ratio: 12 / 7;
  object-fit: cover;
  object-position: top;
}

/* Profile-shaped placeholder: banner, avatar, text lines */
.placeholder--profile {
  aspect-ratio: 16 / 10;
  display: grid;
  grid-template-rows: 32% auto 1fr;
  overflow: hidden;
}
.placeholder__banner { background: #222226; border-bottom: 1px dashed #3A3A40; }
.placeholder__avatar {
  width: clamp(56px, 12%, 132px);
  aspect-ratio: 1;
  margin: calc(clamp(56px, 12%, 132px) / -2) 0 0 6%;
  border-radius: 50%;
  background: #2A2A2E;
  border: 3px solid var(--surface);
}
.placeholder__lines {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 4% 6% 0;
  justify-items: start;
}
.placeholder__lines span { height: 10px; background: var(--border); }
.placeholder__lines span:nth-child(1) { width: 34%; height: 14px; }
.placeholder__lines span:nth-child(2) { width: 52%; }
.placeholder__lines span:nth-child(3) { width: 24%; }
.placeholder--profile .placeholder__label {
  position: absolute;
  right: 6%; bottom: 8%;
  text-align: right;
}

@media (max-width: 479px) {
  .hero__pixels { bottom: 68%; }   /* keep pixels above the text on phones */
  .hero__eyebrow { font-size: 0.75rem; }
  .hero__ctas { width: 100%; flex-direction: column; }
  .hero__ctas .btn { width: 100%; }
  .placeholder__lines span { height: 7px; }
  .placeholder--profile .placeholder__label { left: 6%; right: 6%; text-align: left; bottom: 6%; }
}

@media (min-width: 1024px) {
  .hero__visual {
    grid-template-columns: 1fr 3fr 1fr;
    align-items: center;
  }
  .hero__frame { z-index: 1; }
  /* Posts tuck in behind the profile frame */
  .hero__side {
    display: block;
    width: 135%;
    max-width: none;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9);
    transform: translateY(14%);
  }
  .hero__side--left  { justify-self: end;   margin-right: -18%; }
  .hero__side--right { justify-self: start; margin-left: -18%; }
}

/* --------------------------------------------------------------------------
   7. Hero entrance animation (CSS, runs on load)
   Only active when <html> has .motion (set in <head> unless reduced motion).
   Total under ~1.3s; the headline is fully readable within ~0.9s.
   -------------------------------------------------------------------------- */
@keyframes block-in {
  from { opacity: 0; transform: translateY(-140%) scale(0.4); }
  to   { opacity: 1; transform: none; }
}
@keyframes word-up {
  from { transform: translateY(105%); }
  to   { transform: none; }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
@keyframes glow-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes twinkle { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }

/* Words are split into .word > .word__in by main.js */
.word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.word__in { display: inline-block; }

.motion .hero__mark rect { animation: block-in 0.55s var(--ease-out) both; animation-delay: calc(var(--i) * 45ms); }
.motion .hero__glow      { animation: glow-in 1.2s ease-out both; }
.motion .hero__eyebrow   { animation: fade-up 0.6s var(--ease-out) 0.15s both; }
.motion .hero__title .word__in { animation: word-up 0.7s var(--ease-out) both; animation-delay: calc(0.2s + var(--w) * 55ms); }
.motion .hero__sub       { animation: fade-up 0.7s var(--ease-out) 0.6s both; }
.motion .hero__ctas      { animation: fade-up 0.7s var(--ease-out) 0.7s both; }
.motion .hero__visual    { animation: fade-up 0.9s var(--ease-out) 0.85s both; }
.motion .pixel.is-twinkle { animation: twinkle var(--t, 4s) ease-in-out var(--d, 0s) infinite; }

/* Until main.js has split the headline, keep it hidden — but show it anyway
   after 1.2s in case the script fails to load. */
@keyframes show { to { visibility: visible; } }
.motion [data-split]:not(.is-split) { visibility: hidden; animation: show 0s 1.2s forwards; }

/* --------------------------------------------------------------------------
   8. Marquee (auto-scrolling rows)
   main.js clones .marquee__group once and adds .is-ready; the track then
   slides by exactly one group width for a seamless loop.
   Without motion it becomes a normal horizontal scroll row.
   -------------------------------------------------------------------------- */
.marquee {
  --gap: 1rem;
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  /* fade the edges */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee::-webkit-scrollbar { display: none; }
.marquee__group {
  display: flex;
  flex: none;
  gap: var(--gap);
  padding-right: var(--gap);
}
.motion .marquee.is-ready {
  overflow: hidden;
  touch-action: pan-y;      /* sideways swipes move the row, up/down scrolls the page */
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.motion .marquee.is-ready .marquee__group { will-change: transform; }
.motion .marquee.is-ready img { -webkit-user-drag: none; }
.motion .marquee.is-dragging { cursor: grabbing; }
.motion .marquee.is-dragging * { cursor: grabbing; pointer-events: none; }

/* --------------------------------------------------------------------------
   9. Trust strip
   -------------------------------------------------------------------------- */
.trust {
  position: relative;
  padding-block: clamp(2rem, 1rem + 3vw, 3.5rem) var(--section-y);
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--border);
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  padding: var(--s-3) var(--s-2) var(--s-3) 0;
  border-bottom: 1px solid var(--border);
}
.stat:nth-child(odd) { padding-right: var(--s-3); border-right: 1px solid var(--border); }
.stat:nth-child(even) { padding-left: var(--s-3); }
.stat__num {
  font-variant-numeric: tabular-nums;   /* numbers don't wobble while counting up */
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.1rem + 2.6vw, 3.5rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.stat__label { color: var(--text-2); font-size: var(--fs-small); }
/* The result stat is still a placeholder: smaller, dashed outline */
.stat--placeholder .stat__num {
  font-size: var(--fs-small);
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.4;
  white-space: normal;
  color: var(--text-2);
  padding: 0.625rem 0.75rem;
  border: 1px dashed #3A3A40;
}

@media (min-width: 900px) {
  /* Two rows of three: results on top, package facts below */
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stat, .stat:nth-child(odd), .stat:nth-child(even) {
    padding: var(--s-4) var(--s-3);
    border-right: 1px solid var(--border);
  }
  .stat:nth-child(3n + 1) { padding-left: 0; }
  .stat:nth-child(3n) { border-right: 0; padding-right: 0; }
}

/* Client cards */
.marquee--clients { margin-top: clamp(2.5rem, 1.5rem + 3vw, 4rem); }
.client {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.625rem 1.25rem 0.625rem 0.625rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  white-space: nowrap;
}
.client__img {
  width: 48px; height: 48px;
  object-fit: cover;
  border-radius: var(--radius);   /* square, like the logo blocks */
}
.client__text { display: flex; flex-direction: column; line-height: 1.25; }
.client__name { font-family: var(--font-display); font-weight: 600; font-size: 1rem; letter-spacing: -0.01em; }
.client__role { font-size: 0.8125rem; color: var(--text-2); }
.client--placeholder { border-style: dashed; padding-left: 1.25rem; }
.client--placeholder .client__name { font-family: var(--font-body); font-weight: 500; font-size: var(--fs-small); color: var(--text-2); }

/* Work strip */
.marquee--work {
  --speed: 60s;
  --h: clamp(220px, 14vw + 160px, 380px);
  margin-top: var(--s-3);
}
.strip-item { flex: none; height: var(--h); }
.strip-item img {
  height: 100%;
  width: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
/* Two 4:1 banners stacked in one column */
.strip-item--banners {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: var(--gap);
  width: calc((var(--h) - var(--gap)) / 2 * 4);
}
.strip-item--banners .strip-banner { width: 100%; height: 100%; object-fit: cover; }

/* --------------------------------------------------------------------------
   10. The problem
   -------------------------------------------------------------------------- */
.problem { border-top: 1px solid var(--border); }
.problem__grid { display: grid; gap: var(--s-5); }
.problem__title {
  font-size: var(--fs-h2);
  max-width: 13em;
}
.problem__body {
  display: grid;
  gap: var(--s-3);
  max-width: 36rem;
  font-size: clamp(1.125rem, 0.9rem + 0.9vw, 1.625rem);
  line-height: 1.45;
  color: var(--text-2);
}
.problem__turn { color: var(--text); }
.problem__close {
  margin-top: var(--s-2);
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1rem + 2.2vw, 2.75rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: var(--tracking-heading);
  word-spacing: var(--word-gap);
  color: var(--red);
}

@media (min-width: 1024px) {
  .problem__grid { grid-template-columns: 7fr 5fr; align-items: start; gap: var(--s-7); }
}

/* --------------------------------------------------------------------------
   11. Work
   -------------------------------------------------------------------------- */

/* Shared section heading: big title + optional subheading */
.section-head { display: grid; gap: var(--s-2); margin-bottom: clamp(2rem, 1rem + 3vw, 3.5rem); }
.section-head__title { font-size: var(--fs-h2); max-width: 15em; }
.section-head__sub { max-width: 34rem; font-size: var(--fs-lead); line-height: 1.5; color: var(--text-2); }

.work { border-top: 1px solid var(--border); }
.work__block { margin-top: clamp(6rem, 4rem + 6vw, 10rem); }
.work__cta { margin-top: clamp(2.5rem, 1.5rem + 3vw, 4rem); display: flex; justify-content: center; }

/* 5a. Profile cards: 01 full width, the rest two per row on desktop */
.profiles { display: grid; gap: clamp(2rem, 1rem + 3vw, 3.5rem) var(--s-4); }
.profile-card__frame {
  position: relative;
  padding: clamp(6px, 0.8vw, 10px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
/* Profile screenshots are square (1200×1200) — shown whole, never cropped */
.profile-card__frame img,
.profile-card__frame .work-ph {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: top;
}
.work-ph { display: grid; place-items: center; }
.profile-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.75rem;
  margin-top: var(--s-2);
}
.profile-card__name { font-size: var(--fs-h3); }
.profile-card__role { color: var(--text-2); }

@media (min-width: 900px) {
  /* 6-column grid; main.js gives each card half, third or full width */
  .profiles { grid-template-columns: repeat(6, 1fr); }
  .profile-card--half  { grid-column: span 3; }
  .profile-card--third { grid-column: span 2; }
  .profile-card--full  { grid-column: 1 / -1; max-width: 760px; }
  .profile-card--third .profile-card__name { font-size: 1.375rem; }
}
@media (min-width: 600px) and (max-width: 899px) {
  .profiles { grid-template-columns: 1fr 1fr; }   /* tablets: two per row */
}

/* Profile cards are buttons: hover lifts the image slightly + red corner block; click opens it full size */
button.profile-card__frame {
  display: block;
  width: 100%;
  cursor: zoom-in;
  text-align: left;
  overflow: hidden;
  transition: border-color 0.3s var(--ease-out);
}
button.profile-card__frame img { transition: transform 0.6s var(--ease-out); }
@media (hover: hover) { button.profile-card__frame:hover { border-color: #3A3A40; } }
@media (hover: hover) { button.profile-card__frame:hover img { transform: scale(1.02); } }
button.profile-card__frame::after {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 14px; height: 14px;
  background: var(--red);
  transform: scale(0);
  transform-origin: top right;
  transition: transform 0.35s var(--ease-out);
}
button.profile-card__frame:focus-visible::after { transform: scale(1); }
@media (hover: hover) { button.profile-card__frame:hover::after { transform: scale(1); } }

/* Before / after section */
.ba-list { display: grid; gap: clamp(2rem, 1rem + 3vw, 3.5rem); }
/* Full container width; images are 2400×1300 so they stay sharp on retina screens */
.ba-card { width: 100%; }
.ba-card .ba {
  aspect-ratio: 2400 / 1300;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.ba__img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* Profiles as a scrolling row (WORK.profilesLayout = 'scroll') */
.marquee--profiles { --gap: clamp(1rem, 0.5rem + 1.5vw, 2rem); }
.marquee--profiles .strip-item { height: auto; width: clamp(290px, 22vw + 200px, 520px); }
.marquee--profiles .profile-card__name { font-size: clamp(1.25rem, 1rem + 0.8vw, 1.75rem); }
.marquee--profiles .profile-card__meta { white-space: normal; }

/* Before/after slider
   The "before" layer sits on top and is clipped at --pos (set by the range input). */
.ba { position: relative; overflow: hidden; user-select: none; -webkit-user-select: none; cursor: ew-resize; touch-action: pan-y; }
.ba__img { -webkit-user-drag: none; }
.ba__layer--before {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}
.ba__layer--before .work-ph { height: 100%; aspect-ratio: auto; background-color: #19191C; }
/* Keep placeholder labels clear of the handle: "before" left, "after" right */
.ba .work-ph { justify-items: end; padding-inline: 8%; }
.ba__layer--before .work-ph { justify-items: start; }
.ba .work-ph .placeholder__label { max-width: 40%; }
/* Smooth glide when you click/tap somewhere (or during the intro demo);
   instant 1:1 while you drag (.is-dragging). */
.ba__layer--before, .ba__handle { transition: clip-path 0.45s var(--ease-out), left 0.45s var(--ease-out); }
.ba.is-dragging .ba__layer--before, .ba.is-dragging .ba__handle { transition: none; }

/* Divider: bright white line with a soft shadow so it shows on light and dark images */
.ba__handle {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--pos);
  width: 3px;
  margin-left: -1.5px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15), 0 0 18px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}
/* Grip: big white circle with ◂ ▸ arrows, so it's obvious you can drag it */
.ba__grip {
  position: absolute;
  top: 50%; left: 50%;
  width: clamp(30px, 1.2vw + 24px, 40px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  background: #fff;
  color: #141416;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(227, 15, 40, 0.9), 0 8px 22px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.ba__grip svg { width: 56%; height: 56%; }
.ba.is-dragging .ba__grip { transform: translate(-50%, -50%) scale(1.12); box-shadow: 0 0 0 4px rgba(227, 15, 40, 0.9), 0 12px 28px rgba(0, 0, 0, 0.55); }
@media (hover: hover) { .ba:hover .ba__grip { transform: translate(-50%, -50%) scale(1.12); box-shadow: 0 0 0 4px rgba(227, 15, 40, 0.9), 0 12px 28px rgba(0, 0, 0, 0.55); } }
.ba:has(.ba__range:focus-visible) .ba__grip { outline: 3px solid #fff; outline-offset: 6px; }

/* Legend above the slider: BEFORE (left) · Drag to compare (centre) · AFTER (right).
   Sits outside the image, so it never covers the design. */
.ba-legend {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--s-2);
  margin-bottom: 0.875rem;
}
.ba-legend__side {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: clamp(0.75rem, 0.65rem + 0.3vw, 0.875rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: opacity 0.3s var(--ease-out);
}
.ba-legend__side::before { content: ""; width: 10px; height: 10px; flex: none; }
.ba-legend__side--before { justify-self: start; color: var(--text-2); }
.ba-legend__side--before::before { background: #5A5A60; }
.ba-legend__side--after { justify-self: end; color: var(--text); flex-direction: row-reverse; }
.ba-legend__side--after::before { background: var(--red); }
.ba-legend__hint {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-small);
  color: var(--text-2);
  white-space: nowrap;
}
.ba-legend__hint svg { width: 18px; height: 18px; color: var(--red); }
/* Dim a label when its side is almost fully covered */
.ba-card.hide-before .ba-legend__side--before,
.ba-card.hide-after  .ba-legend__side--after { opacity: 0.35; }
@media (max-width: 479px) {
  .ba-legend__hint { font-size: 0.75rem; }
  .ba-legend__hint svg { display: none; }
}

/* Invisible range input covering the slider: handles the keyboard */
.ba__range {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  margin: 0;
  opacity: 0;
  pointer-events: none;     /* keyboard only; mouse and touch are handled on .ba */
}

/* 5b. Carousel row */
.marquee--carousels { --h: clamp(300px, 18vw + 230px, 480px); }
.marquee--carousels .strip-item { height: var(--h); }
.marquee--carousels .strip-item img {
  height: 100%; width: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* 5c. Posts as a scrolling row (WORK.postsLayout = 'scroll') */
.marquee--posts { --h: clamp(340px, 18vw + 270px, 520px); }
.marquee--posts .strip-item { height: var(--h); }
.marquee--posts .post { height: 100%; aspect-ratio: 4 / 5; }
.marquee--cheats { margin-top: var(--s-2); }   /* second row: cheat sheets */

/* 5c. Posts grid: first post large, the rest fill in around it */
.posts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-flow: dense;
  gap: clamp(0.625rem, 0.3rem + 1vw, 1.25rem);
}
.post--featured { grid-column: span 2; }
@media (min-width: 900px) {
  .posts { grid-template-columns: repeat(4, 1fr); }
  .post--featured { grid-row: span 2; }
}
.post {
  position: relative;
  display: block;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: zoom-in;
}
.post img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
@media (hover: hover) { .post:hover img { transform: scale(1.03); } }
/* Red corner block appears on hover, echoing the logo */
.post::after {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 14px; height: 14px;
  background: var(--red);
  transform: scale(0);
  transform-origin: top right;
  transition: transform 0.35s var(--ease-out);
}
.post:focus-visible::after { transform: scale(1); }
@media (hover: hover) { .post:hover::after { transform: scale(1); } }

/* Lightbox */
/* The dialog itself is the dark overlay, so it can fade in and out smoothly.
   main.js adds .is-open right after opening and removes it before closing. */
.lightbox {
  width: 100vw; height: 100dvh;
  max-width: none; max-height: none;
  padding: clamp(3.5rem, 6vw, 4.5rem) clamp(0.75rem, 6vw, 6rem);
  border: 0;
  background: rgba(10, 10, 11, 0.94);
  color: var(--text);
  opacity: 0;
  transition: opacity 0.25s ease;
  touch-action: pan-y pinch-zoom;
}
.lightbox.is-open { opacity: 1; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: transparent; }
.lightbox__img {
  max-width: 100%;
  max-height: calc(100dvh - 2 * clamp(3.5rem, 6vw, 4.5rem));   /* viewport minus the padding */
  width: auto; height: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.9);
  /* open: zoom up from slightly smaller */
  transform: scale(0.94);
  transition: transform 0.4s var(--ease-out), opacity 0.26s var(--ease-out);
}
.lightbox.is-open .lightbox__img { transform: none; }
/* next / previous: slide out one way, in from the other (--dir is 1 or -1) */
.lightbox.is-open .lightbox__img.is-leaving  { opacity: 0; transform: translateX(calc(var(--dir) * -40px)); transition-duration: 0.18s; }
.lightbox.is-open .lightbox__img.is-entering { opacity: 0; transform: translateX(calc(var(--dir) * 40px)); transition: none; }
.lightbox__count {
  position: fixed;
  left: 50%; bottom: 18px;
  transform: translateX(-50%);
  font-size: var(--fs-small);
  color: var(--text-2);
  letter-spacing: 0.04em;
}
.lightbox__btn {
  position: fixed;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.25s, background-color 0.25s;
}
@media (hover: hover) { .lightbox__btn:hover { border-color: var(--text); } }
.lightbox__btn svg { width: 16px; height: 16px; }
.lightbox__close { top: 12px; right: 12px; }
.lightbox__prev, .lightbox__next { top: 50%; transform: translateY(-50%); }
.lightbox__prev { left: 12px; }
.lightbox__next { right: 12px; }
@media (max-width: 599px) {
  .lightbox__prev, .lightbox__next { top: auto; bottom: 12px; transform: none; }
}

/* --------------------------------------------------------------------------
   12. Video testimonials
   -------------------------------------------------------------------------- */
.results { border-top: 1px solid var(--border); }

/* Phones: swipeable row (each card ~78% wide). Desktop: three columns. */
.testimonials {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 78%;
  gap: var(--s-2);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
  padding-bottom: var(--s-1);
}
.testimonials::-webkit-scrollbar { display: none; }
.testimonial { scroll-snap-align: start; display: flex; flex-direction: column; }

@media (min-width: 600px) { .testimonials { grid-auto-columns: 44%; } }   /* tablets: two in view */
@media (min-width: 1024px) {
  .testimonials { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); overflow: visible; }
}

.testimonial__media {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.testimonial__poster,
.testimonial__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.testimonial__video { background: #000; }

/* The whole poster is the play button */
.testimonial__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(to top, rgba(20, 20, 22, 0.55), transparent 45%);
}
.testimonial__play-icon {
  width: 64px; height: 64px;
  display: grid; place-items: center;
  background: var(--red);
  color: #fff;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  transition: transform 0.35s var(--ease-out), background-color 0.3s;
}
.testimonial__play-icon svg { width: 22px; height: 22px; margin-left: 2px; }
@media (hover: hover) { .testimonial__play:hover .testimonial__play-icon { transform: scale(1.08); background: var(--red-hover); } }
.testimonial__length {
  position: absolute;
  right: 12px; bottom: 12px;
  padding: 0.125rem 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  background: rgba(20, 20, 22, 0.8);
  border-radius: var(--radius);
}

.testimonial__person {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: var(--s-2);
  font-size: 0.9375rem;
  line-height: 1.35;
}
.testimonial__photo {
  width: 44px; height: 44px;
  flex: none;
  object-fit: cover;
  border-radius: var(--radius);
}
.testimonial__name { font-family: var(--font-display); font-weight: 600; font-size: 1.0625rem; }
.testimonial__role { color: var(--text-2); }
.testimonial__quote {
  margin-top: var(--s-2);
  padding-left: var(--s-2);
  border-left: 2px solid var(--red);
  font-size: var(--fs-lead);
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   13. Pricing — calm, premium cards
   Each card: name + tagline → price → button (+ delivery) → what's included.
   On desktop the three cards share rows (subgrid), so prices, buttons and
   lists line up perfectly across all three.
   -------------------------------------------------------------------------- */
.pricing { border-top: 1px solid var(--border); }

.plans { display: grid; gap: var(--s-2); }
@media (min-width: 900px) {
  .plans { grid-template-columns: repeat(3, 1fr); grid-template-rows: auto auto auto; gap: 0 var(--s-2); }
  .plans .plan { display: grid; grid-template-rows: subgrid; grid-row: span 3; }
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.75rem, 1rem + 1.8vw, 2.5rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.plan__bundle { margin-bottom: 0.25rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); }
.plan__name { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; }
.plan__tagline { margin-top: 0.25rem; font-size: var(--fs-small); font-weight: 500; color: var(--red); }

.plan__price {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.875rem;
  margin-top: var(--s-4);
  font-family: var(--font-display);
  font-size: clamp(3rem, 2rem + 2.8vw, 4.25rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.035em;
}
.plan__for { margin-top: var(--s-2); color: var(--text-2); line-height: 1.5; }

/* Launch offer: big struck-through old price + "Save" badge, slim countdown line */
.plan__deal { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 0.375rem; letter-spacing: 0; }
.plan__was {
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1;
  color: var(--text-2);
  text-decoration: line-through;
  text-decoration-color: var(--red);
  text-decoration-thickness: 3px;
}
.plan__save {
  padding: 0.3125rem 0.625rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  color: #fff;
  background: var(--red);
  border-radius: var(--radius);
}
.offer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem 0.75rem;
  margin-top: var(--s-2);
  font-size: var(--fs-small);
  color: var(--text-2);
}
.offer__label { color: var(--text); font-weight: 600; }
.offer__label::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 0.5rem; background: var(--red); vertical-align: middle; }

/* Button + delivery line */
.plan__cta { margin-top: var(--s-4); }
.plan__btn { width: 100%; }
.plan__delivery { margin-top: 0.75rem; text-align: center; font-size: var(--fs-small); color: var(--text-2); }

/* What's included: red ticks, quantities in bold ("2×") */
.incl {
  display: grid;
  align-content: start;
  gap: 0.75rem;
  margin-top: var(--s-4);
  padding-top: var(--s-4);
  border-top: 1px solid var(--border);
  font-size: 0.9375rem;
  line-height: 1.45;
}
.incl li { position: relative; padding-left: 1.625rem; }
.incl li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.2em;
  width: 1rem; height: 1rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3L13 4.5' fill='none' stroke='%23E30F28' stroke-width='1.7'/%3E%3C/svg%3E") no-repeat center / contain;
}
.incl b { font-weight: 700; color: var(--text); }
/* Not included: faint text with a grey cross */
.incl .incl__no { color: #6A6A70; }
.incl .incl__no::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 4.5l7 7M11.5 4.5l-7 7' fill='none' stroke='%235A5A60' stroke-width='1.5'/%3E%3C/svg%3E");
}
.incl .incl__head { padding-left: 0; color: var(--text-2); font-size: var(--fs-small); }
.incl .incl__head::before { display: none; }

/* MOST POPULAR: red outline, soft glow, slightly raised */
.plan--popular {
  border-color: var(--red);
  box-shadow: 0 0 0 1px var(--red), 0 40px 90px -40px rgba(227, 15, 40, 0.6);
}
@media (min-width: 900px) { .plan--popular { transform: translateY(-8px); } }
.plan__badge {
  position: absolute;
  top: -1px; right: -1px;
  padding: 0.375rem 0.75rem;
  background: var(--red);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* Rush delivery line */
.pricing__rush { margin-top: var(--s-4); text-align: center; font-size: 0.9375rem; color: var(--text-2); }


/* "See the mockup" link on each pricing card */
.plan__peek {
  display: block;
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.75rem 0;       /* comfortable to tap */
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--text);
  text-align: center;
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-underline-offset: 0.25em;
  transition: color 0.25s;
}
@media (hover: hover) { .plan__peek:hover { color: var(--red); } }

/* Package viewer: tabs on top, mockup + what's included below */
.pkg {
  width: 100vw; height: 100dvh;
  max-width: none; max-height: none;
  padding: 0;
  border: 0;
  background: rgba(10, 10, 11, 0.96);
  color: var(--text);
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.pkg.is-open { opacity: 1; }
.pkg::backdrop { background: transparent; }
.pkg__close { top: 12px; right: 12px; z-index: 2; }
.pkg__inner {
  width: min(100%, 76rem);
  margin-inline: auto;
  padding: 0 1rem 2rem;
}
/* Tabs stay at the top while the tall mockup scrolls, beside the close button */
.pkg__tabs {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  gap: 0.375rem;
  padding: 12px 3.75rem 12px 0;
  background: #0A0A0B;
}
.pkg__tab {
  flex: 1 1 0;
  min-height: 44px;
  padding: 0.5rem 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: color 0.25s, border-color 0.25s;
}
@media (hover: hover) { .pkg__tab:hover { color: var(--text); } }
.pkg__tab[aria-pressed="true"] { color: var(--text); border-color: var(--red); }
.pkg__body { display: grid; gap: var(--s-3); margin-top: var(--s-1, 0.5rem); }
/* The space is reserved up front (4:5), so nothing jumps while an image swaps */
.pkg__media { aspect-ratio: 4 / 5; touch-action: pan-y pinch-zoom; overflow: hidden; border-radius: var(--radius); }
.pkg__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}
/* Shown only on the test link when a mockup image is missing */
.pkg__placeholder {
  display: grid;
  place-content: center;
  gap: 0.5rem;
  height: 100%;
  padding: var(--s-3);
  text-align: center;
  font-size: var(--fs-small);
  color: var(--text-2);
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}
.pkg__placeholder b { color: var(--text); }
.pkg__price { margin-top: var(--s-2); }
.pkg__list { margin-top: var(--s-3); padding-top: var(--s-3); }
.pkg__book { margin-top: var(--s-4); }
@media (min-width: 900px) {
  .pkg__inner { padding: 0 2rem 2rem; }
  .pkg__tabs { justify-content: flex-start; }
  .pkg__tab { flex: 0 0 auto; padding: 0.5rem 1rem; font-size: var(--fs-small); }
  .pkg__body { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--s-5); align-items: start; }
  /* The list and button stay in view while the mockup scrolls */
  .pkg__info { position: sticky; top: 80px; }
}

.pricing__note {
  margin-top: var(--s-5);
  text-align: center;
  font-size: var(--fs-lead);
  color: var(--text-2);
}

/* --------------------------------------------------------------------------
   14. Process
   -------------------------------------------------------------------------- */
.process { border-top: 1px solid var(--border); }
.steps { display: grid; gap: var(--s-2); counter-reset: none; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }

.step {
  padding: var(--s-4) 0 0;
  border-top: 1px solid var(--border);
}
@media (min-width: 900px) { .step { padding-right: var(--s-4); } }

/* Three square blocks; filled ones are red */
.step__blocks { display: flex; gap: 4px; margin-bottom: var(--s-4); }
.step__blocks i { width: 12px; height: 12px; border: 1px solid #3A3A40; }
.step__blocks i.on { background: var(--red); border-color: var(--red); }

.step__title { font-size: var(--fs-h3); }
.step__num { color: var(--text-2); }
.step__text { margin-top: var(--s-2); max-width: 26rem; color: var(--text-2); font-size: 1.0625rem; }

/* --------------------------------------------------------------------------
   15. About
   -------------------------------------------------------------------------- */
.about { border-top: 1px solid var(--border); }
.about__grid { display: grid; gap: var(--s-6); }
.about__text { display: grid; gap: var(--s-3); align-content: start; max-width: 36rem; }
.about__text .section-head__title { margin-bottom: var(--s-2); }
.about__text p { font-size: var(--fs-lead); line-height: 1.5; color: var(--text-2); }
.about__text .about__lead { color: var(--text); }

.founders { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); align-content: start; }
.founder__photo { aspect-ratio: 4 / 5; display: grid; place-items: center; padding: var(--s-2); }
.founder img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.founder figcaption {
  margin-top: var(--s-1);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.0625rem;
}

@media (min-width: 1024px) {
  .about__grid { grid-template-columns: 1fr 1fr; gap: var(--s-7); align-items: start; }
  /* Second photo sits a little lower: editorial offset */
  .founder:nth-child(2) { margin-top: var(--s-6); }
}

/* --------------------------------------------------------------------------
   16. FAQ
   -------------------------------------------------------------------------- */
.faq { border-top: 1px solid var(--border); }
.faq__grid { display: grid; gap: var(--s-2); }
@media (min-width: 1024px) {
  .faq__grid { grid-template-columns: 4fr 8fr; gap: var(--s-6); align-items: start; }
}

.faq__list { border-top: 1px solid var(--border); }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__item summary {
  position: relative;
  display: block;
  padding: var(--s-3) 3rem var(--s-3) 0;
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 1rem + 0.6vw, 1.5rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
  transition: color 0.25s;
}
.faq__item summary::-webkit-details-marker { display: none; }
@media (hover: hover) { .faq__item summary:hover { color: var(--red); } }

/* Plus sign built from two bars; the vertical bar folds away when open */
.faq__item summary::before,
.faq__item summary::after {
  content: "";
  position: absolute;
  right: 0.5rem;
  top: 50%;
  width: 14px; height: 2px;
  background: var(--red);
  transition: transform 0.35s var(--ease-out);
}
.faq__item summary::after { transform: rotate(90deg); }
.faq__item[open] summary::after { transform: rotate(0deg); }

.faq__answer { padding: 0 3rem var(--s-3) 0; }
.faq__answer p { color: var(--text-2); font-size: 1.0625rem; max-width: 38rem; }
.motion .faq__item[open] .faq__answer { animation: fade-up 0.45s var(--ease-out) both; }
/* Answers slide open and closed (browsers without support simply open instantly) */
@supports selector(::details-content) {
  .motion .faq__item { interpolate-size: allow-keywords; }
  .motion .faq__item::details-content {
    block-size: 0;
    overflow: clip;
    transition: block-size 0.4s var(--ease-out), content-visibility 0.4s allow-discrete;
  }
  .motion .faq__item[open]::details-content { block-size: auto; }
}

/* --------------------------------------------------------------------------
   17. Final CTA — mirror of the hero: red glow rising from the bottom
   -------------------------------------------------------------------------- */
.final-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(7rem, 4rem + 10vw, 13rem);
  text-align: center;
  border-top: 1px solid var(--border);
}
.final-cta__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.final-cta__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(38% 30% at 50% 104%, rgba(255, 40, 64, 0.7) 0%, rgba(227, 15, 40, 0.3) 50%, transparent 100%),
    radial-gradient(80% 60% at 50% 108%, rgba(227, 15, 40, 0.5) 0%, rgba(150, 8, 26, 0.32) 45%, rgba(60, 4, 12, 0.2) 70%, transparent 100%);
}
/* Fade the top of the glow into the page */
.final-cta__bg::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 30%;
  background: linear-gradient(to top, transparent, var(--bg));
  z-index: 1;
}
.final-cta__pixels { position: absolute; inset: 35% 0 0 0; }

.final-cta__inner { display: flex; flex-direction: column; align-items: center; }
.final-cta__mark { width: clamp(44px, 3vw + 30px, 64px); height: auto; margin-bottom: var(--s-4); }
.final-cta__title {
  max-width: 13em;
  font-size: clamp(2.5rem, 1.2rem + 5.4vw, 6.25rem);
  line-height: 0.98;
  letter-spacing: var(--tracking-display);
}
.final-cta__sub {
  margin-top: var(--s-3);
  font-size: var(--fs-lead);
  color: #C9C9CC;
}
.btn--lg { height: 3.75rem; padding: 0 2.25rem; font-size: 1.0625rem; margin-top: var(--s-5); }
/* Booking calendar card (Cal.com renders inside it) */
.calendar {
  width: 100%;
  max-width: 1040px;
  margin-top: var(--s-5);
  min-height: 420px;
  background: rgba(28, 28, 31, 0.85);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: left;
  overflow: hidden;
}
.calendar.is-live { min-height: 640px; }
.calendar__placeholder { min-height: 420px; display: grid; place-items: center; padding: var(--s-4); }

/* "Or message us on LinkedIn / WhatsApp" */
.final-cta__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-1) var(--s-3);
  margin-top: var(--s-4);
}
.final-cta__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: var(--text-2);
  text-decoration: underline;
  text-decoration-color: rgba(161, 161, 166, 0.4);
  text-underline-offset: 4px;
  transition: color 0.25s, text-decoration-color 0.25s;
}
@media (hover: hover) { .final-cta__link:hover { color: var(--text); text-decoration-color: var(--red); } }
.final-cta__link[hidden] { display: none; }

/* Small brand icons (LinkedIn, WhatsApp, email) */
.icon { width: 1.05em; height: 1.05em; flex: none; }

/* --------------------------------------------------------------------------
   18. Footer
   -------------------------------------------------------------------------- */
.footer { border-top: 1px solid var(--border); padding-block: var(--s-4); }
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2) var(--s-4);
}
.footer .logo-mark { width: 26px; height: auto; }
.footer__links { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-4); font-size: var(--fs-small); }
.footer__links a { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--text-2); transition: color 0.25s; }
@media (hover: hover) { .footer__links a:hover { color: var(--text); } }
.footer__copy { font-size: var(--fs-small); color: var(--text-2); }
@media (max-width: 699px) {
  .footer__inner { flex-direction: column; align-items: flex-start; }
}

/* --------------------------------------------------------------------------
   19. Smooth scroll (Lenis recommended styles)
   -------------------------------------------------------------------------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* --------------------------------------------------------------------------
   20. Reduced motion — no smooth scroll, no animation
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Comfortable tap size for the small text links near the end of the page */
.final-cta__link { padding-block: 0.625rem; }
