/* ============================================================
   THEME — change these to retheme the entire site.
   ============================================================ */
:root {
  /* Colors */
  --bg:        #F2F2F2;        /* warm light gray (matches live site) */
  --ink:       #000;            /* main text */
  --ink-soft:  #2B2B2B;
  --muted:     #8A8A8A;         /* labels, captions */
  --line:      #E2E2E2;         /* hairlines */
  --gold:      #EEA302;         /* accent gold */
  --gold-soft: #F5BD47;
  --paper:     #FFFFFF;

  /* Card colors (portfolio) */
  --etoro-bg:  #E5F0E0;
  --wix-bg:    #FCEBC2;
  --google-bg: #DDE6F7;

  /* Tag colors */
  --green-tag-bg: #DDF1D6;
  --green-tag-fg: #3C7A23;
  --green-tag-br: #B8DBA9;

  --yellow-tag-bg: #FFF1B8;
  --yellow-tag-fg: #B47300;
  --yellow-tag-br: #F2CC60;

  --blue-tag-bg:  #E4ECFA;
  --blue-tag-fg:  #2554A8;
  --blue-tag-br:  #B7CAEA;

  /* Type */
  --font-display: 'Work Sans', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body:    'Mulish', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

  /* Sizing */
  --max:    1240px;
  --gutter: clamp(20px, 4vw, 56px);
  --radius-card: 24px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }
button { font-family: inherit; }

::selection { background: var(--gold); color: #000; }

.accent { color: var(--gold); }

/* Subpages need top space so the fixed nav doesn't cover content.
   The home page handles this inside .hero (padding-top: 120px). */
body.subpage { padding-top: 72px; }


/* ============================================================
   NAV (fixed)
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px var(--gutter);
  background: var(--bg);
  transition: padding .25s ease, box-shadow .25s ease, background .25s ease;
}
.nav.is-scrolled {
  padding: 12px var(--gutter);
  background: rgba(242, 242, 242, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.05);
}

.nav__brand { display: flex; align-items: center; gap: 14px; }
.nav__dot {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--gold);
  flex: 0 0 auto;
}
.nav__brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.nav__brand-tag {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  color: var(--ink);
  margin-left: 12px;
  white-space: nowrap;
}

.nav__links {
  display: flex; align-items: center;
  font-size: 15px;
  font-family: var(--font-body);
  font-weight: 400;
}
.nav__links a {
  padding: 6px 22px;
  position: relative;
  color: var(--ink);
  transition: color .15s ease;
}
.nav__links a + a::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 1px; height: 14px;
  background: #BFBFBF;
}
.nav__links a:hover,
.nav__links a.is-current { color: var(--gold); }

.nav__toggle {
  display: none;
  background: transparent; border: 0; padding: 10px;
  cursor: pointer;
}
.nav__toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--ink); margin: 5px 0;
  transition: transform .2s ease, opacity .2s ease;
}
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  position: fixed; top: 60px; left: 0; right: 0; z-index: 49;
  background: var(--bg);
  display: flex; flex-direction: column;
  border-top: 1px solid var(--line);
  max-height: 0; overflow: hidden;
  transition: max-height .25s ease, padding .25s ease;
}
.nav-mobile.is-open { max-height: 400px; padding: 8px 0; }
.nav-mobile a {
  padding: 14px var(--gutter);
  font-size: 16px;
  border-bottom: 1px solid var(--line);
}


/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.01em;
  border: 0;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
}
.btn--gold {
  background: var(--gold);
  color: #fff;
}
.btn--gold:hover { background: #D89001; transform: translateY(-1px); }

.btn--pdf {
  padding: 12px 22px;
  font-size: 13px;
  letter-spacing: 0.08em;
}

.btn--dark {
  background: #2A2A2A;
  color: #fff;
  padding: 12px 26px;
  font-weight: 600;
  font-size: 15px;
  border-radius: 8px;
}
.btn--dark:hover { background: #000; }


/* ============================================================
   HERO  (#home)
   ============================================================ */
.hero {
  padding-top: 120px;
  padding-bottom: 60px;
}
.hero__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: minmax(280px, 480px) 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
  min-height: 60vh;
}
.hero__portrait {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  background: #B6A2D5; /* purple — matches the photo backdrop */
}
.hero__portrait img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero__copy {
  max-width: 540px;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(44px, 6vw, 78px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  color: #000;
}
.hero__tagline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.005em;
  margin: 0 0 20px;
}
.hero__lede {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  color: #1A1A1A;
  margin: 0 0 28px;
  max-width: 460px;
}


/* ============================================================
   ABOUT  (#about)
   ============================================================ */
.about {
  padding: 60px 0;
}
.about__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: minmax(240px, 380px) 1fr;
  gap: clamp(40px, 6vw, 72px);
  align-items: start;
  min-height: 0;
}
.about__portrait {
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 1 / 1;
  background: #EEE;
}
.about__portrait img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.about__card {
  background: transparent;
  padding: 4px 0 0;
  display: flex; flex-direction: column; justify-content: flex-start;
}
.about__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 4.2vw, 52px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 28px;
  position: relative;
}
.about__title::before {
  content: '';
  display: block;
  width: 44px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin-bottom: 18px;
}
.about__card p {
  font-size: 16px;
  line-height: 1.65;
  margin: 0 0 16px;
  max-width: 600px;
  color: #1A1A1A;
  font-weight: 400;
}
.about__card p:last-child { margin-bottom: 0; }


/* ============================================================
   PROCESS  (#process — How I Work)
   ============================================================ */
.process {
  padding: 40px 0 100px;
}
.process__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.process__heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(44px, 5vw, 64px);
  letter-spacing: -0.02em;
  text-align: center;
  margin: 0 0 18px;
}
.process__intro {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 50px;
  font-size: 15px;
  color: #1A1A1A;
  font-weight: 400;
  line-height: 1.55;
}

.process__list {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

/* Each step is a rounded "split card" — a tinted media half + a white body half */
.step {
  --step-tint: #FEF3D7;       /* soft tinted bg on the illustration side */
  --step-accent: #C49416;     /* eyebrow number + bullet color */
  background: #fff;
  border-radius: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

/* Per-step theme palettes (match base44) */
.step--c1 { --step-tint: #FBE9B8; --step-accent: #C28A12; } /* Research — sand */
.step--c2 { --step-tint: #E9E8FA; --step-accent: #6366F1; } /* Strategy — lavender */
.step--c3 { --step-tint: #D9E9FC; --step-accent: #1E88D7; } /* Writing — sky */
.step--c4 { --step-tint: #C8F0DA; --step-accent: #10B981; } /* Prototyping — mint */
.step--c5 { --step-tint: #E2DBF7; --step-accent: #7C5CD1; } /* Implementation — purple */
.step--c6 { --step-tint: #FAD0DC; --step-accent: #DB4F7C; } /* Launch — pink */

/* Reverse rows: content first, media second */
.step--reverse .step__media { order: 2; }
.step--reverse .step__body  { order: 1; }

.step__media {
  background: var(--step-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  min-height: 380px;
}
.step__media img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 320px;
  max-width: 420px;
  object-fit: contain;
  border-radius: 12px;
}

.step__body {
  padding: 56px clamp(28px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.step__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--step-accent);
  letter-spacing: 0.04em;
  display: block;
  line-height: 1;
  margin-bottom: 12px;
}
.step__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 2.6vw, 30px);
  letter-spacing: -0.01em;
  margin: 0 0 20px;
  color: #1A1A1A;
}
/* Bulleted list — small colored dot in front of each item, no native discs */
.step__body ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.step__body li {
  font-size: 15px;
  font-weight: 400;
  color: #2A2A2A;
  line-height: 1.55;
  position: relative;
  padding-left: 22px;
}
.step__body li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--step-accent);
}

@media (max-width: 720px) {
  .step { grid-template-columns: 1fr; }
  .step--reverse .step__media,
  .step--reverse .step__body { order: initial; }
  .step__media { min-height: 240px; padding: 32px; }
  .step__body { padding: 36px 28px 44px; }
}


/* ============================================================
   RESUME  (#resume)
   ============================================================ */
.resume {
  padding: 40px 0 80px;
}
.resume__inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.resume__head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: start;
  margin-bottom: 48px;
}
.resume__heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(44px, 5vw, 60px);
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}
.resume__lede {
  font-size: 15px;
  font-weight: 400;
  color: #1A1A1A;
  max-width: 560px;
  margin: 0;
  line-height: 1.55;
}

.resume__section-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.16em;
  color: #B5B5B5;
  margin: 56px 0 28px;
}

.resume__entry {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  margin-bottom: 48px;
  align-items: start;
}
.resume__when { display: flex; flex-direction: column; gap: 12px; }
.resume__years {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  color: #1A1A1A;
  margin: 0;
}
.resume__current {
  display: inline-block;
  align-self: flex-start;
  background: #FBE7B8;
  color: #8A6300;
  padding: 4px 12px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.1em;
}
.resume__role {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  margin: 0 0 4px;
}
.resume__company {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--gold);
  margin: 0 0 12px;
}
.resume__what p:last-child {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;
  color: #1A1A1A;
  margin: 0;
}

.skills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  margin-top: 8px;
}
.skill-group__head {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin: 0 0 12px;
}
.skill-group ul {
  list-style: none;
  padding: 0; margin: 0;
}
.skill-group li {
  font-size: 14px;
  font-weight: 400;
  margin-bottom: 6px;
  color: #1A1A1A;
}


/* ============================================================
   PORTFOLIO  (#portfolio — 3 cards)
   ============================================================ */
.portfolio {
  padding: 40px 0 80px;
}
.portfolio__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.portfolio__head {
  max-width: 720px;
  margin: 0 0 36px;
}
.portfolio__heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 4.4vw, 52px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 14px;
  color: #1A1A1A;
}
.portfolio__lede {
  font-size: 17px;
  line-height: 1.55;
  color: #5A5A5A;
  margin: 0;
}
.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.pcard {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  display: flex; flex-direction: column;
  height: 100%;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  transition: transform 0.4s ease-in-out, box-shadow 0.4s ease-in-out;
  transform-origin: center center;
  will-change: transform;
}
.pcard:hover {
  transform: scale(1.07);
  box-shadow: 0 5px 20px 3px rgba(0,0,0,0.5);
  z-index: 1;
}

.pcard__head {
  padding: 32px 24px;
  display: flex; align-items: center; justify-content: center;
  min-height: 130px;
}
.pcard__head img { max-height: 56px; width: auto; }
.pcard__head--double { gap: 20px; }
.pcard__head--double img { max-height: 60px; }

.pcard--etoro .pcard__head  { background: var(--etoro-bg); }
.pcard--wix   .pcard__head  { background: var(--wix-bg); }
.pcard--google .pcard__head { background: var(--google-bg); }

.pcard__body {
  padding: 22px 26px 24px;
  display: flex; flex-direction: column;
  flex: 1;
}
.pcard__years {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #B5B5B5;
  margin: 0 0 10px;
}
.pcard__company {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.01em;
  margin: 0 0 4px;
}
.pcard__role {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  color: #8A8A8A;
  margin: 0 0 18px;
}
.pcard__body > p {
  font-size: 14px;
  font-weight: 400;
  color: #1A1A1A;
  line-height: 1.55;
  margin: 0 0 12px;
}

.tags {
  list-style: none;
  margin: 16px 0;
  padding: 0;
  display: flex; flex-wrap: wrap;
  gap: 8px;
}
.tags li {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid;
}
.tags--green li {
  background: var(--green-tag-bg);
  color: var(--green-tag-fg);
  border-color: var(--green-tag-br);
}
.tags--yellow li {
  background: var(--yellow-tag-bg);
  color: var(--yellow-tag-fg);
  border-color: var(--yellow-tag-br);
}
.tags--blue li {
  background: var(--blue-tag-bg);
  color: var(--blue-tag-fg);
  border-color: var(--blue-tag-br);
}

.pcard__foot {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
}
.pcard__count {
  font-size: 13px;
  font-weight: 400;
  color: #8A8A8A;
}
.pcard__link {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
}
.pcard--etoro  .pcard__link { color: var(--green-tag-fg); }
.pcard--wix    .pcard__link { color: var(--yellow-tag-fg); }
.pcard--google .pcard__link { color: var(--blue-tag-fg); }


/* ============================================================
   CONTACT  (#contact)
   ============================================================ */
.contact {
  padding: 80px 0 120px;
}
.contact__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
.contact__heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(44px, 5vw, 60px);
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.contact__lede {
  font-size: 15px;
  font-weight: 400;
  margin: 0 0 36px;
  max-width: 380px;
  color: #1A1A1A;
}
.contact__block { margin-bottom: 28px; }
.contact__label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  margin: 0 0 6px;
}
.contact__block a {
  font-size: 15px;
  color: #1A1A1A;
}
.contact__socials { display: flex; gap: 8px; margin-top: 6px; }
.social {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 6px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.social--linkedin { background: #0A66C2; }
.social--instagram {
  background: radial-gradient(circle at 30% 110%, #FFD976, #F39B5A 25%, #DD3678 50%, #C8338C 70%, #8A4FE0);
}
.social:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.18); }


/* form */
.contact__form {
  display: flex; flex-direction: column;
  gap: 18px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  color: #1A1A1A;
}
.field > span em {
  color: #C00; font-style: normal;
}
.field input,
.field textarea {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  padding: 8px 10px;
  background: transparent;
  border: 1px solid #1A1A1A;
  border-radius: 0;
  color: #000;
  outline: none;
  resize: vertical;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 100px; }
.field input:focus,
.field textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold);
}
.contact__form .btn--dark { align-self: flex-end; }


/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 28px 0 60px;
  border-top: 1px solid var(--line);
}
.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px var(--gutter) 0;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 24px;
  align-items: end;
}
.footer__col p { margin: 0; }
.footer__label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 4px !important;
}
.footer__col a { font-size: 14px; color: #1A1A1A; }
.footer__social {
  display: inline-flex; align-items: center;
  margin-top: 4px;
}
.footer__copy {
  font-size: 13px;
  color: #1A1A1A;
  margin: 0;
  text-align: right;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: left;
    gap: 32px;
    min-height: 0;
  }
  .hero__portrait { max-width: 360px; }

  .about__inner { grid-template-columns: 1fr; min-height: 0; }
  .about__portrait { aspect-ratio: 4 / 3; }

  .step { grid-template-columns: 1fr; gap: 24px; padding: 24px; }
  .step--reverse .step__media,
  .step--reverse .step__body { order: initial; }

  .resume__head { grid-template-columns: 1fr; }
  .resume__entry { grid-template-columns: 1fr; gap: 8px; }

  .portfolio__inner { grid-template-columns: 1fr; max-width: 520px; }

  .contact__inner { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 18px; }

  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__copy { grid-column: 1 / -1; text-align: left; }
}

@media (max-width: 720px) {
  .nav__brand-tag { display: none; }
  .nav__links { display: none; }
  .nav__toggle { display: block; }
}


/* ============================================================
   CASE STUDY LIST  (etoro-projects.html, wix-projects.html)
   ============================================================ */
.cs-list { padding: 24px 0 100px; }
.cs-list__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.cs-list__back {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 20px;
  transition: color .15s ease;
}
.cs-list__back:hover { color: var(--gold); }

.cs-list__head {
  text-align: center;
  margin-bottom: 56px;
}
.cs-list__logo {
  max-height: 80px;
  width: auto;
  margin: 0 auto 28px;
}
.cs-list__meta {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: #555;
  margin: 0 0 24px;
  display: flex; flex-wrap: wrap; gap: 32px;
  justify-content: center;
}
.cs-list__meta strong { color: #B5B5B5; font-weight: 700; margin-right: 6px; }
.cs-list__lede {
  max-width: 720px;
  margin: 0 auto;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  color: #1A1A1A;
}

.cs-item {
  background: #fff;
  border-radius: var(--radius-card);
  padding: 36px;
  margin-bottom: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  color: inherit;
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease;
}
.cs-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.10);
}
.cs-item:hover .cs-item__cta { color: var(--gold); }
.cs-item--reverse .cs-item__media { order: 2; }
.cs-item--reverse .cs-item__body  { order: 1; }

.cs-item__media {
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #F5F5F5;
}
.cs-item__media img {
  width: 100%; height: 100%; object-fit: cover;
}
.cs-item__media--placeholder {
  display: flex; align-items: center; justify-content: center;
  border: 2px dashed #D5D5D5;
  background: #FAFAFA;
  color: #B5B5B5;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
}

.cs-item__body { padding: 8px; }
.cs-item__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 2.6vw, 32px);
  letter-spacing: -0.01em;
  margin: 0 0 6px;
}
.cs-item__sub {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: #1A1A1A;
  margin: 0 0 16px;
}
.cs-item__body p {
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 16px;
  color: #1A1A1A;
}
.cs-item__body strong { font-weight: 700; }

.cs-tags {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex; flex-wrap: wrap;
  gap: 8px;
}
.cs-tags li {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #F2F2F2;
  color: #555;
  border: 1px solid #E2E2E2;
}

.cs-item__cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--gold);
  transition: opacity .15s ease;
}
.cs-item__cta:hover { opacity: 0.7; }


/* ============================================================
   CASE STUDY PAGE  (terra.html, individual case studies)
   ============================================================ */
.cs-page { padding: 24px 0 100px; }
.cs-page__inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.cs-page__head {
  text-align: center;
  margin: 32px 0 48px;
}
.cs-page__eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--gold);
  margin: 0 0 16px;
}
.cs-page__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 5vw, 64px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 18px;
}
.cs-page__sub {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  color: #1A1A1A;
  max-width: 640px;
  margin: 0 auto 28px;
  line-height: 1.5;
}
.cs-page__deck-link {
  margin-top: 8px;
}

/* Embedded slide deck */
.cs-deck {
  background: #fff;
  border-radius: var(--radius-card);
  padding: 24px;
  margin-bottom: 48px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.cs-deck iframe {
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  border: 0;
  border-radius: 8px;
  display: block;
  background: #1F1F1F;
}
.cs-deck__note {
  font-size: 12px;
  color: #8A8A8A;
  margin: 12px 0 0;
  text-align: center;
}
.cs-deck__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}
.cs-deck__label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.cs-deck__fullscreen {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  color: #1A1A1A;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition: color .15s ease;
}
.cs-deck__fullscreen:hover { color: var(--gold); border-bottom-color: var(--gold); }

/* Body prose */
.cs-prose {
  max-width: 720px;
  margin: 0 auto;
}
.cs-prose p {
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  margin: 0 0 18px;
  color: #1A1A1A;
}
.cs-prose h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.01em;
  margin: 36px 0 14px;
}
.cs-prose img {
  border-radius: 12px;
  margin: 24px 0;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}
.cs-prose ul {
  margin: 0 0 18px;
  padding-left: 24px;
}
.cs-prose li {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 6px;
  color: #1A1A1A;
}

/* Stub note for unfilled case studies */
.cs-stub-note {
  background: #FFF6E0;
  border-left: 4px solid var(--gold);
  padding: 14px 18px;
  margin: 24px 0;
  border-radius: 6px;
  font-size: 14px;
  color: #6B4F00;
}
.cs-stub-note strong { color: #4A3700; }

/* ============================================================
   CASE-STUDY META + NUMBERED-SECTION layout
   (used on wix-premium.html — matches the base44 case-study aesthetic:
   two side-by-side Challenges/Responsibilities cards, then numbered
   sections with optional centered media.)
   ============================================================ */

/* Tag pills under the H1 — multi-color borders for visual punch */
.cs-tags {
  list-style: none;
  margin: 12px 0 22px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cs-tags li {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 4px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid currentColor;
  color: #8B5CF6; /* fallback if no t-- class set */
}
/* Per-tag accent colors. Same tag = same color across the site;
   colors chosen so no single card has two pills of the same color. */
.cs-tags li.t--purple { color: #8B5CF6; }
.cs-tags li.t--amber  { color: #E8A020; }
.cs-tags li.t--indigo { color: #6366F1; }
.cs-tags li.t--green  { color: #10B981; }
.cs-tags li.t--cyan   { color: #0EA5E9; }
.cs-tags li.t--rose   { color: #DB4F7C; }

/* Two-column Challenges + Responsibilities cards */
.cs-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 32px 0 8px;
}
@media (max-width: 720px) {
  .cs-meta-grid { grid-template-columns: 1fr; }
}
.cs-meta-card {
  background: #F8F8F8;
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 14px;
  padding: 22px 24px;
}
.cs-meta-card__label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8A8A8A;
  margin: 0 0 14px;
}
.cs-meta-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.cs-meta-card li {
  position: relative;
  padding: 0 0 10px 18px;
  font-size: 14px;
  line-height: 1.55;
  color: #4A4A4A;
}
.cs-meta-card li:last-child { padding-bottom: 0; }
.cs-meta-card li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #8B5CF6;
}

/* Numbered case-study section (01 / 02 / 03 …) */
.cs-section {
  margin: 56px 0 0;
}
.cs-section__num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: #B5B5B5;
  margin: 0 0 14px;
}
.cs-section__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.25;
  color: #1A1A1A;
  margin: 0 0 14px;
}
.cs-section__body {
  font-size: 16px;
  line-height: 1.65;
  color: #3A3A3A;
  margin: 0;
  max-width: 720px;
}
.cs-section__media {
  margin: 32px auto 0;
  display: flex;
  justify-content: center;
}
.cs-section__media img {
  display: block;
  max-width: 100%;
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.08);
}
/* For tall phone-sized mockups — keep the image at a sane scale */
.cs-section__media--phone img {
  max-width: 280px;
}

/* Inline-expand artifact card (a deck or guideline doc embedded under a
   numbered section — click to view PDF inline, no download path).
   Same idea as the eToro style-guide cards but tuned for solo placement. */
.cs-artifact {
  margin: 24px 0 0;
  background: #FAFAFA;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 14px;
  max-width: 720px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.cs-artifact[open] {
  border-color: rgba(99,102,241,0.40);
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}
.cs-artifact__summary {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
  transition: transform 0.15s;
}
.cs-artifact__summary::-webkit-details-marker { display: none; }
.cs-artifact:not([open]) .cs-artifact__summary:hover {
  transform: translateY(-1px);
}
.cs-artifact__type {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: #6366F1;
  padding: 4px 10px;
  border-radius: 999px;
}
.cs-artifact__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cs-artifact__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: #1A1A1A;
  line-height: 1.3;
}
.cs-artifact__desc {
  font-size: 13px;
  line-height: 1.5;
  color: #6A6A6A;
}
.cs-artifact__action {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: #6366F1;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cs-artifact__chevron {
  display: inline-block;
  transition: transform 0.2s;
}
.cs-artifact[open] .cs-artifact__chevron {
  transform: rotate(180deg);
}
.cs-artifact__body {
  padding: 0 14px 14px;
}
.cs-artifact__body iframe {
  width: 100%;
  height: 680px;
  border: 0;
  border-radius: 10px;
  background: #1a1a1a;
  display: block;
}


/* ============================================================
   CASE-STUDY SLIDESHOW
   Walkthrough carousel built from a set of screenshots + captions.
   Used on wix-ai-builder.html and (planned) other older Wix pages.
   ============================================================ */
.cs-slideshow {
  background: #fff;
  border-radius: var(--radius-card);
  padding: clamp(20px, 3vw, 32px);
  margin: 0 auto 48px;
  max-width: 1080px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.cs-slideshow__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 18px;
}
.cs-slideshow__label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.cs-slideshow__counter {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  color: #8A8A8A;
  letter-spacing: 0.04em;
}
.cs-slideshow__counter strong { color: var(--ink); font-weight: 700; }

.cs-slideshow__stage {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
}
.cs-slideshow__viewport { position: relative; min-height: 520px; }

.cs-slide {
  display: none;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(20px, 4vw, 48px);
  align-items: stretch;
  animation: cs-slide-fade .35s ease;
}
.cs-slide.is-active { display: grid; }

.cs-slide--wide { grid-template-columns: 1fr; }
.cs-slide--wide .cs-slide__media { height: 360px; }
.cs-slide--wide .cs-slide__caption { max-width: 760px; margin: 0 auto; text-align: center; }

@keyframes cs-slide-fade {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.cs-slide__media {
  background: #FAFAFA;
  border: 1px solid var(--line);
  border-radius: 14px;
  height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow: hidden;
}
.cs-slide__media img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
}
.cs-slide__caption {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8px 4px;
}
.cs-slide__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--gold);
  margin: 0 0 10px;
}
.cs-slide__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 3vw, 34px);
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  line-height: 1.15;
}
.cs-slide__caption p {
  font-size: 15px;
  line-height: 1.6;
  font-weight: 400;
  margin: 0 0 12px;
  color: #1A1A1A;
}
.cs-slide__caption p:last-child { margin-bottom: 0; }

/* Controls */
.cs-slideshow__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.cs-slideshow__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: transparent;
  border: 1px solid #D5D5D5;
  border-radius: 999px;
  padding: 9px 18px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.cs-slideshow__nav:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.cs-slideshow__nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  background: transparent;
  color: var(--ink);
  border-color: #D5D5D5;
}
.cs-slideshow__nav svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.cs-slideshow__dots {
  display: flex;
  gap: 10px;
  align-items: center;
}
.cs-slideshow__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #D5D5D5;
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.cs-slideshow__dot:hover { background: #8A8A8A; }
.cs-slideshow__dot.is-active {
  background: var(--gold);
  transform: scale(1.25);
}

/* Slideshow responsive */
@media (max-width: 860px) {
  .cs-slide,
  .cs-slide--wide { grid-template-columns: 1fr; }
  .cs-slide__media { height: 380px; }
  .cs-slideshow__viewport { min-height: 0; }
  .cs-slideshow__controls { flex-wrap: wrap; }
}

/* Responsive */
@media (max-width: 1024px) {
  .cs-item {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px;
  }
  .cs-item--reverse .cs-item__media,
  .cs-item--reverse .cs-item__body { order: initial; }
}


/* ============================================================
   STRATEGY PAGES — tab switcher + phase cards + metrics
   ============================================================ */

/* Tab switcher (Strategy | Case Studies) */
.cs-tabs {
  display: inline-flex;
  background: #fff;
  border-radius: 999px;
  padding: 4px;
  margin: 8px auto 32px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.cs-tab {
  padding: 10px 24px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
  color: #555;
  transition: background .2s ease, color .2s ease;
}
.cs-tab:hover { color: var(--ink); }
.cs-tab.is-current {
  background: var(--gold);
  color: #fff;
}

/* Strategy intro paragraphs */
.cs-strategy__intro {
  max-width: 720px;
  margin: 0 auto;
  text-align: left;
}
.cs-strategy__intro p {
  font-size: 16px;
  line-height: 1.65;
  margin: 0 0 18px;
  color: #1A1A1A;
}

/* Phase card */
.phase {
  background: #fff;
  border-radius: var(--radius-card);
  padding: 40px clamp(24px, 4vw, 56px);
  margin-bottom: 28px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.phase__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--gold);
  margin: 0 0 12px;
}
.phase__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 3vw, 34px);
  letter-spacing: -0.01em;
  margin: 0 0 18px;
}
.phase p {
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  margin: 0 0 20px;
  color: #1A1A1A;
  max-width: 760px;
}
.phase__deck {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 16px;
}
.phase--placeholder {
  background: #FAFAFA;
  border: 2px dashed #E2E2E2;
  box-shadow: none;
}
.phase--placeholder .phase__num { color: #B5B5B5; }
.phase--placeholder p { color: #8A8A8A; }

/* Metrics row inside phase */
.phase__metrics-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: #B5B5B5;
  margin: 28px 0 16px;
}
.phase__metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  margin-bottom: 8px;
}
.metric {
  background: #FAFAFA;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 22px;
}
.metric__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 4vw, 44px);
  color: var(--gold);
  line-height: 1.05;
  margin: 0 0 10px;
}
.metric__caption {
  font-size: 13px;
  line-height: 1.45;
  color: #1A1A1A;
  margin: 0;
}


/* ============================================================
   STRATEGY CHAPTERS — collapsible accordion cards
   ============================================================ */

.strategy-chapters {
  --c1: #E8A020; /* Audit — amber */
  --c2: #6366F1; /* Relationships — indigo */
  --c3: #10B981; /* AI Vetting — green */
  --c4: #0EA5E9; /* Voice & Tone — cyan */
  --c5: #8B5CF6; /* Figma Plugin — purple */

  max-width: 880px;
  margin: 48px auto 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Each chapter card is a native <details> element for built-in accordion behavior */
.chapter-card {
  --chapter: var(--c1);
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.chapter-card[open] {
  border-color: rgba(0,0,0,0.1);
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}
.chapter-card--c1 { --chapter: var(--c1); }
.chapter-card--c2 { --chapter: var(--c2); }
.chapter-card--c3 { --chapter: var(--c3); }
.chapter-card--c4 { --chapter: var(--c4); }
.chapter-card--c5 { --chapter: var(--c5); }

/* The clickable header — uses CSS grid: icon | text | chevron */
.chapter-card__head {
  display: grid;
  grid-template-columns: 56px 1fr 36px;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.chapter-card__head::-webkit-details-marker { display: none; }
.chapter-card__head::marker { content: ''; }

.chapter-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--chapter) 12%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--chapter);
}
.chapter-card__icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chapter-card__text { min-width: 0; }
.chapter-card__eyebrow {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--chapter);
  margin: 0 0 6px;
}
.chapter-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.35;
  color: #1A1A1A;
  margin: 0 0 6px;
  letter-spacing: -0.005em;
}
.chapter-card__summary {
  font-size: 14px;
  line-height: 1.5;
  color: #7A7A7A;
  margin: 0;
}

.chapter-card__chevron {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: #B5B5B5;
  transition: transform 0.25s ease, color 0.2s;
}
.chapter-card__chevron svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chapter-card[open] .chapter-card__chevron { transform: rotate(180deg); color: var(--chapter); }
.chapter-card__head:hover .chapter-card__chevron { color: var(--chapter); }

/* Expanded body */
.chapter-card__body {
  padding: 8px 24px 28px 86px; /* 86 = icon col + gap, so body aligns with title */
  border-top: 1px solid rgba(0,0,0,0.05);
  margin-top: 4px;
}
.chapter-card__body p {
  font-size: 16px;
  line-height: 1.65;
  margin: 18px 0 0;
  color: #1A1A1A;
  max-width: 720px;
}
.chapter-card__body p:first-child { margin-top: 18px; }

/* Inside the expanded body, scope the deck label to use the chapter color */
.chapter-card .cs-deck { margin-top: 22px; }
.chapter-card .cs-deck__label {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  color: var(--chapter);
  font-weight: 700;
}
.chapter-card .cs-deck__label::before {
  content: '— ';
  color: var(--chapter);
}
.chapter-card .metric__num { color: var(--chapter); }
.chapter-card .phase__metrics-label { color: var(--chapter); opacity: 0.85; }

/* Italic transition text — now inside each card's body, at the bottom */
.phase__transition {
  font-size: 14px;
  font-style: italic;
  color: #8A8A8A;
  margin: 24px 0 0;
  padding-top: 18px;
  border-top: 1px dashed rgba(0,0,0,0.08);
  max-width: 720px;
}

/* Style-guides block inside chapter 4 — a master hero card + small component cards */
.guides-block {
  margin: 28px 0 0;
}
.guides-block__label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--chapter);
  margin: 0 0 14px;
}
.guides-block__label::before { content: '— '; color: var(--chapter); }

/* Featured (master) guide card */
.guide-master {
  background: color-mix(in srgb, var(--chapter) 8%, #fff);
  border: 1px solid color-mix(in srgb, var(--chapter) 22%, transparent);
  border-radius: 14px;
  color: inherit;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.guide-master[open] {
  box-shadow: 0 6px 18px color-mix(in srgb, var(--chapter) 15%, transparent);
  border-color: color-mix(in srgb, var(--chapter) 45%, transparent);
}
.guide-master__summary {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 22px 24px;
  cursor: pointer;
  list-style: none;
  transition: transform 0.15s;
}
.guide-master__summary::-webkit-details-marker { display: none; }
.guide-master:not([open]) .guide-master__summary:hover {
  transform: translateY(-1px);
}
.guide-master__chevron {
  display: inline-block;
  transition: transform 0.2s;
}
.guide-master[open] .guide-master__chevron {
  transform: rotate(180deg);
}
.guide-master__body {
  padding: 0 18px 18px;
}
.guide-master__body iframe {
  width: 100%;
  height: 720px;
  border: 0;
  border-radius: 10px;
  background: #1a1a1a;
  display: block;
}
.guide-master__icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: color-mix(in srgb, var(--chapter) 18%, transparent);
  color: var(--chapter);
  display: flex; align-items: center; justify-content: center;
}
.guide-master__icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.guide-master__text { min-width: 0; }
.guide-master__eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--chapter);
  margin: 0 0 4px;
}
.guide-master__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: #1A1A1A;
  margin: 0 0 4px;
  line-height: 1.3;
}
.guide-master__desc { font-size: 13px; line-height: 1.5; color: #5A5A5A; margin: 0; max-width: 580px; }
.guide-master__action {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--chapter);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Small component-guide cards in a responsive grid */
.guide-grid {
  margin: 14px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.guide-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 12px;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.guide-card[open] {
  grid-column: 1 / -1;
  border-color: color-mix(in srgb, var(--chapter) 45%, transparent);
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}
.guide-card__summary {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
  transition: transform 0.15s;
}
.guide-card__summary::-webkit-details-marker { display: none; }
.guide-card:not([open]) .guide-card__summary:hover {
  transform: translateY(-1px);
}
.guide-card__summary:hover .guide-card__arrow { color: var(--chapter); transform: translateX(2px); }
.guide-card[open] .guide-card__arrow { transform: rotate(90deg); color: var(--chapter); }
.guide-card__body {
  padding: 0 14px 14px;
}
.guide-card__body iframe {
  width: 100%;
  height: 680px;
  border: 0;
  border-radius: 10px;
  background: #1a1a1a;
  display: block;
}
.guide-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.guide-card__type {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--chapter);
  padding: 3px 8px;
  border-radius: 999px;
}
.guide-card__arrow { color: #B5B5B5; transition: color 0.2s, transform 0.2s; }
.guide-card__arrow svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.guide-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: #1A1A1A;
  margin: 4px 0 0;
  line-height: 1.35;
}
.guide-card__desc { font-size: 12.5px; line-height: 1.45; color: #6A6A6A; margin: 0; }

/* "Plugin at a Glance" — feature spec list inside the Figma Plugin chapter */
.feature-glance {
  margin: 8px 0 0;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}
.feature-glance__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--chapter, var(--c5));
  margin: 0;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  background: rgba(139, 92, 246, 0.04);
}
.feature-glance__row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
  padding: 14px 20px;
  border-top: 1px solid rgba(0,0,0,0.05);
  font-size: 15px;
  line-height: 1.5;
}
.feature-glance__row:first-of-type { border-top: none; }
.feature-glance__row dt {
  font-weight: 600;
  color: #1A1A1A;
  margin: 0;
}
.feature-glance__row dd {
  margin: 0;
  color: #4A4A4A;
}

/* Closing "Throughline" block — a warm gradient card that echoes the timeline's
   five chapter colors (amber → indigo → green → cyan → purple) at low opacity */
.strategy-closing {
  position: relative;
  max-width: 880px;
  margin: 56px auto 0;
  padding: 44px clamp(28px, 4vw, 52px);
  border-radius: 22px;
  border: 1px solid rgba(0,0,0,0.06);
  background:
    radial-gradient(ellipse 80% 70% at 12% 8%,  rgba(232, 160, 32, 0.07) 0%, transparent 60%),
    radial-gradient(ellipse 60% 55% at 92% 18%, rgba(99, 102, 241, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 65% 60% at 85% 95%, rgba(139, 92, 246, 0.07) 0%, transparent 65%),
    radial-gradient(ellipse 55% 50% at 18% 90%, rgba(14, 165, 233, 0.05) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 50% 50%, rgba(16, 185, 129, 0.03) 0%, transparent 70%),
    linear-gradient(180deg, #FFFDFA 0%, #FFFFFF 70%);
  box-shadow: 0 2px 12px rgba(0,0,0,0.03), inset 0 1px 0 rgba(255,255,255,0.7);
}
.strategy-closing__eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 12px;
  position: relative;
}
.strategy-closing__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 3vw, 30px);
  letter-spacing: -0.01em;
  margin: 0 0 20px;
}
.strategy-closing p {
  font-size: 16px;
  line-height: 1.65;
  margin: 0 0 16px;
  color: #1A1A1A;
}
.strategy-closing p:last-child { margin-bottom: 0; }

@media (max-width: 600px) {
  .chapter-card__head { grid-template-columns: 44px 1fr 28px; gap: 14px; padding: 18px 16px; }
  .chapter-card__icon { width: 36px; height: 36px; border-radius: 10px; }
  .chapter-card__icon svg { width: 18px; height: 18px; }
  .chapter-card__body { padding: 8px 16px 22px 16px; }
  .feature-glance__row { grid-template-columns: 1fr; gap: 4px; }
}

/* ===== Plugin demo video figures ===== */
.cs-prose video,
.chapter-card__body video {
  display: block;
  width: 100%;
  max-width: 720px;
  border-radius: 12px;
  margin: 18px 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  background: #f4f4f6;
}
.tab-demo video { margin: 0; }
.tab-demo { margin: 28px 0 40px; }
.tab-demo__label {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  margin: 0 0 8px;
  color: #5c5ce0;
}
.tab-demo__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 4px;
}
.tab-demo__sub {
  font-size: 14px;
  color: #5c5ce0;
  font-weight: 600;
  margin: 0 0 14px;
}
.tab-demo--strings .tab-demo__label,
.tab-demo--strings .tab-demo__sub { color: #0d99ff; }
.tab-demo--flow .tab-demo__label,
.tab-demo--flow .tab-demo__sub { color: #5c5ce0; }
.tab-demo--research .tab-demo__label,
.tab-demo--research .tab-demo__sub { color: #10b981; }
.tab-demo p { margin: 14px 0 0; font-size: 16px; line-height: 1.65; color: #1A1A1A; }
