/* ─────────────────────────────────────────────────────────
   Project Kestrel — Dark Theme
   ───────────────────────────────────────────────────────── */

:root {
  --ink: #e7e9ee;
  --paper: #0b0f17;
  --sand: #131922;
  --orange: #d46b2a;
  --sky: #4aa3ff;
  --slate: #8a9099;
  --text-muted: #a8afb9;
  --white: #1c2535;
  --shadow: rgba(0, 0, 0, 0.3);
}

body {
  background: #0b0f17;
  color: var(--ink);
  overflow-x: hidden;
}

/* ─ Dark scrollbars ─ */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: #0b0f17;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.24);
}
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.14) #0b0f17;
}

/* ─ Navigation — same width as hero ─ */
.site-header {
  border-bottom: none;
  background: transparent !important;
  padding-bottom: 16px;
  /* Break out to match hero width */
  position: relative;
  width: min(100vw, 1600px);
  left: 50%;
  transform: translateX(-50%);
  box-sizing: border-box;
  padding-left: 40px;
  padding-right: 40px;
  flex-wrap: nowrap;
}

.site-nav a:hover,
.nav-dropdown:hover>span {
  background: rgba(74, 163, 255, 0.15);
}

/* ─ Page background ─ */
.page {
  background: #0b0f17;
}

body {
  background: #0b0f17;
}

/* ─ Hero section ─ */
.hero {
  background: #0b0f17;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.hero-pill {
  background: rgba(13, 15, 23, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(20px);
}

.hero-free-badge {
  background: rgba(212, 107, 42, 0.15);
  border: 1px solid rgba(212, 107, 42, 0.25);
  color: #d46b2a;
}

.eyebrow {
  color: #d46b2a;
}

.hero h1 {
  color: #fff;
}

.hero h1 em {
  color: #d46b2a;
}

.lead {
  color: rgba(255, 255, 255, 0.55);
}

.hero-privacy-line {
  color: rgba(255, 255, 255, 0.5);
}

.btn.primary {
  background: #d46b2a;
  color: #fff;
}

.btn.primary:hover {
  background: #c25a1a;
}

.btn.secondary,
.btn.ghost {
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn.secondary:hover,
.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* ─ Value cards ─ */
.value-cards {
  background: #0b0f17;
}

.section-heading {
  text-align: center;
}

.section-heading h2 {
  color: #fff;
}

.section-heading .lead {
  color: rgba(255, 255, 255, 0.55);
}

.value-card {
  background: #131922;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
}

.value-card-body {
  color: inherit;
}

.value-card h3 {
  color: #fff;
}

.value-card p {
  color: rgba(255, 255, 255, 0.65);
}

.value-card-link {
  color: #d46b2a;
}

.value-card-link:hover {
  color: #e67e38;
}

/* ─ Workflow section ─ */
.wf-section {
  background: #0b0f17 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.wf-section .eyebrow {
  color: #d46b2a;
}

.wf-section h2 {
  color: #fff;
}

.wf-section .lead {
  color: rgba(255, 255, 255, 0.72);
}

.wf-interactive {
  background: #131922 !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  box-shadow: none !important;
}

.wf-tabs {
  background: rgba(255, 255, 255, 0.02) !important;
  border-bottom-color: rgba(255, 255, 255, 0.06) !important;
}

.wf-tab {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.65);
  border-radius: 8px;
}

.wf-tab:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.wf-tab.active {
  background: #d46b2a !important;
  color: #fff !important;
  border-color: #d46b2a !important;
}

.wf-strip {
  background: transparent !important;
}

.wf-node {
  background: #1c2535 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #fff !important;
  border-radius: 12px;
  box-shadow: none !important;
}

.wf-node--title {
  color: rgba(255, 255, 255, 0.9) !important;
}

.wf-node--kestrel {
  background: rgba(212, 107, 42, 0.12) !important;
  border-color: rgba(212, 107, 42, 0.3) !important;
}

.wf-node--sub {
  color: rgba(255, 255, 255, 0.55) !important;
}

.wf-arrow {
  color: rgba(255, 255, 255, 0.35) !important;
}

.wf-fork-h-branch--dim {
  opacity: 0.4;
}

.wf-footer {
  background: rgba(255, 255, 255, 0.02) !important;
  border-top-color: rgba(255, 255, 255, 0.06) !important;
}

.wf-substeps {
  border-top-color: rgba(255, 255, 255, 0.06) !important;
}

.wf-substep {
  color: rgba(255, 255, 255, 0.65) !important;
  background: rgba(255, 255, 255, 0.04) !important;
}

.wf-footer a {
  color: #d46b2a;
}

/* ─ Workflow compatibility ─ */
.workflow-section {
  background: #0b0f17;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.workflow-inner {
  background: #131922 !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
}

.workflow-section h2 {
  color: #fff;
}

.workflow-section em {
  color: #4aa3ff;
}

.workflow-section .lead {
  color: rgba(255, 255, 255, 0.75);
}

.compatibility-label {
  color: rgba(255, 255, 255, 0.75);
}

.editor-badge {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
  border-radius: 999px;
}

.download-card-cta {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
}

/* ─ Download section ─ */
.download {
  background: #0b0f17;
}

.download-card {
  background: #131922;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
}

.download-card h2 {
  color: #fff;
}

.download-card p {
  color: rgba(255, 255, 255, 0.65);
}

.download-status {
  color: #8bc2ff !important;
  background: rgba(74, 163, 255, 0.14) !important;
  border-left-color: #4aa3ff !important;
}

.thank-you-section h2 {
  color: #fff;
}

.thank-you-section p {
  color: rgba(255, 255, 255, 0.78);
}

.download-help {
  background: #121925;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.download-help h3,
.download-help > p {
  color: #fff;
}

.help-column {
  background: #1a2333;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.help-column h4 {
  color: #fff;
}

.help-column p {
  color: rgba(255, 255, 255, 0.72);
}

.windows-note {
  background: rgba(212, 107, 42, 0.14);
  color: rgba(255, 255, 255, 0.86);
}

.seo-section {
  background: #121925;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.seo-section h3 {
  color: #fff;
}

.seo-section li {
  color: rgba(255, 255, 255, 0.76);
}

.download-help a[href*="github.com"] {
  color: #b9c2ce !important;
}

.beta-badge {
  background: rgba(212, 107, 42, 0.15);
  border: 1px solid rgba(212, 107, 42, 0.25);
  color: #d46b2a;
}

.download-timing-note {
  color: rgba(255, 255, 255, 0.75) !important;
}

/* ─ Footer ─ */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.02);
  color: rgba(255, 255, 255, 0.75);
}

.site-footer h3 {
  color: #fff;
}

.site-footer a {
  color: #d46b2a;
}

.site-footer a:hover {
  color: #e67e38;
}

/* ─────────────────────────────────────────────────────────
   Interactive Demo Widget Styles
   ───────────────────────────────────────────────────────── */

.demo-hero-wrapper {
  display: flex;
  height: 100vh;
  background: #0b0f17;
  overflow: hidden;
  position: relative;
  width: min(100vw, 1600px);
  left: 50%;
  transform: translateX(-50%);
  margin-top: 16px;
  margin-bottom: 16px;
}

.demo-hero-left {
  flex: 0 0 33.333%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 40px 44px;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  gap: 16px;
  padding-top: 60px;
}

.demo-hero-left .eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #d46b2a;
}

.demo-hero-left h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: #fff;
  margin: 0 0 0.5em;
}

.demo-hero-left h1 em {
  font-style: normal;
  color: #d46b2a;
}

.demo-hero-left .lead {
  font-family: "Source Serif 4", serif;
  font-size: 0.95rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 1em;
}

.demo-hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 1.5em;
}

.demo-hero-buttons-row {
  display: flex;
  gap: 8px;
}

.demo-hero-badges {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.demo-hero-badge {
  font-size: 0.73rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  gap: 7px;
}

.demo-hero-badge svg {
  color: rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
}

.demo-hero-right {
  flex: 1 1 66.666%;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
  overflow: hidden;
  background: #0b0f17;
}

/* ─ Widget ─ */
.demo-widget {
  width: 100%;
  max-width: none;
  height: 100%;
  background: transparent;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* ─ Timeline/Scenes ─ */
.demo-widget-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  scrollbar-gutter: stable;
}

.demo-time-group {
  padding: 12px 16px;
  flex-shrink: 0;
}

.demo-time-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.demo-time-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d46b2a;
  flex-shrink: 0;
}

.demo-time-text {
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.04em;
}

.demo-time-count {
  font-size: 0.65rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.3);
  margin-left: 4px;
}

.demo-scene-row {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 8px;
}

.demo-scene-card {
  flex: 0 0 180px;
  background: #1c2535;
  border: 1.5px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  position: relative;
}

.demo-scene-card:hover {
  border-color: rgba(255, 255, 255, 0.14);
}

.demo-scene-card.active {
  border-color: #d46b2a;
  background: rgba(212, 107, 42, 0.08);
}

.demo-scene-thumb-wrap {
  width: 100%;
  height: 100px;
  position: relative;
  overflow: hidden;
  background: #0d1118;
}

.demo-scene-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.demo-scene-thumb-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(0, 0, 0, 0.4);
}

.demo-scene-thumb-progress {
  height: 100%;
  background: #d46b2a;
  transition: width 0.2s linear;
}

.demo-scene-card-body {
  padding: 8px 9px;
}

.demo-scene-species {
  font-size: 0.73rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.demo-scene-footer {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.65rem;
}

.demo-scene-stars {
  color: #f0b429;
  font-size: 0.55rem;
  letter-spacing: -1px;
}

.demo-scene-count {
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 600;
}

/* ─ Expanded Scene ─ */
.demo-expanded {
  /* 8px pad + 435px photo + 8px gap + 290px crop + 8px pad = 749px */
  max-width: 749px;
  margin: 8px 0 4px;
  background: #0f1620;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.demo-expanded-top {
  display: flex;
  gap: 8px;
  padding: 8px;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  height: 290px;
  flex-shrink: 0;
}

.demo-expanded-bottom {
  padding: 12px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

/* Photo takes fixed 3:2 height so bbox coords stay accurate */
.demo-photo-col {
  height: 290px;
  aspect-ratio: 3 / 2;
  flex: 0 0 auto;
  position: relative;
  overflow: hidden;
  background: #080c14;
  border-radius: 8px;
}

.demo-photo-main {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Crop col: always square, same height as photo col */
.demo-crop-col {
  flex: 0 0 auto;
  width: 290px;
  height: 290px;
  position: relative;
  overflow: hidden;
  background: #080c14;
  border-radius: 8px;
  align-self: center;
}

.demo-crop-main {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.demo-photo-quality {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  padding: 6px 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.demo-quality-score {
  font-size: 0.7rem;
  font-weight: 700;
  font-family: "Space Grotesk", monospace;
}

/* ─ Bird detection bbox ─ */
@keyframes bboxIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes chipIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.demo-bbox {
  position: absolute;
  border: 1.5px solid rgba(212, 107, 42, 0.9);
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(212, 107, 42, 0.2), 0 0 16px rgba(212, 107, 42, 0.2);
  animation: bboxIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.5s both;
}

.demo-bbox-chip {
  position: absolute;
  top: -26px;
  left: -1px;
  background: #d46b2a;
  color: #fff;
  border-radius: 4px 4px 4px 0;
  padding: 3px 9px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
  animation: chipIn 0.3s ease 0.8s both;
}

.demo-bbox-conf {
  opacity: 0.72;
  font-weight: 500;
}


/* ─ Filmstrip ─ */
.demo-filmstrip-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.demo-filmstrip-label-text {
  font-size: 0.65rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.02em;
}

.demo-filmstrip {
  display: flex;
  gap: 5px;
  overflow-x: auto;
}

.demo-film-thumb {
  flex: 0 0 90px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  border: 2px solid transparent;
  transition: border-color 0.15s, opacity 0.15s;
  opacity: 0.8;
}

.demo-film-thumb:hover {
  opacity: 1;
}

.demo-film-thumb.active {
  border-color: #d46b2a;
  opacity: 1;
}

.demo-film-thumb img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  display: block;
}

.demo-film-sharp-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 5px;
}

.demo-info-hint {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.28);
  font-weight: 500;
  font-style: italic;
  margin-top: auto !important;
}

/* ─────────────────────────────────────────────────────────
   Culling & Species Search Pages
   ───────────────────────────────────────────────────────── */

.culling-bullet {
  background: #131922 !important;
  border-color: rgba(255, 255, 255, 0.07) !important;
}

.culling-bullet h4 {
  color: #fff;
}

.culling-bullet p {
  color: rgba(255, 255, 255, 0.65);
}

.feature-grid article {
  background: #131922 !important;
  border-color: rgba(255, 255, 255, 0.07) !important;
}

.feature-grid article h3 {
  color: #fff;
}

.feature-grid article p {
  color: rgba(255, 255, 255, 0.65);
}

.hero-card-caption {
  color: rgba(255, 255, 255, 0.65);
}

.accuracy-card {
  background: #121925;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.accuracy-card h2 {
  color: #fff;
}

.accuracy-item {
  background: #1a2231;
}

.accuracy-item h3 {
  color: #fff;
}

.accuracy-item p {
  color: rgba(255, 255, 255, 0.72);
}

.accuracy-item--good {
  background: rgba(56, 148, 98, 0.16);
  border-color: rgba(74, 187, 126, 0.34);
}

.accuracy-item--moderate {
  background: rgba(212, 107, 42, 0.16);
  border-color: rgba(212, 107, 42, 0.34);
}

.accuracy-item--note {
  background: rgba(74, 163, 255, 0.13);
  border-color: rgba(74, 163, 255, 0.3);
}

.accuracy-tip {
  background: rgba(74, 163, 255, 0.12);
  border: 1px solid rgba(74, 163, 255, 0.25);
  color: rgba(255, 255, 255, 0.8);
}

.rule-visual {
  color: #d46b2a;
}

.rule-star {
  color: #d46b2a;
}

.rule-star--empty {
  opacity: 0.3;
}

.rule-badge {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
}

.rule-badge--keep {
  background: rgba(74, 163, 255, 0.15) !important;
  border-color: rgba(74, 163, 255, 0.25) !important;
  color: #4aa3ff !important;
}

.rule-badge--toss {
  background: rgba(239, 68, 68, 0.15) !important;
  border-color: rgba(239, 68, 68, 0.25) !important;
  color: #ef4444 !important;
}

.workflow-diagram-container {
  color: #fff;
}

.workflow-node {
  background: #131922 !important;
  border-color: rgba(255, 255, 255, 0.07) !important;
  color: #fff !important;
}

.workflow-node-title {
  color: #fff !important;
}

.workflow-node-sub {
  color: rgba(255, 255, 255, 0.55) !important;
}

.kestrel-node {
  background: rgba(212, 107, 42, 0.12) !important;
  border-color: rgba(212, 107, 42, 0.3) !important;
}

.workflow-arrow-down {
  color: rgba(255, 255, 255, 0.35);
}

.workflow-fork-lines {
  border-color: rgba(255, 255, 255, 0.2) !important;
}

.species-use-cases {
  background: #121925;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.species-use-case-list li {
  color: rgba(255, 255, 255, 0.8);
}

/* ─────────────────────────────────────────────────────────
   Hero → Demo playful arrow callout
   ───────────────────────────────────────────────────────── */

.hero-demo-callout {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 10px 14px;
  max-width: 340px;
  background: rgba(212, 107, 42, 0.08);
  border: 1px dashed rgba(212, 107, 42, 0.4);
  border-radius: 14px;
  transform: rotate(-1.5deg);
  align-self: flex-start;
}

.hero-demo-callout-bird {
  font-size: 1.1rem;
  line-height: 1;
  flex-shrink: 0;
  transform: rotate(-8deg);
}

.hero-demo-callout-text {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.45;
  flex: 1;
}

.hero-demo-callout-text em {
  color: #d46b2a;
  font-style: italic;
  font-weight: 700;
}

.hero-demo-callout-pointer {
  font-size: 1.3rem;
  line-height: 1;
  color: #d46b2a;
  flex-shrink: 0;
  display: inline-block;
  animation: callout-nudge 2s ease-in-out infinite;
}

@keyframes callout-nudge {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(3px, 3px); }
}

/* On stacked layouts, the demo sits below the hero — point straight down */
@media (max-width: 1024px) {
  .hero-demo-callout-pointer {
    animation-name: callout-nudge-down;
  }
  @keyframes callout-nudge-down {
    0%, 100% { transform: rotate(45deg) translate(0, 0); }
    50% { transform: rotate(45deg) translate(3px, 3px); }
  }
}

@media (max-width: 768px) {
  .hero-demo-callout {
    max-width: 100%;
  }
}

/* ─────────────────────────────────────────────────────────
   Homepage Value Rows — streamlined horizontal layout
   ───────────────────────────────────────────────────────── */

.eyebrow-sticker {
  display: inline-block;
  margin-left: 4px;
  transform: rotate(-10deg) translateY(-1px);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.home-value-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 880px;
  margin: 0 auto;
}

.home-value-row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 22px 26px;
  background: #131922;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.home-value-row:hover {
  border-color: rgba(212, 107, 42, 0.3);
  background: #161d28;
  transform: translateX(4px);
}

.home-value-bird {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 107, 42, 0.08);
  border-radius: 14px;
  border: 1px solid rgba(212, 107, 42, 0.18);
  transform: rotate(-6deg);
  transition: transform 0.25s ease;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.2));
}

.home-value-row:hover .home-value-bird {
  transform: rotate(0) scale(1.06);
}

.home-value-content {
  flex: 1;
  min-width: 0;
}

.home-value-number {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #d46b2a;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.home-value-content h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 6px;
  line-height: 1.3;
}

.home-value-content p {
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.55;
  font-size: 0.92rem;
  margin: 0;
}

.home-value-link {
  display: inline-block;
  margin-top: 8px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  color: #d46b2a;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.15s;
}

.home-value-link:hover {
  opacity: 0.85;
  transform: translateX(3px);
}

@media (max-width: 600px) {
  .home-value-row {
    padding: 18px 18px;
    gap: 14px;
  }
  .home-value-bird {
    width: 44px;
    height: 44px;
    font-size: 1.5rem;
    border-radius: 11px;
  }
  .home-value-content h3 {
    font-size: 1.05rem;
  }
  .home-value-content p {
    font-size: 0.88rem;
  }
}

/* ─────────────────────────────────────────────────────────
   Desktop / Mobile button visibility
   ───────────────────────────────────────────────────────── */

.btn-mobile-only {
  display: none;
}

@media (max-width: 768px) {
  .btn-desktop-only {
    display: none !important;
  }
  .btn-mobile-only {
    display: inline-flex;
  }
}

/* ─────────────────────────────────────────────────────────
   Mobile Hamburger Menu (hidden by default)
   ───────────────────────────────────────────────────────── */

.site-nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 0;
  width: 40px;
  height: 40px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.site-nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-nav-toggle--open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.site-nav-toggle--open span:nth-child(2) {
  opacity: 0;
}
.site-nav-toggle--open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ─────────────────────────────────────────────────────────
   Tablet (≤1024px): Stack hero, keep desktop nav
   ───────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
  .demo-hero-wrapper {
    height: auto;
    flex-direction: column;
    padding: 0;
    overflow: visible;
  }

  /* Hero text and demo timeline must share the same horizontal padding
     so left edges of hero copy / "7:00 AM" / scene cards / expanded card all align */
  .demo-hero-left {
    flex: 0 1 auto;
    padding: 40px 32px;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 32px;
  }

  .demo-hero-right {
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .demo-widget {
    border-left: none;
    height: auto;
    overflow: visible;
  }

  .demo-widget-content {
    overflow: visible;
    scrollbar-gutter: auto;
  }

  .demo-time-group {
    padding: 18px 32px 14px;
  }

  /* Drop the 749px desktop cap so the expanded card fills the timeline width */
  .demo-expanded {
    max-width: 100%;
  }

  .site-header {
    padding-left: 24px;
    padding-right: 24px;
  }
}

/* ─────────────────────────────────────────────────────────
   Mobile (≤768px): Hamburger menu, full-width hero, dense demo
   ───────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  /* Header: switch to hamburger.
     IMPORTANT: keep `left: 50%; transform: translateX(-50%)` from base styles —
     it's the breakout trick that escapes .page's 20px horizontal padding.
     If we set `left: 0; transform: none` here the header gets shifted 20px right
     of the viewport edge while still being 100vw wide. */
  .site-header {
    padding: 16px 20px;
    flex-wrap: wrap;
    align-items: center;
  }

  .site-header .brand {
    flex: 1 1 auto;
    min-width: 0;
  }

  .site-header .brand-tagline {
    display: none;
  }

  .site-header .brand-name {
    font-size: 1rem;
  }

  .site-nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    flex: 1 1 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px 0 4px;
    margin-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }

  .site-nav.site-nav--open {
    display: flex;
  }

  .site-nav a {
    padding: 12px 14px;
    font-size: 0.95rem;
    border-radius: 10px;
    width: 100%;
    box-sizing: border-box;
    justify-content: flex-start;
  }

  .site-nav a.nav-cta {
    background: #d46b2a;
    color: #fff;
    text-align: center;
    justify-content: center;
    margin-top: 8px;
  }

  .site-nav a.nav-btn-secondary {
    background: rgba(74, 163, 255, 0.1);
    border-color: rgba(74, 163, 255, 0.25);
    color: #4aa3ff;
    justify-content: center;
  }

  /* Hero: full bleed, stacked.
     IMPORTANT: same as .site-header — preserve the base `left: 50%; transform: translateX(-50%)`
     so the wrapper escapes .page's 20px horizontal padding and aligns to the viewport edge. */
  .demo-hero-wrapper {
    margin-top: 0;
  }

  .demo-hero-left {
    padding: 28px 16px 32px;
    gap: 12px;
  }

  .demo-hero-left h1 {
    font-size: 1.85rem;
    line-height: 1.15;
  }

  .demo-hero-left .lead {
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 0.6em;
  }

  .demo-hero-buttons {
    margin: 0 0 1em;
  }

  .demo-hero-buttons-row {
    flex-direction: column;
  }

  .demo-hero-buttons-row .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .demo-hero-buttons .btn.secondary {
    width: 100%;
    text-align: center;
    justify-content: center;
    align-self: stretch !important;
  }

  .demo-hero-badge {
    font-size: 0.72rem;
  }

  /* Demo: flows naturally, no fixed height */
  .demo-hero-right {
    height: auto;
    min-height: 0;
  }

  .demo-time-group {
    padding: 18px 16px 14px;
  }

  /* Scene row: bleed left+right edges symmetrically for clean horizontal scroll */
  .demo-scene-row {
    gap: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 12px;
    margin: 0 -16px;
    padding-left: 16px;
    padding-right: 16px;
    overflow-x: auto;
  }

  .demo-scene-row::-webkit-scrollbar {
    display: none;
  }

  .demo-scene-card {
    flex: 0 0 140px;
    scroll-snap-align: start;
  }

  .demo-scene-thumb-wrap {
    height: 90px;
  }

  /* Expanded: stack photo + crop vertically, full width */
  .demo-expanded {
    max-width: 100%;
    margin: 8px 0 4px;
  }

  .demo-expanded-top {
    flex-direction: column;
    height: auto;
    gap: 8px;
    padding: 8px;
    align-items: stretch;
    justify-content: flex-start;
  }

  .demo-photo-col {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
  }

  .demo-crop-col {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    max-height: 240px;
  }

  .demo-filmstrip {
    gap: 5px;
    -webkit-overflow-scrolling: touch;
  }

  .demo-film-thumb {
    flex: 0 0 76px;
  }
}

/* ─────────────────────────────────────────────────────────
   Small mobile (≤480px)
   ───────────────────────────────────────────────────────── */

@media (max-width: 480px) {
  .demo-hero-left {
    padding: 24px 16px 28px;
  }

  .demo-hero-left h1 {
    font-size: 1.6rem;
  }

  .demo-hero-left .lead {
    font-size: 0.88rem;
  }

  .demo-hero-right {
    height: auto;
    min-height: 0;
  }

  .demo-time-group {
    padding: 16px 16px 12px;
  }

  .demo-scene-row {
    margin: 0 -16px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .demo-scene-card {
    flex: 0 0 130px;
  }

  .demo-film-thumb {
    flex: 0 0 64px;
  }

  .demo-filmstrip-label-text {
    font-size: 0.6rem;
  }
}
