/* ==========================================================================
   ryanprior.co
   Colours and fonts are set once in :root below.
   Phone rules (700px wide or less) are at the bottom of this file.
   ========================================================================== */

:root {
  --bg: #0D0F1C;           /* page background (dark navy) */
  --pane: #141729;
  --card: #1F2340;
  --flat: #171A2F;         /* "Work with me" and "My LinkedIn content" sections */
  --shot: #2A3160;         /* background behind card screenshots */
  --text: #ECEEFA;
  --muted: #BEC3DE;
  --faint: #959BBA;
  --line: rgba(236, 238, 250, 0.14);
  --accent: #9FA8FF;       /* periwinkle */
  --accent-ink: #2E3466;   /* muted text on periwinkle */
  --step-line: rgba(159, 168, 255, 0.35);
  --live: #7FD1B9;

  --font-display: 'Bricolage Grotesque', sans-serif;
  --font-body: 'Instrument Sans', sans-serif;
  --font-hand: 'Caveat', cursive;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
}

p { margin: 0; }

img { display: block; height: auto; }

[hidden] { display: none !important; }

.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }


/* ---------- Shared pieces ---------- */

.display { font-family: var(--font-display); font-weight: 700; }

.section-title { font-size: clamp(34px, 4vw, 54px); line-height: 1; letter-spacing: -0.035em; }
.subsection-title { font-size: clamp(34px, 3.8vw, 48px); line-height: 1; letter-spacing: -0.035em; }

.container {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  padding: 96px 24px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.container--roomy { gap: 56px; }

/* Handwritten asides ("👈 DM on LinkedIn", "Read on LinkedIn →") */
.hand { font-family: var(--font-hand); font-weight: 600; font-size: 22px; color: var(--accent); }
.hand--ink { color: var(--accent-ink); }
.point-up { display: none; }   /* ☝️ replaces 👈 on phones, where the aside sits under its button */

.btn {
  padding: 16px 26px;
  font-weight: 800;
  font-size: 17px;
  text-decoration: none;
  border-radius: 999px;
  background: var(--accent);
  color: var(--bg);
}
.btn--sm { padding: 14px 22px; font-size: 16px; }
.btn--lg { padding: 18px 28px; font-size: 18px; }
.btn--dark { background: var(--bg); color: var(--accent); }

/* Pill-shaped tab switchers */
.tablist {
  display: flex;
  flex-wrap: wrap;
  align-self: flex-start;
  padding: 4px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--line);
}
.tablist--flat { background: var(--flat); }

.tab {
  min-height: 48px;
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  font-size: 16px;
  background: transparent;
  color: var(--text);
}
.tab[aria-selected="true"] { background: var(--accent); color: var(--bg); }

/* Round photo crops (cut-out photo on periwinkle) */
.avatar {
  flex: 0 0 auto;
  border-radius: 50%;
  overflow: hidden;
  background: var(--accent);
  display: flex;
  align-items: flex-end;
}
.avatar img { width: 100%; }
.logo-avatar { display: none; width: 36px; height: 36px; }   /* next to "Ryan Prior" in the nav, phones only */

/* Chart-shaped dividers between sections. Set --from / --to to the colours of the
   section above / below. */
.divider {
  position: relative;
  overflow: hidden;
  height: clamp(120px, 12vw, 180px);
  background: linear-gradient(180deg, var(--from) calc(100% - 6px), var(--to) calc(100% - 6px));
}
.divider svg { display: block; width: 100%; height: 100%; }

/* Faint "search results" shapes in the top right of some sections */
.serp { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.serp-stack {
  position: absolute;
  top: 28px;
  right: max(16px, calc((100% - 1240px) / 2 + 24px));
  width: 480px;
  max-width: calc(100% - 32px);
  display: flex;
  flex-direction: column;
  gap: 28px;
  -webkit-mask-image: linear-gradient(270deg, #000 50%, transparent 100%);
  mask-image: linear-gradient(270deg, #000 50%, transparent 100%);
}
.serp-result { display: flex; flex-direction: column; gap: 7px; }
.serp-result div { height: 8px; border-radius: 4px; background: var(--serp-line); }
.serp-result div:first-child { background: var(--serp-meta); }
.serp-result div:nth-child(2) { height: 14px; background: var(--serp-title); }
.serp-result--accent { --serp-meta: rgba(159, 168, 255, 0.30); --serp-title: rgba(159, 168, 255, 0.55); --serp-line: rgba(159, 168, 255, 0.30); }
.serp-result--dim { --serp-meta: rgba(236, 238, 250, 0.16); --serp-title: rgba(236, 238, 250, 0.24); --serp-line: rgba(236, 238, 250, 0.12); }
.serp-result--light { --serp-meta: rgba(255, 255, 255, 0.45); --serp-title: rgba(255, 255, 255, 0.8); --serp-line: rgba(255, 255, 255, 0.45); }
.serp-result--dark { --serp-meta: rgba(13, 15, 28, 0.14); --serp-title: rgba(13, 15, 28, 0.2); --serp-line: rgba(13, 15, 28, 0.1); }


/* ---------- Nav ---------- */

.site-header { position: relative; z-index: 3; background: var(--bg); }

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 22px;
  text-decoration: none;
  color: var(--text);
}

.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.nav-link { padding: 12px 14px; font-weight: 600; font-size: 16px; text-decoration: none; color: var(--text); }
.nav-link[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* Off the homepage, the photo shows next to "Ryan Prior" at every width */
.site-header--inner .logo { display: inline-flex; align-items: center; gap: 10px; }
.site-header--inner .logo-avatar { display: flex; }

.nav-cta {
  margin-left: 6px;
  padding: 12px 20px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border-radius: 999px;
  background: var(--accent);
  color: var(--bg);
}


/* ---------- Hero ---------- */

.hero { position: relative; overflow: hidden; background-color: var(--bg); }

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
  padding: 96px 24px 88px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px;
}

.hero-copy { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hero-heading { display: flex; flex-direction: column; gap: 14px; }

.hero-lead {
  font-size: clamp(19px, 1.7vw, 24px);
  line-height: 1.3;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--muted);
}

.hero-title { font-size: clamp(42px, 5.4vw, 78px); line-height: 1; letter-spacing: -0.035em; }
.hero-title span { color: var(--accent); }

.hero-text { display: flex; flex-direction: column; gap: 12px; max-width: 580px; }
.hero-intro { font-size: 20px; line-height: 1.5; color: var(--muted); }
.hero-note { font-size: 16px; line-height: 1.5; color: var(--faint); }
.hero-note span { color: var(--text); }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 4px; }

.hero-photo { flex: 1 1 360px; min-width: 0; display: flex; justify-content: center; }

.photo-frame {
  width: 100%;
  max-width: 420px;
  padding: 12px;
  box-sizing: border-box;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--line);
}

.photo-crop {
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  background: var(--accent);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.photo-crop img { width: 100%; }


/* ---------- Work with me ---------- */

.section-flat { background: var(--flat); }

.pricing {
  container-type: inline-size;
  display: flex;
  flex-wrap: wrap;
  overflow: hidden;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--line);
}

.pricing-summary {
  flex: 1 1 320px;
  min-width: 0;
  padding: 40px;
  box-sizing: border-box;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--pane);
}

.pricing-name { font-size: 22px; letter-spacing: -0.03em; }
.price-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price-from { font-size: 18px; color: var(--faint); }
.price { font-size: 52px; line-height: 1; letter-spacing: -0.035em; }
.price-unit { color: var(--faint); font-size: 18px; font-family: var(--font-body); }
.pricing-meta { display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.pricing-cta { display: flex; flex-direction: column; align-items: center; align-self: flex-start; gap: 8px; margin-top: 8px; }

.pricing-how { flex: 999 1 480px; min-width: 0; padding: 40px; box-sizing: border-box; display: flex; flex-direction: column; gap: 20px; }
.pricing-how h3 { font-size: 26px; }

/* When the two halves stack, the divider line moves from the side to the bottom */
@container (width < 800px) {
  .pricing-summary { border-right: 0; border-bottom: 1px solid var(--line); }
}

/* "How we can work together" flow */
.how { display: flex; align-items: stretch; gap: 14px; }
.how-first { flex: 0 0 220px; display: flex; flex-direction: column; gap: 10px; }
.how-arrow { flex: 0 0 auto; display: flex; align-items: center; }
.how-arrow svg { flex: 0 0 auto; }
.how-rest { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.how-loop-row { display: flex; gap: 14px; align-items: stretch; }
.how-steps { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.how-loop { flex: 0 0 34px; position: relative; }
.how-loop-path { position: absolute; inset: 0; width: 100%; height: 100%; }
.how-loop-head { position: absolute; left: 0; top: calc(15% - 7px); }

.step, .step-first { border-radius: 14px; background: var(--pane); border: 1px solid var(--step-line); }
.step { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; }
.step-first { box-sizing: border-box; flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 18px; }
.step-first-head { display: flex; align-items: center; gap: 8px; }
.step-body { display: flex; flex-direction: column; gap: 3px; }

.step-num {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
}

.step-title { font-size: 16px; font-weight: 700; }
.step-first .step-title { line-height: 1.15; }
.step-text { font-size: 13px; line-height: 1.4; color: var(--muted); }

/* Availability: a row of months along the bottom of the card. 8 show at once; the list
   has a few spare months that script.js uses once months pass. */
.avail {
  flex: 1 1 100%;
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 28px 40px;
  box-sizing: border-box;
  border-top: 1px solid var(--line);
  background: var(--pane);
}
.avail-title { flex: 0 0 auto; font-size: 24px; }

.months {
  flex: 1 1 0;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.month:nth-child(n+9) { display: none; }

.month {
  display: flex;
  flex-direction: column;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.3;
}
.month-name { font-size: 16px; font-weight: 700; }
.month-status { color: var(--faint); }

.month--booked { background: repeating-linear-gradient(135deg, transparent 0 8px, rgba(236, 238, 250, 0.05) 8px 14px); }
.month--next { border-color: var(--accent); background: var(--accent); color: var(--bg); }
.month--next .month-status { color: var(--accent-ink); }
.month--open { border: 1px dashed rgba(236, 238, 250, 0.24); }

/* Narrower: "Availability" above the months */
@container (width < 1000px) {
  .avail { flex-direction: column; align-items: stretch; gap: 16px; }
}
/* Narrower still: 8 months in 2 rows of 4 */
@container (width < 840px) {
  .months { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
/* Phones: 6 months in 2 rows of 3 */
@container (width < 440px) {
  .months { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .month:nth-child(n+7) { display: none; }
}
/* Small phones: 6 months in 3 rows of 2 */
@container (width < 290px) {
  .months { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Marketing advisor tab: "Who I can help" cards, then "What I can help with" topics */
.audiences { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 14px; }

.audience {
  min-width: 0;
  padding: 24px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-radius: 14px;
  background: var(--pane);
  border: 1px solid var(--step-line);
}
.audience-for { font-size: 14px; font-weight: 700; color: var(--accent); }
.audience-title { font-size: 22px; line-height: 1.12; }
.audience-text { margin: 4px 0 6px; font-size: 15px; line-height: 1.53; color: var(--muted); }

/* Example questions, as speech-bubble chips */
.asks { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; margin: 0; padding: 0; list-style: none; }
.asks li { padding: 6px 12px; border-radius: 8px; background: var(--shot); font-size: 14px; line-height: 1.3; }

.how-rule { width: 100%; margin: 8px 0; border: 0; border-top: 1px solid var(--line); }

.topics { display: flex; flex-wrap: wrap; gap: 8px 9px; margin: 0; padding: 0; list-style: none; }
.topics li {
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(159, 168, 255, 0.12);
  color: var(--accent);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
}

.scope-note { margin-top: 8px; font-size: 15px; line-height: 1.5; color: var(--faint); }

.section-note { font-size: 16px; line-height: 1.55; color: var(--muted); }
.section-note a { color: var(--accent); font-weight: 700; }


/* ---------- What it's like to work with me ---------- */

.like { position: relative; z-index: 1; overflow: hidden; background: var(--accent); color: var(--bg); }

.like-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; row-gap: 0; }

.like-card {
  min-width: 0;
  padding: 40px;
  box-sizing: border-box;
  display: grid;
  grid-row: span 4;
  grid-template-rows: subgrid;
  row-gap: 28px;
  align-content: start;
  border-radius: 20px;
  background: var(--bg);
  color: var(--text);
}
.like-card h3 { font-size: 26px; }

.like-item { display: flex; gap: 16px; align-items: flex-start; }
.like-item svg { flex: 0 0 auto; margin-top: 2px; }
.like-item-body { display: flex; flex-direction: column; gap: 6px; }
.like-item-title { font-size: 32px; line-height: 1; letter-spacing: -0.03em; }
.like-item-text { font-size: 17px; line-height: 1.5; color: var(--faint); }
.like-card--yes .like-item-text { color: var(--muted); }

@media (max-width: 900px) {
  .like-grid { grid-template-columns: minmax(0, 1fr); row-gap: 32px; }
}

/* "Not just briefs" box */
.briefs {
  container-type: inline-size;
  display: flex;
  flex-wrap: wrap;
  gap: 40px 56px;
  align-items: center;
  padding: 44px 0 44px 40px;
  box-sizing: border-box;
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
}

.briefs-copy { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.briefs-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.briefs-heading h3 { font-size: 32px; line-height: 1.05; }
.briefs-icons { display: flex; gap: 6px; flex: 0 0 auto; }
.briefs-icons svg { flex: 0 0 auto; }
.briefs-copy p { font-size: 17px; line-height: 1.55; color: var(--muted); }

/* When the diagram drops below the text, give the text the same padding on the right */
@container (width < 996px) {
  .briefs-copy { padding-right: 40px; }
}

.flow { flex: 1 1 600px; min-width: 0; overflow: hidden; }
.flow-hint { display: none; font-family: var(--font-hand); font-weight: 600; font-size: 20px; line-height: 1; color: var(--accent); }
.flow-rows { display: flex; flex-direction: column; gap: 20px; }
.flow-row { display: flex; flex-direction: column; gap: 8px; }
.flow-label { font-family: var(--font-hand); font-size: 24px; font-weight: 600; line-height: 1; color: var(--faint); }
.flow-label--ai { color: var(--accent); }

.flow-old {
  display: flex;
  gap: 4px;
  -webkit-mask-image: linear-gradient(90deg, #000 72%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 72%, transparent 100%);
}
.flow-new { display: flex; gap: 0; align-items: center; }

.flow-person, .flow-handoff, .flow-step {
  flex: 0 0 auto;
  height: 40px;
  box-sizing: border-box;
  border-radius: 8px;
  display: flex;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.flow-person { padding: 0 14px 0 8px; gap: 8px; background: rgba(236, 238, 250, 0.16); color: var(--text); }
.flow-handoff {
  padding: 0 12px;
  background: repeating-linear-gradient(45deg, transparent, transparent 5px, rgba(236, 238, 250, 0.10) 5px, rgba(236, 238, 250, 0.10) 7px);
  color: var(--faint);
  border: 1px dashed rgba(236, 238, 250, 0.2);
}
.flow-step { padding: 0 9px; background: var(--accent); color: var(--bg); font-size: 12px; font-weight: 800; }

.flow-face {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--face);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.flow-avatar { width: 32px; height: 32px; margin-right: 8px; border: 2px solid var(--accent); box-sizing: border-box; }
.flow-dash { flex: 0 0 8px; margin: 0 3px; border-top: 2px dashed rgba(159, 168, 255, 0.75); }

.live {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px 0 14px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(127, 209, 185, 0.45);
  background: rgba(127, 209, 185, 0.10);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  color: var(--live);
}

.live-dot {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 4px rgba(127, 209, 185, 0.22);
  animation: livePulse 1.8s ease-out infinite;
}

@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(127, 209, 185, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(127, 209, 185, 0); }
  100% { box-shadow: 0 0 0 0 rgba(127, 209, 185, 0); }
}


/* ---------- My past work ---------- */

.career { position: relative; overflow: hidden; background: var(--bg); }

.modash { display: flex; flex-direction: column; gap: 40px; }
.modash-intro { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.modash-head { display: flex; flex-direction: column; gap: 8px; }
.meta { font-family: var(--font-body); font-size: 14px; color: var(--faint); }
.modash-result { font-size: 22px; line-height: 1.45; font-weight: 500; }
.modash-result span { color: var(--accent); font-weight: 700; }
.modash-desc { margin: 1em 0; font-size: 19px; line-height: 1.55; color: var(--muted); }

.panel-stack { display: flex; flex-direction: column; gap: 24px; }
.panel-intro { max-width: 760px; font-size: 19px; line-height: 1.55; }

/* Card grids. min(…, 100%) stops cards overflowing on very narrow phones. */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 24px; }
.card-grid--posts { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }

.card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  background: var(--flat);
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--text);
}
.card--raised { background: var(--card); }

.card-shot {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--shot);
  border-bottom: 1px solid var(--line);
}

.card-url { position: absolute; left: 7%; top: 3.6%; font-family: var(--font-body); font-size: 12px; color: var(--muted); }

.card-screenshot {
  position: absolute;
  left: 7%;
  top: 12%;
  width: 118%;
  border-radius: 12px 0 0 0;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.shot-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 13%;
  background: linear-gradient(180deg, transparent, var(--shot));
  pointer-events: none;
}

.card-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.card-title { font-size: 24px; }
.card-text { font-size: 16px; line-height: 1.55; color: var(--muted); }

/* Mock LinkedIn post inside a card */
.post {
  position: absolute;
  left: 7%;
  top: 8%;
  width: 118%;
  height: 100%;
  border-radius: 12px 0 0 0;
  background: #FFFFFF;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  padding: 16px 18px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.post-author { display: flex; align-items: center; gap: 10px; }
.post-avatar { width: 36px; height: 36px; }
.post-byline { display: flex; flex-direction: column; gap: 1px; }
.post-name { font-size: 13px; font-weight: 700; color: var(--bg); }
.post-role { font-size: 11px; color: #5B6170; }
.post-text { max-width: 76%; font-size: 13px; line-height: 1.45; color: #1C1F2A; display: flex; flex-direction: column; gap: 7px; }
.post-more { color: #5B6170; }
.post-media { position: relative; max-width: 76%; border-radius: 8px; overflow: hidden; border: 1px solid #E3E5EC; }
.post-media > img { width: 100%; }
.post-media--tall { height: 150px; background: var(--bg); display: flex; justify-content: center; }
.post-media--tall > img { width: 46%; align-self: flex-start; }

.play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border-radius: 50%;
  background: rgba(13, 15, 28, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Before Modash timeline */
.before { display: flex; flex-direction: column; gap: 48px; padding-top: 56px; border-top: 1px solid var(--line); }
.before-intro { display: flex; flex-direction: column; gap: 12px; max-width: 720px; }
.before-intro p { font-size: 18px; line-height: 1.55; color: var(--muted); }

.timeline { position: relative; container-type: inline-size; }
.timeline-line { position: absolute; left: 0; right: 0; top: 13px; border-top: 4px dashed var(--accent); }

.timeline-list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline-item { position: relative; display: flex; flex-direction: column; gap: 12px; }
.timeline-dot { position: relative; z-index: 1; width: 22px; height: 22px; border-radius: 50%; background: var(--bg); border: 4px solid var(--text); }
.timeline-dot--now { background: var(--accent); }
.timeline-item h4 { font-size: 26px; }
.timeline-item p { font-size: 16px; line-height: 1.55; color: var(--muted); }

/* Narrower: 2 × 2 grid, with the dashed line running through each row */
@container (width < 1056px) {
  .timeline-line { display: none; }
  .timeline-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline-item:nth-child(odd)::before {
    content: '';
    position: absolute;
    left: 0;
    top: 13px;
    width: calc(200% + 32px);
    border-top: 4px dashed var(--accent);
  }
}

/* Narrowest: one column, with the dashed line running down the left */
@container (width < 512px) {
  .timeline-list { grid-template-columns: minmax(0, 1fr); }
  .timeline-item { padding: 5px 0 0 46px; }
  .timeline-dot { position: absolute; left: 0; top: 0; }
  .timeline-item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 13px;
    top: 15px;
    bottom: -47px;
    width: 0;
    border-top: 0;
    border-left: 4px dashed var(--accent);
  }
  .timeline-item:last-child::before { content: none; }
}


/* ---------- My LinkedIn content ---------- */

.post-group { display: flex; flex-direction: column; gap: 28px; }
.post-group-title { font-size: clamp(28px, 3vw, 38px); line-height: 1; letter-spacing: -0.035em; }


/* ---------- What people say page ---------- */

.wps-head { max-width: 1240px; margin: 0 auto; padding: 72px 24px 0; box-sizing: border-box; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px 40px; }
.wps-intro { display: flex; flex-direction: column; gap: 18px; }
.wps-title { margin: 0; max-width: 960px; font-family: var(--font-display); font-weight: 700; font-size: clamp(44px, 6vw, 80px); line-height: 0.98; letter-spacing: -0.04em; color: var(--text); }
.wps-lede { margin: 0; max-width: 640px; font-size: 19px; line-height: 1.55; color: var(--muted); }
.wps-lede a { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.wps-lede a:hover { color: var(--accent); }

.wps-grid-wrap { max-width: 1240px; margin: 0 auto; padding: 56px 24px 112px; box-sizing: border-box; }
.wps-grid { column-width: 320px; column-gap: 36px; }
.wps-col { display: contents; }   /* tablets and phones: clippings flow freely into 2 or 1 columns */

/* Desktop: three fixed columns, each holding the clippings listed in its .wps-col */
@media (min-width: 1080px) {
  .wps-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
  .wps-col { display: block; }
}
.clip-cell { break-inside: avoid; display: inline-block; width: 100%; box-sizing: border-box; padding: 0 6px; }

/* One LinkedIn comment "clipping". Each one's torn edge (clip-path) and tilt are set inline in the HTML. */
.clip { display: block; position: relative; padding-top: 14px; text-decoration: none; color: #1F1F1F; filter: drop-shadow(0 12px 16px rgba(0,0,0,0.38)); }
.clip-tape { position: absolute; z-index: 2; top: 2px; width: 96px; height: 28px; margin-left: -48px; background: rgba(238,229,201,0.8); clip-path: polygon(3% 0%, 97% 0%, 100% 25%, 96% 50%, 100% 75%, 97% 100%, 3% 100%, 0% 75%, 4% 50%, 0% 25%); }
.clip-paper { background-color: #F6F3EB; background-image: radial-gradient(rgba(70,60,40,0.07) 1px, transparent 1.3px); background-size: 5px 5px; padding: 24px 22px 26px; box-sizing: border-box; display: flex; gap: 10px; align-items: flex-start; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif; }
.clip-photo { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.clip-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.clip-bubble { padding: 10px 12px 12px; border-radius: 0 10px 10px 10px; background: rgba(40,35,25,0.06); display: flex; flex-direction: column; gap: 8px; }
.clip-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.clip-who { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.clip-name-row { display: flex; align-items: baseline; gap: 5px; white-space: nowrap; }
.clip-name { font-size: 14px; font-weight: 700; color: #1F1F1F; }
.clip-degree, .clip-time { font-size: 13px; color: #6B6B6B; }
.clip-time { flex: 0 0 auto; font-size: 12px; white-space: nowrap; }
.clip-headline { font-size: 12px; line-height: 1.35; color: #6B6B6B; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clip-text { margin: 0; font-size: 14px; line-height: 1.45; color: #1F1F1F; white-space: pre-line; overflow-wrap: anywhere; }
.clip-more { color: #6B6B6B; }
.clip-actions { display: flex; align-items: center; gap: 14px; padding-left: 8px; font-size: 12px; font-weight: 600; color: #6B6B6B; }
.clip-reactions { font-weight: 400; }
.clip-tag { position: absolute; z-index: 3; right: -8px; top: 0; padding: 2px 12px 5px; color: var(--bg); font-family: var(--font-hand); font-size: 24px; font-weight: 700; line-height: 1; transform: rotate(4deg); box-shadow: 0 3px 6px rgba(0,0,0,0.25); }


/* ---------- Let's build / footer ---------- */

.call { position: relative; z-index: 1; overflow: hidden; background: var(--accent); color: var(--bg); }
.call .container { padding-bottom: 40px; }

.call-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px; }
.call-text { display: flex; flex-direction: column; gap: 16px; max-width: 820px; }
.call-title { font-size: clamp(40px, 4.6vw, 64px); line-height: 1.02; letter-spacing: -0.035em; }
.call-text p { font-size: 19px; line-height: 1.55; color: var(--accent-ink); }
.call-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(13, 15, 28, 0.25);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--accent-ink);
}
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer a { color: var(--bg); }


/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .live-dot { animation: none; }
}


/* ==========================================================================
   Tablet and phone (940px wide or less): the text nav links don't fit on
   one line, so the nav shows just the logo and "DM on LinkedIn"
   ========================================================================== */

@media (max-width: 940px) {
  .nav-link { display: none; }
}


/* ==========================================================================
   Phone (700px wide or less)
   ========================================================================== */

@media (max-width: 700px) {
  .logo, .nav-cta, .footer a { display: inline-flex; align-items: center; min-height: 44px; box-sizing: border-box; }
  .footer-links { row-gap: 0; } /* when the links wrap to a second line, keep the lines together (links are 44px tall already) */
  .logo { gap: 10px; }
  .logo-avatar { display: flex; }

  /* Hero: photo moves to the nav, less text and less space so the button sits above the fold */
  .hero-inner { padding-top: 32px; }
  .hero-title { font-size: clamp(34px, 5.4vw, 78px); }
  .hero-photo, .hero-note { display: none; }

  /* Buttons with a "DM on LinkedIn" aside: stack them, hand pointing up at the button */
  .cta-row, .call-actions { flex-direction: column; align-items: center; align-self: flex-start; gap: 8px; }
  .point-left { display: none; }
  .point-up { display: inline; }

  /* Boxes get a little less padding */
  .pricing-summary, .pricing-how { padding: 32px 24px; }
  .avail { padding: 28px 24px; }
  .audience { padding: 20px; }
  .like-card { padding: 32px 24px; }
  .like-item-title { font-size: clamp(26px, 8vw, 32px); }
  .briefs { padding: 32px 0 32px 24px; }
  .briefs-copy { padding-right: 24px; }

  /* How we work together: stacked, arrow pointing down */
  .how { flex-direction: column; }
  .how-first, .how-rest { flex: none; }
  .how-arrow { justify-content: center; height: 22px; }
  .how-arrow svg { transform: rotate(90deg); }

  /* Not just briefs: both rows scroll sideways together */
  .flow { display: flex; flex-direction: column; gap: 12px; }
  .flow-hint { display: block; }
  .flow-scroll { overflow-x: auto; }
  .flow-rows { width: max-content; padding-right: 24px; }

  /* Background "search results" shapes */
  .serp { display: none; }

  /* Small text up to 16px */
  .step-text, .pricing-meta, .meta, .footer, .month, .audience-for, .audience-text, .asks li, .topics li, .scope-note { font-size: 16px; }
}


/* Small phones (374px wide or less): tighter header so the logo and button stay on one line */
@media (max-width: 374px) {
  .header-inner { gap: 6px; }
  .header-inner .logo { gap: 8px; font-size: 19px; }
  .nav-cta { margin-left: 0; padding: 12px 10px; font-size: 14px; }
}
