:root {
  --pink: #f0a0cc;
  --orange: #f58c76;
  --sidebar-w: 428px;
  --gutter: 28px;
  --ink: #17161a;
  --gray: #8b8b8b;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  font-family: 'Raleway', 'Segoe UI', system-ui, sans-serif;
  color: var(--ink);
  scroll-behavior: smooth;
}

a { text-decoration: none; color: inherit; }

/* ---------- Static full-screen background (fixed, never moves) ---------- */
/* pattern-bg.jpg is the original gradient + grid pattern asset from the design */

.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: url("assets/pattern-bg.jpg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

/* ---------- Layout: fixed sidebar + scrollable content ---------- */

/* Left column — logo + nav, pinned to the viewport, never scrolls */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--gutter) var(--gutter) 48px;
  color: #fff;
}

/* Fixed hamburger toggle — mobile only, shown/positioned in the 780px query below */
.burger {
  display: none;
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 100;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #fff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

body.nav-open .burger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.nav-open .burger span:nth-child(2) {
  opacity: 0;
}

body.nav-open .burger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Opacity itself is driven by GSAP (scroll-scrubbed, see interactions.js) so it
   tracks scroll position exactly — a CSS transition here would lag behind it. */
.sidebar.is-hidden {
  pointer-events: none;
}

.logo {
  display: block;
}

.logo__img {
  display: block;
  width: 200px;
  height: auto;
}

.nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.nav__link {
  font-size: 16px;
  font-weight: 400;
  opacity: 0.95;
}

.nav__home {
  display: none;
}

/* ---------- Per-character hover roll (nav links, case titles) ---------- */

.chr-hover {
  cursor: pointer;
}

.ch-wrap {
  position: relative;
  overflow: hidden;
  display: inline-block;
  vertical-align: top;
}

.ch-top,
.ch-bot {
  display: block;
  font: inherit;
  color: inherit;
  transition: transform 0.6s cubic-bezier(0.87, 0, 0.13, 1);
  transition-delay: calc(var(--i) * 28ms);
}

.ch-bot {
  position: absolute;
  top: 100%;
  left: 0;
}

.chr-hover:hover .ch-top,
.chr-hover:hover .ch-bot {
  transform: translateY(-100%);
}

/* Sidebar top group (logo + optional "back" link on case-detail pages) */
.sidebar__top {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar__back {
  font-size: 16px;
  font-weight: 400;
  opacity: 0.95;
}

/* Right column — offset past the sidebar; only this area scrolls.
   The sidebar inset is a padding (not a margin) so the scrollport's clip
   rectangle includes it — letting the full-width footer's negative margin
   bleed into that space instead of being clipped by overflow-y:auto (which
   forces overflow-x to a clipping value too, per the CSS Overflow spec). */
.content {
  position: relative;
  z-index: 1;
  height: 100vh;
  overflow-y: auto;
  padding: var(--gutter) var(--gutter) 100px var(--sidebar-w);
  -webkit-overflow-scrolling: touch;
}

/* Locks scroll while the hero-card preloader animation plays */
.content.is-preloading {
  overflow: hidden;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: calc(100vh - var(--gutter));
}

.hero__card {
  display: flex;
  flex-direction: column;
  aspect-ratio: 2.35 / 1;
  background: #fff;
  border-radius: 6px;
  padding: 28px;
}

.hero__title {
  margin: 0 0 16px;
  max-width: 780px;
  font-size: clamp(24px, 2.78vw, 90px);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.01em;
}

.hero__subtitle {
  margin: 0;
  max-width: 620px;
  font-size: clamp(13px, 1.05vw, 15px);
  line-height: 1.6;
  color: var(--gray);
  font-weight: 400;
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}

.btn--outline {
  background: #fff;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}

.btn--outline:hover {
  background: #f5f5f5;
}

.btn--solid {
  background: #101010;
  color: #fff;
  border: 1.5px solid #101010;
}

.btn--solid:hover {
  background: #262626;
}

.hero__scroll {
  position: absolute;
  right: 0;
  bottom: 72px;
  width: 60px;
  height: 81px;
  display: block;
  animation: hero-scroll-bounce 1.8s ease-in-out infinite;
  transition: opacity 0.3s ease;
  opacity: 1;
  pointer-events: none;
}

.content.is-scrolled .hero__scroll {
  opacity: 0;
}

@keyframes hero-scroll-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(12px); }
}

/* ---------- What we offer ---------- */

.offer {
  margin-top: 130px;
}

.offer__title {
  margin: 0 0 32px;
  font-size: clamp(24px, 2.36vw, 80px);
  font-weight: 500;
  color: #fff;
}

.offer__lead {
  margin: 20px 0 48px;
  max-width: 900px;
  font-size: clamp(24px, 2.36vw, 80px);
  font-weight: 500;
  line-height: 1.25;
  color: var(--ink);
}

.offer__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.offer__cta-line {
  margin: 48px 0 0;
  max-width: 900px;
  font-size: clamp(24px, 2.36vw, 80px);
  font-weight: 500;
  line-height: 1.25;
  color: var(--ink);
}

.offer-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 6px;
  padding: 28px 26px 32px;
  min-height: 220px;
  transition: background 0.2s ease;
}

.offer-card__logo {
  display: block;
  height: 20px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 18px;
}

.offer-card__title {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}

.offer-card__text {
  margin: auto 0 0;
  padding-top: 18px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--gray);
  font-weight: 400;
}

/* Media cards reuse .offer-card as a link — background lightens on hover */
a.offer-card:hover {
  background: #f5f5f5;
}

/* ---------- Cases ---------- */

.cases {
  margin-top: 130px;
}

.cases__lead {
  margin: 20px 0 48px;
  max-width: 900px;
  font-size: clamp(24px, 2.36vw, 80px);
  font-weight: 500;
  line-height: 1.25;
  color: var(--ink);
}

.cases__list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.case-card {
  display: flex;
  gap: 24px;
  background: #fff;
  border-radius: 6px;
  padding: 28px;
  transition: background 0.2s ease;
}

.case-card:hover {
  background: #f5f5f5;
}

.case-card__info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.case-card__title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
}

.case-card__desc {
  margin: 0;
  max-width: 480px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--gray);
  font-weight: 400;
}

.case-card__meta {
  display: grid;
  grid-template-columns: 110px 1fr;
  row-gap: 4px;
  column-gap: 12px;
  margin: auto 0 0;
  padding-top: 24px;
  font-size: 14px;
  color: var(--gray);
}

.case-card__meta-row {
  display: contents;
}

.case-card__meta dt {
  font-weight: 400;
}

.case-card__meta dd {
  margin: 0;
}

.case-card__image {
  flex: 0 0 320px;
  min-height: 220px;
  border-radius: 6px;
  overflow: hidden;
  background: #1a1a1a;
}

.case-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.case-card:hover .case-card__image img {
  transform: scale(1.08);
}

/* Hovering anywhere on the card rolls the title too, not just the title itself */
.case-card:hover .case-card__title .ch-top,
.case-card:hover .case-card__title .ch-bot {
  transform: translateY(-100%);
}

/* ---------- Blog (homepage list + reused for the blog index) ---------- */

.blog {
  margin-top: 130px;
}

.blog__list {
  display: flex;
  flex-direction: column;
}

.blog-item {
  display: block;
  padding: 26px 0;
  border-bottom: 1px solid rgba(23, 22, 26, 0.15);
}

.blog-item:first-child {
  padding-top: 0;
}

.blog-item__date {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--ink);
  opacity: 0.6;
}

.blog-item__title {
  margin: 0;
  max-width: 900px;
  font-size: clamp(20px, 2vw, 34px);
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  transition: opacity 0.2s ease;
}

.blog-item:hover .blog-item__title {
  opacity: 0.6;
}

.section-viewall {
  margin-top: 28px;
}

/* Transparent, not white like the hero buttons — sits directly on the gradient */
.btn--outline.section-viewall {
  background: transparent;
}

.btn--outline.section-viewall:hover {
  background: rgba(23, 22, 26, 0.08);
}

/* ---------- Media about us (reuses .offer-card visuals) ---------- */

.media {
  margin-top: 130px;
}

.media__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ---------- Site footer ---------- */

.site-footer {
  margin: 130px calc(-1 * var(--gutter)) -100px calc(-1 * var(--sidebar-w));
  background: #fff;
  padding: 56px var(--gutter) 100px;
}

.site-footer__top {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 48px;
}

.site-footer__block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  font-size: 14px;
  color: var(--ink);
}

.site-footer__block p {
  margin: 0;
}

/* Fixed width shared with .site-footer__blog below, both right-anchored in
   their own row — giving them the same width makes their left edges line
   up with each other down the footer, instead of drifting independently. */
.site-footer__nav {
  display: flex;
  gap: 24px;
  width: 380px;
  margin-left: auto;
}

.site-footer__nav-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}

.site-footer__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 64px;
}

.site-footer__blog {
  width: 380px;
}

.site-footer__blog iframe {
  display: block;
  width: 100%;
  height: 220px;
  border-radius: 6px;
}

.site-footer__email {
  display: block;
  font-size: clamp(26px, 3.6vw, 52px);
  font-weight: 400;
  line-height: 1.15;
  color: var(--ink);
}

.site-footer__email .chr-hover {
  display: block;
}

.site-footer__legal {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  margin-top: 16px;
  font-size: 13px;
  color: var(--gray);
  text-align: right;
}

.site-footer__legal p {
  margin: 0;
}

/* ---------- Case detail pages ---------- */

.case-detail {
  padding-top: 8px;
  display: flex;
  align-items: flex-start;
  gap: 56px;
}

.case-detail__main {
  flex: 1;
  min-width: 0;
}

/* On-page table of contents, desktop only — see the 1100px breakpoint below */
.case-detail__toc {
  position: sticky;
  top: 28px;
  flex: 0 0 200px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.case-detail__toc a {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: #fff;
  opacity: 0.55;
  transition: opacity 0.15s ease;
}

.case-detail__toc a:hover,
.case-detail__toc a.is-active {
  opacity: 1;
}

.case-detail__eyebrow {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0.85;
}

.case-detail__title {
  margin: 0 0 24px;
  max-width: 900px;
  font-size: clamp(28px, 3.4vw, 64px);
  font-weight: 600;
  line-height: 1.15;
  color: #fff;
}

.case-detail__lead {
  margin: 0 0 40px;
  max-width: 900px;
  font-size: clamp(18px, 1.6vw, 28px);
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink);
}

.case-detail__cover {
  max-width: 900px;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 24px;
}

.case-detail__cover img {
  display: block;
  width: 100%;
  height: 340px;
  object-fit: cover;
}

.case-detail__card {
  background: #fff;
  border-radius: 6px;
  padding: 40px;
  max-width: 900px;
  margin-bottom: 24px;
}

.case-detail__meta {
  display: grid;
  grid-template-columns: 130px 1fr;
  row-gap: 8px;
  column-gap: 16px;
  font-size: 15px;
  color: var(--gray);
}

.case-detail__meta-row {
  display: contents;
}

.case-detail__meta dt {
  font-weight: 400;
}

.case-detail__meta dd {
  margin: 0;
}

.case-detail__subtitle {
  margin: 24px 0 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--gray);
}

.case-detail__section-title {
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
}

.case-detail__text {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--gray);
}

.case-detail__text:last-child {
  margin-bottom: 0;
}

.case-detail__list {
  margin: 0 0 16px;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--gray);
}

.case-detail__list:last-child {
  margin-bottom: 0;
}

.case-detail__list li {
  margin-bottom: 8px;
}

.case-detail__list li:last-child {
  margin-bottom: 0;
}

.case-detail__list strong {
  color: var(--ink);
}

.case-detail__subhead {
  margin: 24px 0 10px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.case-detail__subhead:first-child {
  margin-top: 0;
}

.case-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.case-stat {
  background: #faf9f9;
  border-radius: 6px;
  padding: 20px;
}

.case-stat__title {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.case-stat__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
}

.case-stat__num {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

.case-stat__label {
  font-size: 12px;
  color: var(--gray);
}

.case-detail__cta {
  background: #101010;
}

.case-detail__cta .case-detail__section-title,
.case-detail__cta .case-detail__text {
  color: #fff;
}

.case-detail__cta .case-detail__text {
  opacity: 0.75;
}

.case-detail__cta .btn {
  margin-top: 8px;
}

.case-detail__cta .btn--solid {
  background: transparent;
  border: 1.5px solid #fff;
  color: #fff;
}

.case-detail__cta .btn--solid:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* ---------- Next case ---------- */

.case-next {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 900px;
  background: #fff;
  border-radius: 6px;
  padding: 28px;
  transition: background 0.2s ease;
}

.case-next:hover {
  background: #f5f5f5;
}

.case-next__label {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
}

.case-next__title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
}

.case-next__image {
  flex: 0 0 140px;
  height: 100px;
  border-radius: 6px;
  overflow: hidden;
}

.case-next__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.case-next:hover .case-next__image img {
  transform: scale(1.08);
}

.case-next:hover .case-next__title .ch-top,
.case-next:hover .case-next__title .ch-bot {
  transform: translateY(-100%);
}

/* ---------- Generic subpage hero (About / UGC / Influencers) ---------- */

.page-hero {
  padding-top: 8px;
}

.page-title {
  margin: 0;
  font-size: clamp(24px, 2.36vw, 80px);
  font-weight: 500;
  color: #fff;
}

.page-lead {
  margin: 20px 0 0;
  max-width: 900px;
  font-size: clamp(24px, 2.36vw, 80px);
  font-weight: 500;
  line-height: 1.25;
  color: var(--ink);
}

.page-text-card {
  background: #fff;
  border-radius: 6px;
  padding: 28px;
}

.page-text {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--gray);
  font-weight: 400;
}

.page-text:last-child {
  margin-bottom: 0;
}

/* On pages with no page-text-card (UGC creators / Influencers), the gray text
   sits directly in the hero and should read as a continuation of the lead —
   same size and line-height, just lighter in color. */
.page-hero > .page-text {
  margin: 0;
  max-width: 900px;
  font-size: clamp(24px, 2.36vw, 80px);
  font-weight: 500;
  line-height: 1.25;
  color: var(--ink);
}

/* ---------- Founders ---------- */

.founders {
  margin-top: 100px;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.founder-card {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  background: #fff;
  border-radius: 6px;
  padding: 28px;
  aspect-ratio: 2.35 / 1;
}

.founder-card__photo {
  flex: none;
  display: block;
  width: 130px;
  height: 130px;
  border-radius: 6px;
  object-fit: cover;
}

.founder-card__info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.founder-card__name {
  margin: 0 0 24px;
  font-size: clamp(22px, 1.8vw, 32px);
  font-weight: 700;
  line-height: 1.25;
}

.founder-card__bio {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--gray);
  font-weight: 400;
}

.founder-card__powers {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--gray);
  font-weight: 400;
}

.founder-card__powers strong {
  color: var(--ink);
  font-weight: 700;
}

.founder-card__linkedin {
  align-self: flex-start;
  font-size: 14px;
  color: var(--ink);
  text-decoration: underline;
}

.founder-card__linkedin:hover {
  opacity: 0.6;
}

/* ---------- Awards / recognition ---------- */

.awards {
  margin-top: 100px;
}

.awards__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  max-width: 900px;
}

.awards__badge {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  background: #d4ceca;
  border-radius: 6px;
  padding: 18px;
  transition: background 0.2s ease;
}

a.awards__badge:hover {
  background: #c7c0bc;
}

.awards__badge img {
  display: block;
  max-width: 100%;
  max-height: 130px;
  width: auto;
  height: auto;
}

.awards__badge--finalista {
  flex-direction: column;
  gap: 10px;
  text-align: center;
}

.awards__badge-mark {
  display: block;
  max-height: 56px;
  width: auto;
}

.awards__badge-caption {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.03em;
  color: var(--gray);
}

.awards__badge-caption strong {
  color: var(--ink);
  font-weight: 700;
}

/* ---------- Application form (UGC creators / Influencers) ---------- */

.apply {
  margin-top: 130px;
}

.apply-form {
  background: #fff;
  border-radius: 6px;
  padding: 44px;
  max-width: 960px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 32px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field--full {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.form-field label .req {
  color: var(--gray);
  font-weight: 400;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="url"],
.form-field input[type="number"],
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1.5px solid #e3e3e3;
  border-radius: 6px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  background: #fff;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--ink);
}

.form-field textarea {
  resize: vertical;
  min-height: 90px;
}

.form-field--file {
  grid-column: 1 / -1;
  border: 1.5px dashed #e3e3e3;
  border-radius: 6px;
  padding: 16px;
  align-items: flex-start;
}

.form-check {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--gray);
}

.form-check input {
  margin-top: 3px;
}

.form-check a {
  color: var(--ink);
  text-decoration: underline;
}

.form-check a:hover {
  opacity: 0.6;
}

.apply-form .btn {
  grid-column: 1 / -1;
  align-self: flex-start;
  border: none;
  cursor: pointer;
}

.apply-form .btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.apply-form__status {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

.apply-form__status:empty {
  display: none;
}

.apply-form__status.is-success {
  color: #1a7f37;
}

.apply-form__status.is-error {
  color: #c0392b;
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  :root { --sidebar-w: 320px; }

  .offer__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .media__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .site-footer__top {
    flex-wrap: wrap;
  }

  .site-footer__nav {
    width: auto;
    margin-left: 0;
    flex-basis: 100%;
  }

  .case-detail__toc {
    display: none;
  }
}

@media (max-width: 900px) {
  .case-card {
    flex-direction: column;
  }

  .case-card__image {
    flex-basis: auto;
    width: 100%;
    height: 200px;
  }

  .case-next {
    flex-direction: column;
    align-items: flex-start;
  }

  .case-next__image {
    flex-basis: auto;
    width: 100%;
    height: 160px;
  }

  .founder-card {
    aspect-ratio: auto;
  }
}

@media (max-width: 780px) {
  html, body {
    overflow: auto;
    height: auto;
  }

  .bg {
    position: fixed;
  }

  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
  }

  .burger {
    display: flex;
  }

  .nav {
    position: fixed;
    inset: 0;
    z-index: 90;
    justify-content: center;
    gap: 22px;
    margin: 0;
    padding: 100px 32px 40px;
    background: var(--ink);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  }

  body.nav-open .nav {
    transform: translateX(0);
  }

  body.nav-open {
    overflow: hidden;
  }

  .nav .nav__link {
    font-size: 22px;
  }

  .nav__home {
    display: block;
    position: absolute;
    top: 24px;
    left: 24px;
  }

  .nav__home-img {
    display: block;
    width: 160px;
    height: auto;
  }

  .content {
    margin-left: 0;
    height: auto;
    overflow: visible;
    padding: 20px 20px 60px;
  }

  .hero {
    min-height: 0;
  }

  .hero__scroll {
    display: none;
  }

  .hero__card {
    aspect-ratio: auto;
    padding: 24px;
    border-radius: 6px;
  }

  .hero__title {
    font-size: 26px;
  }

  .hero__actions {
    margin-top: 28px;
    gap: 10px;
  }

  .hero__actions .btn--outline {
    flex: 1 1 calc(50% - 5px);
  }

  .hero__actions .btn--solid {
    flex: 1 1 100%;
  }

  .offer {
    margin-top: 60px;
  }

  .offer__grid {
    grid-template-columns: 1fr;
  }

  .cases {
    margin-top: 60px;
  }

  .cases__lead {
    margin-bottom: 32px;
  }

  .blog,
  .media {
    margin-top: 60px;
  }

  .media__grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    margin: 60px -20px -60px;
    padding: 32px 20px 60px;
  }

  .site-footer__top {
    flex-direction: column;
    gap: 24px;
  }

  .site-footer__nav {
    width: 100%;
    margin-left: 0;
    gap: 32px;
  }

  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer__blog {
    width: 100%;
  }

  .site-footer__blog iframe {
    max-width: 380px;
  }

  .site-footer__legal {
    align-items: flex-start;
    text-align: left;
  }

  .page-hero {
    padding-top: 20px;
  }

  .apply-form {
    padding: 24px;
  }

  .apply-form {
    grid-template-columns: 1fr;
  }

  .page-text-card,
  .founder-card {
    padding: 20px;
  }

  .founder-card {
    flex-direction: column;
  }

  .founder-card__photo {
    width: 100%;
    height: 220px;
  }

  .founder-card__name {
    margin-bottom: 16px;
  }

  .founders {
    margin-top: 60px;
    gap: 16px;
  }

  .awards {
    margin-top: 60px;
  }

  .apply {
    margin-top: 60px;
  }

  .case-detail__card {
    padding: 24px;
  }

  .case-detail__cover img {
    height: 200px;
  }

  /* Clickable-card affordance: hover states don't exist on touch, so a small
     arrow next to the title signals the whole card is tappable. */
  .case-card__title::after,
  a.offer-card .offer-card__title::after,
  .blog-item__title::after {
    content: "↗";
    display: inline-block;
    margin-left: 8px;
    font-size: 0.85em;
    vertical-align: middle;
  }

  /* Bump base text sizes for mobile readability — desktop copy sits at
     14-16px which reads too small once it's no longer viewed up close. */
  .hero__title {
    font-size: 28px;
  }

  .hero__subtitle {
    font-size: 16px;
  }

  .nav__link,
  .sidebar__back {
    font-size: 18px;
  }

  .btn {
    font-size: 17px;
  }

  .offer-card__title {
    font-size: 19px;
  }

  .offer-card__text {
    font-size: 16px;
  }

  .case-card__title {
    font-size: 22px;
  }

  .case-card__desc,
  .case-card__meta {
    font-size: 16px;
  }

  .blog-item__date {
    font-size: 16px;
  }

  .site-footer__block,
  .site-footer__nav-col {
    font-size: 16px;
  }

  .site-footer__legal {
    font-size: 15px;
  }

  .case-detail__eyebrow {
    font-size: 15px;
  }

  .case-detail__meta {
    font-size: 17px;
  }

  .case-detail__subtitle {
    font-size: 19px;
  }

  .case-detail__section-title {
    font-size: 24px;
  }

  .case-detail__text,
  .case-detail__list {
    font-size: 17px;
  }

  .case-detail__subhead {
    font-size: 18px;
  }

  .case-stat__title {
    font-size: 16px;
  }

  .case-stat__num {
    font-size: 20px;
  }

  .case-stat__label {
    font-size: 14px;
  }

  .case-next__label {
    font-size: 14px;
  }

  .case-next__title {
    font-size: 24px;
  }

  .page-text,
  .founder-card__bio,
  .founder-card__powers,
  .founder-card__linkedin {
    font-size: 16px;
  }

  .awards__badge-caption {
    font-size: 14px;
  }

  .form-field label {
    font-size: 15px;
  }

  /* 16px stops iOS Safari from auto-zooming the page when a field is focused */
  .form-field input[type="text"],
  .form-field input[type="email"],
  .form-field input[type="url"],
  .form-field input[type="number"],
  .form-field select,
  .form-field textarea {
    font-size: 16px;
  }

  .form-check,
  .apply-form__status {
    font-size: 15px;
  }
}
