/* ——— SMITH & ARNOLD CASE STUDY PAGE ——— */
.smith-arnold-page {
  background: var(--white);
  color: var(--light-ink);
  --sa-cream: #fbf5f4;
  --sa-brown: #5c3d2e;
  --sa-brown-dark: #3d2b1f;
  --sa-tag-bg: #fbf5f4;
}

.smith-arnold-page .scroll-progress {
  background: linear-gradient(90deg, var(--sa-brown-dark) 0%, var(--sa-brown) 100%);
}

/* Hero */
.sa-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--black);
}

.sa-hero__banner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  z-index: 0;
  filter: grayscale(100%);
}

.sa-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.25) 45%, rgba(0, 0, 0, 0.08) 100%);
  z-index: 1;
  pointer-events: none;
}

.sa-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 34%;
  background: linear-gradient(180deg, transparent 0%, rgba(251, 245, 244, 0.45) 55%, var(--sa-cream) 100%);
  z-index: 1;
  pointer-events: none;
}

.sa-hero .cnav {
  position: relative;
  z-index: 2;
}

.sa-hero__brand {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem clamp(1.5rem, 4vw, 3.5rem) 8rem;
}

.sa-hero__logo {
  width: min(520px, 88vw);
  margin-bottom: 1.25rem;
  filter: drop-shadow(0 8px 32px rgba(0, 0, 0, 0.35));
}

.sa-hero__tagline {
  font-size: clamp(0.95rem, 1.8vw, 1.12rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  max-width: 28rem;
  line-height: 1.55;
}

/* Body wrapper */
.sa-body {
  background: var(--sa-cream);
}

.sa-body > section {
  position: relative;
}

/* Overview */
.sa-overview {
  background: var(--sa-cream);
  padding: 0 clamp(1.25rem, 4vw, 3.5rem) 5rem;
}

.sa-overview__inner {
  max-width: 52rem;
  margin: 0 auto;
  text-align: center;
}

.sa-overview h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}

.sa-overview__desc {
  font-size: clamp(0.92rem, 1.5vw, 1rem);
  font-weight: 500;
  line-height: 1.75;
  color: var(--light-muted);
  margin-bottom: 1.5rem;
}

.sa-overview__desc:last-of-type {
  margin-bottom: 2.25rem;
}

.sa-overview__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
}

.sa-overview__tags span {
  padding: 0.55rem 1.15rem;
  background: var(--white);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
}

/* The Core Problem
   Design baseline (1920px artboard):
   Cards — 493×266 (row 1), 493×299 (row 2), gap 31×26px, radius 40px, bg #FBF5F4
   Book  — 1090×726px, overlaps grid ~40px from the left
*/
.sa-problem {
  --sa-problem-pad-x: clamp(1.25rem, 4vw, 3.5rem);
  --sa-book-half-w: clamp(200px, 28.4vw, 545px);
  --sa-book-half-h: calc(var(--sa-book-half-w) * 726 / 545);
  position: relative;
  background: var(--white);
  padding: 5rem var(--sa-problem-pad-x) 6rem;
  padding-right: 0;
  overflow: hidden;
}

.sa-problem__head {
  max-width: min(100%, 1380px);
  margin: 0 auto 3rem;
  padding-right: var(--sa-problem-pad-x);
}

.sa-problem__head h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.sa-problem__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--sa-book-half-w);
  align-items: center;
  gap: 0;
  max-width: min(100%, 1380px);
  margin: 0 auto;
  padding-right: 0;
}

.sa-problem__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  column-gap: clamp(12px, 1.61vw, 31px);
  row-gap: clamp(10px, 1.35vw, 26px);
  width: 100%;
  max-width: 1017px;
  padding-right: var(--sa-problem-pad-x);
}

.sa-problem__card {
  box-sizing: border-box;
  padding: clamp(1.25rem, 1.8vw, 2rem) clamp(1.25rem, 1.9vw, 2.1rem);
  border-radius: 40px;
  background: #fbf5f4;
  font-size: clamp(0.78rem, 0.95vw, 0.92rem);
  font-weight: 500;
  line-height: 1.62;
  color: var(--light-muted);
}

.sa-problem__card h3 {
  font-size: clamp(0.88rem, 1.05vw, 1.05rem);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.65rem;
  line-height: 1.35;
}

.sa-problem__books {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  overflow: hidden;
  width: var(--sa-book-half-w);
  height: var(--sa-book-half-h);
  margin: 0;
  z-index: 2;
  pointer-events: none;
}

.sa-problem__books img {
  width: 200%;
  max-width: none;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: right center;
  filter: drop-shadow(0 20px 40px rgba(61, 43, 31, 0.15));
}

/* The Vision */
.sa-vision {
  background: var(--white);
  padding: 0 clamp(1.25rem, 4vw, 3.5rem) clamp(5rem, 10vw, 8rem);
}

.sa-vision__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 4rem);
  max-width: var(--max);
  margin: 0 auto;
}

.sa-vision__laptop {
  margin: 0;
  filter: drop-shadow(0 24px 48px rgba(15, 30, 60, 0.1));
}

.sa-vision__laptop img {
  width: 100%;
  display: block;
}

.sa-vision__copy h2 {
  font-size: clamp(2rem, 4vw, 2.65rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.sa-vision__lead {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.55;
  color: var(--ink);
  margin-bottom: 1.35rem;
}

.sa-vision__body {
  font-size: clamp(0.88rem, 1.35vw, 0.96rem);
  font-weight: 500;
  line-height: 1.75;
  color: var(--light-muted);
}

/* Core Features */
.sa-features {
  background: var(--sa-cream);
  padding: 5rem clamp(1.25rem, 4vw, 3.5rem) 0;
}

.sa-features__head {
  text-align: center;
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}

.sa-features__head h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.sa-features__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3rem);
  max-width: var(--max);
  margin: 0 auto;
}

.sa-features__item {
  text-align: center;
}

.sa-features__icon {
  width: 3.25rem;
  height: 3.25rem;
  object-fit: contain;
  margin: 0 auto 1.15rem;
}

.sa-features__item h3 {
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.65rem;
}

.sa-features__item p {
  font-size: clamp(0.84rem, 1.25vw, 0.92rem);
  font-weight: 500;
  line-height: 1.68;
  color: var(--light-muted);
  max-width: 18rem;
  margin: 0 auto;
}

/* Laptop straddles cream (top) + white (bottom) at screen midpoint */
.sa-features__showcase-wrap {
  --sa-showcase-w: min(920px, 92vw);
  --sa-laptop-aspect: 920 / 1532;
  --sa-laptop-hinge: 0.5;
  --sa-showcase-pad-top: clamp(2rem, 4vw, 3rem);
  position: relative;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding: var(--sa-showcase-pad-top) clamp(1.25rem, 4vw, 3.5rem) clamp(4rem, 8vw, 6rem);
  background: var(--white);
}

.sa-features__showcase-wrap::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: calc(
    var(--sa-showcase-pad-top) + var(--sa-showcase-w) * var(--sa-laptop-aspect) * var(--sa-laptop-hinge)
  );
  background: var(--sa-cream);
  z-index: 0;
}

.sa-features__showcase {
  position: relative;
  z-index: 1;
  max-width: var(--sa-showcase-w);
  margin: 0 auto;
  filter: drop-shadow(0 28px 56px rgba(15, 30, 60, 0.1));
}

.sa-features__showcase img {
  width: 100%;
  display: block;
}

/* How We Brought It to Life — Timeline */
.sa-built {
  background: var(--white);
  padding: clamp(1rem, 2vw, 2rem) clamp(1.25rem, 4vw, 3.5rem) 6rem;
}

.sa-built__head {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto clamp(3rem, 6vw, 4.5rem);
}

.sa-built__head h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.sa-built__lead {
  font-size: clamp(0.92rem, 1.5vw, 1rem);
  font-weight: 500;
  line-height: 1.75;
  color: var(--light-muted);
}

.sa-timeline {
  position: relative;
  max-width: 64rem;
  margin: 0 auto;
  padding: 1rem 0;
}

.sa-timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  background: repeating-linear-gradient(
    180deg,
    #d4ccc8 0,
    #d4ccc8 6px,
    transparent 6px,
    transparent 14px
  );
  z-index: 1;
}

.sa-timeline__item {
  --sa-timeline-pad-y: clamp(1.75rem, 3vw, 2.5rem);
  --sa-timeline-title: clamp(1.05rem, 1.6vw, 1.2rem);
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: var(--sa-timeline-pad-y) 0;
  z-index: 1;
}

.sa-timeline__item::after {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(var(--sa-timeline-pad-y) + var(--sa-timeline-title) * 1.3 / 2);
  width: clamp(16px, 1.25vw, 20px);
  height: clamp(16px, 1.25vw, 20px);
  border-radius: 50%;
  background: var(--sa-brown);
  transform: translate(-50%, -50%);
  z-index: 2;
}

.sa-timeline__content {
  max-width: clamp(26rem, 34vw, 32rem);
}

.sa-timeline__item--right .sa-timeline__content {
  grid-column: 2;
  text-align: left;
}

.sa-timeline__item--left .sa-timeline__content {
  grid-column: 1;
  justify-self: end;
  text-align: right;
}

.sa-timeline__content h3 {
  font-size: var(--sa-timeline-title);
  font-weight: 700;
  color: var(--sa-brown);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.sa-timeline__content p {
  font-size: clamp(0.84rem, 1.25vw, 0.92rem);
  font-weight: 500;
  line-height: 1.68;
  color: var(--light-muted);
}

/* Testimonial */
.sa-testimonial {
  background: var(--white);
  padding: 5rem clamp(1.25rem, 4vw, 3.5rem) 6rem;
}

.sa-testimonial__inner {
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
}

.sa-testimonial__inner h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}

.sa-testimonial__photo {
  width: min(120px, 24vw);
  margin: 0 auto 1.75rem;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--white);
  box-shadow: 0 8px 24px rgba(61, 43, 31, 0.12);
}

.sa-testimonial__photo img {
  width: 100%;
  display: block;
}

.sa-testimonial__quote {
  margin: 0 0 1.5rem;
}

.sa-testimonial__quote p {
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.7;
  color: var(--light-muted);
}

.sa-testimonial__name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}

/* Responsive */
@media (max-width: 1024px) {
  .sa-problem__layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .sa-problem__grid {
    max-width: none;
    padding-right: var(--sa-problem-pad-x);
  }

  .sa-problem__books {
    width: var(--sa-book-half-w);
    height: var(--sa-book-half-h);
  }

  .sa-vision__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .sa-vision__laptop {
    order: -1;
    max-width: min(520px, 92vw);
    margin: 0 auto;
  }

  .sa-features__grid {
    grid-template-columns: 1fr 1fr;
  }

  .sa-timeline::before {
    left: 1rem;
  }

  .sa-timeline__item {
    grid-template-columns: 1fr;
    padding-left: 2.75rem;
  }

  .sa-timeline__item::after {
    left: 1rem;
  }

  .sa-timeline__item--right .sa-timeline__content,
  .sa-timeline__item--left .sa-timeline__content {
    grid-column: 1;
    justify-self: start;
    text-align: left;
    max-width: none;
  }
}

@media (max-width: 640px) {
  .sa-problem__grid {
    grid-template-columns: 1fr;
  }

  .sa-features__grid {
    grid-template-columns: 1fr;
  }

  .sa-hero__brand {
    padding-bottom: 6rem;
  }

  .sa-hero__logo {
    width: min(420px, 92vw);
  }
}
