:root {
  --bg: #f8fffc;
  --surface: #ffffff;
  --surface-2: #eef3ee;
  --line: #d8e7e2;
  --text: #202421;
  --muted: #66706a;
  --green: #16745b;
  --green-dark: #0f5c49;
  --teal: #0f766e;
  --cyan: #0e7490;
  --blue: #0e7490;
  --amber: #a76320;
  --red: #b33838;
  --shadow: 0 18px 45px rgba(13, 76, 67, 0.1);
  --soft-shadow: 0 12px 28px rgba(15, 118, 110, 0.09);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 10%, rgba(14, 116, 144, 0.08), transparent 26%),
    radial-gradient(circle at 86% 6%, rgba(22, 116, 91, 0.08), transparent 24%),
    linear-gradient(135deg, #f8fffc 0%, #f3fbff 45%, #ffffff 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 0 32px;
  border-bottom: 1px solid rgba(15, 118, 110, 0.12);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 26px rgba(15, 118, 110, 0.06);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(15, 118, 110, 0.14);
  background: white;
  box-shadow: 0 12px 28px rgba(15, 118, 110, 0.16);
}

.brand-mark img {
  width: 86%;
  height: 86%;
  object-fit: contain;
  object-position: center;
}

.brand-title {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 12px;
}

.tabs {
  display: flex;
  gap: 10px;
}

.tab,
button,
.ghost-button,
.primary-button {
  min-height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(15, 118, 110, 0.16);
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
  padding: 8px 16px;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.tab.active {
  border-color: transparent;
  background: linear-gradient(135deg, var(--green) 0%, var(--cyan) 100%);
  color: white;
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.2);
}

.primary-button {
  border-color: transparent;
  background: linear-gradient(135deg, var(--green) 0%, var(--cyan) 100%);
  color: white;
  font-weight: 700;
  box-shadow: 0 14px 30px rgba(15, 118, 110, 0.22);
}

.primary-button:hover,
.tab.active:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, var(--green-dark) 0%, #0b6479 100%);
}

.ghost-button:hover,
button:hover {
  border-color: var(--green);
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(15, 118, 110, 0.2);
  background: rgba(255, 255, 255, 0.88);
  color: var(--green-dark);
  padding: 9px 18px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.secondary-button:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 118, 110, 0.35);
  box-shadow: 0 16px 32px rgba(15, 118, 110, 0.13);
}

.disabled {
  pointer-events: none;
  opacity: 0.45;
}

main {
  max-width: 1440px;
  margin: 0 auto;
  padding: 32px 28px 72px;
}

.page {
  display: none;
}

.page.active {
  display: block;
}

.section-head {
  max-width: 920px;
  padding: 18px 0 30px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.18;
}

h1 {
  font-size: clamp(30px, 4vw, 54px);
  max-width: 900px;
}

h2 {
  font-size: 22px;
}

h3 {
  font-size: 16px;
}

p {
  color: var(--muted);
  line-height: 1.65;
}

.home-page {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  overflow: hidden;
  isolation: isolate;
  padding: 8px 0 28px;
}

.home-page::before,
.home-page::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -5;
}

.home-page::before {
  top: -42px;
  right: -104px;
  width: min(820px, 66vw);
  height: 760px;
  background:
    linear-gradient(90deg, rgba(248, 255, 252, 0.72), rgba(248, 255, 252, 0.08)),
    url("assets/backgrounds/microvision_hero_macro.png") center / cover no-repeat;
  opacity: 0.28;
  filter: saturate(1.05) contrast(1.02);
  mask-image: radial-gradient(circle at 52% 42%, #000 0 58%, transparent 84%);
}

.home-page::after {
  left: -118px;
  bottom: 260px;
  width: min(900px, 72vw);
  height: 620px;
  background:
    linear-gradient(180deg, rgba(248, 255, 252, 0.2), rgba(248, 255, 252, 0.74)),
    url("assets/backgrounds/light_microscopy_microsphere_droplets.png") center / cover no-repeat;
  opacity: 0.2;
  filter: saturate(1.1) contrast(1.04);
  mask-image: radial-gradient(circle at 44% 50%, #000 0 46%, transparent 78%);
}

.hero-particles {
  position: absolute;
  inset: -76px -44px 0;
  z-index: -2;
  display: block;
  width: calc(100% + 88px);
  height: calc(100% + 76px);
  pointer-events: none;
  opacity: 1;
  mix-blend-mode: screen;
}

body[data-active-page="about"] .hero-particles {
  position: fixed;
  inset: 78px -44px 0;
  z-index: 0;
  width: calc(100% + 88px);
  height: calc(100vh - 78px);
  opacity: 0.92;
}

.home-metaballs {
  position: absolute;
  inset: 0;
  z-index: -1;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.48;
  filter: blur(20px) saturate(1.2);
  mix-blend-mode: screen;
}

.home-bg {
  position: absolute;
  inset: -40px -32px auto;
  height: 780px;
  pointer-events: none;
  z-index: -4;
  background-image:
    linear-gradient(rgba(15, 118, 110, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 118, 110, 0.055) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 88%);
}

.particle {
  position: absolute;
  border-radius: 999px;
  background: rgba(14, 116, 144, 0.16);
  box-shadow: 0 0 0 8px rgba(14, 116, 144, 0.035);
}

.p1 { width: 18px; height: 18px; left: 9%; top: 22%; }
.p2 { width: 10px; height: 10px; left: 35%; top: 10%; background: rgba(22, 116, 91, 0.22); }
.p3 { width: 24px; height: 24px; right: 12%; top: 18%; }
.p4 { width: 12px; height: 12px; right: 32%; top: 48%; background: rgba(32, 167, 189, 0.22); }

.crystal-outline {
  position: absolute;
  width: 86px;
  height: 58px;
  border: 1px solid rgba(15, 118, 110, 0.16);
  transform: rotate(18deg) skewX(-18deg);
  background: rgba(255, 255, 255, 0.34);
}

.c1 { left: 4%; top: 56%; }
.c2 { right: 7%; top: 38%; transform: rotate(-12deg) skewX(-16deg); }

.home-hero {
  display: grid;
  grid-template-columns: minmax(440px, 0.9fr) minmax(560px, 1.1fr);
  gap: 42px;
  align-items: center;
  min-height: calc(100vh - 118px);
  padding: 42px 0 74px;
}

.hero-copy {
  max-width: 720px;
}

.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.08);
}

.platform-badge span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--green), var(--cyan));
  box-shadow: 0 0 0 5px rgba(15, 118, 110, 0.1);
}

.hero-copy h1 {
  max-width: 760px;
  margin-top: 20px;
  color: #12352f;
  font-size: clamp(46px, 5.5vw, 68px);
  line-height: 1.02;
  letter-spacing: 0;
}

.glitch {
  position: relative;
  display: inline-block;
  color: #12352f;
  white-space: nowrap;
  user-select: none;
  cursor: pointer;
}

.glitch::after,
.glitch::before {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  color: inherit;
  overflow: hidden;
  clip-path: inset(0 0 0 0);
  pointer-events: none;
}

.glitch:not(.enable-on-hover)::after {
  left: 7px;
  text-shadow: var(--after-shadow, -5px 0 red);
  animation: animate-glitch var(--after-duration, 3s) infinite linear alternate-reverse;
}

.glitch:not(.enable-on-hover)::before {
  left: -7px;
  text-shadow: var(--before-shadow, 5px 0 cyan);
  animation: animate-glitch var(--before-duration, 2s) infinite linear alternate-reverse;
}

.glitch.enable-on-hover::after,
.glitch.enable-on-hover::before {
  content: "";
  opacity: 0;
  animation: none;
}

.glitch.enable-on-hover:hover::after,
.glitch.enable-on-hover:focus-visible::after {
  content: attr(data-text);
  opacity: 1;
  left: 8px;
  text-shadow: var(--after-shadow, -5px 0 red);
  animation: animate-glitch var(--after-duration, 3s) infinite linear alternate-reverse;
}

.glitch.enable-on-hover:hover::before,
.glitch.enable-on-hover:focus-visible::before {
  content: attr(data-text);
  opacity: 1;
  left: -8px;
  text-shadow: var(--before-shadow, 5px 0 cyan);
  animation: animate-glitch var(--before-duration, 2s) infinite linear alternate-reverse;
}

@keyframes animate-glitch {
  0% { clip-path: inset(20% 0 50% 0); }
  5% { clip-path: inset(10% 0 60% 0); }
  10% { clip-path: inset(15% 0 55% 0); }
  15% { clip-path: inset(25% 0 35% 0); }
  20% { clip-path: inset(30% 0 40% 0); }
  25% { clip-path: inset(40% 0 20% 0); }
  30% { clip-path: inset(10% 0 60% 0); }
  35% { clip-path: inset(15% 0 55% 0); }
  40% { clip-path: inset(25% 0 35% 0); }
  45% { clip-path: inset(30% 0 40% 0); }
  50% { clip-path: inset(20% 0 50% 0); }
  55% { clip-path: inset(10% 0 60% 0); }
  60% { clip-path: inset(15% 0 55% 0); }
  65% { clip-path: inset(25% 0 35% 0); }
  70% { clip-path: inset(30% 0 40% 0); }
  75% { clip-path: inset(40% 0 20% 0); }
  80% { clip-path: inset(20% 0 50% 0); }
  85% { clip-path: inset(10% 0 60% 0); }
  90% { clip-path: inset(15% 0 55% 0); }
  95% { clip-path: inset(25% 0 35% 0); }
  100% { clip-path: inset(30% 0 40% 0); }
}

.hero-copy p {
  max-width: 650px;
  margin: 22px 0 0;
  color: #53645f;
  font-size: 17px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero-button {
  min-height: 46px;
  padding: 11px 20px;
}

.cursor-target {
  position: relative;
}

.cursor-target:hover,
.cursor-target.target-cursor-active {
  cursor: none !important;
}

.target-cursor-wrapper {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 95;
  width: 32px;
  height: 32px;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) rotate(var(--cursor-rotation, 0deg));
  transition:
    opacity 0.16s ease,
    left 0.14s ease,
    top 0.14s ease,
    width 0.2s ease,
    height 0.2s ease,
    transform 0.14s ease;
}

.target-cursor-wrapper.is-visible {
  opacity: 1;
}

.target-cursor-wrapper.is-targeting {
  transform: translate(0, 0) rotate(0deg);
}

.target-cursor-wrapper.is-pressed {
  opacity: 0.82;
}

.target-cursor-wrapper.is-pressed .target-cursor-dot {
  transform: translate(-50%, -50%) scale(0.72);
}

.target-cursor-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: #fff1a8;
  box-shadow: 0 0 12px rgba(255, 241, 168, 0.9), 0 0 0 1px rgba(14, 70, 82, 0.22);
  transform: translate(-50%, -50%);
  transition: transform 0.16s ease;
}

.target-cursor-corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 3px solid #fff1a8;
  filter: drop-shadow(0 0 8px rgba(255, 241, 168, 0.82)) drop-shadow(0 0 2px rgba(14, 70, 82, 0.35));
  transition:
    left 0.2s ease,
    top 0.2s ease,
    right 0.2s ease,
    bottom 0.2s ease,
    transform 0.2s ease,
    border-color 0.16s ease;
}

.target-cursor-wrapper:not(.is-targeting) .corner-tl {
  left: 50%;
  top: 50%;
  transform: translate(-150%, -150%);
  border-right: none;
  border-bottom: none;
}

.target-cursor-wrapper:not(.is-targeting) .corner-tr {
  left: 50%;
  top: 50%;
  transform: translate(50%, -150%);
  border-left: none;
  border-bottom: none;
}

.target-cursor-wrapper:not(.is-targeting) .corner-br {
  left: 50%;
  top: 50%;
  transform: translate(50%, 50%);
  border-left: none;
  border-top: none;
}

.target-cursor-wrapper:not(.is-targeting) .corner-bl {
  left: 50%;
  top: 50%;
  transform: translate(-150%, 50%);
  border-right: none;
  border-top: none;
}

.target-cursor-wrapper.is-targeting .corner-tl {
  left: -7px;
  top: -7px;
  border-right: none;
  border-bottom: none;
}

.target-cursor-wrapper.is-targeting .corner-tr {
  right: -7px;
  top: -7px;
  border-left: none;
  border-bottom: none;
}

.target-cursor-wrapper.is-targeting .corner-br {
  right: -7px;
  bottom: -7px;
  border-left: none;
  border-top: none;
}

.target-cursor-wrapper.is-targeting .corner-bl {
  left: -7px;
  bottom: -7px;
  border-right: none;
  border-top: none;
}

.preview-card {
  position: relative;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(233, 250, 250, 0.78)),
    radial-gradient(circle at 18% 8%, rgba(14, 116, 144, 0.16), transparent 34%);
  box-shadow: 0 36px 86px rgba(15, 118, 110, 0.18);
  backdrop-filter: blur(22px);
  padding: 22px;
  overflow: hidden;
  transform-style: preserve-3d;
  animation: preview-arrive 0.9s ease both;
}

.preview-card::before {
  content: "";
  position: absolute;
  inset: -120px auto auto -110px;
  width: 300px;
  height: 300px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(32, 167, 189, 0.2), transparent 68%);
  pointer-events: none;
}

.preview-card::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 24px;
  pointer-events: none;
}

@keyframes preview-arrive {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.preview-metrics span {
  color: #6b7e78;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.preview-main {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.micrograph-window {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid rgba(14, 116, 144, 0.28);
  border-radius: 22px;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.85), transparent 28%),
    #eef9f8;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.62),
    0 18px 36px rgba(15, 118, 110, 0.12);
}

.micrograph-window img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: contain;
  filter: saturate(1.08) contrast(1.04);
}

.scan-line {
  position: absolute;
  left: 0;
  right: 0;
  top: -22%;
  height: 34%;
  background:
    linear-gradient(to bottom, transparent 0%, rgba(255, 232, 139, 0.12) 28%, rgba(255, 255, 255, 0.68) 48%, rgba(14, 116, 144, 0.32) 58%, transparent 100%);
  box-shadow: 0 0 38px rgba(255, 232, 139, 0.3), 0 16px 42px rgba(14, 116, 144, 0.2);
  mix-blend-mode: screen;
  animation: scan-pass 3.9s ease-in-out infinite;
  pointer-events: none;
}

.scan-line::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 48%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 247, 180, 0.95), rgba(14, 209, 255, 0.72), transparent);
  box-shadow: 0 0 14px rgba(255, 247, 180, 0.75);
}

.preview-overlay {
  position: absolute;
  left: 18px;
  bottom: 18px;
  display: grid;
  gap: 4px;
  padding: 11px 13px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 14px;
  background: rgba(14, 53, 63, 0.68);
  color: white;
  box-shadow: 0 14px 28px rgba(14, 53, 63, 0.18);
  backdrop-filter: blur(10px);
}

.preview-overlay span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.preview-overlay strong {
  font-size: 14px;
}

@keyframes scan-pass {
  0%, 18% { transform: translateY(0); opacity: 0; }
  35% { opacity: 1; }
  72% { transform: translateY(480%); opacity: 0.7; }
  100% { transform: translateY(480%); opacity: 0; }
}

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

.preview-metrics div {
  display: grid;
  align-content: center;
  min-height: 86px;
  padding: 12px;
  border: 1px solid rgba(15, 118, 110, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 20px rgba(15, 118, 110, 0.06);
}

.preview-metrics strong {
  margin-top: 5px;
  color: #12352f;
  font-size: 21px;
}

.home-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0 0 92px;
}

.stat-card {
  position: relative;
  min-height: 158px;
  padding: 20px;
  border: 1px solid rgba(15, 118, 110, 0.12);
  border-radius: 16px;
  background:
    radial-gradient(circle at var(--mx, 24%) var(--my, 22%), rgba(14, 116, 144, 0.13), transparent 34%),
    rgba(255, 255, 255, 0.86);
  box-shadow: var(--soft-shadow);
  cursor: pointer;
  outline: none;
  overflow: hidden;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(0);
  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease,
    border-color 0.24s ease,
    background 0.24s ease;
}

.stat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.56) 45%, transparent 62%);
  transform: translateX(-120%);
  transition: transform 0.55s ease;
  pointer-events: none;
}

.stat-card::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 18px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(14, 116, 144, 0.18);
  opacity: 0;
  transition: opacity 0.2s ease, box-shadow 0.24s ease;
}

.stat-card:hover,
.stat-card:focus-visible,
.stat-card.is-active,
.feature-card:hover,
.workflow-step:hover {
  border-color: rgba(15, 118, 110, 0.24);
  box-shadow: 0 22px 48px rgba(15, 118, 110, 0.14);
}

.stat-card:hover,
.stat-card:focus-visible,
.stat-card.is-active {
  transform:
    perspective(900px)
    rotateX(var(--rx, 0deg))
    rotateY(var(--ry, 0deg))
    translateY(-7px);
}

.stat-card:hover::before,
.stat-card:focus-visible::before,
.stat-card.is-active::before {
  transform: translateX(120%);
}

.stat-card:hover::after,
.stat-card:focus-visible::after,
.stat-card.is-active::after {
  opacity: 1;
  box-shadow: 0 0 0 10px rgba(14, 116, 144, 0.08), 0 0 18px rgba(14, 116, 144, 0.35);
}

.feature-card:hover,
.workflow-step:hover {
  transform: translateY(-4px);
}

.stat-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(22, 116, 91, 0.12), rgba(14, 116, 144, 0.14));
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 900;
}

.stat-card span {
  position: relative;
  z-index: 1;
  display: block;
  color: #6b7e78;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.stat-card strong {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 8px;
  color: #12352f;
  font-size: clamp(28px, 3.2vw, 38px);
  line-height: 1.05;
}

.stat-card em {
  position: relative;
  z-index: 1;
  display: block;
  max-height: 0;
  margin-top: 0;
  color: #53645f;
  font-size: 13px;
  font-style: normal;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(6px);
  overflow: hidden;
  transition: max-height 0.24s ease, margin-top 0.24s ease, opacity 0.2s ease, transform 0.24s ease;
}

.stat-card:hover em,
.stat-card:focus-visible em,
.stat-card.is-active em {
  max-height: 80px;
  margin-top: 12px;
  opacity: 1;
  transform: translateY(0);
}

.home-workflow {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  align-items: center;
  min-height: 590px;
  padding: 42px 34px;
  margin-bottom: 92px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(244, 253, 252, 0.68), rgba(218, 241, 247, 0.34) 52%, rgba(255, 248, 215, 0.18)),
    radial-gradient(circle at 76% 10%, rgba(255, 232, 139, 0.16), transparent 34%);
  box-shadow: 0 28px 80px rgba(14, 64, 82, 0.1);
}

.home-workflow::before,
.home-workflow::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.home-workflow::before {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(247, 253, 252, 0.76) 0%, rgba(247, 253, 252, 0.36) 44%, rgba(247, 253, 252, 0.72) 100%),
    url("assets/backgrounds/microvision_hero_macro.png") 44% center / cover no-repeat;
  opacity: 0.34;
  filter: saturate(0.95) contrast(1.05);
}

.home-workflow::after {
  z-index: -1;
  background:
    radial-gradient(circle at 18% 28%, rgba(255, 255, 255, 0.68), transparent 31%),
    radial-gradient(circle at 82% 80%, rgba(14, 116, 144, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(207, 235, 245, 0.18));
  backdrop-filter: blur(1px);
}

.workflow-copy {
  position: sticky;
  top: 104px;
  z-index: 1;
}

.workflow-copy h2 {
  max-width: 480px;
  color: #12352f;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.08;
}

.workflow-copy p:not(.eyebrow) {
  max-width: 500px;
  margin-top: 18px;
  color: #5b6e68;
}

.workflow-steps {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
}

.workflow-steps::before {
  content: "";
  position: absolute;
  left: 30px;
  top: 30px;
  bottom: 30px;
  width: 1px;
  background: linear-gradient(to bottom, rgba(15, 118, 110, 0.22), rgba(14, 116, 144, 0.06));
}

.workflow-step {
  position: relative;
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 16px;
  min-height: 124px;
  padding: 22px;
  border: 1px solid rgba(15, 118, 110, 0.12);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.64), rgba(228, 246, 250, 0.42)),
    radial-gradient(circle at 92% 16%, rgba(255, 232, 139, 0.12), transparent 30%);
  box-shadow:
    0 22px 52px rgba(14, 64, 82, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px) saturate(1.16);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.workflow-step::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 15px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.48), transparent 44%),
    radial-gradient(circle at 16% 16%, rgba(14, 116, 144, 0.1), transparent 32%);
  opacity: 0.8;
  pointer-events: none;
}

.workflow-step:hover {
  border-color: rgba(255, 232, 139, 0.48);
  box-shadow:
    0 26px 58px rgba(14, 64, 82, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.workflow-step span {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--green), var(--cyan));
  color: white;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(15, 118, 110, 0.2);
}

.workflow-step h3 {
  position: relative;
  z-index: 1;
  align-self: end;
  color: #12352f;
  font-size: 18px;
}

.workflow-step p {
  position: relative;
  z-index: 1;
  grid-column: 2;
  margin: -2px 0 0;
  color: #62736e;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.feature-card {
  min-height: 230px;
  padding: 24px;
  border: 1px solid rgba(15, 118, 110, 0.12);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 253, 252, 0.86)),
    radial-gradient(circle at 85% 10%, rgba(14, 116, 144, 0.1), transparent 30%);
  box-shadow: var(--soft-shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.feature-icon {
  width: 46px;
  height: 46px;
  margin-bottom: 24px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(22, 116, 91, 0.16), rgba(14, 116, 144, 0.16));
  position: relative;
}

.feature-icon::before,
.feature-icon::after {
  content: "";
  position: absolute;
  border-radius: 999px;
}

.feature-icon.instance::before {
  inset: 12px;
  border: 2px solid var(--green);
}

.feature-icon.instance::after {
  width: 12px;
  height: 12px;
  right: 7px;
  top: 9px;
  background: var(--cyan);
}

.feature-icon.metrics::before {
  left: 11px;
  right: 11px;
  bottom: 11px;
  height: 20px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--green) 0 28%, transparent 28% 36%, var(--cyan) 36% 65%, transparent 65% 73%, #89c9d8 73%);
}

.feature-icon.anomaly::before {
  inset: 10px;
  border: 2px solid var(--red);
}

.feature-icon.anomaly::after {
  width: 6px;
  height: 18px;
  left: 20px;
  top: 13px;
  border-radius: 4px;
  background: var(--red);
}

.feature-card h3 {
  color: #12352f;
  font-size: 20px;
}

.feature-card p {
  margin: 12px 0 0;
  color: #62736e;
}

.about-page {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 0 44px;
}

.about-page::before {
  content: "";
  position: fixed;
  inset: 78px 0 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.74), transparent 24%),
    radial-gradient(circle at 78% 22%, rgba(255, 232, 139, 0.08), transparent 32%),
    linear-gradient(135deg, rgba(238, 253, 251, 0.24), rgba(234, 246, 255, 0.28));
}

.about-hero,
.about-section,
.about-model-section {
  position: relative;
  border: 1px solid rgba(15, 118, 110, 0.1);
  border-radius: 24px;
  background:
    radial-gradient(circle at 12% 12%, rgba(14, 116, 144, 0.08), transparent 32%),
    linear-gradient(135deg, rgba(248, 255, 252, 0.96) 0%, rgba(242, 251, 255, 0.94) 45%, rgba(255, 255, 255, 0.96) 100%);
  box-shadow: 0 12px 32px rgba(15, 118, 110, 0.08);
}

.about-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.85fr);
  gap: 42px;
  align-items: center;
  min-height: 690px;
  padding: 34px 44px;
  overflow: hidden;
}

.about-hero::after {
  content: "";
  position: absolute;
  inset: 0 43% 0 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(248, 255, 252, 0.26) 0%, rgba(248, 255, 252, 0.18) 48%, rgba(248, 255, 252, 0.92) 100%),
    radial-gradient(circle at 30% 54%, rgba(255, 255, 255, 0.22), transparent 36%),
    url("assets/backgrounds/microvision_about_macro.png") 14% center / cover no-repeat;
  opacity: 0.54;
  filter: saturate(0.98) contrast(1.04);
  mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.9) 54%, transparent 100%);
}

.about-hero::before,
.about-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 118, 110, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 118, 110, 0.045) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(135deg, #000, transparent 72%);
  pointer-events: none;
}

.about-hero-copy,
.about-hero-visual,
.about-section > *,
.about-model-section > * {
  position: relative;
  z-index: 1;
}

.about-hero h1 {
  max-width: 720px;
  color: #12352f;
  font-size: clamp(38px, 4.8vw, 60px);
  line-height: 1.04;
}

.about-hero p {
  max-width: 700px;
  margin: 20px 0 0;
  color: #53645f;
  font-size: 17px;
}

.about-hero-visual {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(15, 118, 110, 0.14);
  border-radius: 20px;
  background: white;
  text-decoration: none;
  box-shadow: 0 24px 55px rgba(15, 118, 110, 0.14);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.about-hero-visual:hover,
.prediction-card:hover,
.foundation-card:hover,
.about-feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 46px rgba(15, 118, 110, 0.14);
}

.about-hero-visual img {
  display: block;
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.about-hero-visual div {
  padding: 16px 18px 18px;
}

.about-hero-visual span,
.prediction-card span {
  display: inline-flex;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.about-hero-visual strong {
  display: block;
  margin-top: 6px;
  color: #12352f;
  font-size: 17px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 28px 0 72px;
}

.about-stats article {
  min-height: 150px;
  padding: 20px;
  border: 1px solid rgba(15, 118, 110, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 12px 32px rgba(15, 118, 110, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.about-stats article:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(15, 118, 110, 0.12);
}

.about-stats span {
  display: block;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(22, 116, 91, 0.14), rgba(14, 116, 144, 0.18));
}

.about-stats strong {
  display: block;
  color: #12352f;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.05;
}

.about-stats p {
  margin: 8px 0 0;
  color: #6b7e78;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.about-section {
  margin-bottom: 72px;
  padding: 34px;
}

.about-section-head {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin-bottom: 24px;
}

.about-section-head h2,
.about-model-section h2 {
  color: #12352f;
  font-size: clamp(30px, 3.4vw, 42px);
  line-height: 1.08;
}

.about-section-head p:not(.eyebrow),
.about-model-section p {
  color: #5b6e68;
  font-size: 16px;
}

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

.about-feature-card,
.prediction-card,
.foundation-card {
  overflow: hidden;
  border: 1px solid rgba(15, 118, 110, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 32px rgba(15, 118, 110, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.about-feature-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.about-feature-card h3,
.prediction-card h3,
.foundation-card h3,
.about-workflow h3 {
  color: #12352f;
}

.about-feature-card h3,
.about-feature-card p,
.prediction-card h3,
.prediction-card span,
.foundation-card h3,
.foundation-card p {
  margin-left: 18px;
  margin-right: 18px;
}

.about-feature-card h3 {
  margin-top: 16px;
  font-size: 20px;
}

.about-feature-card p {
  margin-top: 10px;
  margin-bottom: 18px;
  color: #62736e;
}

.metric-card {
  display: grid;
  align-content: start;
  padding-top: 22px;
}

.metric-symbol {
  width: 58px;
  height: 58px;
  margin: 0 18px 22px;
  border-radius: 20px;
  background:
    linear-gradient(90deg, var(--green) 0 26%, transparent 26% 36%, var(--cyan) 36% 62%, transparent 62% 72%, rgba(14, 116, 144, 0.35) 72%),
    linear-gradient(135deg, rgba(22, 116, 91, 0.14), rgba(14, 116, 144, 0.16));
}

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

.prediction-card,
.foundation-card {
  color: inherit;
  text-decoration: none;
}

.prediction-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.prediction-card span {
  margin-top: 16px;
}

.prediction-card h3 {
  margin-top: 8px;
  margin-bottom: 18px;
  font-size: 17px;
  line-height: 1.35;
}

.foundation-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  object-position: top center;
  background: #f5fbfa;
}

.foundation-card h3 {
  margin-top: 16px;
  font-size: 20px;
}

.foundation-card p {
  margin-top: 10px;
  margin-bottom: 20px;
  color: #62736e;
}

.about-model-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 32px;
  align-items: center;
  margin-bottom: 72px;
  padding: 34px;
}

.model-reasons {
  display: grid;
  gap: 12px;
}

.model-reasons div {
  padding: 16px 18px;
  border: 1px solid rgba(15, 118, 110, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.84);
  color: #12352f;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.07);
}

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

.about-workflow article {
  position: relative;
  padding: 20px;
  border: 1px solid rgba(15, 118, 110, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 32px rgba(15, 118, 110, 0.08);
}

.about-workflow span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--green), var(--cyan));
  color: white;
  font-weight: 900;
}

.about-workflow p {
  color: #62736e;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.panel-head.compact {
  padding: 16px;
}

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

.metric-row.compact {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin: 0 0 20px;
}

.metric {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 8px;
}

.metric strong {
  display: block;
  font-size: 24px;
}

.workflow,
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 26px;
  margin-top: 18px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.workflow ol {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.workflow li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.workflow li span {
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--green);
  font-weight: 800;
}

.prediction-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 18px;
  align-items: start;
}

.form-panel fieldset {
  margin: 0;
  padding: 20px;
  border: 0;
  border-bottom: 1px solid var(--line);
}

.form-panel fieldset:last-child {
  border-bottom: 0;
}

legend {
  padding: 0;
  margin-bottom: 14px;
  font-weight: 800;
}

.field {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
}

input,
select {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  color: var(--text);
  padding: 8px 10px;
  font: inherit;
}

input[type="file"] {
  padding: 8px;
}

input:focus,
select:focus {
  outline: 2px solid rgba(36, 116, 91, 0.18);
  border-color: var(--green);
}

.grid {
  display: grid;
  gap: 14px;
}

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

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

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

.segmented {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 14px;
}

.segmented label {
  padding: 10px 14px;
  background: white;
  cursor: pointer;
}

.segmented label + label {
  border-left: 1px solid var(--line);
}

.segmented input {
  width: auto;
  min-height: 0;
  margin-right: 6px;
}

.check,
.switch {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  color: var(--text);
}

.check input,
.switch input {
  width: auto;
  min-height: 0;
}

.advanced {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.advanced summary,
.media-details summary {
  cursor: pointer;
  font-weight: 800;
}

.hidden {
  display: none !important;
}

.job-list {
  display: grid;
  gap: 10px;
  max-height: min(520px, 48vh);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 14px 14px 18px;
  scrollbar-gutter: stable;
}

.example-block {
  position: relative;
  margin: 12px;
  padding: 15px;
  border: 1px solid rgba(12, 111, 123, 0.2);
  border-radius: 10px;
  background:
    linear-gradient(140deg, rgba(239, 252, 255, 0.96) 0%, rgba(252, 248, 222, 0.78) 46%, rgba(231, 249, 243, 0.96) 100%),
    repeating-linear-gradient(90deg, rgba(14, 116, 144, 0.05) 0 1px, transparent 1px 34px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 18px 34px rgba(10, 92, 83, 0.1);
  overflow: hidden;
}

.example-block::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #0e7490, #16a085 44%, #f1d15a);
  pointer-events: none;
}

.example-head {
  position: relative;
  z-index: 1;
  align-items: center;
  padding: 0 0 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(12, 111, 123, 0.14);
}

.example-head .eyebrow {
  color: #0d7d7a;
}

.example-head h2 {
  color: #102d36;
  font-size: 23px;
  letter-spacing: 0;
  white-space: nowrap;
}

.example-job-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 0 8px;
  overscroll-behavior-x: contain;
  scrollbar-gutter: stable;
}

.example-job-list::-webkit-scrollbar,
.job-list::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.example-job-list::-webkit-scrollbar-track,
.job-list::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(12, 111, 123, 0.08);
}

.example-job-list::-webkit-scrollbar-thumb,
.job-list::-webkit-scrollbar-thumb {
  border: 2px solid rgba(245, 252, 250, 0.92);
  border-radius: 999px;
  background: linear-gradient(90deg, #0e7490, #16a085 68%, #f1d15a);
}

.example-job-item {
  position: relative;
  display: grid;
  gap: 7px;
  width: max(100%, 360px);
  padding: 13px;
  border: 1px solid rgba(12, 111, 123, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  backdrop-filter: blur(10px);
  box-shadow:
    0 12px 24px rgba(15, 118, 110, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.example-job-item:hover {
  border-color: rgba(14, 116, 144, 0.45);
  transform: translateY(-1px);
  box-shadow:
    0 16px 30px rgba(14, 116, 144, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.example-job-item.active {
  border-color: rgba(14, 116, 144, 0.62);
  background:
    linear-gradient(135deg, rgba(235, 250, 255, 0.92), rgba(255, 251, 226, 0.74));
}

.example-job-item.disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.example-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.example-job-item strong {
  color: #12352f;
  font-size: 14px;
}

.example-job-item span,
.example-job-item small {
  color: #65736e;
}

.example-job-item small {
  font-weight: 800;
}

.job-item {
  position: relative;
  display: grid;
  gap: 8px;
  width: max(100%, 350px);
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  cursor: pointer;
  overflow: hidden;
  color: inherit;
  font: inherit;
  text-align: left;
}

.job-item:hover,
.job-item:focus-visible {
  border-color: rgba(36, 116, 91, 0.65);
  box-shadow: 0 8px 22px rgba(36, 116, 91, 0.1);
  outline: none;
}

.job-item.active {
  border-color: var(--green);
  background: #f3faf6;
}

.example-job-item.is-loading,
.job-item.is-loading {
  border-color: rgba(14, 116, 144, 0.54);
  background:
    linear-gradient(135deg, rgba(232, 248, 255, 0.95), rgba(241, 255, 249, 0.92));
  box-shadow:
    0 16px 34px rgba(14, 116, 144, 0.16),
    inset 0 0 0 1px rgba(255, 255, 255, 0.66);
}

.example-job-item.is-loading::before,
.job-item.is-loading::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.7) 34%, rgba(105, 232, 220, 0.38) 50%, transparent 68%);
  pointer-events: none;
  transform: translateX(-120%);
  animation: job-card-scan 0.82s ease-in-out infinite;
}

.example-job-item.is-loading::after,
.job-item.is-loading::after {
  content: "Loading result";
  position: absolute;
  right: 10px;
  bottom: 8px;
  z-index: 2;
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: rgba(9, 96, 112, 0.92);
  color: #f6fffb;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: 0 8px 20px rgba(9, 96, 112, 0.22);
  pointer-events: none;
  animation: job-loading-pulse 0.72s ease-in-out infinite alternate;
}

.example-job-item.is-loading > *,
.job-item.is-loading > * {
  position: relative;
  z-index: 1;
}

.job-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.job-kind-line {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.job-kind-line small,
.job-kind-line > span:not(.job-kind-badge) {
  min-width: 0;
  overflow: hidden;
  color: #66706a;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.example-job-item .job-kind-line > span:not(.job-kind-badge),
.example-job-item small,
.job-item .job-kind-line small,
.job-row small {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.job-kind-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(15, 118, 110, 0.14);
  background: rgba(15, 118, 110, 0.08);
  color: #0d5d55;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.job-kind-badge.video {
  border-color: rgba(14, 116, 144, 0.2);
  background: rgba(14, 116, 144, 0.1);
  color: #0a5f75;
}

.status-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid var(--line);
  white-space: nowrap;
}

.status-queued { color: var(--amber); }
.status-running { color: var(--blue); }
.status-succeeded { color: var(--green); }
.status-failed { color: var(--red); }

.status-panel,
.results-panel {
  margin-top: 18px;
  scroll-margin-top: 104px;
}

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

.danger-button {
  color: var(--red);
  border-color: rgba(179, 56, 56, 0.35);
}

.danger-button:hover,
.danger-button:focus-visible {
  background: rgba(179, 56, 56, 0.08);
  border-color: rgba(179, 56, 56, 0.7);
}

.progress-wrap {
  position: relative;
  height: 48px;
  margin: 20px 20px 12px;
  border-radius: 999px;
  border: 1px solid rgba(15, 118, 110, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(231, 247, 244, 0.72)),
    var(--surface-2);
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    inset 0 -12px 22px rgba(15, 118, 110, 0.06),
    0 18px 34px rgba(15, 118, 110, 0.08);
}

.progress-bar {
  position: relative;
  width: 0%;
  height: 100%;
  min-width: 0;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(10, 92, 83, 0.96), rgba(10, 121, 126, 0.96) 58%, rgba(241, 209, 90, 0.94)),
    var(--green);
  overflow: hidden;
  box-shadow:
    inset 0 0 22px rgba(255, 255, 255, 0.16),
    0 0 28px rgba(13, 166, 151, 0.24);
  transition: width 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.progress-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 22px);
  mix-blend-mode: screen;
  animation: progress-scan 2.4s linear infinite;
  pointer-events: none;
}

.progress-glitch-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0.86;
}

.progress-glitch-label {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #f8fff5;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.34);
  white-space: nowrap;
}

@keyframes job-card-scan {
  to {
    transform: translateX(120%);
  }
}

@keyframes job-loading-pulse {
  from {
    opacity: 0.62;
    transform: translateY(1px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes progress-scan {
  from {
    transform: translateX(-32%);
  }
  to {
    transform: translateX(32%);
  }
}

.status-meta {
  padding: 0 20px 14px;
  color: var(--muted);
  font-size: 13px;
}

.logs {
  max-height: 220px;
  overflow: auto;
  margin: 0;
  padding: 16px 20px;
  border-top: 1px solid var(--line);
  background: #161a17;
  color: #dce7dd;
  font-size: 12px;
  line-height: 1.45;
}

.submission-notice {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 54% 40%, rgba(14, 116, 144, 0.18), transparent 34%),
    rgba(7, 26, 29, 0.32);
  backdrop-filter: blur(8px);
}

.submission-notice.hidden {
  display: none !important;
}

.submission-notice-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  width: min(760px, calc(100vw - 36px));
  padding: 22px;
  border: 1px solid rgba(12, 111, 123, 0.28);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(248, 255, 253, 0.96), rgba(236, 251, 255, 0.94) 58%, rgba(255, 250, 220, 0.92));
  box-shadow:
    0 28px 70px rgba(4, 42, 48, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
  overflow: hidden;
  animation: submission-pop 0.26s ease-out both;
}

.submission-notice-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, #0e7490, #16a085 56%, #f1d15a);
}

.submission-notice-mark {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, #0d7d7a, #0e7490);
  color: #f7fffb;
  font-size: 15px;
  font-weight: 950;
  letter-spacing: 0.08em;
  box-shadow: 0 14px 28px rgba(14, 116, 144, 0.26);
}

.submission-notice-copy {
  min-width: 0;
}

.submission-notice-copy .eyebrow {
  margin-bottom: 4px;
}

.submission-notice-copy h2 {
  margin: 0 0 8px;
  color: #0c332f;
  font-size: 24px;
}

.submission-notice-copy p {
  margin: 0;
  max-width: 56rem;
  color: #425a57;
  font-size: 15px;
  line-height: 1.55;
}

.submission-notice-copy strong {
  color: #0a6f72;
  font-weight: 950;
}

.submission-job-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  margin-top: 12px;
  padding: 9px 11px;
  border: 1px solid rgba(14, 116, 144, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.submission-job-row span {
  color: #637a76;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.submission-job-row code {
  color: #063f46;
  font-size: 13px;
  font-weight: 950;
  white-space: nowrap;
}

.submission-notice-card .primary-button {
  min-width: 92px;
  box-shadow: 0 12px 24px rgba(14, 116, 144, 0.2);
}

.submission-notice-timer {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg, #0e7490, #16a085, #f1d15a);
  transform-origin: left center;
  animation: submission-timeout 5s linear both;
}

@keyframes submission-pop {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes submission-timeout {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(0);
  }
}

.results-panel {
  padding: 0 20px 20px;
}

.results-panel .panel-head {
  margin: 0 -20px 20px;
}

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

.charts > div {
  position: relative;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfb 100%);
  box-shadow: 0 8px 22px rgba(32, 36, 33, 0.05);
  text-align: center;
}

.charts h3 {
  width: 100%;
  margin-bottom: 8px;
  text-align: center;
}

.chart-subtitle {
  margin: -3px 0 8px;
  color: #66706a;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.25;
  text-align: center;
}

canvas {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 280px;
  cursor: crosshair;
}

.media-details {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.media-details[open] {
  overflow: clip;
}

.video-gallery,
.image-gallery {
  display: block;
  margin-top: 14px;
}

.video-gallery:empty,
.image-gallery:empty {
  display: none;
}

.media-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 12px;
  color: #11433d;
}

.media-section-head > div:first-child {
  display: grid;
  gap: 5px;
}

.media-section-head span {
  color: #667f7a;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.media-section-head strong {
  color: #103c36;
  font-size: 18px;
}

.gallery-help {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.gallery-help span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: none;
  box-shadow: 0 8px 18px rgba(15, 118, 110, 0.08);
}

.gallery-help b {
  color: inherit;
  font-weight: 900;
}

.gallery-help .hint-wheel {
  border: 1px solid rgba(14, 116, 144, 0.22);
  background: rgba(232, 248, 255, 0.88);
  color: #0b5f76;
}

.gallery-help .hint-space {
  border: 1px solid rgba(167, 99, 32, 0.24);
  background: rgba(255, 246, 220, 0.9);
  color: #8a5317;
}

.circular-gallery-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 24px rgba(15, 118, 110, 0.08);
}

.circular-gallery-controls button {
  display: grid;
  place-items: center;
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border-radius: 50%;
  border-color: rgba(15, 118, 110, 0.18);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(230, 250, 247, 0.92));
  color: #0c6d67;
  font-size: 26px;
  line-height: 1;
}

.circular-gallery-controls span {
  min-width: 58px;
  color: #0b5c55;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  text-transform: none;
  letter-spacing: 0;
}

.image-gallery {
  outline: none;
}

.circular-gallery-shell {
  position: relative;
  height: clamp(420px, 42vw, 620px);
  min-height: 420px;
  overflow: hidden;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 18px;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 221, 99, 0.16), transparent 28%),
    radial-gradient(circle at 78% 18%, rgba(31, 151, 168, 0.16), transparent 30%),
    linear-gradient(135deg, rgba(238, 252, 249, 0.9), rgba(246, 251, 255, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 18px 42px rgba(15, 118, 110, 0.12);
  perspective: 1300px;
  cursor: grab;
  touch-action: pan-y;
}

.circular-gallery-shell::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 15px;
  background-image:
    linear-gradient(rgba(15, 118, 110, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 118, 110, 0.06) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at 50% 44%, #000 0 58%, transparent 86%);
  pointer-events: none;
}

.circular-gallery-shell::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 48px;
  width: min(680px, 80%);
  height: 80px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(12, 84, 77, 0.18), transparent 68%);
  filter: blur(8px);
  pointer-events: none;
}

.image-gallery.is-dragging .circular-gallery-shell {
  cursor: grabbing;
}

.circular-gallery-stage {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  pointer-events: none;
}

.circular-gallery-card {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  gap: 10px;
  width: min(520px, 52vw);
  min-width: 290px;
  min-height: 0;
  padding: 12px;
  border: 1px solid rgba(15, 118, 110, 0.2);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 28px 54px rgba(15, 118, 110, 0.2);
  transform-style: preserve-3d;
  transform-origin: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  pointer-events: auto;
  will-change: transform, opacity;
  white-space: normal;
}

.circular-gallery-card.is-active {
  border-color: rgba(12, 117, 111, 0.42);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 30px 70px rgba(15, 118, 110, 0.25);
}

.circular-card-media {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.5), transparent 54%),
    #eaf7f6;
}

.circular-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: none;
}

.circular-card-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #0f3d37;
  font-size: 13px;
  font-weight: 900;
}

.circular-card-caption span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.circular-card-caption small {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.1);
  color: #0a645d;
  font-size: 11px;
}

.video-output-grid {
  display: grid;
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
  gap: 14px;
}

.video-card {
  width: 100%;
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 18px;
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 221, 99, 0.13), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(232, 249, 248, 0.92));
  color: #103b35;
  text-align: left;
  box-shadow: 0 18px 44px rgba(15, 118, 110, 0.14);
  white-space: normal;
}

.video-card:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 118, 110, 0.38);
  box-shadow: 0 24px 58px rgba(15, 118, 110, 0.18);
}

.video-preview-frame {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(15, 118, 110, 0.16);
  background: #071b1a;
}

.video-preview-frame video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.94;
}

.video-play-mark {
  position: absolute;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 42px rgba(9, 57, 54, 0.25);
}

.video-play-mark::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 5px;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  border-left: 22px solid #0f766e;
}

.video-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 2px 2px;
}

.video-notice strong {
  color: #12352f;
  font-size: 18px;
}

.video-notice p {
  margin: 4px 0 0;
  color: #66706a;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.media-empty {
  margin: 0;
  padding: 18px;
  border: 1px dashed rgba(15, 118, 110, 0.24);
  border-radius: 12px;
  color: #66706a;
  background: rgba(255, 255, 255, 0.62);
}

.csv-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.csv-links a {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--green);
  background: white;
  text-decoration: none;
}

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

.about-grid section {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.media-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
  padding: 18px;
  background: rgba(20, 24, 22, 0.86);
}

.media-modal > button {
  justify-self: end;
  background: white;
}

.media-modal-body {
  display: grid;
  place-items: center;
  min-height: 0;
}

.media-modal-body img,
.media-modal-body video {
  max-width: min(1200px, 96vw);
  max-height: 82vh;
  border-radius: 8px;
  background: black;
}

.media-modal-body p {
  max-width: min(1200px, 96vw);
  margin: 10px 0 0;
  color: white;
  overflow-wrap: anywhere;
}

.chart-tooltip {
  position: fixed;
  z-index: 90;
  max-width: 220px;
  padding: 7px 9px;
  border: 1px solid rgba(32, 36, 33, 0.12);
  border-radius: 7px;
  background: rgba(32, 36, 33, 0.94);
  color: white;
  font-size: 12px;
  line-height: 1.35;
  pointer-events: none;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

@media (max-width: 1100px) {
  .about-hero,
  .about-model-section {
    grid-template-columns: 1fr;
  }

  .about-stats,
  .about-feature-grid,
  .about-workflow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .home-hero,
  .home-workflow {
    grid-template-columns: 1fr;
  }

  .home-workflow {
    min-height: auto;
    padding: 34px 28px;
  }

  .home-hero {
    min-height: auto;
    padding-top: 32px;
  }

  .workflow-copy {
    position: static;
  }

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

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .prediction-layout,
  .workflow,
  .about-grid,
  .charts {
    grid-template-columns: 1fr;
  }

  .queue-panel {
    order: -1;
  }
}

@media (max-width: 760px) {
  .topbar {
    align-items: stretch;
    flex-direction: column;
    min-height: auto;
    padding: 12px 16px;
  }

  main {
    padding: 18px 14px;
  }

  .tabs {
    overflow-x: auto;
  }

  .panel-head {
    flex-direction: column;
  }

  .submission-notice-card {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .submission-notice-card .primary-button {
    width: 100%;
  }

  .metric-row,
  .metric-row.compact,
  .grid.two,
  .grid.three,
  .grid.four {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 30px;
  }

  .brand {
    min-width: 0;
  }

  .brand-subtitle {
    display: none;
  }

  .home-page {
    padding-top: 0;
  }

  .about-page {
    padding-top: 0;
  }

  .about-hero,
  .about-section,
  .about-model-section {
    border-radius: 18px;
    padding: 22px;
  }

  .about-hero h1 {
    font-size: clamp(36px, 11vw, 44px);
  }

  .about-hero-visual img {
    height: 260px;
  }

  .about-stats,
  .about-feature-grid,
  .prediction-showcase,
  .foundation-grid,
  .about-workflow {
    grid-template-columns: 1fr;
  }

  .about-stats,
  .about-section,
  .about-model-section {
    margin-bottom: 48px;
  }

  .home-hero {
    gap: 28px;
    padding: 22px 0 48px;
  }

  .hero-copy h1 {
    font-size: clamp(34px, 12vw, 44px);
  }

  .hero-copy p {
    font-size: 15px;
  }

  .hero-actions {
    display: grid;
  }

  .preview-card {
    border-radius: 18px;
    padding: 12px;
  }

  .preview-main {
    grid-template-columns: 1fr;
  }

  .micrograph-window,
  .micrograph-window img {
    min-height: 240px;
  }

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

  .home-stats {
    grid-template-columns: 1fr;
    margin-bottom: 64px;
  }

  .home-workflow {
    gap: 24px;
    padding: 24px 18px;
    margin-bottom: 64px;
    border-radius: 24px;
  }

  .workflow-steps::before {
    display: none;
  }

  .workflow-step {
    grid-template-columns: 48px minmax(0, 1fr);
    padding: 18px;
  }

  .workflow-step p {
    grid-column: 1 / -1;
  }

  .video-notice {
    align-items: flex-start;
  }

  .media-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .circular-gallery-shell {
    height: 430px;
    min-height: 430px;
  }

  .circular-gallery-card {
    width: min(78vw, 430px);
    min-width: 240px;
  }
}


/* About counters and contact card */
.about-live-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 190px));
  gap: 14px;
  margin-top: 28px;
}

.about-live-stats div {
  padding: 16px;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.08);
}

.about-live-stats strong {
  display: block;
  color: #12352f;
  font-size: 34px;
  line-height: 1;
}

.about-live-stats span {
  display: block;
  margin-top: 8px;
  color: #60736d;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.contact-card {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  align-self: stretch;
  padding: 22px;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 22px 50px rgba(15, 118, 110, 0.14);
}

.contact-card-head,
.contact-person,
.contact-address {
  position: relative;
  z-index: 1;
}

.contact-card-head span,
.contact-person span,
.contact-address span,
.contact-mail-label {
  display: block;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-card-head strong {
  display: block;
  margin-top: 6px;
  color: #12352f;
  font-size: 24px;
}

.contact-person,
.contact-address {
  display: grid;
  gap: 7px;
  padding: 15px;
  border: 1px solid rgba(15, 118, 110, 0.12);
  border-radius: 14px;
  background: rgba(248, 255, 252, 0.78);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.contact-person:hover,
.contact-address:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 118, 110, 0.28);
  box-shadow: 0 12px 26px rgba(15, 118, 110, 0.1);
}

.contact-person strong {
  color: #12352f;
  font-size: 18px;
}

.contact-person a {
  color: #0e7490;
  font-weight: 800;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact-address p {
  margin: 0;
  color: #53645f;
  line-height: 1.55;
}

.copy-button {
  justify-self: start;
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 8px;
  background: white;
  color: var(--green-dark);
  font-weight: 900;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.copy-button:hover,
.copy-button.copied {
  transform: translateY(-1px);
  background: var(--green);
  color: white;
}

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

.prediction-card {
  display: grid;
  grid-template-rows: minmax(190px, 220px) auto;
}

.prediction-card span {
  margin: 14px 18px 18px;
}

/* Prediction upload guards and anomaly toggle */
.upload-limit-note {
  margin-top: 8px;
  color: #5d6f69;
  font-size: 13px;
  line-height: 1.45;
}

.upload-warning {
  display: grid;
  gap: 4px;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(179, 56, 56, 0.2);
  border-radius: 8px;
  background: rgba(179, 56, 56, 0.08);
  color: #8d2d2d;
  font-size: 13px;
  font-weight: 800;
}

.anomaly-fieldset {
  position: relative;
  padding-bottom: 20px;
  border-color: rgba(36, 116, 91, 0.18);
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 221, 99, 0.1), transparent 32%),
    linear-gradient(135deg, rgba(247, 255, 251, 0.96), rgba(242, 250, 255, 0.95));
}

.anomaly-switch-card {
  position: relative;
  z-index: 2;
  align-items: flex-start;
  min-height: 78px;
  padding: 18px 20px;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(239, 251, 249, 0.92));
  box-shadow: 0 18px 36px rgba(15, 118, 110, 0.11);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.anomaly-switch-card:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 118, 110, 0.32);
  box-shadow: 0 22px 44px rgba(15, 118, 110, 0.14);
}

.anomaly-switch-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.switch-visual {
  position: relative;
  flex: 0 0 auto;
  width: 62px;
  height: 34px;
  border-radius: 999px;
  background: #cbd7d2;
  box-shadow: inset 0 0 0 1px rgba(32, 36, 33, 0.08);
  transition: background 0.18s ease, box-shadow 0.18s ease;
}

.switch-visual::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 4px 10px rgba(32, 36, 33, 0.18);
  transition: transform 0.18s ease;
}

.anomaly-switch-card.enabled .switch-visual {
  background: linear-gradient(135deg, var(--green), var(--cyan));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16), 0 10px 22px rgba(15, 118, 110, 0.18);
}

.anomaly-switch-card.enabled .switch-visual::after {
  transform: translateX(28px);
}

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

.switch-copy strong {
  color: #12352f;
  font-size: 20px;
  line-height: 1.2;
}

.switch-copy small {
  color: #61736d;
  font-size: 13px;
  line-height: 1.45;
}

.anomaly-settings {
  position: relative;
  display: grid;
  gap: 16px;
  max-height: 0;
  margin: -2px 0 0;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 0 0 18px 18px;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transform: translateY(-12px) scaleY(0.98);
  transform-origin: top center;
  transition:
    max-height 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 0.24s ease,
    padding 0.32s ease,
    margin 0.32s ease,
    border-color 0.24s ease,
    transform 0.32s ease;
}

.anomaly-settings::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 82% 8%, rgba(255, 221, 99, 0.18), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(230, 248, 247, 0.78));
  pointer-events: none;
}

.anomaly-settings.expanded {
  max-height: 860px;
  margin-top: 12px;
  padding: 20px 18px 18px;
  border-color: rgba(15, 118, 110, 0.16);
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scaleY(1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 16px 36px rgba(15, 118, 110, 0.09);
}

.anomaly-settings > * {
  position: relative;
  z-index: 1;
}

.anomaly-settings .grid {
  gap: 14px;
}

.anomaly-settings .field,
.anomaly-settings .check {
  padding: 12px;
  border: 1px solid rgba(15, 118, 110, 0.12);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 20px rgba(15, 118, 110, 0.05);
}

.anomaly-settings .field span {
  color: #4e6964;
  font-size: 12px;
  font-weight: 800;
}

.anomaly-settings input,
.anomaly-settings select {
  background: rgba(255, 255, 255, 0.78);
}

.anomaly-settings input[type="color"] {
  min-height: 42px;
  padding: 6px;
}

.anomaly-settings .advanced {
  margin-top: 0;
  padding: 14px;
  border: 1px solid rgba(15, 118, 110, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.6);
}

.anomaly-settings .advanced summary {
  color: #173d38;
  font-size: 15px;
}

@media (max-width: 1100px) {
  .contact-card {
    align-self: auto;
  }
}

@media (max-width: 760px) {
  .about-live-stats,
  .prediction-showcase {
    grid-template-columns: 1fr;
  }

  .anomaly-switch-card {
    min-height: 0;
  }
}

/* React Bits inspired front-end effects */
.topbar {
  padding: 10px 32px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.86), rgba(244, 253, 252, 0.78)),
    radial-gradient(circle at 70% 50%, rgba(255, 232, 139, 0.12), transparent 30%);
}

.brand {
  padding: 6px 10px 6px 6px;
  border: 1px solid rgba(15, 118, 110, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 10px 26px rgba(15, 118, 110, 0.08);
}

.brand-mark img {
  transition: transform 0.32s ease;
}

.brand:hover .brand-mark img {
  transform: rotate(24deg) scale(1.05);
}

.pill-nav {
  --pill-base: #0b5f55;
  --pill-fill: rgba(255, 255, 255, 0.82);
  --pill-glow: rgba(255, 232, 139, 0.74);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(15, 118, 110, 0.12);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(7, 77, 70, 0.9), rgba(14, 116, 144, 0.82)),
    radial-gradient(circle at 92% 16%, rgba(255, 232, 139, 0.32), transparent 34%);
  box-shadow:
    0 18px 42px rgba(11, 95, 85, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.pill-nav .pill {
  position: relative;
  min-height: 38px;
  padding: 0 18px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: var(--pill-fill);
  color: #0c493f;
  font-weight: 800;
  box-shadow: none;
  isolation: isolate;
}

.pill-nav .pill:hover,
.pill-nav .pill.active {
  transform: translateY(-1px);
  border-color: transparent;
  background: rgba(255, 255, 255, 0.92);
  color: white;
}

.pill-nav .pill.active {
  box-shadow: 0 10px 24px rgba(5, 82, 76, 0.22);
}

.pill-nav .hover-circle {
  position: absolute;
  left: 50%;
  bottom: -110%;
  z-index: -1;
  width: 160%;
  aspect-ratio: 1;
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.92), transparent 18%),
    linear-gradient(135deg, var(--pill-base), #0e7490 74%, var(--pill-glow));
  transform: translateX(-50%) scale(0.08);
  transform-origin: 50% 88%;
  transition: transform 0.42s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.pill-nav .pill:hover .hover-circle,
.pill-nav .pill.active .hover-circle {
  transform: translateX(-50%) scale(1.18);
}

.pill-nav .label-stack {
  position: relative;
  z-index: 2;
  display: inline-grid;
  line-height: 1;
}

.pill-nav .pill-label,
.pill-nav .pill-label-hover {
  grid-area: 1 / 1;
  transition: transform 0.24s ease, opacity 0.2s ease;
}

.pill-nav .pill-label-hover {
  color: white;
  opacity: 0;
  transform: translateY(135%);
}

.pill-nav .pill:hover .pill-label,
.pill-nav .pill.active .pill-label {
  opacity: 0;
  transform: translateY(-135%);
}

.pill-nav .pill:hover .pill-label-hover,
.pill-nav .pill.active .pill-label-hover {
  opacity: 1;
  transform: translateY(0);
}

.pill-nav .pill.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffe88b;
  box-shadow: 0 0 18px rgba(255, 232, 139, 0.72);
  transform: translateX(-50%);
}

.fluid-glass-cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 92;
  width: 78px;
  height: 78px;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-120px, -120px, 0);
  transition: opacity 0.18s ease, width 0.22s ease, height 0.22s ease;
  will-change: transform;
}

.fluid-glass-cursor.is-visible {
  opacity: 1;
}

.fluid-glass-cursor.is-expanded {
  width: 112px;
  height: 112px;
}

.fluid-glass-cursor span,
.fluid-glass-cursor::before,
.fluid-glass-cursor::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
}

.fluid-glass-cursor span {
  border: 1px solid rgba(255, 255, 255, 0.8);
  background:
    radial-gradient(circle at 31% 24%, rgba(255, 255, 255, 0.92), transparent 18%),
    radial-gradient(circle at 70% 72%, rgba(255, 232, 139, 0.18), transparent 36%),
    rgba(255, 255, 255, 0.11);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.85),
    inset 14px 14px 30px rgba(255, 255, 255, 0.12),
    inset -18px -18px 34px rgba(14, 116, 144, 0.16),
    0 18px 44px rgba(14, 64, 82, 0.16);
  backdrop-filter: blur(8px) saturate(1.35) contrast(1.08);
}

.fluid-glass-cursor::before {
  inset: 8px;
  border: 1px solid rgba(255, 232, 139, 0.32);
  filter: blur(0.3px);
}

.fluid-glass-cursor::after {
  inset: -3px;
  border: 1px solid rgba(14, 116, 144, 0.18);
  transform: translate(4px, 3px);
  mix-blend-mode: screen;
}

body[data-active-page="prediction"] .fluid-glass-cursor {
  display: none;
}

.lanyard-contact {
  --lanyard-swing: -2deg;
  --lanyard-tilt-x: 0deg;
  --lanyard-tilt-y: 0deg;
  --lanyard-stretch: 0px;
  --lanyard-card-y: 0px;
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  align-self: start;
  min-height: 620px;
  margin-top: -22px;
  perspective: 1100px;
}

.lanyard-anchor {
  position: absolute;
  top: 8px;
  left: 50%;
  z-index: 4;
  display: flex;
  gap: 18px;
  transform: translateX(-50%);
}

.lanyard-anchor span {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 30%, white, rgba(255, 255, 255, 0.3) 40%, transparent 44%),
    linear-gradient(135deg, #0f766e, #0e7490);
  box-shadow: 0 10px 20px rgba(14, 64, 82, 0.18);
}

.lanyard-band {
  position: absolute;
  top: 21px;
  left: 50%;
  z-index: 2;
  width: 128px;
  height: calc(168px + var(--lanyard-stretch));
  border-radius: 42px 42px 18px 18px;
  background:
    linear-gradient(90deg, transparent 0 18%, rgba(255, 255, 255, 0.24) 18% 27%, transparent 27% 73%, rgba(255, 255, 255, 0.24) 73% 82%, transparent 82%),
    repeating-linear-gradient(115deg, #0f766e 0 14px, #0e7490 14px 28px, #ffe88b 28px 32px);
  clip-path: polygon(4% 0, 26% 0, 49% 82%, 74% 0, 96% 0, 61% 100%, 39% 100%);
  opacity: 0.92;
  transform: translateX(-50%) rotate(var(--lanyard-swing));
  transform-origin: 50% 0;
  filter: drop-shadow(0 16px 24px rgba(14, 64, 82, 0.16));
  transition: transform 0.2s ease;
}

.lanyard-clip {
  position: absolute;
  top: calc(162px + var(--lanyard-stretch));
  left: 50%;
  z-index: 5;
  width: 74px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(189, 219, 224, 0.62)),
    linear-gradient(135deg, #cfdcdf, #849ba0);
  box-shadow: 0 14px 28px rgba(14, 64, 82, 0.16);
  transform: translateX(-50%) rotate(var(--lanyard-swing));
  transform-origin: 50% -160px;
  transition: transform 0.2s ease;
}

.lanyard-card {
  align-self: center;
  justify-self: center;
  width: min(100%, 460px);
  margin-top: 160px;
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(239, 251, 249, 0.7)),
    radial-gradient(circle at 82% 12%, rgba(255, 232, 139, 0.18), transparent 32%);
  box-shadow:
    0 34px 74px rgba(14, 64, 82, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px) saturate(1.12);
  transform:
    translateY(var(--lanyard-card-y))
    rotate(var(--lanyard-swing))
    rotateX(var(--lanyard-tilt-x))
    rotateY(var(--lanyard-tilt-y));
  transform-origin: 50% -84px;
  transition: transform 0.36s cubic-bezier(0.18, 0.9, 0.22, 1.18), box-shadow 0.22s ease;
}

.lanyard-contact:hover .lanyard-card {
  box-shadow:
    0 42px 82px rgba(14, 64, 82, 0.21),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.lanyard-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.lanyard-chip {
  padding: 7px 10px;
  border: 1px solid rgba(15, 118, 110, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  color: #0f5c49;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.prediction-swap-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: 42px;
  align-items: center;
  min-height: 620px;
  overflow: hidden;
}

.prediction-swap-copy {
  max-width: 410px;
  margin-bottom: 0;
}

.prediction-swap-copy h2 {
  font-size: clamp(34px, 4vw, 52px);
}

.prediction-card-swap {
  position: relative;
  display: block;
  height: 520px;
  min-width: 0;
  perspective: 1100px;
  overflow: visible;
  pointer-events: none;
}

.prediction-swap-card {
  --swap-x: 0px;
  --swap-y: 0px;
  --swap-scale: 1;
  --swap-rot: 0deg;
  --swap-opacity: 1;
  position: absolute;
  top: 50%;
  left: 45%;
  display: grid;
  grid-template-rows: auto auto;
  width: min(92%, 650px);
  min-height: 0;
  padding: 12px;
  border-radius: 26px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(229, 247, 251, 0.62)),
    radial-gradient(circle at 80% 8%, rgba(255, 232, 139, 0.16), transparent 30%);
  box-shadow:
    0 28px 72px rgba(14, 64, 82, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
  opacity: var(--swap-opacity);
  transform:
    translate(-50%, -50%)
    translate3d(var(--swap-x), var(--swap-y), 0)
    scale(var(--swap-scale))
    rotate(var(--swap-rot));
  transform-origin: center;
  transition:
    transform 0.76s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.38s ease,
    box-shadow 0.24s ease;
  will-change: transform, opacity;
  pointer-events: none !important;
}

.prediction-swap-card.is-front {
  box-shadow:
    0 34px 82px rgba(14, 64, 82, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.prediction-swap-media {
  display: grid;
  place-items: center;
  height: clamp(260px, 32vw, 360px);
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(15, 118, 110, 0.12);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(7, 77, 70, 0.08), rgba(255, 255, 255, 0.7)),
    rgba(245, 251, 250, 0.88);
}

.prediction-swap-card img {
  display: block;
  width: auto;
  max-width: 100%;
  height: clamp(260px, 32vw, 360px);
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

.prediction-swap-card span {
  margin: 14px 10px 4px;
  color: #0b5f55;
}

.foundation-scroll-stack {
  position: relative;
  display: grid;
  gap: 0;
  padding: 14px 0 62px;
  perspective: 1200px;
}

.foundation-scroll-stack .scroll-stack-card {
  --stack-top: 92px;
  --stack-scale: 1;
  --stack-rot: 0deg;
  --stack-blur: 0px;
  position: sticky;
  top: var(--stack-top);
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(260px, 0.88fr);
  gap: 24px;
  min-height: 420px;
  margin: 0 0 72px;
  padding: 22px;
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(229, 247, 251, 0.72)),
    radial-gradient(circle at 90% 8%, rgba(255, 232, 139, 0.18), transparent 32%);
  box-shadow:
    0 28px 76px rgba(14, 64, 82, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
  transform: scale(var(--stack-scale)) rotate(var(--stack-rot));
  transform-origin: top center;
  filter: blur(var(--stack-blur));
  backdrop-filter: blur(10px) saturate(1.08);
  will-change: transform, filter;
}

.foundation-scroll-stack .scroll-stack-card:nth-child(even) {
  grid-template-columns: minmax(260px, 0.88fr) minmax(0, 1.12fr);
}

.foundation-scroll-stack .scroll-stack-card:nth-child(even) .foundation-card-media {
  order: 2;
}

.foundation-scroll-stack .scroll-stack-card:nth-child(even) .foundation-card-copy {
  order: 1;
  padding-left: 18px;
}

.foundation-scroll-stack .scroll-stack-card:hover {
  transform: scale(var(--stack-scale)) rotate(var(--stack-rot)) translateY(-2px);
}

.foundation-card-media {
  display: grid;
  place-items: center;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(15, 118, 110, 0.12);
  border-radius: 22px;
  background: rgba(247, 253, 252, 0.72);
}

.foundation-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: contain;
  object-position: center;
  padding: 8px;
}

.foundation-card-copy {
  align-self: center;
  padding: 12px 8px;
}

.foundation-card-copy h3 {
  margin: 0;
  font-size: clamp(24px, 2.8vw, 38px);
  line-height: 1.08;
  color: transparent;
  background:
    linear-gradient(135deg, #0b493f 0%, #0e7490 54%, #8a6612 100%);
  background-clip: text;
  -webkit-background-clip: text;
  text-shadow: 0 12px 30px rgba(14, 64, 82, 0.12);
}

.foundation-card-copy h3::after {
  content: "";
  display: block;
  width: 72px;
  height: 4px;
  margin-top: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, #0f766e, #ffe88b, transparent);
}

.foundation-card-copy p {
  margin: 16px 0 0;
  color: #53645f;
  font-size: 17px;
  line-height: 1.58;
}

@media (max-width: 1100px) {
  .topbar {
    padding: 10px 18px;
  }

  .brand {
    min-width: auto;
  }

  .prediction-swap-section {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .prediction-swap-copy {
    max-width: 760px;
  }

  .prediction-card-swap {
    height: 500px;
  }

  .foundation-scroll-stack .scroll-stack-card {
    grid-template-columns: 1fr;
  }

  .foundation-scroll-stack .scroll-stack-card:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .foundation-scroll-stack .scroll-stack-card:nth-child(even) .foundation-card-media,
  .foundation-scroll-stack .scroll-stack-card:nth-child(even) .foundation-card-copy {
    order: initial;
  }

  .foundation-card-media img {
    min-height: 260px;
  }
}

@media (max-width: 760px) {
  .topbar {
    align-items: stretch;
    padding: 10px 14px;
  }

  .brand {
    justify-content: center;
    width: 100%;
  }

  .pill-nav {
    justify-content: center;
    width: 100%;
  }

  .pill-nav .pill {
    flex: 1 1 0;
    padding: 0 10px;
  }

  .fluid-glass-cursor {
    display: none;
  }

  .lanyard-contact {
    min-height: 0;
    padding-top: 10px;
    margin-top: -6px;
  }

  .lanyard-card {
    margin-top: 104px;
    transform-origin: 50% -56px;
  }

  .lanyard-band {
    width: 104px;
    height: calc(108px + var(--lanyard-stretch));
  }

  .lanyard-clip {
    top: calc(106px + var(--lanyard-stretch));
  }

  .prediction-card-swap {
    height: 430px;
  }

  .prediction-swap-card {
    left: 50%;
    width: min(96%, 420px);
    padding: 9px;
  }

  .prediction-swap-media {
    height: clamp(210px, 58vw, 280px);
  }

  .prediction-swap-card img {
    height: clamp(210px, 58vw, 280px);
  }

  .foundation-scroll-stack {
    padding-bottom: 28px;
  }

  .foundation-scroll-stack .scroll-stack-card {
    top: 92px;
    min-height: 0;
    margin-bottom: 44px;
    padding: 16px;
    border-radius: 24px;
  }

  .foundation-card-media img {
    min-height: 210px;
  }

  .foundation-card-copy h3 {
    font-size: 24px;
  }

  .foundation-card-copy p {
    font-size: 15px;
  }
}
