:root {
  --vm-bg: #07101a;
  --vm-bg-deep: #040910;
  --vm-surface: rgba(12, 20, 31, 0.9);
  --vm-surface-2: rgba(8, 14, 22, 0.92);
  --vm-line: rgba(0, 255, 133, 0.2);
  --vm-line-strong: rgba(0, 255, 133, 0.42);
  --vm-line-blue: rgba(0, 209, 255, 0.22);
  --vm-text: #e7edf6;
  --vm-text-soft: #a8b6c9;
  --vm-text-dim: #7f8ea3;
  --vm-accent: #00ff85;
  --vm-accent-2: #00d1ff;
  --vm-shadow: 0 28px 72px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--vm-text);
  background:
    radial-gradient(960px 520px at 0% -12%, rgba(0, 209, 255, 0.16), transparent 52%),
    radial-gradient(840px 420px at 100% 0%, rgba(0, 255, 133, 0.11), transparent 48%),
    linear-gradient(180deg, #07101a 0%, #050b12 100%);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 120px 120px;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.44), transparent 88%);
  opacity: 0.22;
}

body.site-art {
  background:
    linear-gradient(180deg, rgba(4, 10, 17, 0.7), rgba(4, 10, 17, 0.9)),
    radial-gradient(1040px 560px at 8% -14%, rgba(0, 209, 255, 0.18), transparent 54%),
    radial-gradient(860px 460px at 100% 0%, rgba(0, 255, 133, 0.13), transparent 48%),
    url('./art_wallpepper.png') center top / cover no-repeat,
    linear-gradient(180deg, #07101a 0%, #050a11 100%);
}

body.site-art::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(560px 320px at 72% 10%, rgba(0, 255, 133, 0.08), transparent 70%);
}

img {
  display: block;
  max-width: 100%;
}

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

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 40px;
}

.topbar,
.hero,
.section,
.footer {
  border: 1px solid var(--vm-line);
  border-radius: 28px;
  background:
    radial-gradient(720px 300px at 100% -10%, rgba(0, 209, 255, 0.08), transparent 50%),
    linear-gradient(180deg, rgba(10, 17, 28, 0.98), rgba(6, 11, 18, 0.99));
  box-shadow: var(--vm-shadow);
}

.topbar {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  margin-bottom: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.brand__copy {
  display: grid;
  gap: 2px;
}

.brand__eyebrow,
.eyebrow,
.section__eyebrow,
.rail-card__eyebrow,
.studio-float__label {
  color: var(--vm-accent-2);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.brand__title {
  font-size: 1.18rem;
  font-weight: 800;
}

.topnav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.topnav__link,
.btn,
.link-chip,
.mini-chip,
.badge,
.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.7rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--vm-line);
  background: linear-gradient(180deg, rgba(18, 27, 39, 0.96), rgba(10, 16, 24, 0.98));
  color: var(--vm-text);
  font-weight: 700;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.topnav__link:hover,
.topnav__link:focus,
.btn:hover,
.btn:focus,
.link-chip:hover,
.link-chip:focus {
  border-color: var(--vm-line-strong);
  transform: translateY(-1px);
}

.topbar__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.btn--primary {
  border-color: transparent;
  background: linear-gradient(180deg, rgba(0, 255, 133, 0.94), rgba(0, 208, 110, 0.94));
  color: #04120b;
  box-shadow: 0 18px 36px rgba(0, 255, 133, 0.18);
}

.btn--secondary,
.btn--ghost {
  background: linear-gradient(180deg, rgba(10, 18, 30, 0.96), rgba(7, 12, 20, 0.98));
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: 28px;
  padding: 32px;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  margin: 0 0 14px;
}

h1 {
  margin: 0;
  max-width: 9.6ch;
  font-size: clamp(3.1rem, 5.6vw, 5.3rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
}

.hero__lead {
  margin: 18px 0 0;
  max-width: 560px;
  color: var(--vm-text-soft);
  font-size: 1.14rem;
  line-height: 1.65;
}

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

.hero__meta,
.chip-row,
.models-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero__meta {
  margin-top: 18px;
}

.hero-preview-strip {
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.hero-preview-card {
  position: relative;
  overflow: hidden;
  flex: 0 0 188px;
  min-height: 104px;
  padding: 0;
  border: 1px solid rgba(0, 255, 133, 0.16);
  border-radius: 18px;
  background:
    radial-gradient(240px 120px at 100% 0%, rgba(0, 209, 255, 0.08), transparent 56%),
    linear-gradient(180deg, rgba(14, 23, 35, 0.98), rgba(7, 12, 19, 0.99));
  color: var(--vm-text);
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}

.hero-preview-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}

.hero-preview-card span {
  position: absolute;
  inset: auto 10px 10px 10px;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.32rem 0.68rem;
  border-radius: 999px;
  background: rgba(5, 12, 19, 0.82);
  border: 1px solid rgba(0, 255, 133, 0.16);
  font-size: 0.8rem;
  font-weight: 700;
}

.badge,
.mini-chip,
.status-pill {
  min-height: 34px;
  padding: 0.42rem 0.78rem;
  border-radius: 999px;
  font-size: 0.86rem;
}

.badge,
.mini-chip {
  border-color: var(--vm-line-blue);
  background: rgba(0, 209, 255, 0.08);
}

.status-pill {
  border-color: rgba(0, 255, 133, 0.22);
  background: rgba(0, 255, 133, 0.09);
}

.status-pill--soon {
  border-color: rgba(255, 200, 92, 0.26);
  background: rgba(255, 200, 92, 0.11);
  color: #ffe2a6;
}

.studio-stage {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.studio-stage__panel {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(0, 209, 255, 0.16);
  background:
    radial-gradient(520px 280px at 78% 0%, rgba(0, 255, 133, 0.14), transparent 54%),
    linear-gradient(180deg, rgba(5, 12, 20, 0.98), rgba(3, 8, 14, 0.99));
}

.studio-stage__screen {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}

.studio-stage__screen img {
  width: 100%;
  height: auto;
}

.studio-float {
  position: absolute;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(0, 255, 133, 0.18);
  background: rgba(6, 14, 22, 0.9);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.34);
}

.studio-float strong,
.rail-card strong {
  display: block;
  margin-top: 6px;
  font-size: 1.02rem;
  line-height: 1.34;
}

.studio-float span:last-child,
.rail-card span:last-child {
  display: block;
  margin-top: 4px;
  color: var(--vm-text-soft);
  font-size: 0.92rem;
  line-height: 1.45;
}

.studio-float--project {
  top: 26px;
  left: 26px;
  max-width: 260px;
}

.studio-float--queue {
  right: 22px;
  top: 64px;
}

.studio-float--export {
  right: 22px;
  bottom: 28px;
}

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

.rail-card,
.story-card,
.creation-card,
.inside-card,
.workflow-step,
.compare-card {
  min-height: 100%;
  padding: 20px;
  border-radius: 22px;
  border: 1px solid rgba(0, 255, 133, 0.14);
  background: linear-gradient(180deg, rgba(17, 26, 38, 0.98), rgba(10, 16, 24, 0.98));
}

.rail-card {
  background:
    radial-gradient(360px 140px at 100% 0%, rgba(0, 209, 255, 0.1), transparent 52%),
    linear-gradient(180deg, rgba(17, 26, 38, 0.98), rgba(10, 16, 24, 0.98));
}

.section {
  margin-top: 20px;
  padding: 30px;
}

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.section__head--split {
  align-items: flex-start;
}

.section__eyebrow {
  margin: 0 0 8px;
}

.section h2 {
  margin: 0;
  max-width: 11ch;
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.section__lead {
  margin: 10px 0 0;
  max-width: 720px;
  color: var(--vm-text-soft);
  font-size: 1rem;
  line-height: 1.6;
}

.section--gallery h2 {
  max-width: 14ch;
}

.story-grid,
.compare-grid {
  display: grid;
  gap: 16px;
}

.story-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.story-card,
.compare-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
}

.story-card {
  background:
    radial-gradient(360px 140px at 100% 0%, rgba(0, 209, 255, 0.09), transparent 52%),
    linear-gradient(180deg, rgba(18, 27, 39, 0.98), rgba(10, 16, 24, 0.98));
}

.story-card__meta,
.compare-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.story-card__role,
.story-card__time {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0.36rem 0.74rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 209, 255, 0.18);
  background: rgba(0, 209, 255, 0.08);
  font-size: 0.82rem;
  font-weight: 700;
}

.story-card__time {
  border-color: rgba(0, 255, 133, 0.18);
  background: rgba(0, 255, 133, 0.08);
}

.story-card h3,
.compare-card h3 {
  margin: 0;
  font-size: 1.18rem;
}

.story-card p,
.compare-card p,
.compare-card__result {
  margin: 0;
  color: var(--vm-text-soft);
  line-height: 1.6;
}

.story-card__result,
.compare-card__result {
  margin-top: auto;
  color: var(--vm-text);
  font-weight: 700;
}

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

.compare-card {
  background:
    radial-gradient(420px 180px at 100% 0%, rgba(0, 255, 133, 0.1), transparent 54%),
    linear-gradient(180deg, rgba(16, 25, 37, 0.98), rgba(8, 14, 22, 0.99));
}

.compare-card--accent {
  border-color: rgba(0, 255, 133, 0.26);
  box-shadow: 0 18px 38px rgba(0, 255, 133, 0.08);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: 122px;
  gap: 16px;
}

.gallery-card {
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
  min-height: 0;
  border-radius: 24px;
  border: 1px solid rgba(0, 255, 133, 0.14);
  background:
    radial-gradient(360px 160px at 100% 0%, rgba(0, 209, 255, 0.08), transparent 56%),
    linear-gradient(180deg, rgba(14, 23, 35, 0.98), rgba(7, 12, 19, 0.99));
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24);
}

.gallery-card__media {
  position: absolute;
  inset: 0;
  display: block;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-card:hover img,
.gallery-card:focus-within img {
  transform: scale(1.03);
}

.gallery-card figcaption {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  pointer-events: none;
  padding: 18px 18px 16px;
  background: linear-gradient(180deg, rgba(4, 10, 16, 0), rgba(4, 10, 16, 0.88) 34%, rgba(4, 10, 16, 0.96) 100%);
}

.gallery-card__zoom {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0.42rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 255, 133, 0.2);
  background: rgba(6, 14, 22, 0.84);
  color: var(--vm-text);
  font-size: 0.82rem;
  font-weight: 700;
  pointer-events: none;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.24);
}

.gallery-card__eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-bottom: 8px;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 209, 255, 0.22);
  background: rgba(0, 209, 255, 0.08);
  color: var(--vm-accent-2);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gallery-card strong {
  display: block;
  max-width: 32ch;
  font-size: 1rem;
  line-height: 1.45;
}

.gallery-card--portrait {
  grid-column: span 4;
  grid-row: span 4;
}

.gallery-card--feature {
  grid-column: span 8;
  grid-row: span 2;
}

.gallery-card--square,
.gallery-card--wide {
  grid-column: span 4;
  grid-row: span 2;
}

.creation-grid,
.inside-grid {
  display: grid;
  gap: 16px;
}

.creation-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.creation-card,
.inside-card,
.workflow-step,
.story-card,
.compare-card,
.ecosystem-band {
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
}

.creation-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background:
    radial-gradient(360px 140px at 100% 0%, rgba(0, 209, 255, 0.09), transparent 52%),
    linear-gradient(180deg, rgba(18, 27, 39, 0.98), rgba(10, 16, 24, 0.98));
}

.creation-card__icon {
  display: inline-flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  border: 1px solid rgba(0, 255, 133, 0.18);
  background: linear-gradient(180deg, rgba(0, 255, 133, 0.14), rgba(0, 209, 255, 0.1));
  font-size: 1.35rem;
}

.creation-card h3,
.inside-card h3,
.workflow-step h3 {
  margin: 0;
  font-size: 1.18rem;
}

.creation-card p,
.inside-card p,
.workflow-step p,
.ecosystem-band p,
.footer__copy {
  margin: 0;
  color: var(--vm-text-soft);
  line-height: 1.6;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.workflow-step {
  position: relative;
}

.workflow-step::after {
  content: '→';
  position: absolute;
  right: -14px;
  top: 46%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(0, 209, 255, 0.24);
  background: rgba(7, 14, 23, 0.96);
  color: var(--vm-accent-2);
  font-size: 1rem;
}

.workflow-step:last-child::after {
  display: none;
}

.workflow-step__n {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  border-radius: 999px;
  background: rgba(0, 255, 133, 0.16);
  color: var(--vm-accent);
  font-weight: 800;
}

.inside-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.inside-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.inside-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--vm-text-soft);
  line-height: 1.6;
}

.ecosystem-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  background:
    radial-gradient(420px 200px at 100% 0%, rgba(0, 255, 133, 0.12), transparent 52%),
    linear-gradient(180deg, rgba(12, 21, 34, 0.98), rgba(7, 12, 20, 0.98));
}

.ecosystem-band__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.footer {
  margin-top: 20px;
  padding: 20px 24px;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer__copy {
  margin-top: 12px;
  font-size: 0.95rem;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  isolation: isolate;
}

.lightbox[hidden] {
  display: none;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(3, 8, 14, 0.88);
  backdrop-filter: blur(18px);
}

.lightbox__dialog {
  position: relative;
  z-index: 2;
  width: min(1180px, 100%);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
}

.lightbox__figure {
  margin: 0;
  display: grid;
  gap: 14px;
}

.lightbox__frame {
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(0, 255, 133, 0.18);
  background:
    radial-gradient(520px 220px at 80% 0%, rgba(0, 209, 255, 0.08), transparent 54%),
    linear-gradient(180deg, rgba(10, 17, 28, 0.98), rgba(4, 10, 16, 0.99));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.36);
  touch-action: pan-y;
}

.lightbox__image {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: min(78vh, 920px);
  margin: 0 auto;
  object-fit: contain;
}

.lightbox__caption {
  color: var(--vm-text-soft);
  text-align: center;
  line-height: 1.55;
}

.lightbox__hint {
  display: none;
  margin: 0;
  color: var(--vm-text-dim);
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.45;
}

.lightbox__close,
.lightbox__nav {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 1px solid rgba(0, 255, 133, 0.2);
  background: rgba(6, 14, 22, 0.9);
  color: var(--vm-text);
  font-size: 1.35rem;
  cursor: pointer;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
}

.lightbox__close {
  position: absolute;
  top: -8px;
  right: -8px;
}

@media (max-width: 1180px) {
  .topbar,
  .hero,
  .ecosystem-band {
    grid-template-columns: 1fr;
  }

  .topnav,
  .topbar__actions,
  .ecosystem-band__actions {
    justify-content: flex-start;
  }

  .hero {
    gap: 24px;
  }

  .creation-grid,
  .workflow-grid,
  .story-grid,
  .compare-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: auto;
  }

  .gallery-card--portrait,
  .gallery-card--feature,
  .gallery-card--square,
  .gallery-card--wide {
    grid-column: auto;
    grid-row: auto;
  }

  .gallery-card--portrait {
    min-height: 560px;
  }

  .gallery-card--feature,
  .gallery-card--square,
  .gallery-card--wide {
    min-height: 280px;
  }

  .workflow-step::after {
    display: none;
  }

  .lightbox__dialog {
    grid-template-columns: minmax(0, 1fr);
  }

  .lightbox__nav {
    display: none;
  }
}

@media (max-width: 920px) {
  .page-shell {
    width: min(100%, calc(100% - 18px));
    padding-top: 12px;
  }

  .topbar,
  .hero,
  .section,
  .footer {
    border-radius: 22px;
  }

  .topbar,
  .hero,
  .section,
  .footer {
    padding: 18px;
  }

  .topnav,
  .topbar__actions,
  .hero__actions,
  .footer__links,
  .ecosystem-band__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .topnav__link,
  .btn,
  .link-chip {
    width: 100%;
  }

  .hero-preview-strip {
    display: flex;
    gap: 12px;
    margin: 18px -6px 0;
    padding: 0 6px 6px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%);
  }

  .hero-preview-strip::-webkit-scrollbar {
    display: none;
  }

  .hero-preview-card {
    min-width: 188px;
    scroll-snap-align: start;
  }

  .studio-stage__panel {
    min-height: auto;
    padding: 14px;
  }

  .studio-float {
    position: static;
    margin-top: 12px;
  }

  .studio-rail,
  .gallery-grid,
  .story-grid,
  .creation-grid,
  .inside-grid,
  .workflow-grid,
  .compare-grid {
    grid-template-columns: 1fr;
  }

  .gallery-card--portrait {
    min-height: 520px;
  }

  .section__head,
  .section__head--split {
    align-items: flex-start;
    flex-direction: column;
  }

  .section h2,
  h1 {
    max-width: none;
  }

  .lightbox {
    padding: 16px;
  }

  .lightbox__close {
    position: fixed;
    top: 18px;
    right: 18px;
  }

  .lightbox__frame {
    border-radius: 20px;
  }

  .lightbox__hint {
    display: block;
  }
}

@media (max-width: 640px) {
  .brand img {
    width: 44px;
    height: 44px;
  }

  .brand__title {
    font-size: 1rem;
  }

  h1 {
    font-size: 2.35rem;
    line-height: 0.96;
  }

  .hero__lead,
  .section__lead,
  .story-card p,
  .creation-card p,
  .inside-card p,
  .workflow-step p,
  .compare-card p,
  .ecosystem-band p {
    font-size: 0.98rem;
  }

  .hero__meta,
  .chip-row,
  .models-strip {
    gap: 8px;
  }

  .badge,
  .mini-chip,
  .status-pill {
    font-size: 0.82rem;
  }

  .hero-preview-card {
    flex-basis: 164px;
    min-width: 164px;
    min-height: 94px;
    border-radius: 16px;
  }

  .hero-preview-card span {
    inset: auto 8px 8px 8px;
    min-height: 28px;
    padding: 0.28rem 0.62rem;
    font-size: 0.76rem;
  }

  .section h2 {
    font-size: 2rem;
  }

  .gallery-card--portrait,
  .gallery-card--feature,
  .gallery-card--square,
  .gallery-card--wide {
    min-height: 260px;
  }

  .gallery-card figcaption {
    padding: 14px 14px 13px;
  }

  .gallery-card__zoom {
    top: 12px;
    right: 12px;
    min-height: 30px;
    padding: 0.34rem 0.7rem;
    font-size: 0.78rem;
  }

  .lightbox__close {
    width: 44px;
    height: 44px;
    font-size: 1.15rem;
  }
}
