:root {
  --bg: #f4eee3;
  --bg-deep: #142322;
  --bg-strong: #0f1b1a;
  --panel: rgba(255, 251, 245, 0.9);
  --panel-strong: #fffaf2;
  --panel-dark: rgba(20, 35, 34, 0.94);
  --ink: #142322;
  --muted: #5d685f;
  --line: rgba(20, 35, 34, 0.1);
  --line-strong: rgba(255, 248, 236, 0.16);
  --accent: #cc5b2c;
  --accent-strong: #a5451d;
  --accent-soft: rgba(204, 91, 44, 0.12);
  --signal: #214e49;
  --signal-soft: rgba(33, 78, 73, 0.12);
  --warning: #855100;
  --danger: #a53131;
  --cream: #fff6ea;
  --shadow: 0 16px 40px rgba(20, 35, 34, 0.06);
  --shadow-strong: 0 24px 70px rgba(8, 15, 15, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #faf7f1 0%, #f1ede5 100%);
  font-family: "Aptos", "Segoe UI Variable Text", "Trebuchet MS", sans-serif;
}

body[data-page="landing"],
body[data-page="showcases"],
body[data-page="job"],
body[data-page="intent"] {
  background: linear-gradient(180deg, #faf7f1 0%, #f1ede5 100%);
}

.site-chrome {
  width: min(1280px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 28px 0 76px;
}

.page-shell {
  display: grid;
  gap: 24px;
}

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

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark,
.brand-mini {
  display: block;
  width: 50px;
  height: 50px;
}

.brand-mini {
  width: 34px;
  height: 34px;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-size: 1.28rem;
  letter-spacing: 0.01em;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.92rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.monetization-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 0 0 22px;
  padding: 14px 18px;
  border-radius: 18px;
  background: rgba(33, 78, 73, 0.08);
  border: 1px solid rgba(33, 78, 73, 0.15);
}

.monetization-badge {
  display: inline-flex;
  align-items: center;
  min-height: 29px;
  padding: 0 10px;
  border-radius: 12px;
  background: rgba(20, 35, 34, 0.9);
  color: #fffaf2;
  font-family: "Aptos", "Segoe UI Variable Text", "Trebuchet MS", sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.monetization-copy {
  margin: 0;
  flex: 1 1 320px;
  color: var(--muted);
  line-height: 1.55;
}

.monetization-action {
  min-height: 40px;
  padding-inline: 14px;
  font-size: 0.92rem;
}

.site-nav a,
.footer-links a,
.consent-box a,
.legal-nav a,
.legal-copy a {
  color: var(--muted);
  text-decoration: none;
  font-family: "Aptos", "Segoe UI Variable Text", "Trebuchet MS", sans-serif;
  font-weight: 600;
  font-size: 0.96rem;
}

.site-nav a:hover,
.footer-links a:hover,
.consent-box a:hover,
.legal-nav a:hover,
.legal-copy a:hover {
  color: var(--signal);
  text-decoration: none;
}

.hero,
.panel {
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(460px, 1.18fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  padding: 38px 40px;
  background: linear-gradient(135deg, rgba(12, 19, 20, 0.99), rgba(18, 31, 30, 0.96));
  color: var(--cream);
  border: 1px solid rgba(255, 248, 236, 0.1);
  box-shadow: 0 28px 80px rgba(8, 15, 15, 0.22);
}

.hero-copy,
.hero-panel {
  position: relative;
  z-index: 1;
}

.hero-proof-panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  align-self: center;
  justify-self: center;
  width: min(100%, 760px);
  min-height: 0;
  overflow: visible;
}

.hero-proof-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  color: var(--cream);
}

.hero-proof-heading strong {
  font-size: 1rem;
  line-height: 1.2;
}

.hero-proof-heading span {
  color: rgba(255, 246, 234, 0.72);
  font-size: 0.86rem;
  line-height: 1.3;
  text-align: right;
}

.hero-proof-labels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  overflow: hidden;
  border-radius: 999px;
  border: 1px solid rgba(255, 248, 236, 0.14);
  background: rgba(255, 248, 236, 0.08);
}

.hero-proof-labels span {
  padding: 5px 10px;
  color: rgba(255, 246, 234, 0.78);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
  background: rgba(12, 19, 20, 0.78);
}

.hero-proof-media {
  aspect-ratio: 8 / 3;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(255, 248, 236, 0.12);
  background: #0f1718;
  box-shadow: 0 18px 52px rgba(8, 15, 15, 0.22);
}

.hero-proof-panel video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.hero-copy h1,
.section-heading h2,
.proof-callout h2,
.showcase-heading h3,
.case-study-card h3,
.preset-card h3 {
  margin: 0;
  font-family: Baskerville, Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.98;
}

.hero-copy h1 {
  max-width: 12.4ch;
  margin-bottom: 10px;
  font-size: 2.5rem;
  line-height: 0.98;
}

.eyebrow {
  margin: 0 0 10px;
  color: #b76947;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 700;
}

.hero .eyebrow {
  color: #e4b8a1;
}

.hero-text,
.section-text,
.proof-copy,
.case-study-card p,
.preset-card p,
.featured-showcase-card p,
.hero-note,
.detail-note {
  color: rgba(255, 246, 234, 0.8);
  line-height: 1.6;
}

.hero-text {
  max-width: 33ch;
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.55;
}

.section-text,
.case-study-card p,
.preset-card p,
.featured-showcase-card p,
.detail-note {
  color: var(--muted);
}

.hero-actions,
.upload-actions,
.results-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 20px;
}

.hero-ribbon {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.hero-ribbon span,
.pill,
.wow-pill,
.status-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 29px;
  padding: 0 10px;
  border-radius: 12px;
  font-family: "Aptos", "Segoe UI Variable Text", "Trebuchet MS", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  font-weight: 700;
}

.hero-ribbon span {
  background: rgba(255, 246, 234, 0.05);
  border: 1px solid rgba(255, 246, 234, 0.07);
  color: rgba(255, 246, 234, 0.76);
}

.hero-panel {
  display: grid;
  gap: 14px;
  padding: 24px 24px 22px;
  border-radius: 20px;
  background: rgba(255, 246, 234, 0.05);
  border: 1px solid rgba(255, 248, 236, 0.08);
  backdrop-filter: blur(18px);
  align-content: start;
}

.hero-panel strong {
  font-size: 1.08rem;
}

.hero-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
  color: rgba(255, 246, 234, 0.84);
  line-height: 1.6;
}

.hero-note {
  padding-top: 10px;
  border-top: 1px solid rgba(255, 248, 236, 0.08);
  font-size: 0.98rem;
  line-height: 1.55;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 16px;
  text-decoration: none;
  border: 1px solid transparent;
  font-family: "Aptos", "Segoe UI Variable Text", "Trebuchet MS", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: linear-gradient(135deg, #c85d31, #e28558);
  color: #fffaf2;
  box-shadow: 0 12px 28px rgba(204, 91, 44, 0.22);
}

.button.secondary {
  background: rgba(255, 250, 242, 0.9);
  border-color: var(--line);
  color: var(--ink);
}

.button.disabled {
  pointer-events: none;
  opacity: 0.52;
}

.panel {
  padding: 32px;
  background: linear-gradient(180deg, rgba(255, 252, 248, 0.97), rgba(248, 243, 236, 0.97));
  border: 1px solid rgba(20, 35, 34, 0.08);
  box-shadow: 0 18px 44px rgba(20, 35, 34, 0.05);
}

.section-heading {
  display: grid;
  gap: 6px;
  margin-bottom: 20px;
}

.section-text {
  max-width: 56ch;
  font-size: 1.01rem;
  line-height: 1.55;
}

.section-heading-split {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.section-actions {
  display: flex;
  gap: 12px;
}

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

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

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

.seo-card,
.faq-item {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--panel-strong);
}

.seo-card h3 {
  margin: 0;
  font-family: Baskerville, Georgia, "Times New Roman", serif;
  font-size: 1.28rem;
  line-height: 1.08;
}

.related-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  padding: 0 4px 8px;
}

.related-label {
  color: var(--muted);
  font-family: "Aptos", "Segoe UI Variable Text", "Trebuchet MS", sans-serif;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.related-strip a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(20, 35, 34, 0.1);
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.7);
  color: var(--signal);
  font-family: "Aptos", "Segoe UI Variable Text", "Trebuchet MS", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

.related-strip a:hover {
  border-color: rgba(204, 91, 44, 0.28);
  color: var(--accent-strong);
}

.seo-card p,
.faq-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.seo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: auto;
}

.seo-card a {
  color: var(--ink);
  text-decoration: none;
}

.seo-card a:hover {
  color: var(--accent-strong);
  text-decoration: underline;
}

.faq-grid {
  display: grid;
  gap: 12px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
}

.featured-showcase-card,
.preset-card,
.case-study-card,
.summary-block,
.status-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--panel-strong);
}

.featured-showcase-card {
  align-content: start;
  box-shadow: 0 12px 30px rgba(20, 35, 34, 0.05);
}

.featured-media {
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(18, 24, 34, 0.95), rgba(18, 24, 34, 0.88));
}

.featured-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.showcase-heading {
  display: grid;
  gap: 8px;
}

.showcase-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.pill {
  background: rgba(20, 35, 34, 0.06);
  color: rgba(20, 35, 34, 0.86);
}

.wow-pill {
  background: rgba(204, 91, 44, 0.08);
  color: rgba(165, 69, 29, 0.9);
}

.featured-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: auto;
}

.featured-actions .button.secondary {
  min-height: 40px;
  padding: 0 14px;
  background: rgba(255, 250, 242, 0.72);
}

.text-link {
  color: var(--signal);
  font-family: "Aptos", "Segoe UI Variable Text", "Trebuchet MS", sans-serif;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.94rem;
}

.text-link:hover {
  color: var(--accent-strong);
  text-decoration: underline;
}

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

.preset-card {
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
  align-content: start;
  gap: 14px;
}

.preset-card.active {
  transform: none;
  border-color: rgba(204, 91, 44, 0.38);
  box-shadow: inset 0 0 0 1px rgba(204, 91, 44, 0.18);
}

.featured-copy,
.preset-copy {
  display: grid;
  gap: 8px;
}

.featured-summary,
.preset-description {
  margin: 0;
}

.featured-showcase-card h3 {
  font-size: 1.66rem;
  line-height: 1.02;
}

.preset-card h3 {
  font-size: 1.44rem;
  line-height: 1.06;
}

.featured-summary {
  max-width: 28ch;
  font-size: 0.98rem;
  line-height: 1.5;
}

.preset-description {
  max-width: 29ch;
  font-size: 0.98rem;
  line-height: 1.52;
}

.preset-fact {
  display: grid;
  gap: 4px;
  padding-top: 2px;
}

.preset-fact + .preset-fact {
  padding-top: 10px;
  border-top: 1px solid rgba(20, 35, 34, 0.08);
}

.preset-fact-label {
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

.preset-fact strong {
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.45;
}

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

.field {
  display: grid;
  gap: 8px;
}

.field span,
.summary-label {
  font-family: "Aptos", "Segoe UI Variable Text", "Trebuchet MS", sans-serif;
  font-weight: 700;
}

.field input,
.field select {
  width: 100%;
  min-height: 56px;
  padding: 0 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  font: inherit;
}

.upload-form {
  display: grid;
  gap: 16px;
}

.file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  padding: 0;
  border: 0;
}

.file-picker {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 9px 13px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
}

.file-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 15px;
  border-radius: 14px;
  background: rgba(20, 35, 34, 0.04);
  border: 1px solid rgba(20, 35, 34, 0.08);
  color: var(--ink);
  font-family: "Aptos", "Segoe UI Variable Text", "Trebuchet MS", sans-serif;
  font-weight: 700;
  cursor: pointer;
}

.file-name-display {
  color: var(--muted);
  font-size: 1rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preset-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 2px;
}

.summary-block {
  padding: 16px 18px;
  gap: 10px;
  background: rgba(255, 250, 242, 0.88);
  box-shadow: none;
}

.summary-block strong {
  font-size: 1.02rem;
  line-height: 1.45;
}

.summary-label,
.metric-label {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.file-meta,
.form-message,
.status-message,
.retention-note {
  margin-top: 16px;
  padding: 15px 17px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
}

.consent-box {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  margin-top: 8px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(20, 35, 34, 0.08);
  background: rgba(255, 249, 240, 0.72);
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.5;
}

.consent-box input {
  margin: 2px 0 0;
}

.consent-box a {
  font-weight: 600;
}

.upload-reset {
  min-height: 44px;
  padding: 0 15px;
  border-color: rgba(20, 35, 34, 0.08);
  background: transparent;
  color: var(--muted);
  box-shadow: none;
}

.upload-reset:hover {
  background: rgba(255, 255, 255, 0.5);
}

.form-message.warning {
  color: var(--warning);
  border-color: rgba(133, 81, 0, 0.22);
  background: rgba(252, 239, 211, 0.88);
}

.form-message.error,
.status-message.error {
  color: var(--danger);
  border-color: rgba(165, 49, 49, 0.22);
  background: rgba(253, 235, 235, 0.88);
}

.status-message.warning {
  color: var(--warning);
  border-color: rgba(133, 81, 0, 0.22);
  background: rgba(252, 239, 211, 0.88);
}

.hidden {
  display: none !important;
}

.status-panel-elevated {
  background: linear-gradient(180deg, rgba(255, 250, 243, 0.98), rgba(250, 244, 236, 0.98));
}

.upload-panel,
.featured-panel,
.seo-panel,
.showcase-panel,
.case-study-panel {
  position: relative;
}

.upload-panel::before,
.featured-panel::before,
.seo-panel::before,
.showcase-panel::before,
.case-study-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.26), transparent 22%);
  opacity: 0.9;
}

.upload-panel > *,
.featured-panel > *,
.seo-panel > *,
.showcase-panel > *,
.case-study-panel > * {
  position: relative;
  z-index: 1;
}

.upload-panel {
  background: linear-gradient(180deg, rgba(255, 252, 248, 0.98), rgba(247, 242, 234, 0.98));
}

.status-shell,
.results-shell {
  display: grid;
  gap: 18px;
}

.status-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: end;
}

.job-reference-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 4px;
}

#job-id-display {
  overflow-wrap: anywhere;
}

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

.copy-link-button {
  min-height: 38px;
  padding: 0 14px;
  font-size: 0.92rem;
  background: rgba(255, 250, 242, 0.72);
}

.copy-link-button.is-copied {
  border-color: rgba(33, 78, 73, 0.28);
  color: var(--signal);
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--line);
  font-weight: 700;
}

.progress-wrap {
  display: grid;
  gap: 10px;
}

.progress-bar {
  width: 100%;
  height: 16px;
  border-radius: 999px;
  background: rgba(20, 35, 34, 0.08);
  overflow: hidden;
}

.progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--signal), var(--accent));
  transition: width 260ms ease;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-weight: 700;
}

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

.result-video,
.case-study-video {
  width: 100%;
  display: block;
  border-radius: 18px;
  background: #0f1718;
}

.feedback-panel {
  display: grid;
  gap: 18px;
}

.feedback-form {
  display: grid;
  gap: 16px;
}

.feedback-row {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 14px;
}

.feedback-field {
  display: grid;
  gap: 8px;
}

.feedback-field textarea,
.feedback-field select {
  width: 100%;
  min-height: 56px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
  font: inherit;
}

.feedback-field textarea {
  min-height: 132px;
  resize: vertical;
}

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

.feedback-rating-button {
  min-height: 56px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.feedback-rating-button:hover {
  transform: translateY(-1px);
}

.feedback-rating-button.active {
  border-color: rgba(204, 91, 44, 0.46);
  background: rgba(204, 91, 44, 0.12);
  color: var(--accent-strong);
}

.feedback-scale,
.feedback-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.feedback-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.feedback-actions .button.primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.case-study-grid {
  display: grid;
  gap: 18px;
}

.case-study-grid-showcases {
  grid-template-columns: 1fr;
}

.case-study-card {
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.case-study-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(180deg, var(--accent), var(--signal));
}

.case-study-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.compare-shell,
.detail-shell {
  display: grid;
  gap: 12px;
}

.compare-stage {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(33, 78, 73, 0.18);
  background: linear-gradient(180deg, rgba(15, 24, 24, 0.98), rgba(15, 24, 24, 0.92));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.compare-stage-split,
.detail-stage {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 12px;
}

.compare-pane,
.detail-pane {
  display: grid;
  gap: 8px;
}

.compare-pane {
  aspect-ratio: var(--compare-aspect, 16 / 9);
}

.compare-pane-label {
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--cream);
  font-size: 0.82rem;
  font-weight: 700;
}

.compare-pane-emphasis .compare-pane-label {
  color: #ffd8c8;
}

.compare-stage-wipe {
  aspect-ratio: var(--compare-aspect, 16 / 9);
  touch-action: none;
}

.compare-stage-hstack {
  aspect-ratio: var(--compare-aspect, 32 / 9);
}

.compare-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  background: #0f1718;
  pointer-events: none;
  transform-origin: center center;
  transform: scaleX(var(--video-scale-x, 1));
}

.compare-video-hstack {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  background: #0f1718;
  cursor: pointer;
}

.compare-video-base,
.compare-video-overlay {
  position: absolute;
  inset: 0;
}

.compare-video-overlay {
  clip-path: inset(0 0 0 var(--wipe-position));
}

.wipe-slider {
  width: 100%;
  min-width: 140px;
  margin: 0;
  accent-color: var(--accent);
  cursor: ew-resize;
}

.wipe-control {
  display: grid;
  grid-template-columns: auto minmax(140px, 220px);
  gap: 10px;
  align-items: center;
}

.wipe-control span {
  font-weight: 700;
  color: var(--muted);
}

.wipe-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--wipe-position);
  width: 2px;
  background: rgba(255, 250, 240, 0.94);
  pointer-events: none;
}

.wipe-handle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  border: 1px solid rgba(255, 250, 240, 0.7);
  background: rgba(204, 91, 44, 0.94);
  box-shadow: 0 12px 28px rgba(8, 16, 15, 0.3);
}

.compare-corner {
  position: absolute;
  top: 14px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(15, 24, 24, 0.72);
  color: var(--cream);
  font-size: 0.82rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
  z-index: 2;
}

.compare-corner-left {
  left: 14px;
}

.compare-corner-right {
  right: 14px;
}

.compare-controls {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 10px;
  align-items: center;
}

.compare-shell-wipe .compare-controls {
  grid-template-columns: auto auto minmax(170px, 240px) 1fr;
}

.timeline-slider {
  width: 100%;
  accent-color: var(--accent);
}

.detail-head {
  display: grid;
  gap: 4px;
}

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

.hotspot-button {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.hotspot-button.active {
  border-color: rgba(204, 91, 44, 0.34);
  background: rgba(204, 91, 44, 0.12);
  color: var(--accent-strong);
}

.detail-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(33, 78, 73, 0.18);
  background: #0f1718;
}

.detail-frame-hstack {
  aspect-ratio: 8 / 3;
}

.detail-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: var(--zoom-x) var(--zoom-y);
  transform: scale(var(--zoom-scale));
}

.detail-video-hstack {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

.detail-label-left,
.detail-label-right {
  position: absolute;
  top: 10px;
  z-index: 2;
}

.detail-label-left {
  left: 10px;
}

.detail-label-right {
  right: 10px;
  color: #ffd8c8;
}

.case-study-card details {
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(249, 243, 235, 0.72);
  padding: 12px 14px;
}

.case-study-card summary {
  cursor: pointer;
  font-weight: 700;
}

.case-study-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.mono {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.86rem;
  color: var(--muted);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  margin-top: 26px;
  padding: 18px 24px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 250, 243, 0.76);
  box-shadow: none;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.footer-copy {
  display: grid;
  gap: 4px;
}

.footer-copy span {
  color: var(--muted);
  font-size: 0.96rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 600;
}

.legal-page,
.legal-shell {
  display: grid;
  gap: 24px;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.legal-panel h2 {
  margin-top: 0;
  font-family: Baskerville, Georgia, "Times New Roman", serif;
  font-size: 2rem;
}

.legal-copy {
  display: grid;
  gap: 12px;
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 1080px) {
  .hero,
  .section-heading-split,
  .status-header {
    grid-template-columns: 1fr;
  }

  .featured-showcase-grid,
  .preset-grid,
  .seo-grid,
  .intent-grid,
  .status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-chrome {
    width: min(100vw - 20px, 100%);
    padding-top: 18px;
  }

  .site-header,
  .site-footer,
  .compare-controls,
  .progress-meta,
  .case-study-footer {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .featured-showcase-grid,
  .preset-grid,
  .seo-grid,
  .intent-grid,
  .field-grid,
  .preset-summary,
  .status-grid,
  .feedback-row,
  .compare-stage-split,
  .detail-stage {
    grid-template-columns: 1fr;
  }

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

  .panel,
  .hero {
    padding: 20px 18px;
    border-radius: 24px;
  }

  .hero {
    gap: 18px;
  }

  .hero-actions {
    gap: 10px;
  }

  .hero-ribbon {
    gap: 6px;
  }

  .hero-ribbon span {
    font-size: 0.7rem;
    padding: 5px 8px;
  }

  .hero-proof-heading {
    align-items: start;
    flex-direction: column;
    gap: 4px;
  }

  .hero-proof-heading span {
    text-align: left;
  }

  .hero-copy h1 {
    font-size: 1.95rem;
  }

  .compare-shell-wipe .compare-controls,
  .wipe-control {
    grid-template-columns: 1fr;
  }
}
