/*
 * Glossi feature card system
 *
 * Image cards carry major product proof. Diagram cards carry supporting
 * mechanisms. Both share one parent silhouette, copy rhythm, and 5px geometry.
 */

.bento {
  padding-top: clamp(56px, 5.5vw, 72px);
  padding-bottom: clamp(56px, 5.5vw, 72px);
}

.bento-head { margin-bottom: 24px; }

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 10px;
}

.bento-grid > .feature-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  border: 1.5px solid rgba(var(--ink), .11);
  border-radius: 5px;
  background: #fbfbfc;
  box-shadow: none;
  isolation: isolate;
}

.bento-grid > .feature-card.feature-card--image {
  grid-column: span 6;
  min-height: 374px;
  border: 1.5px solid rgba(var(--ink), .11);
}

.bento-grid > .feature-card.feature-card--diagram {
  grid-column: span 3;
  min-height: 274px;
  display: flex;
  grid-template-columns: none;
  grid-template-rows: none;
  column-gap: normal;
  align-items: stretch;
  padding-top: 0;
  border: 1.5px solid rgba(var(--ink), .11);
}

.feature-card__copy {
  position: relative;
  order: 2;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.feature-card--image .feature-card__copy { padding: 20px 22px 22px; }
.feature-card--diagram .feature-card__copy { min-height: 0; padding: 14px 15px 16px; }

.bento-grid .bento-kicker,
.bento-grid .capability-icon { display: none; }

.bento-grid .feature-card__title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
  margin: 0 0 8px;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.22;
}

.bento-grid .feature-card--image .feature-card__title {
  font-size: 20px;
  line-height: 1.18;
}

.bento-grid .feature-card__title::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 1px;
  background: var(--glossi-orange);
}

.bento-grid .feature-card__body {
  max-width: 46ch;
  margin: 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.5;
}

.bento-grid .feature-card--image .feature-card__body {
  max-width: 50ch;
  font-size: 14px;
  line-height: 1.52;
}

.feature-card__visual {
  position: relative;
  order: 1;
  display: block;
  overflow: hidden;
  transform: none;
}

.bento-grid > .feature-card.feature-card--image .feature-card__visual,
.bento-grid > .feature-card.feature-card--image:hover .feature-card__visual,
.bento-grid > .feature-card.feature-card--image:focus-within .feature-card__visual {
  width: auto;
  height: clamp(226px, 18vw, 252px);
  margin: 0;
  border-bottom: 1px solid rgba(var(--ink), .08);
  border-radius: 4px 4px 0 0;
  background: #ededee;
  opacity: 1;
  filter: none;
}

.bento-grid > .feature-card.feature-card--diagram .feature-card__visual {
  height: 148px;
  margin: 0;
  border-radius: 0;
  background: transparent;
  opacity: 1;
  filter: none;
}

/* Image cards are editorial proof, not screenshots inside another card. */
.feature-card--image .material-ui,
.feature-card--image .scene-ui {
  height: 100%;
  border-radius: 0;
}

.feature-card--image .material-ui {
  padding: 0;
  background: #9a4539;
}

.feature-card--image .material-stage {
  inset: 0;
  border: 0;
  border-radius: 0;
}

.feature-card--image .material-ui--editorial .material-stage img {
  width: 100%;
  height: 100%;
  object-position: 50% 36%;
  filter: none;
  transform: none;
}

.feature-card--image .material-panel {
  bottom: auto;
  left: auto;
  top: 18px;
  right: 18px;
  width: 198px;
  padding: 12px;
  border-color: rgba(var(--ink), .10);
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 12px 28px rgba(24, 24, 27, .09);
  backdrop-filter: blur(14px);
}

.feature-card--image .material-panel-title {
  margin-bottom: 10px;
  font-size: 9px;
  line-height: 1.2;
}

.feature-card--image .material-swatches {
  margin-bottom: 10px;
}

.feature-card--image .material-swatch {
  width: 26px;
  height: 26px;
}

.feature-card--image .material-control,
.feature-card--image .material-panel .material-control:nth-last-child(-n+2) {
  display: block;
  margin-top: 9px;
}

.feature-card--image .material-panel .material-control:last-child { display: none; }

.feature-card--image .material-control span {
  height: auto;
  margin-bottom: 5px;
  color: var(--text-secondary);
  font-size: 8px;
  font-style: normal;
  font-weight: 500;
  line-height: 1.2;
}

.feature-card--image .material-control span::before,
.feature-card--image .material-control span::after { display: none; }

.feature-card--image .material-control b,
.feature-card--image .material-control em {
  display: block;
  font: inherit;
}

.feature-card--image .material-control em {
  color: var(--text-muted);
  font-style: normal;
}

.feature-card--image .material-artwork { display: none; }

.feature-card--image .scene-ui {
  grid-template-columns: 134px minmax(0, 1fr);
  background: #eeeeef;
}

.feature-card--image .scene-rail {
  padding: 12px 10px;
  background: rgba(250, 250, 251, .94);
}

.feature-card--image .scene-layer {
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 7px;
  font-size: 9px;
}

.feature-card--image .scene-layer:not(.is-active) span {
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  color: inherit;
}

.feature-card--image .scene-composition {
  object-position: 50% 50%;
  filter: none;
}

.feature-card--image .scene-selection { display: none; }

/*
 * Cross-page major feature cards
 *
 * The asset is the proof. One faithful control fragment explains what the
 * product changes. Compact diagrams remain a separate supporting species.
 */
.feature-card-section {
  padding-block: 0;
}

.feature-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid rgba(24, 24, 27, .08);
}

.feature-card-grid > .feature-card {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(300px, 4.5fr) minmax(0, 7.5fr);
  align-items: center;
  gap: 72px;
  padding-block: 96px;
  overflow: visible;
  border: 0;
  border-bottom: 1px solid rgba(24, 24, 27, .08);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  isolation: isolate;
}

.feature-card-grid .feature-card__visual,
.feature-card-grid .feature-card__visual:hover,
.feature-card-grid .feature-card__visual:focus-within {
  order: 2;
  width: 100%;
  aspect-ratio: auto;
  height: 470px;
  min-height: 470px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(24, 24, 27, .11);
  border-radius: 5px;
  background: #ededee;
  box-shadow: 0 28px 64px -56px rgba(0, 0, 0, .42);
  opacity: 1;
  filter: none;
}

.feature-card-grid .feature-card__visual > img,
.feature-card-grid .feature-card__visual > video {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: block;
  object-fit: cover;
  border: 0;
  border-radius: 0;
  opacity: 1;
  filter: none;
}

/* Real product proof is framed as an interface artifact, not campaign imagery. */
.feature-card-grid .feature-card__visual--studio-proof,
.feature-card-grid .feature-card__visual--studio-proof:hover,
.feature-card-grid .feature-card__visual--studio-proof:focus-within {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.feature-card-grid .studio-proof-surface {
  position: relative;
  width: min(100%, 980px);
  max-height: 100%;
  aspect-ratio: 8 / 5;
  overflow: hidden;
  border: 1px solid rgba(24, 24, 27, .10);
  border-radius: 5px;
  background: #f3f3f4;
  box-shadow: none;
}

.feature-card-grid .studio-proof-surface > img,
.feature-card-grid .studio-proof-surface > video,
.feature-card-grid .studio-proof-surface > picture,
.feature-card-grid .studio-proof-surface > picture > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.feature-card-grid .studio-app-window {
  position: absolute;
  inset: 30px 32px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 5px;
  background: #252422;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .38),
    inset 0 1px 0 rgba(255, 255, 255, .70),
    0 2px 8px -6px rgba(24, 24, 27, .18),
    0 24px 54px -38px rgba(24, 24, 27, .46);
}

.feature-card-grid .studio-app-window__bar {
  height: 34px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 13px;
  border-bottom: 1px solid rgba(24, 24, 27, .08);
  background: rgba(252, 252, 250, .92);
  color: #77787c;
  font-size: 9.5px;
  line-height: 1;
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .58);
}

.feature-card-grid .studio-app-window__dots {
  display: flex;
  gap: 5px;
}

/* Traffic lights match .proof-window (css/proof-window.css) so the app-window
   signature is one concept with one set of colours across the site. Geometry
   stays local: this window is absolutely positioned inside a composite proof
   surface, so its 7px dots belong to that smaller frame. */
.feature-card-grid .studio-app-window__dots i {
  width: 7px;
  height: 7px;
  display: block;
  border-radius: 50%;
  background: #d8d9dc;
}

.feature-card-grid .studio-app-window__dots i:nth-child(1) { background: #ff5f57; }
.feature-card-grid .studio-app-window__dots i:nth-child(2) { background: #febc2e; }
.feature-card-grid .studio-app-window__dots i:nth-child(3) { background: #28c840; }

.feature-card-grid .studio-app-window__title {
  color: #595a5e;
  font-weight: 500;
  letter-spacing: .01em;
}

.feature-card-grid .studio-app-window__mode {
  justify-self: end;
  color: #96979a;
}

.feature-card-grid .studio-app-window__body {
  height: calc(100% - 34px);
  min-height: 0;
}

.feature-card-grid .studio-motion-workspace {
  display: block;
  overflow: hidden;
  background: #1f1f1f;
}

.feature-card-grid .studio-motion-workspace__viewport {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) 21%;
  overflow: hidden;
  background: #1f1f1f;
}

.feature-card-grid .studio-motion-workspace__controls {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: 61% 39%;
  overflow: hidden;
  border-left: 1px solid rgba(255, 255, 255, .07);
  background: #292825;
}

.feature-card-grid .studio-motion-workspace img {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  display: block;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.feature-card-grid .studio-motion-composition__full {
  object-fit: contain;
  object-position: center;
}

.feature-card-grid .studio-motion-composition__viewport {
  object-fit: cover;
  object-position: 50% 47%;
}
.feature-card-grid .studio-motion-composition__clips { object-position: left bottom; }
.feature-card-grid .studio-motion-composition__presets { object-position: center top; }

.feature-card-grid .studio-motion-composition__lens {
  border-top: 1px solid rgba(255, 255, 255, .07);
  object-position: center top;
}

.feature-card-grid .studio-proof-mobile { display: none; }

.feature-card-grid .studio-live-workspace {
  overflow: hidden;
  background: #20201f;
}

.feature-card-grid .studio-live-workspace > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
}

.feature-card-grid .studio-agent-motion {
  position: relative;
  overflow: hidden;
  background: #d9d9d7;
}

.feature-card-grid .studio-agent-motion__scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 42% 48%;
  filter: saturate(.78) brightness(.93);
}

.feature-card-grid .studio-agent-motion::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 42%, rgba(20, 20, 21, .16) 68%, rgba(20, 20, 21, .38));
  pointer-events: none;
}

.feature-card-grid .studio-agent-motion__chat,
.feature-card-grid .studio-agent-motion__tracks {
  position: absolute;
  z-index: 2;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 5px;
  box-shadow: 0 18px 42px -24px rgba(0, 0, 0, .72);
  -webkit-backdrop-filter: blur(18px) saturate(1.18);
  backdrop-filter: blur(18px) saturate(1.18);
}

.feature-card-grid .studio-agent-motion__chat {
  top: 14px;
  right: 14px;
  width: 36%;
  min-width: 218px;
  padding: 13px 14px 16px;
  background: rgba(29, 29, 31, .94);
  color: #f4f4f3;
}

.feature-card-grid .studio-agent-motion__chat header {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: -13px -14px 14px;
  padding: 11px 13px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  font-size: 10px;
}

.feature-card-grid .studio-agent-motion__chat header span {
  color: #d4d5d8;
}

.feature-card-grid .studio-agent-motion__chat header strong {
  font-weight: 500;
}

.feature-card-grid .studio-agent-motion__chat small {
  display: block;
  margin: 0 0 5px;
  color: #8d8e93;
  font-size: 8px;
}

.feature-card-grid .studio-agent-motion__chat p {
  margin: 0 0 14px;
  color: #ededed;
  font-size: 10px;
  line-height: 1.45;
}

.feature-card-grid .studio-agent-motion__chat p:last-child {
  margin-bottom: 0;
}

.feature-card-grid .studio-agent-motion__tracks {
  left: 14px;
  bottom: 14px;
  width: 57%;
  padding: 12px 13px 13px;
  background: rgba(250, 250, 249, .92);
  color: #3c3d42;
}

.feature-card-grid .studio-agent-motion__tracks header,
.feature-card-grid .studio-agent-motion__tracks > div {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.feature-card-grid .studio-agent-motion__tracks header {
  grid-template-columns: 1fr auto;
  margin-bottom: 9px;
  color: #4a4b50;
  font-size: 9px;
}

.feature-card-grid .studio-agent-motion__tracks header strong {
  font-weight: 500;
}

.feature-card-grid .studio-agent-motion__tracks header span {
  color: #8b8c91;
  font-variant-numeric: tabular-nums;
}

.feature-card-grid .studio-agent-motion__tracks > div {
  min-height: 25px;
  border-top: 1px solid rgba(24, 24, 27, .07);
  color: #74757a;
  font-size: 8px;
}

.feature-card-grid .studio-agent-motion__tracks i {
  position: relative;
  height: 4px;
  border-radius: 999px;
  background: rgba(24, 24, 27, .1);
}

.feature-card-grid .studio-agent-motion__tracks i::before {
  content: "";
  position: absolute;
  left: var(--start);
  right: calc(100% - var(--end));
  top: 0;
  bottom: 0;
  border-radius: inherit;
  background: #55565b;
}

.feature-card-grid .studio-agent-motion__tracks i::after {
  content: "";
  position: absolute;
  left: var(--end);
  top: 50%;
  width: 7px;
  height: 7px;
  border: 1px solid rgba(24, 24, 27, .28);
  border-radius: 50%;
  background: #fff;
  transform: translate(-50%, -50%);
}

.feature-card-grid .studio-orbit-workspace {
  position: relative;
  overflow: hidden;
  background: #1f1f1f;
}

.feature-card-grid .studio-orbit-workspace > video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border: 0;
}

.feature-card-grid .studio-orbit-workspace > .studio-orbit-control {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 2;
  width: 28%;
  height: auto;
  display: block;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 5px;
  box-shadow: 0 18px 36px -22px rgba(0, 0, 0, .9);
}

.feature-card-grid .feature-card__copy {
  order: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0;
}

.feature-card-grid .feature-card__kicker {
  display: block;
  margin-bottom: 16px;
  color: #77787d;
  font-size: 12px;
  line-height: 1.2;
}

.feature-card-grid .feature-card__title {
  display: block;
  max-width: 12ch;
  margin: 0;
  color: #242428;
  font-family: Everett, Unica77, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 40px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -.02em;
  text-wrap: balance;
}

.feature-card-grid .feature-card__title::before { display: none; }

.feature-card-grid .feature-card__body {
  max-width: 42ch;
  margin: 20px 0 0;
  color: #66676c;
  font-size: 16px;
  line-height: 1.62;
}

.feature-card-grid .feature-card__points {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(24, 24, 27, .08);
}

.feature-card-grid .feature-card__points li {
  position: relative;
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 10px 0 10px 22px;
  border-bottom: 1px solid rgba(24, 24, 27, .08);
  color: #34353a;
  font-size: 14px;
  line-height: 1.35;
}

.feature-card-grid .feature-card__points li::before {
  content: "";
  position: absolute;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: #ec5f3f;
}

.feature-card-grid .feature-card--reverse {
  grid-template-columns: minmax(0, 7.5fr) minmax(300px, 4.5fr);
}

.feature-card-grid .feature-card--reverse .feature-card__visual {
  order: 1;
}

.feature-card-grid .feature-card--reverse .feature-card__copy { order: 2; }

.feature-card .feature-track {
  position: relative;
  height: 4px;
  border-radius: 999px;
  background: rgba(24, 24, 27, .10);
}

.feature-card .feature-track::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--fill, 60%);
  border-radius: inherit;
  background: #3f3f42;
}

.feature-card .feature-track::after {
  content: "";
  position: absolute;
  top: 50%;
  left: min(var(--fill, 60%), calc(100% - 4px));
  width: 8px;
  height: 8px;
  border: 1px solid rgba(24, 24, 27, .35);
  border-radius: 50%;
  background: #fff;
  transform: translate(-50%, -50%);
}

.feature-proof-control {
  position: absolute;
  z-index: 2;
  right: 16px;
  bottom: 16px;
  width: 208px;
  padding: 11px 12px 12px;
  border: 1px solid rgba(24, 24, 27, .10);
  border-radius: 5px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 12px 28px rgba(24, 24, 27, .09);
  backdrop-filter: blur(14px);
}

.feature-proof-control__head {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
}

.feature-proof-control__icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(24, 24, 27, .09);
  border-radius: 5px;
  background: rgba(24, 24, 27, .035);
  color: #626369;
}

.feature-proof-control__icon svg { width: 15px; height: 15px; }

.feature-proof-control__head small,
.feature-proof-control__head strong {
  display: block;
  overflow: hidden;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feature-proof-control__head small {
  margin-bottom: 2px;
  color: #898a8f;
  font-size: 8px;
  letter-spacing: 0;
}

.feature-proof-control__head strong {
  color: #2d2e32;
  font-size: 10px;
  font-weight: 500;
}

.feature-proof-control__values {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 10px 0 6px;
  color: #77787d;
  font-size: 8px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

/*
 * Large proof composition
 *
 * One dominant result carries the story while two quieter siblings prove
 * creative latitude. This is the reusable image-led counterpart to diagrams.
 */
.feature-showcase {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.feature-showcase__stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 2.18fr) minmax(122px, .82fr);
  gap: 8px;
  aspect-ratio: 16 / 11;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  background: transparent;
}

.feature-showcase__primary,
.feature-showcase__tile {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(24, 24, 27, .10);
  border-radius: 5px;
  background: #dfe0e2;
}

.feature-showcase__primary > img,
.feature-showcase__primary > video,
.feature-showcase__tile > img,
.feature-showcase__tile > video {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: block;
  object-fit: cover;
}

.feature-showcase__rail {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 8px;
  overflow: hidden;
}

.feature-showcase__tile {
  margin: 0;
  box-shadow: 0 12px 28px -26px rgba(24, 24, 27, .5);
}

.feature-showcase__tile figcaption {
  position: absolute;
  left: 8px;
  bottom: 8px;
  max-width: calc(100% - 16px);
  padding: 6px 8px;
  overflow: hidden;
  border: 1px solid rgba(24, 24, 27, .09);
  border-radius: 5px;
  background: rgba(255, 255, 255, .9);
  color: #55565b;
  font-size: 10px;
  font-weight: 500;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
  backdrop-filter: blur(12px);
}

.feature-showcase--motion .feature-showcase__primary > video {
  object-position: center;
}

.feature-showcase--materials .feature-showcase__stage {
  padding-top: 48px;
}

.feature-motion-overlay.pp-motion-hero-panel {
  left: 14px;
  bottom: 14px;
  width: 286px;
  padding: 10px;
  border-color: rgba(24, 24, 27, .10);
  background: rgba(250, 250, 251, .93);
}

.feature-motion-overlay__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 22px;
  padding: 0 2px 8px;
  border-bottom: 1px solid rgba(24, 24, 27, .07);
}

.feature-motion-overlay__head span {
  color: #8b8c91;
  font-size: 8px;
  font-weight: 400;
}

.feature-motion-overlay__head strong {
  color: #34353a;
  font-size: 10px;
  font-weight: 500;
}

.feature-motion-overlay__tracks {
  display: grid;
  gap: 3px;
  padding-top: 5px;
}

.feature-motion-overlay__row {
  min-width: 0;
  display: grid;
  grid-template-columns: 18px 70px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  min-height: 30px;
  padding: 4px 5px;
  border: 1px solid transparent;
  border-radius: 5px;
}

.feature-motion-overlay__row.is-active {
  border-color: rgba(24, 24, 27, .08);
  background: rgba(255, 255, 255, .72);
}

.feature-motion-overlay__row svg {
  width: 14px;
  height: 14px;
  color: #74757a;
}

.feature-motion-overlay__row span,
.feature-motion-overlay__row small,
.feature-motion-overlay__row strong {
  min-width: 0;
  display: block;
}

.feature-motion-overlay__row small {
  margin-bottom: 1px;
  color: #98999e;
  font-size: 7px;
  line-height: 1.1;
}

.feature-motion-overlay__row strong {
  overflow: hidden;
  color: #46474c;
  font-size: 8px;
  font-weight: 500;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feature-motion-overlay__row > i {
  position: relative;
  height: 4px;
  overflow: visible;
  border-radius: 99px;
  background: rgba(24, 24, 27, .09);
}

.feature-motion-overlay__row > i::before {
  content: "";
  position: absolute;
  left: var(--track-start, 16%);
  right: calc(100% - var(--track-end, 72%));
  top: 0;
  height: 4px;
  border-radius: inherit;
  background: #66676c;
}

.feature-motion-overlay__row > i b {
  position: absolute;
  left: var(--track-end, 72%);
  top: 50%;
  width: 8px;
  height: 8px;
  border: 1px solid rgba(24, 24, 27, .32);
  border-radius: 50%;
  background: #fff;
  transform: translate(-50%, -50%);
}

.feature-showcase--materials .pp-material-bar {
  inset: 0;
  height: 40px;
}

.feature-showcase--materials .feature-showcase__primary > img {
  position: static;
  inset: auto;
  height: 100%;
  object-position: 53% center;
}

.feature-showcase--materials .pp-material-selector {
  right: 10px;
  top: 10px;
  width: 188px;
}

.feature-showcase--materials .pp-material-controls {
  z-index: 3;
  left: 10px;
  top: 10px;
  bottom: auto;
  width: 146px;
  padding: 8px 9px;
  display: block;
}

.feature-showcase--materials .pp-material-controls > div {
  grid-template-columns: 54px 1fr;
}

.feature-showcase--materials .pp-material-controls > div + div { display: none; }

.feature-showcase--materials .feature-showcase__tile:first-child img {
  object-position: center;
}

.feature-showcase--materials .feature-showcase__tile:last-child img {
  object-position: 58% center;
}

/* Materials uses a material-record grammar, not the Motion outcome collage. */
.material-system-illustration {
  position: relative;
  min-width: 0;
  aspect-ratio: 16 / 11;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.material-system-record,
.material-system-versions,
.material-system-application {
  overflow: hidden;
  border: 1px solid rgba(24, 24, 27, .10);
  border-radius: 5px;
  background: #f4f4f5;
}

.material-system-record {
  position: absolute;
  z-index: 1;
  left: 0;
  top: 5%;
  width: 72%;
  height: 90%;
  box-shadow: 0 18px 42px -34px rgba(24, 24, 27, .42);
}

.material-system-record > header {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(24, 24, 27, .08);
  background: rgba(255, 255, 255, .94);
}

.material-system-record > header > div { display: grid; gap: 2px; }
.material-system-record > header small,
.material-system-maps > small,
.material-system-application figcaption small {
  color: #96979b;
  font-size: 7px;
  line-height: 1.1;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.material-system-record > header strong {
  color: #303135;
  font-size: 11px;
  font-weight: 550;
}

.material-system-record > header > span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #6f7f72;
  font-size: 8px;
}

.material-system-record > header > span i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #78907d;
}

.material-system-body {
  height: calc(100% - 108px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  background: #eeeff0;
}

.material-system-preview {
  position: relative;
  min-width: 0;
  overflow: hidden;
  margin: 0;
}

.material-system-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% 48%;
  filter: saturate(.88) contrast(.98);
}

.material-system-preview figcaption {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 5px 7px;
  border: 1px solid rgba(24, 24, 27, .08);
  border-radius: 5px;
  background: rgba(255, 255, 255, .88);
  color: #6e6f74;
  font-size: 8px;
  backdrop-filter: blur(10px);
}

.material-system-maps {
  min-width: 0;
  padding: 14px 12px;
  border-left: 1px solid rgba(24, 24, 27, .08);
  background: rgba(250, 250, 251, .96);
}

.material-system-maps > small { display: block; margin-bottom: 8px; }
.material-system-maps > div {
  min-width: 0;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 48px;
  border-top: 1px solid rgba(24, 24, 27, .07);
}

.material-system-maps > div > i,
.material-system-versions > div > i {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(24, 24, 27, .10);
  border-radius: 4px;
  background: #ddd;
}

.material-system-maps i.is-base { background: #d9613e; }
.material-system-maps i.is-roughness { background: linear-gradient(135deg, #b7b8ba, #f1f1f2); }
.material-system-maps i.is-normal { background: linear-gradient(135deg, #9ca4c8, #d9b6d8 48%, #8c99bd); }
.material-system-maps i.is-metallic { background: linear-gradient(135deg, #4f5054, #c9cace); }
.material-system-maps span { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 5px; }
.material-system-maps strong { font-size: 8px; font-weight: 500; }
.material-system-maps em { color: #999a9e; font-size: 7px; font-style: normal; }

.material-system-parameters {
  height: 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: center;
  padding: 0 14px;
  border-top: 1px solid rgba(24, 24, 27, .08);
  background: rgba(255, 255, 255, .96);
}

.material-system-parameters > div {
  display: grid;
  grid-template-columns: auto minmax(48px, 1fr) auto;
  gap: 8px;
  align-items: center;
  color: #77787d;
  font-size: 8px;
}

.material-system-parameters i {
  position: relative;
  height: 4px;
  border-radius: 99px;
  background: rgba(24, 24, 27, .10);
}

.material-system-parameters i::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--position, 50%);
  border-radius: inherit;
  background: #5d5e63;
}

.material-system-parameters i b {
  position: absolute;
  left: var(--position, 50%);
  top: 50%;
  width: 8px;
  height: 8px;
  border: 1px solid rgba(24, 24, 27, .34);
  border-radius: 50%;
  background: #fff;
  transform: translate(-50%, -50%);
}

.material-system-parameters em { color: #929398; font-size: 7px; font-style: normal; font-variant-numeric: tabular-nums; }

.material-system-versions {
  position: absolute;
  z-index: 3;
  right: 0;
  top: 0;
  width: 26%;
  padding: 10px;
  background: rgba(250, 250, 251, .94);
  box-shadow: 0 18px 38px -30px rgba(24, 24, 27, .5);
  backdrop-filter: blur(14px);
}

.material-system-versions > header {
  height: 24px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  color: #77787d;
  font-size: 8px;
}

.material-system-versions > header strong { color: #a0a1a5; font-size: 7px; font-weight: 400; }
.material-system-versions > div {
  height: 42px;
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 8px;
  align-items: center;
  padding: 4px 5px;
  border-top: 1px solid rgba(24, 24, 27, .06);
  border-radius: 5px;
}

.material-system-versions > div.is-current { border: 1px solid rgba(236, 95, 63, .28); background: rgba(255, 255, 255, .72); }
.material-system-versions > div > i { width: 24px; height: 24px; }
.material-system-versions i.is-orange { background: #d9613e; }
.material-system-versions i.is-soft { background: #c8bbaa; }
.material-system-versions i.is-neutral { background: #6c6d71; }
.material-system-versions > div span { display: grid; gap: 2px; }
.material-system-versions b { color: #3f4045; font-size: 8px; font-weight: 550; }
.material-system-versions small { color: #999a9e; font-size: 7px; }

.material-system-application {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  width: 28%;
  height: 43%;
  margin: 0;
  background: #efeff0;
  box-shadow: 0 18px 38px -30px rgba(24, 24, 27, .5);
}

.material-system-application img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: 50% 52%; }
.material-system-application::before {
  content: "";
  position: absolute;
  z-index: 2;
  left: -18px;
  top: 24px;
  width: 20px;
  border-top: 1px dotted rgba(24, 24, 27, .30);
}

.material-system-application img { transform: scale(1.9); }
.material-system-application figcaption {
  position: absolute;
  left: 8px;
  bottom: 8px;
  display: grid;
  gap: 2px;
  padding: 6px 8px;
  border: 1px solid rgba(24, 24, 27, .08);
  border-radius: 5px;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(10px);
}

.material-system-application figcaption strong { color: #4a4b50; font-size: 9px; font-weight: 500; }

@media (min-width: 561px) {
  .feature-showcase--motion .feature-showcase__stage,
  .feature-showcase--materials .feature-showcase__stage {
    display: block;
    padding: 0;
    overflow: visible;
  }

  .feature-showcase--motion .feature-showcase__primary,
  .feature-showcase--materials .feature-showcase__primary {
    position: absolute;
    z-index: 1;
    left: 0;
    top: 6%;
    width: 74%;
    height: 88%;
    overflow: visible;
    box-shadow: 0 18px 42px -34px rgba(24, 24, 27, .46);
  }

  .feature-showcase--motion .feature-showcase__primary > video,
  .feature-showcase--materials .feature-showcase__primary > img {
    border-radius: 5px;
  }

  .feature-showcase--motion .feature-showcase__rail,
  .feature-showcase--materials .feature-showcase__rail {
    display: contents;
  }

  .feature-showcase--motion .feature-showcase__tile,
  .feature-showcase--materials .feature-showcase__tile {
    position: absolute;
    width: 30%;
    height: 44%;
    right: 0;
    top: 0;
    z-index: 2;
    box-shadow: 0 18px 38px -30px rgba(24, 24, 27, .5);
  }

  .feature-showcase--motion .feature-showcase__tile:last-child,
  .feature-showcase--materials .feature-showcase__tile:last-child {
    width: 34%;
    height: 48%;
    right: 3%;
    top: auto;
    bottom: 0;
    z-index: 3;
  }

  .feature-showcase--motion .feature-motion-overlay.pp-motion-hero-panel {
    left: -96px;
    bottom: -22px;
    width: 300px;
  }

  .feature-showcase--materials .feature-showcase__tile {
    width: 26%;
    height: 40%;
    top: 3%;
  }

  .feature-showcase--materials .feature-showcase__tile:last-child {
    width: 30%;
    height: 44%;
    right: 3%;
    bottom: 1%;
  }

  .feature-showcase--materials .feature-showcase__tile:first-child img {
    filter: saturate(.78);
  }

  .feature-showcase--motion .feature-motion-overlay.pp-motion-hero-panel {
    z-index: 4;
    box-shadow: 0 20px 42px -26px rgba(0, 0, 0, .4);
  }

  .feature-showcase--materials .pp-material-bar {
    inset: 0 auto auto 0;
    width: 74%;
    border: 1px solid rgba(24, 24, 27, .09);
    border-radius: 5px;
    box-shadow: 0 12px 28px -26px rgba(24, 24, 27, .45);
  }

  .feature-showcase--materials .feature-showcase__primary {
    top: 48px;
    height: calc(100% - 48px);
  }

  .feature-showcase--materials .feature-showcase__tile:first-child { top: 4%; }
}

@media (max-width: 900px) {
  .feature-card-grid { grid-template-columns: 1fr; }
  .feature-card-grid > .feature-card,
  .feature-card-grid .feature-card--reverse {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 42px;
    padding-block: 72px;
  }
  .feature-card-grid .feature-card__copy,
  .feature-card-grid .feature-card--reverse .feature-card__copy {
    min-height: 0;
    order: 1;
    padding: 0;
  }
  .feature-card-grid .feature-card__visual,
  .feature-card-grid .feature-card--reverse .feature-card__visual {
    order: 2;
    aspect-ratio: 16 / 9;
    height: auto;
    min-height: 0;
    border: 1px solid rgba(24, 24, 27, .11);
    border-radius: 5px;
  }
}

/* Keep the real controls readable before the general feature-card breakpoint. */
@media (min-width: 901px) and (max-width: 1180px) {
  .feature-card-grid--product-proof > .feature-card,
  .feature-card-grid--product-proof .feature-card--reverse {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 42px;
    padding-block: 72px;
  }

  .feature-card-grid--product-proof .feature-card__copy,
  .feature-card-grid--product-proof .feature-card--reverse .feature-card__copy {
    order: 1;
  }

  .feature-card-grid--product-proof .feature-card__visual,
  .feature-card-grid--product-proof .feature-card--reverse .feature-card__visual {
    order: 2;
    aspect-ratio: 8 / 5;
    height: auto;
    min-height: 0;
  }
}

@media (max-width: 900px) {
  .bento-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .bento-grid > .feature-card.feature-card--image {
    grid-column: 1 / -1;
    min-height: 390px;
  }

  .bento-grid > .feature-card.feature-card--diagram { grid-column: span 1; }
  .bento-grid > .feature-card.feature-card--image .feature-card__visual { height: 260px; }
}

@media (max-width: 560px) {
  .feature-card-grid .feature-card__visual--studio-proof,
  .feature-card-grid .feature-card--reverse .feature-card__visual--studio-proof {
    aspect-ratio: 1 / 1;
    padding: 12px;
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .feature-card-grid .studio-proof-surface--controls {
    aspect-ratio: 1 / 1;
  }

  .feature-card-grid .studio-motion-workspace { display: none; }

  .feature-card-grid .studio-app-window--motion,
  .feature-card-grid .studio-app-window--orbit,
  .feature-card-grid .studio-app-window--live,
  .feature-card-grid .studio-app-window--agent { inset: 0; }

  .feature-card-grid .studio-proof-mobile {
    width: 100%;
    height: calc(100% - 32px);
    display: block;
  }

  .feature-card-grid .studio-proof-mobile > img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center top;
  }

  .feature-card-grid .studio-proof-surface--result {
    aspect-ratio: 8 / 5;
  }

  .feature-card-grid .studio-orbit-workspace > .studio-orbit-control { display: none; }

  .feature-card-grid .studio-orbit-workspace > video {
    width: 100%;
    height: 100%;
  }

  .feature-card-grid .studio-agent-motion__chat {
    top: 10px;
    right: 10px;
    width: 56%;
    min-width: 0;
    padding: 11px;
  }

  .feature-card-grid .studio-agent-motion__chat header {
    margin: -11px -11px 11px;
    padding: 9px 10px;
  }

  .feature-card-grid .studio-agent-motion__chat p {
    font-size: 9px;
  }

  .feature-card-grid .studio-agent-motion__tracks {
    left: 10px;
    right: 10px;
    bottom: 10px;
    width: auto;
  }

  .bento-head { margin-bottom: 20px; }
  .bento-grid { grid-template-columns: 1fr; gap: 10px; }

  .bento-grid > .feature-card.feature-card--image,
  .bento-grid > .feature-card.feature-card--diagram { grid-column: 1; }

  .bento-grid > .feature-card.feature-card--image { min-height: 326px; }
  .bento-grid > .feature-card.feature-card--diagram { min-height: 270px; }
  .bento-grid > .feature-card.feature-card--image .feature-card__visual { height: 190px; }
  .bento-grid > .feature-card.feature-card--diagram .feature-card__visual { height: 132px; }
  .feature-card--image .feature-card__copy { padding: 17px 17px 19px; }
  .feature-card--diagram .feature-card__copy { padding: 14px 15px 16px; }
  .bento-grid .feature-card--image .feature-card__title { font-size: 18px; }
  .bento-grid .feature-card__body { font-size: 13px; }

  .feature-card--image .material-panel {
    top: 12px;
    right: 12px;
    width: 178px;
    padding: 10px;
  }

  .feature-card--image .material-panel-title { margin-bottom: 8px; }
  .feature-card--image .material-swatches { margin-bottom: 8px; }
  .feature-card--image .material-swatch { width: 23px; height: 23px; }
  .feature-card--image .material-control,
  .feature-card--image .material-panel .material-control:nth-last-child(-n+2) { margin-top: 7px; }

  .feature-card--image .scene-ui { grid-template-columns: 112px minmax(0, 1fr); }
  .feature-card--image .scene-rail { padding: 9px 8px; }
  .feature-card--image .scene-layer {
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 6px;
    font-size: 8px;
  }

  .feature-card-section { padding-block: 0; }
  .feature-card-grid > .feature-card,
  .feature-card-grid .feature-card--reverse { gap: 32px; padding-block: 56px; }
  .feature-card-grid .feature-card__copy { padding: 0; }
  .feature-card-grid .feature-card__kicker { margin-bottom: 14px; font-size: 11px; }
  .feature-card-grid .feature-card__title { max-width: 16ch; font-size: 32px; line-height: 1.12; }
  .feature-card-grid .feature-card__body { margin-top: 16px; font-size: 15px; line-height: 1.55; }
  .feature-card-grid .feature-card__points { margin-top: 22px; }
  .feature-card-grid .feature-card__points li { min-height: 42px; font-size: 13px; }
  .feature-proof-control {
    right: 10px;
    bottom: 10px;
    width: 188px;
    padding: 9px 10px 10px;
  }

  .feature-showcase__stage {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 2fr) minmax(92px, .72fr);
    aspect-ratio: 4 / 5;
  }

  .feature-motion-overlay.pp-motion-hero-panel {
    left: 10px;
    top: 10px;
    bottom: auto;
    width: min(248px, calc(100% - 20px));
    padding: 8px;
  }

  .feature-motion-overlay__row {
    grid-template-columns: 16px 62px minmax(0, 1fr);
    gap: 6px;
    min-height: 27px;
    padding: 3px 4px;
  }

  .feature-showcase__rail {
    position: relative;
    z-index: 4;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: 1fr;
    width: calc(100% - 18px);
    margin-inline: 9px;
    transform: translateY(-8px);
  }

  .feature-showcase__tile figcaption {
    left: 6px;
    bottom: 6px;
    max-width: calc(100% - 12px);
  }

  .feature-showcase--materials .feature-showcase__stage {
    padding-top: 46px;
  }

  .feature-showcase--materials .pp-material-selector {
    right: 8px;
    top: 8px;
    width: 170px;
  }

  .feature-showcase--materials .pp-material-controls {
    left: 8px;
    top: auto;
    bottom: 8px;
  }

  .material-system-illustration {
    height: 620px;
    min-height: 620px;
    aspect-ratio: auto;
  }

  .material-system-record {
    top: 0;
    width: 100%;
    height: 478px;
  }

  .material-system-record > header { height: 44px; padding-inline: 10px; }
  .material-system-record > header small { font-size: 8px; }
  .material-system-record > header strong { font-size: 11px; }
  .material-system-record > header > span { font-size: 8px; }
  .material-system-body {
    height: 360px;
    grid-template-columns: 1fr;
    grid-template-rows: 170px 190px;
  }
  .material-system-maps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 14px 1fr 1fr;
    gap: 6px 8px;
    padding: 10px;
    border-top: 1px solid rgba(24, 24, 27, .08);
    border-left: 0;
  }
  .material-system-maps > small { grid-column: 1 / -1; margin: 0; font-size: 8px; }
  .material-system-maps > div {
    min-height: 0;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 8px;
    padding: 6px 7px;
    border: 1px solid rgba(24, 24, 27, .07);
    border-radius: 5px;
    background: rgba(255, 255, 255, .66);
  }
  .material-system-maps > div > i { width: 28px; height: 28px; }
  .material-system-maps span { display: grid; gap: 2px; }
  .material-system-maps strong { font-size: 10px; }
  .material-system-maps em { font-size: 8px; }
  .material-system-parameters { height: 74px; grid-template-columns: 1fr; gap: 8px; padding: 9px 10px; }
  .material-system-parameters > div { grid-template-columns: 74px minmax(48px, 1fr) 28px; font-size: 10px; }
  .material-system-parameters em { font-size: 9px; }

  .material-system-versions {
    left: 8px;
    right: auto;
    top: 478px;
    bottom: auto;
    width: 44%;
    height: auto;
    padding: 7px;
  }

  .material-system-versions > header { height: 20px; }
  .material-system-versions > div { height: 30px; grid-template-columns: 22px 1fr; gap: 6px; }
  .material-system-versions > div > i { width: 20px; height: 20px; }
  .material-system-versions b { font-size: 10px; }
  .material-system-versions small { font-size: 8px; }

  .material-system-application {
    right: 0;
    top: 478px;
    bottom: auto;
    width: 54%;
    height: 142px;
  }

  .material-system-application::before { left: -12px; top: 0; width: 14px; }
  .material-system-application img { transform: scale(2.2); }
  .material-system-application figcaption strong { font-size: 10px; }
}

@media (max-width: 360px) {
  .feature-card-grid .feature-proof-control {
    right: 8px;
    bottom: 8px;
    width: 132px;
    padding: 7px 8px;
  }

  .feature-card-grid .feature-proof-control__values,
  .feature-card-grid .feature-proof-control .feature-track { display: none; }
}

@media (max-width: 340px) {
  .bento-grid > .feature-card.feature-card--image {
    height: 340px;
    min-height: 340px;
  }
}
