:root {
  color-scheme: dark;
  --bg: #05070d;
  --surface: rgba(14, 19, 31, 0.88);
  --surface-2: rgba(21, 28, 44, 0.92);
  --ink: #f5f7fb;
  --muted: #94a3b8;
  --line: rgba(116, 140, 171, 0.22);
  --line-strong: rgba(94, 234, 212, 0.42);
  --accent: #5eead4;
  --accent-2: #8b5cf6;
  --green: #34d399;
  --orange: #f59e0b;
  --rose: #fb7185;
  --blue: #60a5fa;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 0%, rgba(94, 234, 212, 0.18), transparent 28%),
    radial-gradient(circle at 82% 12%, rgba(139, 92, 246, 0.22), transparent 34%),
    linear-gradient(180deg, rgba(5, 7, 13, 0.62), rgba(5, 7, 13, 1) 520px),
    var(--bg);
  color: var(--ink);
  font: 15px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.055) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, black, transparent 72%);
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
p {
  margin: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(116, 140, 171, 0.18);
  background: rgba(5, 7, 13, 0.78);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(1240px, calc(100vw - 32px));
  height: 68px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 780;
  letter-spacing: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(94, 234, 212, 0.55);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(94, 234, 212, 0.18), rgba(139, 92, 246, 0.22));
  color: #eafffb;
  font-weight: 860;
  box-shadow: 0 0 24px rgba(94, 234, 212, 0.22);
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 650;
}

.nav-links a:hover {
  background: rgba(94, 234, 212, 0.08);
  color: var(--ink);
}

.nav-cta,
.primary-link,
.ghost-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 8px;
  font-weight: 820;
}

.nav-cta,
.primary-link {
  border: 1px solid rgba(94, 234, 212, 0.48);
  background: linear-gradient(135deg, #5eead4, #8b5cf6);
  color: #020617;
  box-shadow: 0 14px 34px rgba(94, 234, 212, 0.16);
}

.nav-cta {
  padding: 0 15px;
}

.primary-link {
  padding: 0 18px;
}

.ghost-link {
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.72);
  color: var(--ink);
  padding: 0 16px;
}

.ghost-link.small {
  min-height: 38px;
  font-size: 13px;
}

.wallet {
  min-width: 112px;
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(14, 19, 31, 0.72);
}

.auth-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.login-button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: rgba(15, 23, 42, 0.72);
  color: var(--ink);
  font-weight: 820;
}

.login-button:hover {
  border-color: var(--line-strong);
}

.wallet span {
  color: var(--muted);
  font-size: 13px;
}

.wallet strong {
  font-size: 22px;
  line-height: 1;
}

.shell {
  width: min(1240px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.landing-hero {
  min-height: 540px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 42px;
  align-items: center;
  padding: 56px 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 72% 16%, rgba(94, 234, 212, 0.22), transparent 31%),
    radial-gradient(circle at 16% 78%, rgba(139, 92, 246, 0.2), transparent 34%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(2, 6, 23, 0.95));
  box-shadow: var(--shadow);
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.landing-hero.story-cover {
  width: 100vw;
  min-height: calc(100vh - 68px);
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  display: grid;
  place-items: center;
  grid-template-columns: 1fr;
  padding: 84px 24px 72px;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at 50% 38%, rgba(94, 234, 212, 0.18), transparent 26%),
    radial-gradient(circle at 52% 64%, rgba(139, 92, 246, 0.22), transparent 32%),
    linear-gradient(180deg, #02040a 0%, #05070d 52%, #03040a 100%);
}

.landing-hero::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(94, 234, 212, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(94, 234, 212, 0.07) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(circle at 72% 44%, black, transparent 63%);
}

.story-cover::before {
  mask-image: radial-gradient(circle at 50% 48%, black, transparent 72%);
  opacity: 0.72;
}

.landing-hero::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -140px;
  top: 20px;
  z-index: -1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(94, 234, 212, 0.28), transparent 58%),
    conic-gradient(from 120deg, rgba(94, 234, 212, 0.32), rgba(139, 92, 246, 0.42), rgba(14, 165, 233, 0.3), rgba(94, 234, 212, 0.32));
  filter: blur(10px);
  opacity: 0.72;
}

.story-cover::after {
  width: 900px;
  height: 900px;
  right: auto;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.42;
  filter: blur(28px);
}

.cover-art {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.cover-art::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(circle at 50% 48%, transparent 0 28%, rgba(2, 4, 10, 0.48) 52%, rgba(2, 4, 10, 0.9) 100%),
    linear-gradient(180deg, rgba(2, 4, 10, 0.2), rgba(2, 4, 10, 0.9));
}

.cover-frame {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 42%),
    radial-gradient(circle at 60% 30%, rgba(94, 234, 212, 0.32), transparent 32%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.92));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
  opacity: 0.62;
}

.cover-frame::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.14) 0 8%, transparent 8% 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), transparent 42%);
  opacity: 0.42;
}

.frame-1 {
  width: 360px;
  height: 470px;
  left: 5vw;
  top: 18vh;
  transform: rotate(-9deg);
}

.frame-2 {
  width: 300px;
  height: 390px;
  right: 8vw;
  top: 15vh;
  transform: rotate(8deg);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 42%),
    radial-gradient(circle at 42% 26%, rgba(139, 92, 246, 0.34), transparent 34%),
    linear-gradient(135deg, rgba(30, 41, 59, 0.92), rgba(2, 6, 23, 0.92));
}

.frame-3 {
  width: 420px;
  height: 260px;
  left: 23vw;
  bottom: 8vh;
  transform: rotate(5deg);
  opacity: 0.4;
}

.frame-4 {
  width: 360px;
  height: 240px;
  right: 18vw;
  bottom: 10vh;
  transform: rotate(-6deg);
  opacity: 0.38;
  background:
    radial-gradient(circle at 52% 36%, rgba(245, 158, 11, 0.25), transparent 34%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.92));
}

.frame-5 {
  width: 520px;
  height: 520px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  opacity: 0.18;
  border-radius: 24px;
}

.landing-copy h1 {
  max-width: 760px;
  margin-top: 12px;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: 0;
}

.story-cover .landing-copy {
  position: relative;
  z-index: 3;
  display: grid;
  justify-items: center;
  text-align: center;
}

.story-cover .landing-copy h1 {
  max-width: 980px;
  margin-top: 16px;
  font-size: clamp(54px, 8vw, 112px);
  line-height: 0.96;
  text-shadow:
    0 0 46px rgba(94, 234, 212, 0.2),
    0 18px 70px rgba(0, 0, 0, 0.7);
}

.landing-copy p:not(.eyebrow) {
  max-width: 640px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 18px;
}

.story-cover .landing-copy p:not(.eyebrow) {
  max-width: 720px;
  font-size: 19px;
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.stats-band span {
  color: var(--muted);
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.stats-band div {
  min-height: 110px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 18px 56px rgba(0, 0, 0, 0.22);
}

.stats-band strong {
  display: block;
  margin-bottom: 8px;
  font-size: 28px;
}

.case-section,
.process-section {
  margin-top: 22px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 18px 56px rgba(0, 0, 0, 0.22);
}

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

.case-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.56);
  transition: transform 160ms ease, border-color 160ms ease;
}

.case-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
}

.case-visual {
  min-height: 230px;
  display: grid;
  align-items: end;
  padding: 16px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.case-visual img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 220ms ease, filter 220ms ease;
}

.case-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.02), rgba(2, 6, 23, 0.58));
}

.case-card:hover .case-visual img {
  transform: scale(1.05);
  filter: saturate(1.08);
}

.case-product .case-visual {
  background:
    radial-gradient(circle at 58% 30%, rgba(94, 234, 212, 0.28), transparent 34%),
    linear-gradient(135deg, rgba(8, 47, 73, 0.7), rgba(2, 6, 23, 1));
}

.case-action .case-visual {
  background:
    radial-gradient(circle at 48% 30%, rgba(236, 72, 153, 0.25), transparent 34%),
    linear-gradient(135deg, rgba(49, 46, 129, 0.7), rgba(2, 6, 23, 1));
}

.case-text2image .case-visual {
  background:
    radial-gradient(circle at 50% 40%, rgba(245, 158, 11, 0.23), transparent 36%),
    linear-gradient(135deg, rgba(20, 83, 45, 0.62), rgba(2, 6, 23, 1));
}

.case-visual span {
  width: max-content;
  padding: 7px 10px;
  border: 1px solid rgba(94, 234, 212, 0.32);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.56);
  color: var(--accent);
  font-size: 12px;
  font-weight: 820;
}

.case-body {
  padding: 16px;
}

.case-body strong {
  display: block;
  font-size: 19px;
}

.case-body p {
  min-height: 46px;
  margin-top: 8px;
  color: var(--muted);
}

.case-body span {
  display: inline-flex;
  margin-top: 14px;
  color: var(--accent);
  font-weight: 820;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.process-grid article {
  min-height: 160px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.52);
}

.process-grid span {
  color: var(--accent);
  font-weight: 860;
}

.process-grid strong {
  display: block;
  margin-top: 20px;
  font-size: 18px;
}

.process-grid p {
  margin-top: 8px;
  color: var(--muted);
}

.hero {
  min-height: 260px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 28px;
  align-items: end;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 82% 12%, rgba(94, 234, 212, 0.26), transparent 32%),
    radial-gradient(circle at 18% 88%, rgba(139, 92, 246, 0.18), transparent 36%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.94));
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.studio-hero {
  min-height: 260px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(94, 234, 212, 0.12);
}

.hero h1 {
  max-width: 720px;
  margin-top: 10px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.03;
  letter-spacing: 0;
  text-shadow: 0 0 36px rgba(94, 234, 212, 0.14);
}

.eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.runtime {
  max-width: 860px;
  margin-top: 18px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

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

.hero-metrics div {
  min-height: 92px;
  padding: 14px;
  border: 1px solid rgba(94, 234, 212, 0.18);
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.5);
  box-shadow: inset 0 0 24px rgba(94, 234, 212, 0.045);
}

.hero-metrics span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.hero-metrics strong {
  display: block;
  margin-top: 10px;
  font-size: 24px;
  line-height: 1.05;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 22px;
  margin-top: 22px;
  align-items: start;
}

.creator-panel,
.panel,
.gallery-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 18px 56px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.creator-panel,
.panel {
  padding: 22px;
}

.gallery-panel {
  margin-top: 22px;
  padding: 22px;
}

.side-stack {
  display: grid;
  gap: 22px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.section-head.compact {
  margin-bottom: 12px;
}

.section-head h2 {
  margin-top: 2px;
  font-size: 22px;
  line-height: 1.18;
}

.pill {
  padding: 7px 10px;
  border: 1px solid rgba(94, 234, 212, 0.35);
  border-radius: 999px;
  background: rgba(94, 234, 212, 0.08);
  color: var(--accent);
  font-size: 12px;
  font-weight: 760;
  white-space: nowrap;
}

label {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--muted);
  font-weight: 700;
}

textarea,
input,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--ink);
  background: rgba(2, 6, 23, 0.72);
  outline: 0;
}

textarea {
  resize: vertical;
}

textarea:focus,
input:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.12), 0 0 28px rgba(94, 234, 212, 0.08);
}

.presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -2px 0 16px;
}

.presets button,
.ghost {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.72);
  color: var(--ink);
  font-weight: 720;
}

.presets button {
  padding: 8px 11px;
}

.ghost {
  padding: 9px 12px;
}

.presets button:hover,
.ghost:hover {
  border-color: var(--line-strong);
  background: rgba(94, 234, 212, 0.08);
}

.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 14px;
}

.actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 4px;
}

.primary {
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  background: linear-gradient(135deg, #5eead4, #8b5cf6);
  color: #020617;
  font-weight: 800;
  box-shadow: 0 14px 36px rgba(94, 234, 212, 0.18);
}

.primary:hover {
  filter: brightness(1.08);
}

.primary.full {
  width: 100%;
}

.message {
  min-height: 22px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.pay-qrcode {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.5);
  text-align: center;
}

.pay-qrcode img {
  width: min(220px, 100%);
  aspect-ratio: 1;
  border-radius: 8px;
  background: #fff;
  object-fit: contain;
}

.pay-qrcode span {
  font-size: 13px;
  line-height: 1.5;
}

.login-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(14px);
}

.login-modal[hidden] {
  display: none;
}

.login-card {
  position: relative;
  width: min(420px, 100%);
  padding: 24px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(14, 19, 31, 0.96);
  box-shadow: var(--shadow);
}

.login-card h2 {
  margin: 4px 0 18px;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.52);
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
}

.plans {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.plan {
  position: relative;
  display: grid;
  gap: 4px;
  min-height: 76px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 42px 12px 12px;
  background: rgba(2, 6, 23, 0.55);
  cursor: pointer;
}

.plan input {
  position: absolute;
  inset: 14px 12px auto auto;
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.plan strong {
  font-size: 15px;
}

.plan span {
  color: var(--muted);
  font-size: 13px;
}

.plan:has(input:checked) {
  border-color: var(--accent);
  background: rgba(94, 234, 212, 0.08);
  box-shadow: inset 0 0 0 1px rgba(94, 234, 212, 0.35), 0 0 28px rgba(94, 234, 212, 0.08);
}

.payments,
.job-grid {
  display: grid;
  gap: 12px;
}

.payment-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.payment-row:last-child {
  border-bottom: 0;
}

.payment-row strong,
.payment-row span {
  overflow-wrap: anywhere;
}

.payment-row span,
.meta,
.error {
  color: var(--muted);
  font-size: 13px;
}

.badge {
  justify-self: end;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.badge.paid,
.status.succeeded {
  color: var(--green);
}

.badge.pending,
.status.running,
.status.submitting,
.status.queued {
  color: var(--orange);
}

.job-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.job {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.55);
}

.job-preview {
  display: grid;
  place-items: center;
  min-height: 190px;
  background:
    radial-gradient(circle at 50% 30%, rgba(94, 234, 212, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(139, 92, 246, 0.16), rgba(14, 165, 233, 0.12)),
    #070b14;
}

.job-preview span {
  color: var(--muted);
  font-weight: 760;
}

.job-preview img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.job-body {
  padding: 13px;
}

.job-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.status {
  font-size: 12px;
  font-weight: 820;
  text-transform: uppercase;
}

.status.failed,
.error {
  color: var(--rose);
}

.job-prompt {
  min-height: 44px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

@media (max-width: 980px) {
  .landing-hero,
  .hero,
  .workspace {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 28px;
  }

  .landing-hero.compact-hero {
    min-height: auto;
  }

  .case-grid,
  .process-grid,
  .stats-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .nav {
    height: auto;
    grid-template-columns: 1fr auto;
    padding: 12px 0;
  }

  .nav-cta {
    width: 100%;
    grid-column: 1 / -1;
  }

  .nav-links {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .hero h1 {
    font-size: 36px;
  }

  .landing-hero {
    min-height: auto;
    padding: 28px;
  }

  .landing-copy h1 {
    font-size: 40px;
  }

  .story-cover .landing-copy h1 {
    font-size: 48px;
  }

  .story-cover .landing-copy p:not(.eyebrow) {
    font-size: 16px;
  }

  .hero-metrics,
  .form-grid,
  .case-grid,
  .process-grid,
  .stats-band {
    grid-template-columns: 1fr;
  }

  .actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary {
    width: 100%;
  }
}
