/* ==============================================================
   THEME CREAM · Stamp Code homepage pilot
   PDF-aligned skin — cream base, serif italics, sage/coral accents
   Applied via body.theme-cream — original styles.css untouched
   ============================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..900;1,9..144,300..900&display=swap');

body.theme-cream {
  /* PDF palette */
  --bg: #F7EFDD;
  --bg-2: #EFE5CE;
  --bg-cream: #F7EFDD;
  --bg-warm: #F0E2C9;
  --accent: #E64F2A;
  --accent-dark: #C13E1B;
  --sage: #A9B296;
  --sage-deep: #7F8B70;
  --coral: #F4B79A;
  --coral-deep: #E88F6A;
  --terracotta: #B25A32;
  --brown: #6B4A33;
  --ink: #2A2018;
  --ink-dim: #55463B;
  --serif: 'Fraunces', 'Playfair Display', Georgia, serif;
}

body.theme-cream { background: var(--bg); }

/* ============================== TYPE — PDF-style display headings ============================== */
/* PDF uses serif for the entire large display heading, with orange italic serif for emphasis */

body.theme-cream .hero__title,
body.theme-cream .section__title,
body.theme-cream .case__title,
body.theme-cream .subpage__title,
body.theme-cream .pcard__name,
body.theme-cream .faq__head h2,
body.theme-cream .contact h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-variation-settings: 'opsz' 144;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.05;
}

/* Case study titles need looser tracking — smaller display size wants more air */
body.theme-cream .case__title {
  letter-spacing: 0;
  line-height: 1.15;
  word-spacing: 0.02em;
}
body.theme-cream .case__title em {
  letter-spacing: 0;
}

/* Orange italic serif accent — the "highlighted" phrase */
body.theme-cream em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-variation-settings: 'opsz' 144, 'SOFT' 100;
  color: var(--accent);
  letter-spacing: -0.005em;
}

body.theme-cream .hero__title em,
body.theme-cream .section__title em,
body.theme-cream .case__title em,
body.theme-cream .subpage__title em,
body.theme-cream .faq__head h2 em,
body.theme-cream .contact h2 em {
  font-weight: 500;
}

/* PDF-style eyebrow — kill the rotated bordered pill, replace with italic serif + full-width hairline */
body.theme-cream .section__eyebrow {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 16px;
  color: var(--ink-dim);
  text-transform: none;
  letter-spacing: 0;
  padding: 0 0 12px 0;
  border: 0;
  border-bottom: 1px solid rgba(178, 90, 50, 0.30);
  border-radius: 0;
  background: transparent;
  transform: none;
  display: block;
  width: 100%;
  max-width: none;
  margin: 0 0 24px 0;
  line-height: 1.3;
}
body.theme-cream .section__eyebrow::before,
body.theme-cream .section__eyebrow::after { content: none; display: none; }

/* ============================== NAV pill on cream ============================== */
body.theme-cream .nav { background: rgba(247, 239, 221, 0.85); backdrop-filter: blur(8px); }

/* ============================== HERO ============================== */
body.theme-cream .hero { background: var(--bg); position: relative; }
body.theme-cream .hero .pill {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(178, 90, 50, 0.15);
  color: var(--ink-dim);
  margin-bottom: 48px;
}
body.theme-cream .hero__title { margin-top: 0; }
body.theme-cream .hero__inner { position: relative; z-index: 3; }

/* Floating design elements — parallax on cursor + JS-driven idle drift */
body.theme-cream .hero__floats {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}
body.theme-cream .hf {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}
body.theme-cream .hf--sage {
  width: 110px; height: 110px;
  border-radius: 50%;
  background: var(--sage);
  opacity: 0.4;
}
body.theme-cream .hf--coral {
  width: 74px; height: 74px;
  border-radius: 50%;
  background: var(--coral);
  opacity: 0.55;
}
body.theme-cream .hf--terracotta {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--terracotta);
  opacity: 0.28;
}
body.theme-cream .hf--dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
}
body.theme-cream .hf--dot-sm {
  width: 8px; height: 8px;
  background: var(--terracotta);
  opacity: 0.6;
}
body.theme-cream .hf--stamp {
  width: 90px; height: 90px;
  color: var(--terracotta);
  opacity: 0.28;
}
body.theme-cream .hf--stamp svg { width: 100%; height: 100%; display: block; }
body.theme-cream .hf--serif {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 140px;
  color: var(--accent);
  opacity: 0.16;
  line-height: 0.9;
  user-select: none;
}
body.theme-cream .hf--serif-amp { font-size: 160px; color: var(--sage-deep); opacity: 0.2; }
body.theme-cream .hf--squiggle {
  width: 96px;
  color: var(--terracotta);
  opacity: 0.5;
}
body.theme-cream .hf--squiggle svg { width: 100%; height: auto; display: block; }
body.theme-cream .hf--check {
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 700;
  color: var(--sage-deep);
  opacity: 0.5;
}

/* Extra variety — added second pass */
body.theme-cream .hf--sage-sm { width: 62px; height: 62px; opacity: 0.32; }
body.theme-cream .hf--coral-sm { width: 44px; height: 44px; opacity: 0.5; }
body.theme-cream .hf--terracotta-sm { width: 26px; height: 26px; opacity: 0.35; }
body.theme-cream .hf--dot-coral { background: var(--coral-deep); opacity: 0.7; width: 12px; height: 12px; }
body.theme-cream .hf--dot-brown { background: var(--brown); opacity: 0.55; width: 10px; height: 10px; }

body.theme-cream .hf--ring {
  width: 54px; height: 54px;
  border-radius: 50%;
  border: 2px solid var(--sage-deep);
  background: transparent;
  opacity: 0.45;
}
body.theme-cream .hf--ring-sage { border-color: var(--sage-deep); }
body.theme-cream .hf--ring-terracotta { border-color: var(--terracotta); }
body.theme-cream .hf--ring-sm { width: 34px; height: 34px; border-width: 1.5px; opacity: 0.5; }

body.theme-cream .hf--dash {
  width: 90px;
  color: var(--terracotta);
  opacity: 0.55;
}
body.theme-cream .hf--dash svg { width: 100%; height: auto; display: block; }
body.theme-cream .hf--dash-vert { width: 4px; height: 68px; }
body.theme-cream .hf--dash-vert svg { height: 100%; width: auto; }

body.theme-cream .hf--plus {
  width: 26px; height: 26px;
  color: var(--accent);
  opacity: 0.55;
}
body.theme-cream .hf--plus svg { width: 100%; height: 100%; display: block; }

body.theme-cream .hf--arc {
  width: 72px;
  color: var(--sage-deep);
  opacity: 0.45;
}
body.theme-cream .hf--arc svg { width: 100%; height: auto; display: block; }

/* Mobile scale-down for the new variety layer */
@media (max-width: 800px) {
  body.theme-cream .hf--sage-sm { width: 44px; height: 44px; }
  body.theme-cream .hf--coral-sm { width: 30px; height: 30px; }
  body.theme-cream .hf--terracotta-sm { width: 18px; height: 18px; }
  body.theme-cream .hf--ring { width: 38px; height: 38px; }
  body.theme-cream .hf--ring-sm { width: 24px; height: 24px; }
  body.theme-cream .hf--dash { width: 60px; }
  body.theme-cream .hf--dash-vert { height: 48px; }
  body.theme-cream .hf--plus { width: 20px; height: 20px; }
  body.theme-cream .hf--arc { width: 52px; }
}

/* Mobile — scale down and thin out so hero doesn't get busy */
@media (max-width: 800px) {
  body.theme-cream .hf--sage { width: 60px; height: 60px; opacity: 0.28; }
  body.theme-cream .hf--coral { width: 42px; height: 42px; opacity: 0.4; }
  body.theme-cream .hf--terracotta { width: 26px; height: 26px; }
  body.theme-cream .hf--stamp { width: 48px; height: 48px; }
  body.theme-cream .hf--serif { font-size: 90px; }
  body.theme-cream .hf--serif-amp { font-size: 100px; }
  body.theme-cream .hf--squiggle { width: 56px; }
  body.theme-cream .hf--check { font-size: 18px; }

  /* Hide the extra variety layer at mobile so hero stays legible */
  body.theme-cream .hf--sage-sm,
  body.theme-cream .hf--terracotta-sm,
  body.theme-cream .hf--coral-sm,
  body.theme-cream .hf--ring,
  body.theme-cream .hf--ring-sm,
  body.theme-cream .hf--dash,
  body.theme-cream .hf--dash-vert,
  body.theme-cream .hf--arc,
  body.theme-cream .hf--plus,
  body.theme-cream .hf--squiggle,
  body.theme-cream .hf--dot-coral,
  body.theme-cream .hf--dot-brown { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  body.theme-cream .hf { transition: none !important; }
}

/* ============================== ABOUT STRIP — portrait left, copy + CTA right ============================== */
body.theme-cream .aboutstrip {
  background: var(--bg-warm);
  color: var(--ink);
  position: relative;
  padding: 80px 0 100px;
}
body.theme-cream .aboutstrip::before,
body.theme-cream .aboutstrip::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  z-index: 0;
  opacity: 0.55;
  pointer-events: none;
}
body.theme-cream .aboutstrip::before {
  width: 180px; height: 180px;
  background: var(--sage);
  top: -60px; right: 6vw;
}
body.theme-cream .aboutstrip::after {
  width: 120px; height: 120px;
  background: var(--coral);
  bottom: -40px; left: 4vw;
}
body.theme-cream .aboutstrip .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
  padding-bottom: 0;
}
body.theme-cream .aboutstrip__media {
  position: relative;
  display: flex;
  justify-content: center;
}

/* Circular auto-cycling portrait slideshow */
body.theme-cream .portrait-cycle {
  position: relative;
  width: min(520px, 100%);
  height: min(520px, 90vw);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  border: 8px solid #FFFBF2;
  box-shadow: 0 30px 60px -30px rgba(107, 74, 51, 0.4);
  background: var(--bg-warm);
}
body.theme-cream .portrait-cycle::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(178, 90, 50, 0.15);
  z-index: 3;
  pointer-events: none;
}
body.theme-cream .pc__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  border-radius: 50%;
  opacity: 0;
  animation: pc-cycle 18s cubic-bezier(.4, 0, .2, 1) infinite;
  will-change: opacity;
}
body.theme-cream .pc__slide:nth-child(1) { animation-delay: 0s; }
body.theme-cream .pc__slide:nth-child(2) { animation-delay: -12s; }
body.theme-cream .pc__slide:nth-child(3) { animation-delay: -6s; }

@keyframes pc-cycle {
  0%   { opacity: 0; }
  5%   { opacity: 1; }
  33%  { opacity: 1; }
  38%  { opacity: 0; }
  100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  body.theme-cream .pc__slide { animation: none; }
  body.theme-cream .pc__slide:nth-child(1) { opacity: 1; }
}
body.theme-cream .aboutstrip__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
}
body.theme-cream .aboutstrip__copy { color: var(--ink); margin: 0; }
body.theme-cream .aboutstrip em { color: var(--accent); }
body.theme-cream .aboutstrip .btn--light { background: var(--ink); color: #fff; align-self: flex-start; }
body.theme-cream .aboutstrip .btn--light:hover { background: var(--sage-deep); color: #fff; }

@media (max-width: 800px) {
  body.theme-cream .aboutstrip .container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  body.theme-cream .aboutstrip__media img { transform: none; }
}

/* ============================== HOVER COLOR — sage-deep as secondary hover ============================== */
body.theme-cream .nav__links a:hover,
body.theme-cream .nav__links a:focus-visible { color: var(--sage-deep); }
body.theme-cream .nav__links a:hover::after,
body.theme-cream .nav__links a:focus-visible::after { background: var(--sage-deep); }
body.theme-cream .nav__social a:hover { color: var(--sage-deep); }
body.theme-cream .btn--light:hover { background: var(--sage-deep); color: #fff; }
body.theme-cream .rowlist__title a:hover { color: var(--sage-deep); }
body.theme-cream .case__link:hover { color: var(--sage-deep); }
body.theme-cream .whobuildfor__list li a:hover {
  border-color: var(--sage-deep);
  background: rgba(169, 178, 150, 0.15);
}
body.theme-cream .whobuildfor__list li a:hover .whobuildfor__icon { color: var(--sage-deep); }
body.theme-cream .footer a:hover { color: var(--sage); }
body.theme-cream .contact__card:hover { border-color: var(--sage); }

/* ============================== WORDWALL ============================== */
body.theme-cream .wordwall { background: var(--bg); color: var(--ink); }
body.theme-cream .wordwall__row--italic .wordwall__track em {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--accent);
}

/* ============================== SERVICES ============================== */
body.theme-cream .services { background: var(--bg); }

/* ============================== PRICING GATE (PDF download) ============================== */
body.theme-cream .pricing {
  background: var(--bg);
  padding: 100px 0 120px;
  position: relative;
}
body.theme-cream .pricing::before {
  content: "";
  position: absolute;
  width: 260px; height: 260px;
  background: var(--sage);
  border-radius: 50%;
  top: 40px; right: -100px;
  opacity: 0.45;
  z-index: 0;
}
body.theme-cream .pricing::after {
  content: "";
  position: absolute;
  width: 140px; height: 140px;
  background: var(--coral);
  border-radius: 50%;
  bottom: 60px; left: -60px;
  opacity: 0.5;
  z-index: 0;
}
body.theme-cream .pricing .container { position: relative; z-index: 1; }
body.theme-cream .pricing__gate-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
body.theme-cream .pricing__head {
  max-width: 560px;
  margin: 0;
  text-align: left;
}
body.theme-cream .pricing__head .section__eyebrow,
body.theme-cream .pricing__head .section__title,
body.theme-cream .pricing__head .section__intro { text-align: left; }
body.theme-cream .pricing__gate-list {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
}
body.theme-cream .pricing__gate-list li {
  position: relative;
  padding: 10px 0 10px 26px;
  font-size: 15px;
  color: var(--ink-dim);
  border-bottom: 1px dashed rgba(178, 90, 50, 0.2);
}
body.theme-cream .pricing__gate-list li:last-child { border-bottom: 0; }
body.theme-cream .pricing__gate-list li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 10px;
  color: var(--terracotta);
  font-weight: 700;
}

body.theme-cream .pricing__gate-card {
  background: #FFFBF2;
  border: 1px solid rgba(178, 90, 50, 0.18);
  border-radius: 20px;
  padding: 40px 36px;
  box-shadow: none;
  position: relative;
}
body.theme-cream .pgate__eyebrow {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--terracotta);
  margin: 0 0 8px;
  letter-spacing: 0;
}
body.theme-cream .pgate__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 32px;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 12px;
}
body.theme-cream .pgate__title em {
  font-style: italic;
  color: var(--accent);
  font-weight: 500;
}
body.theme-cream .pgate__sub {
  font-size: 15px;
  color: var(--ink-dim);
  line-height: 1.55;
  margin: 0 0 28px;
}
body.theme-cream .pgate__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
body.theme-cream .pgate__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
body.theme-cream .pgate__label {
  font-size: 13px;
  color: var(--ink-dim);
  font-weight: 600;
  letter-spacing: 0.02em;
}
body.theme-cream .pgate__form input[type="text"],
body.theme-cream .pgate__form input[type="email"] {
  font-family: var(--sans);
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid rgba(178, 90, 50, 0.25);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
body.theme-cream .pgate__form input:focus {
  outline: none;
  border-color: var(--sage-deep);
  box-shadow: 0 0 0 3px rgba(127, 139, 112, 0.18);
}
body.theme-cream .pgate__submit {
  margin-top: 8px;
  padding: 14px 22px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background .2s ease, transform .2s ease;
}
body.theme-cream .pgate__submit:hover:not(:disabled) { background: var(--sage-deep); transform: translateY(-1px); }
body.theme-cream .pgate__submit:disabled { opacity: 0.6; cursor: wait; }
body.theme-cream .pgate__note {
  font-size: 12px;
  color: var(--ink-dim);
  text-align: center;
  margin: 4px 0 0;
}
body.theme-cream .pgate__error {
  color: #C13E1B;
  font-size: 13px;
  margin: 4px 0 0;
  min-height: 1em;
}
body.theme-cream .pgate__success { text-align: center; padding: 8px 0; }
body.theme-cream .pgate__success-eyebrow {
  font-family: var(--serif);
  font-style: italic;
  color: var(--sage-deep);
  font-size: 14px;
  margin: 0 0 8px;
}
body.theme-cream .pgate__success-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 28px;
  color: var(--ink);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
body.theme-cream .pgate__success-sub {
  color: var(--ink-dim);
  font-size: 15px;
  margin: 0 0 24px;
}
body.theme-cream .pgate__download {
  background: var(--accent);
  color: #fff;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
body.theme-cream .pgate__download:hover { background: var(--sage-deep); }

@media (max-width: 900px) {
  body.theme-cream .pricing__gate-grid { grid-template-columns: 1fr; gap: 40px; }
  body.theme-cream .pricing__gate-card { padding: 32px 24px; }
}
body.theme-cream .pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}
body.theme-cream .pcard {
  background: #FFFBF2;
  border: 1px solid rgba(178, 90, 50, 0.15);
  border-radius: 20px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform .3s ease, box-shadow .3s ease;
}
body.theme-cream .pcard:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(107, 74, 51, 0.25);
}
body.theme-cream .pcard--popular {
  border: 2px solid var(--accent);
  background: #FFF6EA;
}
body.theme-cream .pcard__badge {
  position: absolute;
  top: -1px; right: 20px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 0 0 8px 8px;
  font-weight: 600;
}
body.theme-cream .pcard__num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--ink-dim);
  font-size: 15px;
  margin: 0 0 4px;
}
body.theme-cream .pcard__name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 36px;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 12px;
  line-height: 1;
}
body.theme-cream .pcard__tag {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-dim);
  font-size: 15px;
  margin: 0 0 24px;
  line-height: 1.5;
}
body.theme-cream .pcard__price {
  font-size: 42px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0 0 4px;
}
body.theme-cream .pcard__price small {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-dim);
  letter-spacing: 0;
}
body.theme-cream .pcard__price-note {
  font-size: 13px;
  color: var(--ink-dim);
  margin: 0 0 24px;
}
body.theme-cream .pcard ul {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  flex: 1;
}
body.theme-cream .pcard li {
  font-size: 14px;
  color: var(--ink);
  padding: 8px 0 8px 26px;
  position: relative;
  line-height: 1.5;
  border-bottom: 1px dashed rgba(178, 90, 50, 0.15);
}
body.theme-cream .pcard li:last-child { border-bottom: 0; }
body.theme-cream .pcard li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 8px;
  color: var(--terracotta);
  font-weight: 700;
}
body.theme-cream .pcard__bestfor {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  color: var(--ink-dim);
  background: rgba(169, 178, 150, 0.18);
  padding: 12px 14px;
  border-radius: 10px;
  border-left: 3px solid var(--sage-deep);
  margin: 0 0 20px;
  line-height: 1.5;
}
body.theme-cream .pcard--essentials .pcard__bestfor {
  background: rgba(169, 178, 150, 0.18);
  border-left-color: var(--sage-deep);
}
body.theme-cream .pcard--grow .pcard__bestfor {
  background: rgba(244, 183, 154, 0.35);
  border-left-color: var(--coral-deep);
}
body.theme-cream .pcard--scale .pcard__bestfor {
  background: rgba(178, 90, 50, 0.12);
  border-left-color: var(--terracotta);
}
body.theme-cream .pricing__note {
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-dim);
  font-size: 15px;
  margin: 24px 0 0;
}
body.theme-cream .pcard .btn--light {
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 14px;
  text-align: center;
  width: 100%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}
body.theme-cream .pcard .btn--light:hover { background: var(--accent); }
body.theme-cream .pcard--popular .btn--light { background: var(--accent); }
body.theme-cream .pcard--popular .btn--light:hover { background: var(--accent-dark); }

@media (max-width: 900px) {
  body.theme-cream .pricing__grid { grid-template-columns: 1fr; }
}

/* ============================== WHOBUILDFOR ============================== */
body.theme-cream .whobuildfor {
  background: var(--bg-warm);
  padding: 110px 0 100px;
}
body.theme-cream .whobuildfor__list li a {
  position: relative;
  background: #FFFBF2;
  border: 1px solid rgba(178, 90, 50, 0.15);
  border-radius: 14px;
  padding-right: 44px;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
/* Slide-in arrow (top right) — same behaviour as rowlist */
body.theme-cream .whobuildfor__list li a::after {
  content: "→";
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 18px;
  font-weight: 600;
  color: var(--sage-deep);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity .25s ease, transform .25s ease;
}
body.theme-cream .whobuildfor__list li a:hover {
  transform: translateY(-2px);
  border-color: var(--sage-deep);
  background: rgba(169, 178, 150, 0.18);
}
body.theme-cream .whobuildfor__list li a:hover::after {
  opacity: 1;
  transform: translateX(4px);
}
body.theme-cream .whobuildfor__icon { color: var(--terracotta); }

/* ============================== SERVICES ROWLIST — align hover with whobuildfor ============================== */
body.theme-cream .rowlist__item::before { background: rgba(169, 178, 150, 0.18); }
body.theme-cream .rowlist__item:hover { border-color: var(--sage-deep); }
body.theme-cream .rowlist__title a::after { color: var(--sage-deep); }

/* ============================== STATS ============================== */
body.theme-cream .stats { background: var(--bg-warm); }
body.theme-cream .stat__num { color: var(--coral-deep); }

/* ============================== WORK / CASES ============================== */
body.theme-cream .work { background: var(--bg); }

/* ============================== FAQ ============================== */
body.theme-cream .faq { background: var(--bg-warm); }
body.theme-cream .faq__item { background: #FFFBF2; }

/* ============================== CONTACT ============================== */
body.theme-cream .contact {
  background: var(--brown);
  color: #F7EFDD;
}
body.theme-cream .contact .section__eyebrow { color: rgba(247, 239, 221, 0.75); border-bottom-color: rgba(247, 239, 221, 0.3); }
body.theme-cream .contact .section__eyebrow::before { background: var(--coral); }
body.theme-cream .contact em { color: var(--coral); }

/* Contact portrait — sits above the headline, straight and generous */
body.theme-cream .contact__portrait {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 520px;
  margin: 0 auto 48px;
  transform: none;
}
body.theme-cream .contact__portrait img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 8px solid #F7EFDD;
  box-shadow: 0 24px 48px -22px rgba(0, 0, 0, 0.4);
}
body.theme-cream .contact__portrait-caption {
  font-family: var(--serif);
  font-style: italic;
  color: var(--coral);
  font-size: 16px;
  letter-spacing: 0.02em;
}
@media (max-width: 800px) {
  body.theme-cream .contact__portrait { max-width: 360px; margin-bottom: 32px; }
  body.theme-cream .contact__portrait img { border-width: 6px; }
}

/* ============================== FOOTER ============================== */
body.theme-cream .footer { background: var(--ink); color: #ffffff; }
body.theme-cream .footer__col a { color: #ffffff; }
body.theme-cream .footer__col a:hover { color: var(--coral); border-bottom-color: var(--coral); }
body.theme-cream .footer__head { color: rgba(255, 255, 255, 0.55); }
body.theme-cream .footer__strip { color: rgba(255, 255, 255, 0.7); }

/* ============================== PILL / BUTTONS ============================== */
body.theme-cream .btn--light {
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
}
body.theme-cream .btn--light:hover { background: var(--accent); }

/* ============================================================
   MOBILE OPTIMISATIONS ( ≤ 800 / 600 / 380 )
   ============================================================ */

/* Hide bullets on all decorated lists (base styles.css doesn't set list-style:none) */
body.theme-cream .faq__list,
body.theme-cream .whobuildfor__list,
body.theme-cream .footer ul,
body.theme-cream .pricing__gate-list,
body.theme-cream .rowlist {
  list-style: none;
  padding-left: 0;
}

@media (max-width: 800px) {
  /* HERO — tighter display type so it doesn't wall off */
  body.theme-cream .hero .pill { margin-bottom: 32px; }
  body.theme-cream .hero__title {
    font-size: clamp(34px, 8.5vw, 52px);
    line-height: 1.08;
    letter-spacing: -0.015em;
    margin: 0 0 18px;
  }
  body.theme-cream .hero__sub { font-size: 15px; line-height: 1.6; }

  /* SECTION TITLES — restrained on phones */
  body.theme-cream .section__title,
  body.theme-cream .faq__head h2,
  body.theme-cream .contact h2 {
    font-size: clamp(28px, 7.5vw, 42px);
    line-height: 1.1;
    letter-spacing: -0.015em;
  }
  body.theme-cream .case__title {
    font-size: clamp(22px, 5.8vw, 30px);
    line-height: 1.2;
    letter-spacing: 0;
  }
  body.theme-cream .section__eyebrow {
    font-size: 14px;
    padding-bottom: 10px;
    margin-bottom: 20px;
  }

  /* ABOUT STRIP — portrait + copy stacked, tighter CTA */
  body.theme-cream .aboutstrip { padding: 48px 0 64px; }
  body.theme-cream .aboutstrip .container {
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: start;
  }
  body.theme-cream .aboutstrip__media { max-width: 460px; margin: 0 auto; }
  body.theme-cream .aboutstrip__media img { transform: none; border-width: 4px; }
  body.theme-cream .aboutstrip__content { gap: 24px; }
  body.theme-cream .aboutstrip .btn--light {
    align-self: stretch;
    text-align: center;
    justify-content: center;
    width: 100%;
  }
  body.theme-cream .aboutstrip::before { width: 120px; height: 120px; top: -40px; right: -20px; }
  body.theme-cream .aboutstrip::after { width: 80px; height: 80px; bottom: -20px; left: -20px; }

  /* PRICING GATE — single column, full-width submit */
  body.theme-cream .pricing { padding: 64px 0 80px; }
  body.theme-cream .pricing__gate-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  body.theme-cream .pricing__head { max-width: none; }
  body.theme-cream .pricing__gate-card {
    padding: 28px 22px;
    border-radius: 16px;
  }
  body.theme-cream .pgate__title { font-size: 26px; line-height: 1.15; }
  body.theme-cream .pgate__sub { font-size: 14px; }
  body.theme-cream .pgate__submit { width: 100%; padding: 15px 18px; }
  body.theme-cream .pricing__gate-list li { font-size: 14px; padding: 9px 0 9px 24px; }
  body.theme-cream .pricing::before { width: 160px; height: 160px; right: -80px; }
  body.theme-cream .pricing::after { width: 90px; height: 90px; left: -40px; }

  /* WHOBUILDFOR — tighter cards on mobile */
  body.theme-cream .whobuildfor { padding: 56px 0 64px; }
  body.theme-cream .whobuildfor__list li a {
    padding: 20px 18px !important;
    border-radius: 12px;
  }

  /* STATS — tighter vertical rhythm */
  body.theme-cream .stats { padding: 56px 0; }

  /* WORK / CASES — case number circle scales down */
  body.theme-cream .work { padding: 64px 0 40px; }

  /* FAQ */
  body.theme-cream .faq { padding: 56px 0; }
  body.theme-cream .faq__item { padding: 0 16px; border-radius: 10px; margin-bottom: 6px; }

  /* CONTACT — headline reads on 2 lines */
  body.theme-cream .contact { padding: 64px 0 72px; }
  body.theme-cream .contact h2 { max-width: 20ch; margin-left: auto; margin-right: auto; }

  /* PGATE typography breathe */
  body.theme-cream .pgate__eyebrow { font-size: 13px; }
}

/* Ultra-small phones */
@media (max-width: 380px) {
  body.theme-cream .hero__title { font-size: clamp(30px, 9vw, 42px); }
  body.theme-cream .section__title { font-size: clamp(26px, 7.5vw, 34px); }
  body.theme-cream .pricing__gate-card { padding: 24px 18px; }
  body.theme-cream .pgate__title { font-size: 24px; }
  body.theme-cream .pgate__form input[type="text"],
  body.theme-cream .pgate__form input[type="email"] { padding: 11px 12px; font-size: 14px; }
}

/* ================================================================
   MOBILE — case studies, wordwall, spacing, portrait sizing pass 2
   ================================================================ */
@media (max-width: 800px) {
  /* CASE STUDIES — disable sticky stack on mobile (was causing overlap) */
  body.theme-cream .cases-stack { display: flex; flex-direction: column; gap: 16px; }
  body.theme-cream .case {
    position: relative !important;
    top: auto !important;
    min-height: auto !important;
    padding: 40px 20px;
    border-radius: 20px;
    box-shadow: 0 12px 30px -18px rgba(107, 74, 51, 0.25);
    grid-template-columns: 1fr;
    gap: 20px;
    background: #FFFBF2;
  }
  body.theme-cream .case__num { width: 68px; height: 68px; }
  body.theme-cream .case__body > p { font-size: 15px; line-height: 1.65; }
  body.theme-cream .case__highlights { margin-top: 20px; gap: 14px; }
  body.theme-cream .case__highlights > div { padding: 12px 0; border-top: 1px dashed rgba(178, 90, 50, 0.2); }
  body.theme-cream .case__highlights > div:first-child { border-top: 0; }
  body.theme-cream .case__highlights strong { font-size: 24px; }

  /* WORDWALL — smaller so single line fits, less overwhelming */
  body.theme-cream .wordwall__track { font-size: clamp(28px, 7vw, 44px); }

  /* ABOUTSTRIP — smaller circular portrait so page doesn't feel top-heavy */
  body.theme-cream .aboutstrip__media {
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
  }
  /* Explicit width AND height for mobile Safari without aspect-ratio support */
  body.theme-cream .portrait-cycle {
    width: min(340px, calc(100vw - 40px));
    height: min(340px, calc(100vw - 40px));
    border-width: 6px;
  }

  /* CONTACT — portrait smaller, contact cards single column already handled */
  body.theme-cream .contact__portrait { max-width: 220px; margin-bottom: 24px; }

  /* Ensure horizontal overflow is contained */
  body.theme-cream .hero,
  body.theme-cream .aboutstrip,
  body.theme-cream .pricing,
  body.theme-cream .contact { overflow-x: hidden; }
}

/* Ultra-small phones — case stack polish */
@media (max-width: 380px) {
  body.theme-cream .case { padding: 32px 16px; }
  body.theme-cream .case__title { font-size: 22px; }
  body.theme-cream .aboutstrip__media { max-width: 300px; }
  body.theme-cream .contact__portrait { max-width: 200px; }
  body.theme-cream .wordwall__track { font-size: 26px; }
}

/* ================================================================
   SUBPAGES — Services, About, Contact, Industries, Guides
   Extends the cream theme onto all standalone /*/index.html pages
   ================================================================ */

body.theme-cream .subpage { background: var(--bg); }

/* Breadcrumb — italic serif, terracotta */
body.theme-cream .subpage__breadcrumb {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-dim);
  letter-spacing: 0;
  font-size: 15px;
}
body.theme-cream .subpage__breadcrumb a { color: var(--terracotta); }
body.theme-cream .subpage__breadcrumb a:hover { color: var(--sage-deep); text-decoration: underline; }

/* Big page title — full serif with italic orange accent (matches PDF) */
body.theme-cream .subpage__title {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.05;
}
body.theme-cream .subpage__title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: -0.005em;
}

/* Lede */
body.theme-cream .subpage__lede { color: var(--ink-dim); }

/* Byline dot */
body.theme-cream .subpage__byline::before { background: var(--terracotta); }
body.theme-cream .subpage__byline a { color: var(--terracotta); }
body.theme-cream .subpage__byline a:hover { color: var(--sage-deep); }

/* Definition callout — sage tint, terracotta bar */
body.theme-cream .subpage__definition {
  background: rgba(169, 178, 150, 0.14);
  border: 1px solid rgba(178, 90, 50, 0.18);
  border-left: 4px solid var(--terracotta);
}
body.theme-cream .subpage__definition strong { color: var(--ink); }

/* Tables */
body.theme-cream .subpage__table {
  background: #FFFBF2;
  border-color: rgba(178, 90, 50, 0.18);
}
body.theme-cream .subpage__table th,
body.theme-cream .subpage__table td { border-bottom-color: rgba(178, 90, 50, 0.15); }
body.theme-cream .subpage__table thead th {
  background: rgba(169, 178, 150, 0.2);
  color: var(--ink);
}
body.theme-cream .subpage__table tbody td:last-child { color: var(--terracotta); }

/* Body headings — serif, tighter tracking */
body.theme-cream .subpage__body h2 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.015em;
}
body.theme-cream .subpage__body h2 em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
}
body.theme-cream .subpage__body h3 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ink);
}
body.theme-cream .subpage__body p,
body.theme-cream .subpage__body li { color: var(--ink-dim); }
body.theme-cream .subpage__body strong { color: var(--ink); }
body.theme-cream .subpage__body a { color: var(--terracotta); text-decoration-color: rgba(178, 90, 50, 0.4); }
body.theme-cream .subpage__body a:hover { color: var(--sage-deep); }

/* Services process cards — editorial PDF-style numbered cards */
body.theme-cream .svc-process { counter-reset: svc-step; }
body.theme-cream .svc-process__step {
  position: relative;
  background: #FFFBF2;
  border: 1px solid rgba(178, 90, 50, 0.18);
  border-radius: 20px;
  padding: 32px 26px 28px;
  gap: 20px;
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, background .25s ease, box-shadow .25s ease;
}
/* Italic serif number in top-right, PDF-style */
body.theme-cream .svc-process__step::before {
  counter-increment: svc-step;
  content: "0" counter(svc-step);
  position: absolute;
  top: 22px;
  right: 26px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  color: var(--terracotta);
  letter-spacing: 0;
  line-height: 1;
  opacity: 0.9;
}
/* Hairline divider between number and content */
body.theme-cream .svc-process__step::after {
  content: "";
  position: absolute;
  top: 68px;
  left: 26px;
  right: 26px;
  height: 1px;
  background: rgba(178, 90, 50, 0.2);
}
body.theme-cream .svc-process__step:hover {
  transform: translateY(-3px);
  border-color: var(--sage-deep);
  background: rgba(169, 178, 150, 0.12);
  box-shadow: 0 20px 40px -20px rgba(107, 74, 51, 0.28);
}
body.theme-cream .svc-process__step:hover::before { color: var(--sage-deep); }

/* Icon becomes a soft circular badge in sage tint (was hard orange square) */
body.theme-cream .svc-process__icon {
  width: 40px;
  height: 40px;
  background: rgba(169, 178, 150, 0.28);
  border-radius: 50%;
  color: var(--terracotta);
  margin-top: 20px;
}
body.theme-cream .svc-process__step:hover .svc-process__icon {
  background: rgba(127, 139, 112, 0.22);
  color: var(--sage-deep);
}
body.theme-cream .svc-process__icon svg { width: 20px; height: 20px; }

/* Text: title becomes serif, description stays sans */
body.theme-cream .svc-process__text strong {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 10px;
}
body.theme-cream .svc-process__text p {
  color: var(--ink-dim);
  font-size: 14px;
  line-height: 1.6;
}

/* Dark stats strip (custom-websites page etc.) — swap black for brown */
body.theme-cream .cw-stats { background: var(--brown); }

/* Button variants used on subpages */
body.theme-cream .btn--accent { background: var(--accent); color: #fff; }
body.theme-cream .btn--accent:hover { background: var(--sage-deep); }
body.theme-cream .btn--outline-dark {
  background: transparent;
  border: 1px solid rgba(178, 90, 50, 0.35);
  color: var(--ink);
}
body.theme-cream .btn--outline-dark:hover {
  border-color: var(--sage-deep);
  color: var(--sage-deep);
}

/* Subpage cards (generic) — used across industry pages */
body.theme-cream .subpage__cards a,
body.theme-cream .subpage__cards > div,
body.theme-cream .subpage__cards > li {
  background: #FFFBF2;
  border: 1px solid rgba(178, 90, 50, 0.15);
  border-radius: 14px;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
body.theme-cream .subpage__cards a:hover {
  transform: translateY(-2px);
  border-color: var(--sage-deep);
  background: rgba(169, 178, 150, 0.15);
}

/* Contact page form (uses .cform on the standalone contact/) */
body.theme-cream .cform input,
body.theme-cream .cform textarea,
body.theme-cream .cform select {
  background: #FFFBF2;
  border: 1px solid rgba(178, 90, 50, 0.22);
  color: var(--ink);
}
body.theme-cream .cform input:focus,
body.theme-cream .cform textarea:focus,
body.theme-cream .cform select:focus {
  border-color: var(--sage-deep);
  outline: none;
  box-shadow: 0 0 0 3px rgba(127, 139, 112, 0.18);
}
body.theme-cream .cform label { color: var(--ink-dim); }

/* Landing-page trade / service pill row */
body.theme-cream .trade-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0 0 64px;
}
body.theme-cream .trade-pills li {
  padding: 10px 18px;
  border-radius: 999px;
  background: #FFFBF2;
  border: 1px solid rgba(178, 90, 50, 0.2);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
body.theme-cream .trade-pills li:hover {
  background: rgba(169, 178, 150, 0.25);
  border-color: var(--sage-deep);
  color: var(--sage-deep);
}

/* Feature card grid — 3 columns of landing-page feature blocks */
body.theme-cream .cw-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 0 0 72px;
}
body.theme-cream .cw-feature-grid > div {
  background: #FFFBF2;
  border: 1px solid rgba(178, 90, 50, 0.18);
  border-radius: 18px;
  padding: 28px 24px;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
body.theme-cream .cw-feature-grid > div:hover {
  transform: translateY(-3px);
  border-color: var(--sage-deep);
  background: rgba(169, 178, 150, 0.12);
}
body.theme-cream .cw-feature-grid strong {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 19px;
  color: var(--ink);
  display: block;
  margin-bottom: 10px;
  line-height: 1.2;
}
body.theme-cream .cw-feature-grid p {
  font-size: 14px;
  color: var(--ink-dim);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 900px) {
  body.theme-cream .cw-feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  body.theme-cream .cw-feature-grid { grid-template-columns: 1fr; }
}

/* Subpage hero phone mockup — floats top-right, subtle drift */
body.theme-cream .subpage__hero { position: relative; }
body.theme-cream .subpage__hero-mock {
  position: absolute;
  top: 40px;
  right: 0;
  width: 240px;
  z-index: 1;
  pointer-events: none;
  animation: mock-float 6s ease-in-out infinite alternate;
}
body.theme-cream .subpage__hero-mock img {
  width: 100%;
  height: auto;
  display: block;
  transform: rotate(-3deg);
  transform-origin: center;
}
@keyframes mock-float {
  from { transform: translateY(0); }
  to { transform: translateY(-10px); }
}
@media (min-width: 1100px) {
  body.theme-cream .subpage__hero-mock ~ .subpage__title,
  body.theme-cream .subpage__hero .subpage__title { max-width: 760px; }
}

/* Mobile tuning for subpages */
@media (max-width: 800px) {
  body.theme-cream .subpage__hero-mock {
    position: relative;
    top: auto;
    right: auto;
    width: 200px;
    margin: 32px auto 0;
    animation: none;
  }
  body.theme-cream .subpage__hero-mock img { transform: none; }
  body.theme-cream .subpage { padding: 130px var(--gutter) 60px; }
  body.theme-cream .subpage__title {
    font-size: clamp(34px, 8vw, 56px);
    letter-spacing: -0.015em;
  }
  body.theme-cream .subpage__lede { font-size: 16px; margin-bottom: 40px; }
  body.theme-cream .subpage__body h2 { font-size: clamp(24px, 6.5vw, 32px); margin-top: 40px; }
  body.theme-cream .subpage__body h3 { font-size: 19px; margin-top: 28px; }
  body.theme-cream .subpage__body { font-size: 16px; }
  body.theme-cream .subpage__definition { padding: 18px 20px; font-size: 15px; }
  body.theme-cream .svc-process { gap: 12px; }
  body.theme-cream .svc-process__step { padding: 22px 18px; }
  body.theme-cream .cw-stats { padding: 40px 22px; border-radius: 16px; }
}
