:root {
  color-scheme: dark;
  --black: #000;
  --bg: #050505;
  --bg-deep: #080807;
  --surface: #0d0d0c;
  --surface-raised: #121210;
  --surface-soft: rgba(255, 255, 255, 0.035);
  --text: #f7f4ec;
  --text-soft: #d7d2c7;
  --muted: #a8a49b;
  --quiet: #7c7a74;
  --line: rgba(255, 255, 255, 0.11);
  --line-soft: rgba(255, 255, 255, 0.065);
  --line-gold: rgba(245, 184, 36, 0.38);
  --gold: #f5b824;
  --gold-light: #ffe08a;
  --gold-pale: #fff0bd;
  --cyan: #75d8e8;
  --blue: #62aacf;
  --content: 1200px;
  --reading: 760px;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --shadow-sm: 0 16px 36px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 32px 90px rgba(0, 0, 0, 0.42);
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Avenir Next", Avenir, "Segoe UI", ui-sans-serif, system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  scroll-padding-top: 108px;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: #000;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 72%, rgba(245, 184, 36, 0.025) 90%, rgba(245, 184, 36, 0.05) 100%);
}

::selection {
  background: var(--gold);
  color: #100d06;
}

img,
video {
  max-width: 100%;
}

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

a,
button,
video {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 4px;
}

main,
.site-footer {
  width: min(var(--content), calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding-inline: max(24px, calc((100% - var(--content)) / 2));
  border-bottom: 1px solid rgba(255, 255, 255, 0.085);
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(18px) saturate(130%);
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  border-radius: 6px;
}

.brand-logo {
  display: block;
  width: auto;
  height: 40px;
  max-width: 170px;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(10px, 1.7vw, 25px);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.015em;
}

.nav a:not(.donate-btn) {
  position: relative;
  padding-block: 12px;
  transition: color 180ms ease;
}

.nav a:not(.donate-btn)::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text);
}

.nav a:hover::after,
.nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav .donate-btn {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 7px 15px;
  border: 1px solid rgba(245, 184, 36, 0.62);
  border-radius: 999px;
  color: var(--gold-light);
  font-weight: 700;
  white-space: nowrap;
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

.nav .donate-btn:hover {
  border-color: var(--gold);
  background: rgba(245, 184, 36, 0.11);
  color: var(--gold-pale);
}

h1,
h2,
h3,
p,
li {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 650;
  text-wrap: balance;
}

h1 {
  max-width: 940px;
  margin: 0;
  font-size: clamp(2.75rem, 6vw, 5.25rem);
  line-height: 0.99;
  letter-spacing: -0.047em;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4.2vw, 3.75rem);
  line-height: 1.06;
  letter-spacing: -0.038em;
}

h3 {
  margin: 20px 0 12px;
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  line-height: 1.2;
  letter-spacing: -0.018em;
}

p {
  text-wrap: pretty;
}

.eyebrow,
.kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin: 0 0 20px;
  color: var(--gold-light);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.17em;
  line-height: 1.45;
  text-transform: uppercase;
}

.eyebrow::before,
.kicker::before {
  content: "";
  width: 24px;
  height: 1px;
  flex: 0 0 auto;
  background: var(--gold);
}

.lead {
  max-width: 760px;
  margin: 28px 0 0;
  color: var(--text-soft);
  font-size: clamp(1.08rem, 1.8vw, 1.32rem);
  line-height: 1.72;
}

.hero-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin-top: 38px;
}

.card-actions {
  margin-top: auto;
  padding-top: 8px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.25;
  text-align: center;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

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

.button.primary,
.button.donate {
  border-color: #f1bf48;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #151006;
}

.button.primary:hover,
.button.donate:hover {
  border-color: var(--gold-light);
  background: linear-gradient(135deg, #ffe9a5, #f7c246);
}

.button.secondary {
  border-color: rgba(245, 184, 36, 0.31);
  background: rgba(245, 184, 36, 0.045);
  color: var(--gold-pale);
}

.button.secondary:hover {
  border-color: rgba(245, 184, 36, 0.62);
  background: rgba(245, 184, 36, 0.085);
}

.button.ghost {
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
}

.button.ghost:hover {
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--text);
}

.badge {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  margin-left: 5px;
  padding: 3px 9px;
  border: 1px solid rgba(117, 216, 232, 0.35);
  border-radius: 999px;
  color: var(--cyan);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.075em;
  line-height: 1.2;
  text-transform: none;
}

.badge-dev {
  border-color: rgba(245, 184, 36, 0.42);
  background: rgba(245, 184, 36, 0.055);
  color: var(--gold-light);
}

.badge-os {
  background: rgba(117, 216, 232, 0.045);
}

.badge-closed {
  border-color: rgba(255, 255, 255, 0.17);
  background: rgba(255, 255, 255, 0.025);
  color: #b6b3ac;
}

.section {
  position: relative;
  padding: clamp(76px, 9vw, 116px) 0;
  border-top: 1px solid var(--line-soft);
}

.section::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: min(120px, 22%);
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  opacity: 0.5;
}

.section-head {
  max-width: 850px;
  margin-bottom: clamp(36px, 5vw, 58px);
}

.section-sub {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.split {
  display: grid;
  grid-template-columns: minmax(250px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(42px, 7vw, 92px);
  align-items: start;
}

.text-block,
.statement,
.contact,
.product-copy,
.legal-card {
  color: var(--muted);
  font-size: clamp(1rem, 1.45vw, 1.125rem);
  line-height: 1.78;
}

.text-block > :first-child,
.statement > :first-child,
.product-copy > :first-child,
.legal-card > :first-child {
  margin-top: 0;
}

.text-block p,
.statement p {
  margin: 0;
}

.text-block p + p,
.statement p + p {
  margin-top: 20px;
}

.text-block a:not(.button),
.statement a:not(.button),
.product-copy a:not(.button),
.legal-card a {
  color: var(--gold-light);
  text-decoration: underline;
  text-decoration-color: rgba(245, 184, 36, 0.35);
  text-underline-offset: 4px;
  transition: color 180ms ease, text-decoration-color 180ms ease;
}

.text-block a:not(.button):hover,
.statement a:not(.button):hover,
.product-copy a:not(.button):hover,
.legal-card a:hover {
  color: var(--gold-pale);
  text-decoration-color: var(--gold);
}

.page-hero {
  position: relative;
  max-width: 1000px;
  padding: clamp(90px, 11vw, 146px) 0 clamp(70px, 8vw, 104px);
}

.page-hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: min(390px, 55vw);
  height: 1px;
  background: linear-gradient(90deg, var(--gold), rgba(245, 184, 36, 0.08), transparent);
}

.page-hero h1 {
  font-size: clamp(2.8rem, 6.4vw, 5.4rem);
}

.page-product .page-hero {
  padding-left: clamp(0px, 4vw, 54px);
}

.page-product .page-hero::before {
  content: "";
  position: absolute;
  top: clamp(98px, 12vw, 156px);
  bottom: clamp(78px, 8vw, 112px);
  left: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--gold), rgba(245, 184, 36, 0.08));
}

.page-about .page-hero {
  isolation: isolate;
}

.page-about .page-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 30px;
  right: -260px;
  width: 820px;
  height: 430px;
  background: url("assets/welcome-hero.webp") center / cover no-repeat;
  filter: saturate(0.38);
  opacity: 0.13;
  mask-image: linear-gradient(90deg, transparent, #000 28%, #000 70%, transparent);
}

/* Startseite: schwarzer Bannerbereich ohne sichtbare Bildkante */
.page-home {
  background:
    linear-gradient(180deg, #000 0, #000 24%, #050505 46%, #080806 76%, #120e05 100%);
}

.page-home main {
  width: 100%;
  max-width: none;
}

.page-home main > .section {
  width: min(var(--content), calc(100% - 48px));
  margin-inline: auto;
}

.page-home main > .hero-banner-only {
  width: 100%;
  max-width: none;
}

.hero-banner-only {
  display: block;
  min-height: 0;
  padding: 0 0 clamp(92px, 10vw, 132px);
  border: 0;
  background: #000;
}

.hero-banner-only::before {
  display: none;
}

.banner-frame {
  width: min(1600px, 100%);
  margin: 0 auto;
  overflow: hidden;
  border: 0;
  background: #000;
}

.full-banner {
  display: block;
  width: 100%;
  height: auto;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%);
}

.hero-copy.centered {
  width: min(900px, calc(100% - 48px));
  margin: clamp(24px, 4vw, 58px) auto 0;
  text-align: center;
}

.hero-copy.centered .eyebrow {
  justify-content: center;
}

.hero-copy.centered h1,
.hero-copy.centered .lead {
  margin-inline: auto;
}

.hero-copy.centered .hero-actions {
  justify-content: center;
}

.name-card {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  overflow: hidden;
  padding: clamp(30px, 5vw, 60px);
  border: 1px solid var(--line-gold);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(245, 184, 36, 0.075), transparent 44%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.024));
  box-shadow: var(--shadow-sm);
}

.name-card::after {
  content: "NOEMA";
  position: absolute;
  right: -16px;
  bottom: -39px;
  color: rgba(245, 184, 36, 0.035);
  font-family: var(--font-display);
  font-size: clamp(5rem, 14vw, 10rem);
  font-weight: 800;
  letter-spacing: -0.07em;
  line-height: 1;
  pointer-events: none;
}

.name-card > * {
  position: relative;
  z-index: 1;
}

.name-card h2 {
  max-width: 760px;
  margin-bottom: 24px;
  color: var(--gold-pale);
}

.name-card p {
  max-width: 790px;
  margin: 0;
  color: var(--text-soft);
  font-size: clamp(1rem, 1.45vw, 1.125rem);
  line-height: 1.8;
}

.name-card p + p {
  margin-top: 18px;
}

.name-card em {
  color: var(--gold-light);
}

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

.product-card,
.module-card,
.timeline article,
.os-card,
.legal-card {
  border: 1px solid var(--line);
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.017) 58%),
    var(--surface);
  box-shadow: var(--shadow-sm);
}

.product-card {
  position: relative;
  display: flex;
  min-height: 300px;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
  padding: clamp(26px, 4vw, 40px);
  border-radius: var(--radius-md);
  transition: transform 200ms ease, border-color 200ms ease, background-color 200ms ease;
}

.product-card::after {
  content: "";
  position: absolute;
  right: 30px;
  bottom: 0;
  left: 30px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245, 184, 36, 0.5), transparent);
  opacity: 0;
  transition: opacity 200ms ease;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 184, 36, 0.4);
}

.product-card:hover::after {
  opacity: 1;
}

.product-card.featured {
  border-color: rgba(245, 184, 36, 0.44);
  background:
    linear-gradient(140deg, rgba(245, 184, 36, 0.11), transparent 52%),
    var(--surface);
}

.product-card .badge,
.os-body .badge {
  align-self: flex-start;
  margin-left: 0;
}

.product-card h3 {
  margin: 3px 0 0;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}

.product-card p {
  flex: 1;
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.card-cta {
  color: var(--gold-light);
  font-size: 14px;
  font-weight: 750;
}

.product-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(380px, 1.08fr);
  gap: clamp(40px, 6vw, 78px);
  align-items: center;
}

.product-panel.reverse {
  grid-template-columns: minmax(380px, 1.08fr) minmax(0, 0.92fr);
}

.product-panel.reverse .product-copy {
  order: 2;
}

.product-panel.reverse .media-slot {
  order: 1;
}

.product-copy p {
  margin: 0 0 22px;
}

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

.feature-list li {
  position: relative;
  padding-left: 25px;
  line-height: 1.62;
}

.feature-list li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 1px;
  width: 7px;
  height: 7px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}

.note {
  padding-left: 16px;
  border-left: 1px solid rgba(245, 184, 36, 0.36);
  color: var(--quiet);
  font-size: 15px;
}

.media-slot {
  margin: 0;
}

.media-slot img,
.screenshot-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.media-slot img {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #050505;
  box-shadow: var(--shadow-lg);
}

.media-slot figcaption {
  max-width: 90%;
  margin: 14px 4px 0;
  color: var(--quiet);
  font-size: 13px;
  line-height: 1.55;
}

.page-mail-gateway .media-slot img,
.page-tiktok-bridge .media-slot img {
  width: min(100%, 500px);
  max-height: 720px;
  margin-inline: auto;
  object-fit: contain;
}

.screenshot-frame {
  margin: 0 0 22px;
  overflow: hidden;
  border: 1px solid rgba(245, 184, 36, 0.22);
  border-radius: var(--radius-md);
  background: #050505;
  box-shadow: var(--shadow-lg);
}

.casebrain-gallery {
  display: grid;
  gap: 20px;
}

.casebrain-gallery .screenshot-frame {
  margin: 0;
}

.casebrain-chat-frame {
  margin-inline: clamp(0px, 2vw, 28px) !important;
}

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

.module-card {
  min-height: 230px;
  padding: clamp(24px, 3.5vw, 34px);
  border-radius: var(--radius-md);
}

.module-card span,
.timeline span {
  display: block;
  margin-bottom: 18px;
  color: var(--gold-light);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.45;
  text-transform: uppercase;
}

.module-card p,
.timeline p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

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

.usecases .module-card,
.principles .module-card {
  min-height: 0;
}

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

.timeline article {
  padding: 24px;
  border-radius: var(--radius-md);
}

.flow-chain {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 28px;
}

.flow-chain span {
  position: relative;
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.3;
}

.flow-chain span:not(:last-child)::after {
  content: "→";
  margin-left: 10px;
  color: var(--gold);
}

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

.os-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.os-media {
  height: 390px;
  margin: 0;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #050505;
}

.os-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  transition: transform 500ms ease;
}

.os-card:hover .os-media img {
  transform: scale(1.018);
}

.os-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(26px, 4vw, 38px);
  color: var(--muted);
  line-height: 1.72;
}

.os-body h3 {
  margin: 18px 0 12px;
  font-size: clamp(1.6rem, 3vw, 2rem);
}

.os-body p {
  flex: 1;
  margin: 0 0 24px;
}

.teaser-dark {
  width: min(var(--content), calc(100% - 48px));
  margin-block: 34px;
  padding: clamp(44px, 7vw, 88px) clamp(26px, 7vw, 88px) !important;
  overflow: hidden;
  border: 1px solid rgba(245, 184, 36, 0.22);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 94% 10%, rgba(60, 128, 153, 0.09), transparent 36%),
    linear-gradient(135deg, rgba(245, 184, 36, 0.065), transparent 42%),
    #080908;
  box-shadow: var(--shadow-lg);
}

.teaser-dark::before {
  display: none;
}

.teaser-inner {
  max-width: 840px;
}

.teaser-text {
  max-width: 760px;
  margin: 24px 0 32px;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.78;
}

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

.video-grid video {
  display: block;
  grid-column: span 2;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #000;
  box-shadow: var(--shadow-sm);
}

.video-grid video:nth-last-child(-n + 2) {
  grid-column: span 3;
}

.contact {
  max-width: 920px;
  margin-block: clamp(36px, 6vw, 74px);
  padding: clamp(34px, 6vw, 64px) !important;
  border: 1px solid rgba(245, 184, 36, 0.22);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(245, 184, 36, 0.065), transparent 42%),
    rgba(255, 255, 255, 0.025);
}

.contact::before {
  display: none;
}

.contact h2,
.statement h2 {
  margin-bottom: 22px;
}

.contact p {
  max-width: 760px;
  margin: 0;
}

.contact .button {
  margin-top: 30px;
}

.spaced-action {
  margin-top: 22px !important;
}

.legal {
  padding-top: 24px;
}

.legal-card {
  max-width: 920px;
  padding: clamp(28px, 5vw, 58px);
  border-radius: var(--radius-lg);
}

.legal-card h2 {
  margin: 42px 0 12px;
  font-size: clamp(1.45rem, 3vw, 2rem);
  letter-spacing: -0.025em;
}

.legal-card h2:first-child {
  margin-top: 0;
}

.legal-card p {
  margin: 0;
}

.site-footer {
  display: flex;
  min-height: 112px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: clamp(30px, 6vw, 80px);
  border-top: 1px solid var(--line);
  color: var(--quiet);
  font-size: 13px;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 20px;
}

.footer-links a {
  color: var(--muted);
  transition: color 180ms ease;
}

.footer-links a:hover {
  color: var(--gold-light);
}

@media (max-width: 1080px) {
  .site-header {
    flex-wrap: wrap;
    gap: 6px 24px;
    padding-block: 12px;
  }

  .brand-logo {
    height: 36px;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
    order: 2;
  }

  .product-panel,
  .product-panel.reverse {
    grid-template-columns: minmax(0, 0.9fr) minmax(330px, 1.1fr);
  }

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

@media (max-width: 820px) {
  html {
    scroll-padding-top: 24px;
  }

  .site-header {
    position: relative;
  }

  .split,
  .product-panel,
  .product-panel.reverse,
  .os-grid {
    grid-template-columns: 1fr;
  }

  .product-panel.reverse .product-copy,
  .product-panel.reverse .media-slot {
    order: initial;
  }

  .product-panel.reverse .media-slot {
    order: 2;
  }

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

  .product-card {
    min-height: 0;
  }

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

  .video-grid video,
  .video-grid video:nth-last-child(-n + 2) {
    grid-column: auto;
  }

  .video-grid video:last-child {
    grid-column: 1 / -1;
    width: calc(50% - 8px);
    justify-self: center;
  }

  .page-product .page-hero {
    padding-left: 24px;
  }

  .os-media {
    height: min(520px, 74vw);
  }
}

@media (max-width: 620px) {
  main,
  .site-footer,
  .page-home main > .section,
  .teaser-dark {
    width: min(100% - 32px, var(--content));
  }

  .site-header {
    display: block;
    padding: 14px 16px 16px;
  }

  .brand {
    display: flex;
    width: fit-content;
    margin: 0 auto 13px;
  }

  .brand-logo {
    height: 34px;
  }

  .nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px 8px;
    font-size: 12px;
  }

  .nav a:not(.donate-btn) {
    display: flex;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    padding: 6px 4px;
    border-radius: 7px;
    text-align: center;
  }

  .nav a:not(.donate-btn)::after {
    right: 20%;
    bottom: 3px;
    left: 20%;
  }

  .nav .donate-btn {
    grid-column: 1 / -1;
    min-height: 38px;
    margin-top: 3px;
  }

  h1 {
    font-size: clamp(2.35rem, 13vw, 3.3rem);
    line-height: 1.03;
  }

  h2 {
    font-size: clamp(1.85rem, 9.5vw, 2.55rem);
  }

  .page-hero,
  .page-product .page-hero {
    padding: 70px 0 68px;
  }

  .page-product .page-hero::before {
    display: none;
  }

  .page-hero h1 {
    font-size: clamp(2.35rem, 13vw, 3.3rem);
  }

  .section {
    padding-block: 74px;
  }

  .hero-banner-only {
    width: 100% !important;
    padding-bottom: 82px;
  }

  .banner-frame {
    height: clamp(220px, 72vw, 340px);
  }

  .full-banner {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .hero-copy.centered {
    width: calc(100% - 32px);
    margin-top: 30px;
  }

  .hero-copy.centered .eyebrow {
    justify-content: center;
  }

  .eyebrow,
  .kicker {
    margin-bottom: 16px;
    font-size: 10px;
  }

  .lead {
    margin-top: 22px;
    font-size: 1.04rem;
    line-height: 1.68;
  }

  .hero-actions {
    margin-top: 30px;
  }

  .hero-actions .button {
    flex: 1 1 100%;
  }

  .name-card {
    padding: 28px 23px 34px;
    border-radius: var(--radius-md);
  }

  .name-card::after {
    display: none;
  }

  .product-card,
  .module-card,
  .os-body,
  .legal-card {
    padding: 24px;
  }

  .module-grid,
  .usecases,
  .video-grid {
    grid-template-columns: 1fr;
  }

  .video-grid video:last-child {
    grid-column: auto;
    width: 100%;
  }

  .os-media {
    height: 116vw;
    max-height: 560px;
  }

  .flow-chain {
    display: grid;
  }

  .flow-chain span {
    width: 100%;
    justify-content: space-between;
  }

  .teaser-dark {
    margin-block: 20px;
    border-radius: var(--radius-md);
  }

  .contact {
    margin-block: 30px;
    padding: 30px 24px !important;
    border-radius: var(--radius-md);
  }

  .contact .button {
    width: 100%;
  }

  .site-footer {
    min-height: 0;
    align-items: flex-start;
    flex-direction: column;
    padding-block: 28px 34px;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}

@media (max-width: 370px) {
  .nav {
    font-size: 11px;
  }

  .button {
    width: 100%;
  }

  .badge {
    margin-left: 0;
  }

  .name-card,
  .product-card,
  .module-card,
  .os-body,
  .legal-card {
    padding-inline: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
