.models-shell {
  width: min(1120px, calc(100% - 5rem));
  margin: 0 auto 3.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.75rem;
}

.model-breadcrumbs {
  margin: 0 0 1rem;
}

.models-hero {
  border-bottom: 1px solid var(--color-line);
  padding-bottom: 1.35rem;
}

.models-shell--index {
  --models-copy-surface: #f5f5f3;
  --models-copy-ink: #111;
  --models-copy-muted: #81817e;
  --models-copy-line: #ccccca;
  --models-gallery-paper: #ffffff;
  --models-gallery-canvas: #f6f7f8;
  --models-gallery-rail: #f7f8f9;
  --models-gallery-thumb: #d8dde4;
  --models-gallery-line: rgba(17, 17, 17, 0.14);
  --models-gallery-shadow: 0 22px 32px -30px rgba(0, 0, 0, 0.65);
  width: min(1180px, 100%);
  margin-bottom: clamp(2.8rem, 5vw, 4.2rem);
  gap: 0;
  padding: clamp(2.75rem, 7vw, 4.8rem) clamp(16px, 2.5vw, 40px) 0;
}

.models-shell--index .model-breadcrumbs--editorial {
  width: min(980px, 100%);
  margin: 0 auto clamp(1.4rem, 2.8vw, 2.2rem);
}

.models-shell--index .model-breadcrumbs--editorial .breadcrumbs__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.45rem 0.7rem;
  color: var(--models-copy-muted);
  font-size: 0.6rem;
  letter-spacing: 0.21em;
  text-transform: uppercase;
}

.models-shell--index .model-breadcrumbs--editorial .breadcrumbs__item {
  display: inline-flex;
  align-items: center;
}

.models-shell--index
  .model-breadcrumbs--editorial
  .breadcrumbs__item
  + .breadcrumbs__item::before {
  content: "/";
  margin-right: 0.7rem;
  color: var(--neutral-400);
}

.models-shell--index .model-breadcrumbs--editorial .breadcrumbs__link,
.models-shell--index .model-breadcrumbs--editorial .breadcrumbs__current {
  color: inherit;
  text-decoration: none;
}

.models-shell--index .models-hero--editorial {
  width: min(980px, 100%);
  margin: 0 auto;
  border-bottom: 0;
  padding-bottom: 0;
}

.models-shell--index .models-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
  grid-template-areas:
    "copy image"
    "tldr tldr"
    "bottom bottom";
  gap: clamp(1.3rem, 2.8vw, 2.1rem);
  align-items: start;
}

.models-shell--index .models-hero-copy {
  grid-area: copy;
  min-width: 0;
}

.models-subpage-hero {
  padding-bottom: 1rem;
}

.models-kicker {
  margin: 0 0 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.68rem;
  color: var(--color-muted);
}

.models-title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2.2rem, 5.5vw, 4.2rem);
  line-height: 0.94;
  letter-spacing: 0.01em;
}

.models-dek {
  margin: 1rem 0 0;
  max-width: 68ch;
  color: var(--color-muted);
  line-height: 1.65;
}

.models-shell--index .models-kicker {
  margin-bottom: 0.7rem;
  color: var(--models-copy-muted);
  font-size: 0.61rem;
  letter-spacing: 0.21em;
}

.models-shell--index .models-title {
  color: var(--models-copy-ink);
  font-size: clamp(2.65rem, 11vw, 4.35rem);
  line-height: 0.94;
  text-wrap: balance;
}

.models-shell--index .models-dek {
  max-width: 44ch;
  margin-top: clamp(1.4rem, 2.7vw, 1.9rem);
  color: var(--neutral-700);
  font-size: clamp(0.98rem, 2.2vw, 1.12rem);
  line-height: 1.82;
  letter-spacing: 0.02em;
  text-wrap: pretty;
}

.models-hero-actions {
  margin: 1rem 0 0;
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.models-shell--index .models-hero-actions {
  margin-top: 1.05rem;
  justify-content: center;
}

.models-shell--index .models-hero-bottom .models-hero-actions {
  gap: 0.45rem 0.65rem;
  max-width: min(760px, 100%);
  margin-inline: auto;
}

.models-shell--index .models-hero-bottom .models-hero-actions a {
  border-bottom: 0;
  padding: 0.44rem 0.68rem 0.4rem;
  border: 1px solid rgba(140, 140, 140, 0.42);
  border-radius: 0;
  background: transparent;
  color: var(--neutral-750, #4f4f4e);
  text-decoration: none;
  line-height: 1;
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  transition:
    border-color 180ms ease,
    color 180ms ease;
}

.models-shell--index .models-hero-bottom .models-hero-actions a:hover,
.models-shell--index .models-hero-bottom .models-hero-actions a:focus-visible {
  color: var(--neutral-900);
  border-color: rgba(70, 70, 70, 0.7);
}

.models-shell--index .models-hero-image {
  grid-area: image;
  margin: 0;
  width: 100%;
  max-width: 150px;
  justify-self: end;
  align-self: end;
}

.models-shell--index .models-hero-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}

.models-shell--index .models-hero-bottom {
  grid-area: bottom;
  min-width: 0;
  text-align: center;
}

.models-shell--index .models-tldr--hero {
  grid-area: tldr;
  margin: clamp(1.05rem, 2.2vw, 1.45rem) 0 0;
}

.models-shell--index .models-editorial-meta {
  margin: 0;
  border-top: 1px solid var(--models-copy-line);
  padding-top: 0.95rem;
  color: var(--models-copy-muted);
  font-size: 0.63rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.models-body {
  width: min(700px, 100%);
  margin: clamp(1.9rem, 4vw, 3rem) auto 0;
  min-width: 0;
}

.models-body > * {
  min-width: 0;
}

.models-tldr {
  margin: 0 0 clamp(1.7rem, 3vw, 2.4rem);
  padding: clamp(0.95rem, 2vw, 1.3rem) clamp(1rem, 2.2vw, 1.45rem);
  border: 1px solid var(--neutral-300);
  background: #f8f8f6;
}

.models-tldr-title {
  margin: 0 0 0.7rem;
  color: var(--neutral-800);
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.models-tldr-list {
  margin: 0;
  padding-left: 1.15rem;
}

.models-tldr-list li {
  margin: 0.35rem 0;
  color: var(--neutral-700);
  font-size: 0.93rem;
  line-height: 1.72;
  letter-spacing: 0.01em;
}

.models-editorial-separator {
  position: relative;
  margin: 0 0 clamp(1.65rem, 3vw, 2.25rem);
  height: 1.1rem;
}

.models-editorial-separator::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  border-top: 1px solid var(--neutral-300);
  transform: translateY(-50%);
}

.models-editorial-separator::after {
  content: "◆";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 0 0.45rem;
  background: var(--models-copy-surface);
  color: var(--neutral-400);
  font-size: 0.66rem;
  line-height: 1;
}

.models-block {
  padding-top: 0.35rem;
  min-width: 0;
}

.models-shell--index .models-block + .models-block {
  margin-top: clamp(1.25rem, 2.5vw, 1.9rem);
  padding-top: clamp(1.15rem, 2.2vw, 1.6rem);
  border-top: 1px solid var(--neutral-300);
}

.models-section-title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.55rem, 3.2vw, 2.1rem);
}

/* Keep in-page anchor targets visible below sticky header bars. */
.models-section-title[id] {
  scroll-margin-top: 3.8rem;
}

.models-body-copy {
  margin: 0.85rem 0 0;
  color: var(--color-muted);
  line-height: 1.62;
  max-width: 72ch;
}

.models-pathways {
  margin-top: 0.9rem;
  display: grid;
  gap: 0.95rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.models-pathways article {
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  padding: 1.05rem;
  background: #fff;
}

.models-pathways h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.38rem;
}

.models-pathways p {
  margin: 0.68rem 0 0;
  color: var(--color-muted);
  line-height: 1.56;
}

.models-shell--index .models-pathways {
  grid-template-columns: 1fr;
}

.models-meta {
  font-size: 0.95rem;
}

.models-link-list {
  margin-top: 0.85rem;
  display: grid;
  gap: 0.55rem;
}

.models-shell--index .models-block--proof-intro {
  border: 1px solid var(--neutral-300);
  border-radius: var(--radius-md);
  background: #f8f8f6;
  padding: clamp(1rem, 2vw, 1.35rem);
}

.models-shell--index .models-block--pathways {
  padding-top: clamp(1.35rem, 2.8vw, 2rem);
}

.models-shell--index .models-block--proof-intro .models-section-title,
.models-shell--index .models-block--proof-intro .models-body-copy,
.models-shell--index .models-block--proof-intro .models-link-list {
  max-width: 64ch;
}

.models-shell--index .models-block--gallery {
  border: 1px solid var(--neutral-300);
  border-radius: var(--radius-md);
  background: #fff;
  padding: clamp(0.9rem, 1.9vw, 1.25rem);
}

.models-shell--index .models-block--gallery .models-section-title,
.models-shell--index .models-block--gallery .models-body-copy {
  max-width: 62ch;
}

.models-shell--index .models-block--gallery .model-media-carousel {
  margin-top: 1rem;
}

.models-shell--index .models-block--location {
  background: #fbfaf8;
  border: 1px solid var(--neutral-300);
  border-radius: var(--radius-md);
  padding: clamp(0.95rem, 2vw, 1.3rem);
}

.models-hero-actions a,
.models-link-list a,
.models-pathways a,
.models-final-cta a {
  border-bottom: 1px solid var(--color-line);
  padding-bottom: 0.2rem;
}

.model-media-carousel {
  margin-top: 0.9rem;
  border: 1px solid var(--models-gallery-line, var(--color-line));
  border-radius: var(--radius-md);
  background: var(--models-gallery-paper, #fff);
  box-shadow: var(--models-gallery-shadow, none);
  overflow: hidden;
  min-width: 0;
}

.model-media-carousel--compact {
  max-width: min(820px, 100%);
  margin-inline: auto;
}

.model-media-carousel-viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--models-gallery-canvas, #f3f0ec);
  min-width: 0;
}

.model-media-carousel-track {
  display: flex;
  width: 100%;
  transform: translate3d(0, 0, 0);
  transition: transform 220ms ease;
  min-width: 0;
}

.model-media-carousel-slide {
  flex: 0 0 100%;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
}

.model-media-carousel--compact .model-media-carousel-slide {
  padding: clamp(0.6rem, 1.8vw, 1rem);
}

.model-media-carousel-media {
  position: relative;
  aspect-ratio: var(--media-aspect, 4 / 5);
  background: var(--models-gallery-canvas, #f3f0ec);
  width: 100%;
  box-shadow: inset 0 0 0 1px rgba(17, 17, 17, 0.05);
}

.model-media-carousel--compact .model-media-carousel-media {
  width: min(100%, 520px);
  max-height: min(72vh, 700px);
}

.model-media-carousel-media img,
.model-media-carousel-media iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.model-media-carousel-media img {
  object-fit: cover;
}

.model-media-carousel--compact .model-media-carousel-media img {
  object-fit: contain;
}

.model-media-carousel-iframe {
  border: 0;
}

.model-media-carousel-slide:not(.is-video-active) .model-media-carousel-iframe {
  opacity: 0;
  pointer-events: none;
}

.model-media-carousel-play {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.62);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.model-media-carousel-play svg {
  width: 1rem;
  height: 1rem;
  fill: #fff;
}

.model-media-carousel-slide.is-video-active .model-media-carousel-play {
  opacity: 0;
}

.model-media-carousel-controls {
  border-top: 1px solid var(--color-line);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 0.6rem 0.8rem;
  background: var(--models-gallery-paper, #fff);
}

.model-media-carousel-nav {
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--models-gallery-line, var(--color-line));
  border-radius: 999px;
  background: var(--models-gallery-paper, #fff);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}

.model-media-carousel-nav--overlay {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: rgba(255, 255, 255, 0.86);
}

.model-media-carousel-nav--prev {
  left: 0.8rem;
}

.model-media-carousel-nav--next {
  right: 0.8rem;
}

.model-media-carousel--compact .model-media-carousel-nav--prev {
  left: max(0.45rem, calc(50% - 16.25rem));
}

.model-media-carousel--compact .model-media-carousel-nav--next {
  right: max(0.45rem, calc(50% - 16.25rem));
}

.model-media-carousel-nav svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.model-media-carousel-nav.is-disabled,
.model-media-carousel-nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.model-media-carousel-count {
  margin: 0;
  min-width: 4.5rem;
  text-align: center;
  color: var(--color-muted);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

.model-media-carousel-autoplay-toggle {
  border: 1px solid var(--color-line);
  border-radius: 999px;
  background: var(--models-gallery-paper, #fff);
  padding: 0.3rem 0.7rem;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
  cursor: pointer;
}

.model-media-carousel-autoplay-toggle:hover {
  color: var(--color-ink);
}

.model-media-carousel-thumbs {
  border-top: 1px solid var(--color-line);
  background: var(--models-gallery-rail, #f2efea);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem;
  overflow-x: auto;
  scrollbar-width: thin;
}

.model-media-carousel-thumb {
  flex: 0 0 auto;
  width: 3rem;
  height: 3rem;
  padding: 0;
  margin: 0;
  border: 1px solid transparent;
  border-radius: 3px;
  overflow: hidden;
  position: relative;
  background: var(--models-gallery-thumb, #d9d6d1);
  opacity: 0.55;
  cursor: pointer;
}

.model-media-carousel-thumb.is-active {
  opacity: 1;
  border-color: #141414;
}

.model-media-carousel-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.model-media-carousel-thumb-play {
  position: absolute;
  right: 0.2rem;
  bottom: 0.2rem;
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.65);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.model-media-carousel-thumb-play svg {
  width: 0.55rem;
  height: 0.55rem;
  fill: #fff;
}

.models-final-cta {
  border-top: 1px solid var(--color-line);
  padding-top: 1.4rem;
}

.models-shell--index .models-final-cta {
  background: #fff;
}

@media (max-width: 980px) {
  .models-section-title[id] {
    scroll-margin-top: 6.5rem;
  }

  .models-shell:not(.models-shell--index) {
    width: min(1120px, calc(100% - 2rem));
    gap: 1.35rem;
    margin-bottom: 2.7rem;
  }

  .models-shell--index {
    padding-top: 0.75rem;
  }

  .models-shell--index .model-breadcrumbs--editorial .breadcrumbs__list {
    justify-content: center;
    font-size: 0.56rem;
    letter-spacing: 0.18em;
  }

  .models-shell--index .models-hero-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "copy"
      "image"
      "tldr"
      "bottom";
    row-gap: 0.95rem;
  }

  .models-shell--index .models-dek {
    max-width: none;
  }

  .models-shell--index .models-hero-image {
    width: 100%;
    max-width: none;
    justify-self: stretch;
    align-self: start;
  }

  .models-shell--index .models-hero-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  .models-shell--index .models-tldr--hero {
    margin-top: 0;
  }

  .models-title {
    font-size: clamp(2rem, 10.5vw, 3.1rem);
  }

  .model-media-carousel-nav--prev {
    left: 0.45rem;
  }

  .model-media-carousel-nav--next {
    right: 0.45rem;
  }

  .model-media-carousel--compact .model-media-carousel-media {
    width: 100%;
    max-height: min(68vh, 620px);
  }

  .model-media-carousel--compact .model-media-carousel-nav--prev {
    left: 0.35rem;
  }

  .model-media-carousel--compact .model-media-carousel-nav--next {
    right: 0.35rem;
  }
}

@media (max-width: 640px) {
  .models-shell--index .models-hero-actions {
    gap: 0.65rem;
  }

  .models-shell--index .models-hero-actions a {
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .models-shell--index .models-hero-bottom .models-hero-actions {
    justify-content: center;
    gap: 0.42rem;
  }

  .models-shell--index .models-hero-bottom .models-hero-actions a {
    font-size: 0.62rem;
    letter-spacing: 0.11em;
    padding: 0.4rem 0.54rem 0.36rem;
  }

  .model-media-carousel-nav {
    width: 1.85rem;
    height: 1.85rem;
  }

  .model-media-carousel-thumbs {
    gap: 0.3rem;
    padding: 0.4rem;
  }

  .model-media-carousel-thumb {
    width: 2.7rem;
    height: 2.7rem;
  }
}

@media (min-width: 1024px) {
  .models-shell--index {
    padding-top: 48px;
    margin-left: auto;
    margin-right: auto;
    transform: translateX(-32px);
  }

  .models-shell--index .models-hero-layout {
    grid-template-columns: minmax(0, 1.85fr) minmax(0, 1.15fr);
    grid-template-areas:
      "copy image"
      "tldr image"
      "bottom bottom";
  }

  .models-shell--index .models-dek {
    text-align: justify;
    text-justify: inter-word;
  }

  .models-shell--index .models-hero-image {
    width: 100%;
    max-width: 360px;
    height: auto;
    justify-self: end;
    align-self: start;
  }

  .models-shell--index .models-hero-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
  }
}
