/* Scoped to the OTTO case-study page. */
main.otto {
  --otto-navy: #081F32;
  --otto-blue: #006B9A;
  --otto-cyan: #00E5FF;
  --otto-ice: #E6F5FA;
  --otto-ivory: #FAF8F3;
}

main.otto img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Section rhythm — porcelain canvas retained via global body treatment. */
main.otto > section:not(.otto-hero):not(.closing) {
  padding: 72px var(--side);
}

main.otto .return {
  display: block;
  width: fit-content;
  min-height: 34px;
  font-size: .86rem;
  color: var(--gray);
}

main.otto .return:hover {
  text-decoration: underline;
}

/* —— 01 Hero —— */
main.otto .otto-hero {
  padding: 64px var(--side) 48px;
  text-align: center;
}

main.otto .otto-hero .return {
  text-align: left;
  margin-inline: 0;
}

main.otto .otto-hero-copy {
  max-width: 900px;
  margin: 0 auto;
}

main.otto .otto-hero .eyebrow {
  display: block;
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 570;
  letter-spacing: -.025em;
  color: var(--gray);
}

main.otto .otto-hero h1 {
  max-width: none;
  margin: 0 0 16px;
  font-size: 104px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.062em;
}

main.otto .otto-position {
  margin: 0 0 16px;
  font-size: 40px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.045em;
  color: var(--ink);
}

main.otto .otto-proposition {
  margin: 0;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -.025em;
  color: var(--gray);
}

main.otto .otto-hero-feature {
  margin: 40px auto 0;
  max-width: 1232px;
  padding: 40px;
  border-radius: 28px;
  background: var(--otto-navy);
}

main.otto .otto-hero-feature img {
  width: 100%;
  border-radius: 12px;
}

/* —— 02 Origin —— */
main.otto .otto-origin-grid {
  display: grid;
  grid-template-columns: minmax(0, 34fr) minmax(0, 66fr);
  gap: 64px;
  align-items: start;
  max-width: 1040px;
}

main.otto .otto-origin h2 {
  max-width: none;
  margin: 0;
  font-size: 56px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.062em;
}

main.otto .otto-narrative {
  display: grid;
  gap: 32px;
  max-width: 660px;
}

main.otto .otto-block h3 {
  margin: 0 0 16px;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.04em;
}

main.otto .otto-block p {
  max-width: none;
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -.025em;
  color: var(--gray);
  text-align: left;
}

main.otto .otto-block p:last-child {
  margin-bottom: 0;
}

/* —— 03 Connected Records —— */
main.otto .otto-connected h2 {
  max-width: 760px;
  margin: 0 0 24px;
  font-size: 56px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.062em;
}

main.otto .otto-connected .otto-lead {
  max-width: 760px;
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -.025em;
  color: var(--gray);
}

main.otto .otto-connected .otto-lead:last-of-type {
  margin-bottom: 0;
}

main.otto .otto-feature-navy {
  margin: 32px 0 0;
  max-width: 1232px;
  padding: 32px;
  border-radius: 28px;
  background: var(--otto-navy);
}

main.otto .otto-feature-navy img {
  width: 100%;
  border-radius: 12px;
}

/* —— 04 Dashboard —— */
main.otto .otto-dashboard-card {
  max-width: 1232px;
  margin: 0;
  padding: 40px;
  border-radius: 28px;
  background: var(--otto-ice);
  color: var(--otto-navy);
}

main.otto .otto-dashboard-card h2 {
  max-width: 680px;
  margin: 0 0 16px;
  font-size: 44px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.062em;
  color: var(--otto-navy);
}

main.otto .otto-dashboard-card p {
  max-width: 680px;
  margin: 0 0 28px;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -.025em;
  color: var(--otto-navy);
}

main.otto .otto-dashboard-card img {
  width: 100%;
  border-radius: 12px;
}

/* —— 05 Inside OTTO —— */
main.otto .otto-inside > h2 {
  max-width: none;
  margin: 0 0 32px;
  font-size: 56px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.062em;
}

main.otto .otto-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

main.otto .otto-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-radius: 24px;
}

main.otto .otto-card.ivory {
  background: var(--otto-ivory);
}

main.otto .otto-card.ice {
  background: var(--otto-ice);
}

main.otto .otto-card h3 {
  margin: 0 0 12px;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.04em;
  color: var(--otto-navy);
}

main.otto .otto-card p {
  max-width: none;
  margin: 0 0 24px;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -.025em;
  color: var(--gray);
}

main.otto .otto-card figure {
  margin: auto 0 0;
}

main.otto .otto-card img {
  width: 100%;
  border-radius: 10px;
}

/* —— 06 Philosophy —— */
main.otto .otto-philosophy {
  padding-top: 80px;
  padding-bottom: 64px;
  text-align: center;
}

main.otto .otto-philosophy h2 {
  max-width: 860px;
  margin: 0 auto 24px;
  font-size: 56px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.062em;
}

main.otto .otto-philosophy p {
  max-width: 700px;
  margin: 0 auto 16px;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -.025em;
  color: var(--gray);
  text-align: center;
}

main.otto .otto-philosophy p:last-child {
  margin-bottom: 0;
}

/* —— Closing inherits global .tint / .btn treatment —— */
main.otto .closing {
  text-align: center;
}

main.otto .closing h2 {
  margin-inline: auto;
}

/* —— Tablet 768–1099 —— */
@media (max-width: 1099px) {
  main.otto > section:not(.otto-hero):not(.closing) {
    padding: 56px var(--side);
  }

  main.otto .otto-hero h1 {
    font-size: 80px;
  }

  main.otto .otto-position {
    font-size: 32px;
  }

  main.otto .otto-proposition {
    font-size: 20px;
  }

  main.otto .otto-hero-feature {
    margin-top: 32px;
    padding: 28px;
    border-radius: 24px;
  }

  main.otto .otto-origin h2,
  main.otto .otto-connected h2,
  main.otto .otto-inside > h2,
  main.otto .otto-philosophy h2 {
    font-size: 44px;
  }

  main.otto .otto-block h3 {
    font-size: 26px;
  }

  main.otto .otto-block p,
  main.otto .otto-connected .otto-lead,
  main.otto .otto-dashboard-card p,
  main.otto .otto-philosophy p {
    font-size: 18px;
  }

  main.otto .otto-origin-grid {
    gap: 40px;
  }

  main.otto .otto-feature-navy {
    padding: 24px;
  }

  main.otto .otto-dashboard-card {
    padding: 32px;
  }

  main.otto .otto-dashboard-card h2 {
    font-size: 36px;
  }

  main.otto .otto-card {
    padding: 24px;
    border-radius: 20px;
  }

  main.otto .otto-card h3 {
    font-size: 24px;
  }

  main.otto .otto-card p {
    font-size: 17px;
  }

  main.otto .otto-philosophy {
    padding-top: 56px;
    padding-bottom: 48px;
  }
}

/* Stack origin below 900; stack inside grid below 900 */
@media (max-width: 899px) {
  main.otto .otto-origin-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  main.otto .otto-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  main.otto .otto-inside > h2 {
    margin-bottom: 24px;
  }
}

/* —— Mobile below 768 —— */
@media (max-width: 767px) {
  main.otto > section:not(.otto-hero):not(.closing) {
    padding: 36px var(--side);
  }

  main.otto .otto-hero {
    padding: 40px var(--side) 32px;
  }

  main.otto .otto-hero .eyebrow {
    font-size: 13px;
  }

  main.otto .otto-hero h1 {
    font-size: 56px;
  }

  main.otto .otto-position {
    font-size: 26px;
  }

  main.otto .otto-proposition {
    font-size: 18px;
  }

  main.otto .otto-hero-feature {
    margin-top: 24px;
    padding: 12px;
    border-radius: 20px;
  }

  main.otto .otto-hero-feature img,
  main.otto .otto-feature-navy img,
  main.otto .otto-dashboard-card img {
    border-radius: 8px;
  }

  main.otto .otto-origin h2,
  main.otto .otto-connected h2,
  main.otto .otto-inside > h2,
  main.otto .otto-philosophy h2 {
    font-size: 32px;
  }

  main.otto .otto-block h3 {
    font-size: 24px;
  }

  main.otto .otto-narrative {
    gap: 24px;
  }

  main.otto .otto-block p,
  main.otto .otto-connected .otto-lead,
  main.otto .otto-dashboard-card p,
  main.otto .otto-philosophy p {
    font-size: 17px;
  }

  main.otto .otto-connected h2 {
    margin-bottom: 16px;
  }

  main.otto .otto-feature-navy {
    margin-top: 24px;
    padding: 12px;
    border-radius: 20px;
  }

  main.otto .otto-dashboard-card {
    padding: 20px;
    border-radius: 20px;
  }

  main.otto .otto-dashboard-card h2 {
    font-size: 30px;
  }

  main.otto .otto-dashboard-card p {
    margin-bottom: 24px;
  }

  main.otto .otto-card {
    padding: 20px;
    border-radius: 20px;
  }

  main.otto .otto-card h3 {
    font-size: 22px;
  }

  main.otto .otto-card p {
    font-size: 16px;
  }

  main.otto .otto-philosophy {
    padding-top: 40px;
    padding-bottom: 32px;
  }
}
