/* ==========================================================
   BEX SHAPIRO – SITE STYLES
   ----------------------------------------------------------
   To change the look of the whole site, edit the values in
   this first block only. Everything below uses them.
   ========================================================== */

:root {
  --blush:       #FBEDE8;  /* soft coral-blush panel (same family as the CV) */
  --blush-deep:  #F6DDD5;  /* slightly deeper blush for text cards */
  --peach:       #F4C3B3;  /* warmer peach-coral at the bottom of the left panel gradient */
  --coral:       #C2675A;  /* muted coral for headings, links and tags */
  --ink:         #33302F;  /* main text colour */
  --muted:       #7A716E;  /* secondary text (dates, outlets) */
  --line:        #EEDFDA;  /* thin dividers */
  --paper:       #FFFFFF;  /* page background */
  --dark-tile:   #1F2029;  /* dark tile used for the Ultimate website card */

  --font: "Lato", "Helvetica Neue", Arial, sans-serif;
  --radius: 14px;
}

/* ---------- Basics ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }

/* ---------- Two-column layout (like the CV) ---------- */
.layout {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 2.4fr;
  min-height: 100vh;
}

/* Left panel */
.sidebar {
  /* Gradient: blush at the top fading to warm peach-coral at the bottom.
     For a flat colour instead, replace this line with: background: var(--blush); */
  background: linear-gradient(180deg, var(--blush) 0%, #F8DCD2 45%, var(--peach) 100%);
  padding: 56px 40px;
  position: sticky;   /* the panel stays in view while the work scrolls */
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.headshot {
  width: 210px;
  height: 210px;
  border-radius: 50%;
  object-fit: cover;
  border: 6px solid var(--paper);
  box-shadow: 0 6px 24px rgba(194, 103, 90, 0.18);
  margin-bottom: 28px;
}
.name {
  font-size: 2.3rem;
  font-weight: 700;
  color: var(--coral);
  margin: 0 0 6px;
  line-height: 1.1;
}
.tagline {
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 0.98rem;
}
.label {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral);
  margin: 0 0 10px;
}
.contact, .nav { list-style: none; padding: 0; margin: 0 0 32px; }
.contact li, .nav li { margin-bottom: 8px; }
.contact a, .nav a { text-decoration: none; }
.contact a:hover, .nav a:hover { color: var(--coral); }
.nav a { font-weight: 700; }

/* Right column */
.main { padding: 56px 64px 80px; max-width: 1100px; }

.about {
  padding-bottom: 8px;
}
.eyebrow {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--coral);
  margin: 6px 0 12px;
}
.lead {
  font-size: 1.2rem;
  line-height: 1.55;
  margin: 0;
  max-width: 34em;
}

/* Round coral icon used in the highlights and section titles */
.icon-badge {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--coral);
  box-shadow: 0 2px 8px rgba(194, 103, 90, 0.15);
  font-size: 1rem;
}
.section-title { display: flex; align-items: center; gap: 14px; }
.section-title .icon-badge { background: var(--blush); box-shadow: none; }

/* Icons in the left panel */
.contact li { display: flex; align-items: center; gap: 10px; }
.contact svg, .nav svg { width: 1em; color: var(--coral); flex: none; }
.contact .fa-linkedin { font-size: 1.15em; }
.nav a { display: inline-flex; align-items: center; gap: 10px; }

section.work { margin-top: 72px; }
.section-title {
  font-size: 1.7rem;
  margin: 0 0 6px;
  color: var(--ink);
}
.section-intro {
  margin: 0 0 28px;
  color: var(--muted);
  max-width: 44em;
}
.group-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral);
  margin: 36px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

/* ---------- Card grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
}
.card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: var(--blush);
  border-radius: var(--radius);
  padding: 22px 22px 18px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(51, 48, 47, 0.08);
}
.card .outlet {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--coral);
  margin-bottom: 10px;
}
.card .headline {
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.35;
  margin-bottom: 16px;
  flex-grow: 1;
}
.card .meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--muted);
}
.tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--coral);
  background: var(--paper);
  border-radius: 999px;
  padding: 3px 10px;
}

/* Featured cards (with a picture) */
.grid.featured { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.card.feature { padding: 0; overflow: hidden; background: var(--paper); border: 1px solid var(--line); }
.card.feature .picture {
  aspect-ratio: 4 / 3;
  background: var(--dark-tile);
  overflow: hidden;
}
.card.feature .picture img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.card.feature .body { padding: 18px 22px 18px; display: flex; flex-direction: column; flex-grow: 1; }
.card.feature .outlet { font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 6px; }

/* The Ultimate website tile (text instead of a screenshot) */
.site-tile {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 28px;
  color: #fff;
  background:
    radial-gradient(circle at 85% 80%, rgba(110, 120, 230, 0.55), transparent 55%),
    radial-gradient(circle at 15% 20%, rgba(150, 220, 140, 0.35), transparent 50%),
    var(--dark-tile);
}
.site-tile .wordmark { font-size: 2.2rem; font-weight: 700; }
.site-tile .url { opacity: 0.75; font-size: 0.9rem; margin-top: 4px; }

/* Compact list (for the extra press items) */
.list { list-style: none; padding: 0; margin: 0; }
.list li {
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.list .outlet { font-weight: 700; color: var(--coral); min-width: 140px; }
.list a { text-decoration: none; flex-grow: 1; }
.list a:hover { color: var(--coral); }
.list .year { color: var(--muted); font-size: 0.85rem; white-space: nowrap; }

/* Footer */
.footer {
  margin-top: 88px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- Phones and small screens ---------- */
@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { padding: 40px 24px 16px; text-align: center; position: static; height: auto; }
  .headshot { margin: 0 auto 22px; width: 170px; height: 170px; }
  .nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 18px; }
  .main { padding: 36px 22px 60px; }
  .lead { font-size: 1.05rem; }
  .contact li { justify-content: center; }
  .list li { flex-wrap: wrap; gap: 2px 12px; }
  .list .outlet { min-width: 0; }
}

/* Four-across grid for groups of four cards */
.grid.four { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.grid.four .card .outlet { font-size: 1.05rem; }

/* Journalism "clipping" cards: a screenshot of the article on top */
.card.feature .picture.clip { aspect-ratio: 3 / 2; background: var(--blush); }
.card.feature .picture.clip img { object-position: top center; }

/* Two-across grid (Editing & campaigns): bigger images for the main projects */
.grid.featured.two { grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 860px) { .grid.featured.two { grid-template-columns: 1fr; } }
.grid.featured.two .card.feature .picture { aspect-ratio: 3 / 2; }
.grid.four .card.feature .outlet { font-size: 0.78rem; }

/* Small label on top of a card image, e.g. "Archived site" */
.card.feature .picture { position: relative; }
.badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.badge svg { color: var(--coral); }

/* LinkedIn and Resume buttons in the left panel */
.buttons { display: flex; gap: 10px; margin: 0 0 32px; }
.button {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(51, 48, 47, 0.12); }
.button.light { background: var(--paper); color: var(--coral); }
.button.dark  { background: var(--coral); color: var(--paper); }
@media (max-width: 860px) { .buttons { max-width: 320px; margin: 0 auto 28px; } }

/* ---------- Intro card at the top of the page ---------- */
.hero {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 44px 48px 48px;
  background: linear-gradient(135deg, var(--blush) 0%, #F8DCD2 55%, var(--peach) 100%);
}
.hero-curve {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hero-curve path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.55);
  stroke-width: 34;
  stroke-linecap: round;
}
.hero .eyebrow, .hero .lead { position: relative; }

/* ---------- "Featured in" logo row ---------- */
.featured-in {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 26px;
  padding: 0 6px;
}
.featured-label {
  flex: none;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.logo-row {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.logo-row img { height: 22px; width: auto; opacity: 0.85; }
.logo-row img[alt="G2"] { height: 26px; }

@media (max-width: 860px) {
  .hero { padding: 30px 24px 32px; }
  .featured-in { flex-direction: column; align-items: flex-start; gap: 14px; }
  .logo-row { justify-content: flex-start; gap: 18px 22px; }
  .logo-row img { height: 18px; }
}
/* Balance logo sizes (each logo has a different shape) */
.logo-row img[alt="The Guardian"] { height: 32px; }
.logo-row img[alt="VICE"] { height: 21px; }
.logo-row img[alt="TechCrunch"] { height: 21px; }
@media (max-width: 860px) {
  .logo-row img[alt="The Guardian"] { height: 26px; }
  .logo-row img[alt="VICE"], .logo-row img[alt="TechCrunch"] { height: 17px; }
}
.logo-row img[alt="ELLE Canada"] { height: 24px; }
@media (max-width: 860px) { .logo-row img[alt="ELLE Canada"] { height: 20px; } }

/* ---------- Logo row: always one line ----------
   Logos scale with the width of the row instead of wrapping.
   --h is each logo's height when there is plenty of room. */
.featured-in { container-type: inline-size; }
.logo-row { flex-wrap: nowrap !important; gap: 3cqw !important; justify-content: space-between !important; }
.logo-row img { --h: 22px; height: min(var(--h), calc(var(--h) * 100cqw / 760px)) !important; }
.logo-row img[alt="The Guardian"] { --h: 32px; }
.logo-row img[alt="VICE"] { --h: 21px; }
.logo-row img[alt="ELLE Canada"] { --h: 24px; }
.logo-row img[alt="TechCrunch"] { --h: 21px; }
.logo-row img[alt="G2"] { --h: 26px; }
@media (max-width: 860px) {
  .featured-in { flex-direction: column; align-items: stretch; }
  .logo-row img { height: calc(var(--h) * 100cqw / 620px) !important; }
}

/* ---------- Fixed cards per row ----------
   Every group shows a set number of cards per row, whatever the screen size,
   so rows always come out full. Brand content (8 cards) = 4 across,
   Ultimate projects = 2 across, every other group = 3 across. */
.grid.featured { grid-template-columns: repeat(3, 1fr); }
.grid.featured.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .grid.featured.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) {
  .grid.featured { grid-template-columns: 1fr; }
  .grid.featured.cols-4 { grid-template-columns: repeat(2, 1fr); }
}
/* Ultimate projects: 2 across on all but the smallest phone screens */
@media (max-width: 860px) { .grid.featured.two { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .grid.featured.two { grid-template-columns: 1fr; } }

/* ---------- Intro card, dark version ----------
   A warm charcoal card so it stands apart from the blush left panel
   and is the first thing the eye lands on. */
.hero {
  background: #2A2524;
  color: #F7EFEC;
  box-shadow: 0 14px 40px rgba(42, 37, 36, 0.18);
}
.hero-curve path { stroke: none; }
.hero-curve .ribbon {
  fill: none;
  stroke: url(#ribbon);
  stroke-width: 42;
  stroke-linecap: round;
  opacity: 0.95;
}
.hero-curve .ribbon-line {
  fill: none;
  stroke: #2A2524;
  stroke-width: 1.6;
  opacity: 0.7;
}
.hero-curve .ribbon-dot { fill: #2A2524; }
.hero .eyebrow {
  color: #F2A58F;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero .wave {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  font-size: 1.05rem;
}
.hero .lead {
  color: #F7EFEC;
  max-width: 30em;
}

.hero .highlight { color: #F2A58F; font-weight: 700; }
@media (max-width: 860px) {
  /* On narrow screens the swoosh sits behind the text, so soften it */
  .hero-curve { opacity: 0.28; }
}

/* ---------- Intro card, lighter version ---------- */
.hero { background: #574441; box-shadow: 0 12px 34px rgba(75, 59, 57, 0.16); }
.hero-curve .ribbon-a, .hero-curve .ribbon-b { fill: none; stroke-linecap: round; }
.hero-curve .ribbon-a { stroke: url(#ribbon-a); stroke-width: 30; }
.hero-curve .ribbon-b { stroke: url(#ribbon-b); stroke-width: 18; }
.hero .wave { background: rgba(255, 255, 255, 0.12); }

/* Lighter terracotta intro card */
.hero { background: #7D554C; box-shadow: 0 12px 30px rgba(125, 85, 76, 0.18); }
.hero .eyebrow, .hero .highlight { color: #FFD3C4; }

/* ---------- Quote band ---------- */
.quote {
  position: relative;
  margin: 40px 0 8px;
  padding: 34px 44px 30px 96px;
  background: var(--blush);
  border-radius: 20px;
}
.quote-mark {
  position: absolute;
  left: 30px;
  top: 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 5.5rem;
  line-height: 1;
  color: var(--coral);
}
.quote blockquote {
  margin: 0 0 20px;
  font-size: 1.22rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--ink);
  max-width: 40em;
}
.quote figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.35;
}
.quote figcaption strong { color: var(--ink); }
.avatar {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--coral);
  color: var(--paper);
  font-weight: 700;
  font-size: 0.85rem;
}
@media (max-width: 700px) {
  .quote { padding: 60px 24px 24px; }
  .quote-mark { left: 20px; top: 4px; font-size: 4.5rem; }
  .quote blockquote { font-size: 1.08rem; }
}

/* Tighter quote band: sized to its content, not the full width */
.quote {
  width: fit-content;
  max-width: 100%;
  margin: 34px 0 6px;
  padding: 22px 30px 20px 70px;
}
.quote-mark { left: 22px; top: 4px; font-size: 4rem; }
.quote blockquote { font-size: 1.08rem; margin-bottom: 12px; max-width: 36em; }
.quote figcaption { font-size: 0.85rem; gap: 10px; }
.avatar { width: 36px; height: 36px; }
@media (max-width: 700px) {
  .quote { padding: 48px 22px 20px; }
  .quote-mark { left: 18px; top: 2px; font-size: 3.6rem; }
}
.quote blockquote { max-width: 41em; }

/* ---------- Results row under the intro ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 18px;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}
.stat-num {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--coral);
  line-height: 1.1;
}
.stat-label { font-size: 0.82rem; line-height: 1.35; color: var(--muted); }
@media (max-width: 1000px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Closing call to action ---------- */
.cta {
  margin-top: 80px;
  padding: 40px 44px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--blush) 0%, #F8DCD2 55%, var(--peach) 100%);
}
.cta-title { font-size: 1.7rem; margin: 0 0 8px; color: var(--ink); }
.cta-text { margin: 0 0 22px; max-width: 36em; color: var(--ink); }
.cta-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.cta-buttons .button { flex: none; padding: 12px 18px; }
@media (max-width: 700px) { .cta { padding: 30px 24px; } .cta-buttons .button { flex: 1 1 100%; } }
.footer { margin-top: 32px; }
.cta-text { max-width: 42em; }


/* ==========================================================
   MOTION (only runs when the visitor's device allows motion)
   ========================================================== */

/* 1. Scroll reveal */
.motion .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.motion .reveal.in { opacity: 1; transform: none; }

/* 3. Intro: ribbons draw in, hand waves */
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes wave {
  0%, 60%, 100% { transform: rotate(0); }
  10%, 30% { transform: rotate(16deg); }
  20%, 40% { transform: rotate(-8deg); }
  50% { transform: rotate(10deg); }
}
.motion .hero .wave { animation: wave 1.8s .6s ease-in-out 1; transform-origin: 70% 75%; }
.hero:hover .wave { animation: wave 1.2s ease-in-out 1; }

/* 4. Livelier card hovers */
.card.feature .picture img { transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.card.feature:hover .picture img { transform: scale(1.045); }
.card:hover { transform: translateY(-5px); box-shadow: 0 16px 34px rgba(51, 48, 47, 0.12); }
.motion .reveal.in.card:hover { transform: translateY(-5px); }

/* 5. Sliding logo row */
.logo-row { display: block !important; overflow: hidden; position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.logo-track { display: flex; align-items: center; gap: 56px; width: max-content; padding-right: 56px;
  animation: marquee 32s linear infinite; }
.logo-row:hover .logo-track { animation-play-state: paused; }
.logo-track img { height: var(--h) !important; flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (max-width: 860px) {
  .logo-track { gap: 36px; padding-right: 36px; animation-duration: 26s; }
  .logo-track img { height: calc(var(--h) * 0.8) !important; }
}

/* Reduced motion: keep the static one-line logo row, no movement anywhere */
@media (prefers-reduced-motion: reduce) {
  .logo-row { display: flex !important; -webkit-mask-image: none; mask-image: none; }
  .logo-track { animation: none; width: 100%; justify-content: space-between; padding-right: 0; gap: 3cqw; }
  .logo-track .dup { display: none; }
  .logo-track img { height: min(var(--h), calc(var(--h) * 100cqw / 760px)) !important; }
  .card:hover, .card.feature:hover .picture img { transform: none; }
}

/* Sizes for the extra logos (matched by eye to the others) */
.logo-row img[alt="HuffPost"], .logo-row img[data-alt="HuffPost"] { --h: 15px; }
.logo-row img[alt="EU-Startups"], .logo-row img[data-alt="EU-Startups"] { --h: 28px; }
.logo-row img[alt="CX Today"], .logo-row img[data-alt="CX Today"] { --h: 26px; }
.logo-row img.dup[data-alt="The Guardian"] { --h: 32px; }
.logo-row img.dup[data-alt="VICE"] { --h: 21px; }
.logo-row img.dup[data-alt="ELLE Canada"] { --h: 24px; }
.logo-row img.dup[data-alt="TechCrunch"] { --h: 21px; }
.logo-row img.dup[data-alt="G2"] { --h: 26px; }
.logo-track { animation-duration: 42s; }

/* Intro: greeting and paragraph rise in one after the other */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.motion .hero.intro .eyebrow { animation: rise .7s .15s both cubic-bezier(.2,.7,.2,1); }
.motion .hero.intro .lead { animation: rise .8s .35s both cubic-bezier(.2,.7,.2,1); }
/* Wave: a bigger wave, twice, once the greeting has landed */
.motion .hero .wave { animation: wave 1.6s 1s ease-in-out 2; }

/* ==========================================================
   BOLDER INTRO HEADER
   ========================================================== */
.hero { overflow: visible; padding: 52px 48px 40px; }
.hero-bg { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; }
.hero-bg .hero-curve { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Sticker greeting */
.sticker {
  position: absolute; top: -18px; left: 34px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px 8px 10px;
  background: #FFF4EF; color: var(--ink);
  font-weight: 700; font-size: 1rem;
  border-radius: 10px;
  transform: rotate(-3deg);
  box-shadow: 0 6px 16px rgba(51, 48, 47, 0.18);
}
.sticker .wave { width: 28px; height: 28px; background: #FBE1D8; font-size: 1rem; }

/* Big headline */
.hero-title {
  position: relative;
  margin: 0 0 16px;
  font-family: "Bricolage Grotesque", var(--font);
  font-weight: 800;
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #FFF4EF;
  max-width: 13em;
}
.circled { position: relative; white-space: nowrap; color: #FFD3C4; }
.scribble { position: absolute; left: -6%; top: -18%; width: 112%; height: 136%; overflow: visible; pointer-events: none; }
.scribble path { fill: none; stroke: #FFD3C4; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.hero .lead { font-size: 1.05rem; max-width: 34em; opacity: 0.95; }

/* Spinning stamp */
.stamp {
  position: absolute; top: -34px; right: -22px; z-index: 2;
  width: 112px; height: 112px; border-radius: 50%;
  background: #FFF4EF;
  box-shadow: 0 8px 20px rgba(51, 48, 47, 0.18);
  display: flex; align-items: center; justify-content: center;
}
.stamp svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.stamp text { font-family: var(--font); font-size: 9.4px; font-weight: 700; letter-spacing: 0.06em; fill: var(--coral); }
.stamp-star { font-size: 1.6rem; color: var(--coral); line-height: 1; }

/* Motion for the new pieces */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes scribble { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; transform: rotate(-12deg) scale(.6); } to { opacity: 1; transform: rotate(-3deg) scale(1); } }
.motion .stamp svg { animation: spin 18s linear infinite; }
.motion .scribble path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: scribble 1.1s 1.1s cubic-bezier(.65,0,.35,1) forwards; }
.motion .hero.intro .sticker { animation: pop .55s .1s both cubic-bezier(.3,1.5,.5,1); }
.motion .hero.intro .hero-title { animation: rise .8s .3s both cubic-bezier(.2,.7,.2,1); }
.motion .hero.intro .lead { animation: rise .8s .5s both cubic-bezier(.2,.7,.2,1); }

@media (max-width: 860px) {
  .hero { padding: 46px 24px 30px; }
  .sticker { left: 18px; font-size: 0.92rem; }
  .stamp { width: 84px; height: 84px; top: -30px; right: -6px; }
  .stamp-star { font-size: 1.2rem; }
  .hero-title { max-width: none; }
}
/* Scribble sits lower so it doesn't cut into the line above */
.scribble { top: 2%; height: 112%; left: -5%; width: 110%; }

/* Hand-drawn double underline instead of an oval */
.scribble { top: auto; bottom: -0.32em; left: -2%; width: 104%; height: 0.42em; }
.scribble path { stroke-width: 3.4; }
.hero-title { margin-bottom: 26px; }

/* Name in the left panel: same display font as the intro headline */
.name {
  font-family: "Bricolage Grotesque", var(--font);
  font-weight: 800;
  font-size: 2.7rem;
  letter-spacing: -0.02em;
  line-height: 1.02;
  margin-bottom: 10px;
}
@media (max-width: 860px) { .name { font-size: 2.4rem; } }

/* ==========================================================
   CLOSING BOX: headline, sticker, copy email
   ========================================================== */
.cta { position: relative; overflow: visible; padding-top: 48px; }
.cta-title {
  font-family: "Bricolage Grotesque", var(--font);
  font-weight: 800; font-size: clamp(2rem, 3.6vw, 3rem);
  letter-spacing: -0.02em; line-height: 1.05; margin: 0 0 22px;
}
.underlined { position: relative; white-space: nowrap; }
.cta .scribble path { stroke: var(--coral); }

.cta-sticker { top: -18px; left: 34px; transform: rotate(2.5deg); }
.live-dot { position: relative; width: 10px; height: 10px; border-radius: 50%; background: #3FB66B; margin: 0 2px 0 6px; }
.live-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #3FB66B; }
.motion .live-dot::after { animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { from { transform: scale(1); opacity: .7; } to { transform: scale(2.8); opacity: 0; } }

/* the underline in this box draws when the box scrolls into view */
.motion .cta .scribble path { animation: none; stroke-dasharray: 1; stroke-dashoffset: 1; }
.motion .cta.in .scribble path { animation: scribble 1s .45s cubic-bezier(.65,0,.35,1) forwards; }
.motion .cta.reveal .cta-sticker { opacity: 0; }
.motion .cta.in .cta-sticker { animation: popcta .55s .25s both cubic-bezier(.3,1.5,.5,1); }
@keyframes popcta { from { opacity: 0; transform: rotate(10deg) scale(.6); } to { opacity: 1; transform: rotate(2.5deg) scale(1); } }

/* "Copied" message and confetti */
.cta-buttons { position: relative; }
.toast {
  position: absolute; left: 0; top: -44px;
  background: var(--ink); color: var(--paper);
  font-size: .85rem; font-weight: 700; padding: 7px 12px; border-radius: 8px;
  opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; pointer-events: none;
}
.toast.show { opacity: 1; transform: none; }
.confetti {
  position: fixed; width: 8px; height: 12px; border-radius: 2px; z-index: 50; pointer-events: none;
  animation: burst 1s cubic-bezier(.2,.7,.3,1) forwards;
}
@keyframes burst {
  from { transform: translate(-50%, -50%) rotate(0); opacity: 1; }
  to { transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y) + 60px)) rotate(var(--r)); opacity: 0; }
}
@media (max-width: 700px) { .cta-sticker { left: 18px; } }

/* ---------- Section links in the left panel ---------- */
.nav li { margin-bottom: 4px; }
.nav a {
  position: relative;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; margin-left: -14px;
  border-radius: 12px;
  transition: background .25s ease, color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.nav a svg { transition: transform .3s cubic-bezier(.3,1.6,.5,1); }
.nav-arrow {
  margin-left: auto; color: var(--coral); font-weight: 700;
  opacity: 0; transform: translateX(-8px);
  transition: opacity .25s ease, transform .25s ease;
}
.nav a:hover, .nav a:focus-visible {
  background: var(--paper); color: var(--coral);
  transform: translateX(4px);
  box-shadow: 0 6px 18px rgba(194, 103, 90, 0.16);
}
.nav a:hover svg, .nav a:focus-visible svg { transform: scale(1.25) rotate(-10deg); }
.nav a:hover .nav-arrow, .nav a:focus-visible .nav-arrow { opacity: 1; transform: none; }
/* the section currently being read */
.nav a.active { background: rgba(255, 255, 255, 0.55); color: var(--coral); }
.nav a.active::before {
  content: ""; position: absolute; left: 0; top: 22%; bottom: 22%;
  width: 3px; border-radius: 3px; background: var(--coral);
}
@media (max-width: 860px) {
  .nav a { margin-left: 0; padding: 8px 12px; }
  .nav-arrow { display: none; }
  .nav a.active::before { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .nav a, .nav a svg, .nav-arrow { transition: none; }
  .nav a:hover { transform: none; }
}

