.ai-market {
  color-scheme: dark;
  --ink: #eef1e9;
  --muted: #adb7ae;
  --line: #343f36;
  --surface: #191f1b;
  --accent: #dafa75;
  color: var(--ink);
  background: #101311;
}

.ai-market :focus-visible { outline-color: var(--accent); }
.ai-market .skip-link { color: #191d14; }
.ai-market .masthead-nav a, .ai-market .footer nav a { color: #d0d8cf; }
.ai-market .hero { min-height: clamp(30rem, 46vw, 39rem); background: #0d1714; }
.ai-market .hero-image { width: 86%; object-position: 68% 47%; }
.ai-market .hero::after { background: linear-gradient(90deg, #0d1714 4%, #0d1714f5 23%, #0d1714a0 47%, #0d171400 82%); }
.ai-market .hero h1 { max-width: 12ch; font-size: clamp(3.3rem, 7.5vw, 6.6rem); }
.ai-market .hero h1 em { color: var(--accent); font-style: normal; }
.ai-market .hero-summary { max-width: 39ch; }
.ai-market .section { margin-top: clamp(3rem, 6.4vw, 5.25rem); }
.ai-market #projects { margin-top: clamp(2.3rem, 5vw, 3.7rem); }

.model-strip { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem clamp(1rem, 3vw, 2.25rem); padding-block: .7rem; border-bottom: 1px solid var(--line); }
.model-strip > span { color: var(--muted); font-size: .73rem; font-weight: 740; letter-spacing: .12em; text-transform: uppercase; }
.model-strip a { display: inline-flex; align-items: center; min-height: 2.75rem; color: #e7efe5; font-weight: 740; text-decoration: none; }
.model-strip a:hover { color: var(--accent); }
.showcase-heading > p, .models .section-heading > p { max-width: 43ch; }

.showcase-cover { position: relative; display: block; aspect-ratio: 1.73; overflow: hidden; isolation: isolate; background: #214138; }
.cover-film { background: #50402d; }
.cover-brand { background: #183744; }
.cover-seedance-drama { background: radial-gradient(ellipse at 80% 15%, #654351, #20233b 72%); }
.cover-minimax { background: radial-gradient(ellipse at 75% 15%, #425a65, #15262d 72%); }
.cover-seedance { background: radial-gradient(ellipse at 80% 15%, #634632, #271b29 72%); }
.showcase-cover :is(img, video) { position: absolute; z-index: -2; width: 100%; height: 100%; object-fit: cover; color: transparent; }
.showcase-cover video { pointer-events: none; }
.showcase-cover::after { position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg, #0a100958, #0a100914 65%, #0a100989); content: ""; }
.showcase-cover:focus-visible { outline-offset: -.23rem; }
.play-icon { position: absolute; inset: 50% auto auto 50%; display: grid; place-items: center; width: 3rem; aspect-ratio: 1; transform: translate(-50%, -50%); border: 1px solid #d8ebd7a6; border-radius: 50%; background: #101a14dc; }
.play-icon::before { display: block; margin-left: .15rem; border: .43rem solid transparent; border-left: .68rem solid #f4ffe7; border-right: 0; content: ""; }
.showcase-cover:hover .play-icon { border-color: var(--accent); background: #394b24; }
.sample-kind { position: absolute; bottom: .7rem; left: .7rem; padding: .35rem .52rem; border: 1px solid #d8ebd742; border-radius: .3rem; background: #101712e8; color: #f7fbef; font-size: .72rem; font-weight: 700; }
.ai-market .project-copy { flex-direction: column; justify-content: flex-start; gap: .4rem; }
.ai-market .project-copy > p { margin: 0; }
.ai-market .project-copy h3 { font-size: clamp(1.15rem, 2.1vw, 1.6rem); letter-spacing: -.045em; }
.ai-market .sample-model { color: #c6dc9c; font-size: .76rem; font-weight: 690; }
.sample-model span { color: var(--muted); }
.sample-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0 .75rem; width: 100%; margin-top: auto; }
.sample-links .text-link { min-height: 2.75rem; color: var(--accent); }
.sample-links .source-link { color: var(--muted); }
.ai-market .button-outline:hover { border-color: #a3b294; background: #263329; }

.model-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .7rem; }
.model-grid article { display: flex; flex-direction: column; align-items: flex-start; padding: 1.05rem; border: 1px solid var(--line); border-radius: .65rem; background: var(--surface); }
.model-grid article > span { color: var(--muted); font-size: .74rem; }
.model-grid h3 { margin-top: .35rem; font-size: clamp(1.15rem, 2.15vw, 1.65rem); letter-spacing: -.05em; }
.model-grid p { margin: .35rem 0 .4rem; color: var(--muted); font-size: .88rem; line-height: 1.53; }
.model-grid a { margin-top: auto; display: inline-flex; gap: .3rem; align-items: center; min-height: 2.75rem; color: #d9eead; font-size: .86rem; font-weight: 690; text-decoration: none; }
.model-grid a:hover { text-decoration: underline; text-underline-offset: .2em; }

.ai-market .role { border: 1px solid #344437; background: #1a261e; }
.ai-market .role-editor { border-color: #323b41; background: #1b2428; }
.ai-market .steps p { color: #b9c4b9; }
.ai-market .steps li::marker { color: #bdcf9c; }
.ai-market .role .text-link { color: var(--accent); }
.ai-market .closing { color: #191d14; }
.ai-market .button-dark { background: #191d14; }
.ai-market .button-dark:hover { background: #343d27; }
.ai-market .closing :focus-visible { outline-color: #263627; }

.sample-dialog { width: min(48rem, calc(100% - 1.4rem)); max-height: calc(100% - 1.4rem); margin: auto; padding: 1rem; border: 1px solid #465449; border-radius: .85rem; background: #161c18; color: var(--ink); }
.sample-dialog::backdrop { background: #050907db; }
.sample-dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .7rem; }
.sample-dialog-heading h2 { font-size: clamp(1.15rem, 3vw, 1.7rem); letter-spacing: -.045em; }
.sample-player { background: #050907; border-radius: .45rem; overflow: hidden; }
.sample-player iframe, .sample-player video { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.sample-dialog-links { display: flex; flex-wrap: wrap; gap: 0 1.1rem; margin-top: .25rem; }
.sample-dialog-links a { color: #d9eead; text-align: left; }

@media (max-width: 65rem) {
  .model-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 49rem) {
  .model-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 37.5rem) {
  .ai-market .hero { min-height: auto; padding-bottom: clamp(8.5rem, 38vw, 13.5rem); }
  .ai-market .hero h1 { font-size: clamp(2.65rem, 11vw, 4.4rem); }
  .ai-market .hero-image { width: 100%; height: 66%; object-position: 71% 54%; }
  .ai-market .hero::after { background: linear-gradient(180deg, #0d1714 8%, #0d1714f2 34%, #0d1714b0 58%, #0d171400 88%); }
  .model-strip { gap: 0 1rem; }
  .model-strip > span { flex-basis: 100%; padding-top: .25rem; }
  .model-strip a { font-size: .85rem; }
  .ai-market .project-grid, .ai-market .role-grid { grid-template-columns: 1fr; }
}
