:root {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --surface-soft: #fbfbfd;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --border: rgba(29, 29, 31, 0.08);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.08);
  --shadow-soft: 0 16px 40px rgba(0, 0, 0, 0.06);
  --radius: 32px;
  --content-width: 1200px;
  --dark: #000000;
  --dark-border: rgba(255, 255, 255, 0.12);
  --accent: #f07f2f;
  --accent-strong: #ff8f45;
  --accent-deep: #b95010;
}


* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }
main { min-height: 100vh; }
h1, h2, h3, p { margin: 0; }

.hero {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 32px 24px;
}
.hero-inner {
  width: min(100%, var(--content-width));
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}
.eyebrow,
.project-name,
.app-card-name,
.apps-kicker,
.case-study-kicker,
.pipeline-name,
.contact-card-kicker {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
h1 {
  max-width: 12ch;
  font-size: clamp(3.5rem, 10vw, 7.5rem);
  line-height: 0.95;
  letter-spacing: -0.055em;
  font-weight: 600;
}

.scroll-link,
.button,
.store-coming-soon,
.contact-linkedin {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease, border-color 180ms ease, opacity 180ms ease;
}
.scroll-link {
  min-width: 112px;
  color: var(--muted);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
}
.scroll-link:hover,
.scroll-link:focus-visible,
.button:hover,
.button:focus-visible,
.app-store-link:hover,
.app-store-link:focus-visible,
.contact-linkedin:hover,
.contact-linkedin:focus-visible {
  transform: translateY(-1px);
  outline: none;
}
.scroll-link:hover,
.scroll-link:focus-visible {
  background: #ffffff;
  color: var(--text);
  border-color: rgba(29, 29, 31, 0.14);
}

.project,
.apps-section,
.case-study-section,
.web-product-section,
.pipeline-section,
.contact-section {
  padding: 0 24px 120px;
}
.project-dark,
.project-showcase,
.site-footer {
  background: #000000;
  color: #ffffff;
}
.project-shell,
.apps-shell,
.case-study-shell,
.contact-shell {
  width: min(100%, var(--content-width));
  margin: 0 auto;
}
.project-shell {
  padding: clamp(64px, 7vw, 110px) clamp(20px, 4vw, 56px) clamp(40px, 4vw, 64px);
}
.project-shell-wide { width: min(100%, 1440px); }
.project-copy,
.apps-header,
.contact-intro,
.case-study-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.project-name {
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(2.4rem, 4vw, 4.4rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.055em;
}
.project-copy h2,
.case-study-copy h2 {
  margin-top: 8px;
  max-width: 11ch;
  font-size: clamp(3rem, 7vw, 5.7rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
  font-weight: 600;
}
.project-copy h2 { color: #ffffff; }
.case-study-copy h2 { color: var(--text); }
.project-meta,
.contact-meta,
.case-study-meta,
.pipeline-meta {
  margin-top: 18px;
  max-width: 52ch;
  font-size: clamp(1rem, 2vw, 1.22rem);
  line-height: 1.5;
}
.project-meta { color: rgba(255, 255, 255, 0.7); }
.contact-meta,
.case-study-meta,
.pipeline-meta { color: var(--muted); }
.project-actions,
.app-card-actions,
.case-study-actions,
.pipeline-actions {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.project-pdfs,
.app-card-pdfs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.button {
  padding: 0 22px;
  font-size: 0.98rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
}
.button-primary,
.button-secondary,
.button-dark,
.button-dark-secondary,
.button-steam {
  background: #ffffff;
  color: #000000;
  border-color: #000000;
}
.button-primary:hover,
.button-primary:focus-visible,
.button-secondary:hover,
.button-secondary:focus-visible,
.button-dark:hover,
.button-dark:focus-visible,
.button-dark-secondary:hover,
.button-dark-secondary:focus-visible,
.button-steam:hover,
.button-steam:focus-visible {
  background: #ffffff;
  color: #000000;
  border-color: #000000;
}
.button-light,
.button-light-secondary {
  background: #000000;
  color: #ffffff;
  border-color: #ffffff;
}
.button-light:hover,
.button-light:focus-visible,
.button-light-secondary:hover,
.button-light-secondary:focus-visible {
  background: #1d1d1f;
  color: #ffffff;
  border-color: #ffffff;
}
.button-dark-solid { background: #1d1d1f; color: #ffffff; border-color: #ffffff; }
.button-dark-solid:hover,
.button-dark-solid:focus-visible { background: #2c2c2e; border-color: #ffffff; }

.app-store-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
}
.app-store-link img { height: 54px; width: auto; }
.app-store-link-small img { height: 50px; }
.store-coming-soon {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 50px;
  min-height: 50px;
  padding: 0;
  background: #1d1d1f;
  color: #ffffff;
  border: 0.5px solid #ffffff;
  border-radius: 10px;
  line-height: 1.05;
  text-align: center;
}

.store-coming-soon-label {
  font-size: 0.7rem;
  font-weight: 500;
}

.store-coming-soon-date {
  font-size: 1rem;
  font-weight: 700;
}

.store-coming-soon-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.store-coming-soon-date {
  font-size: 1rem;
  font-weight: 700;
}

.project-media {
  margin-top: clamp(42px, 5vw, 60px);
  background: #000000;
  overflow: hidden;
  border-radius: 34px;
}
.project-media-black { box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55); }
.showcase-media { border: 1px solid rgba(255,255,255,0.08); box-shadow: 0 60px 140px rgba(0,0,0,0.7); }
.project-video { width: 100%; background: #000000; border: 0; outline: none; }
.project-video-showcase { aspect-ratio: 16 / 9; object-fit: cover; }
.showcase-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }

.apps-shell { padding-top: 18px; }
.apps-header { margin-bottom: 28px; }
.apps-kicker { color: var(--muted); }
.apps-title {
  margin-top: 8px;
  font-size: clamp(2.7rem, 6vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  font-weight: 600;
  color: var(--text);
}
.apps-grid,
.pipeline-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.app-card,
.pipeline-card {
  min-height: 720px;
  overflow: hidden;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px 32px 40px;
  text-align: center;
  box-shadow: var(--shadow);
}
.app-card-worldframe {
  background: linear-gradient(180deg, #d7eefc 0%, #eef9ff 54%, #f8fdff 100%);
  color: #1d1d1f;
}
.app-card-flipstats {
  background: radial-gradient(circle at top, rgba(255, 182, 77, 0.24), transparent 34%), linear-gradient(180deg, #251a65 0%, #381e90 48%, #cc4f2d 100%);
  color: #ffffff;
}
.app-card-pixconvert {
  background: radial-gradient(circle at top, rgba(255, 212, 99, 0.22), transparent 34%), linear-gradient(180deg, #335ef7 0%, #7f31e0 42%, #f24e43 100%);
  color: #ffffff;
}
.app-card-pixconvert-mac {
  background: radial-gradient(circle at top, rgba(255, 214, 102, 0.16), transparent 34%), linear-gradient(180deg, #2447dd 0%, #5d2ecd 38%, #e24866 100%);
  color: #ffffff;
}
.app-card-name,
.pipeline-name {
  font-size: clamp(2.25rem, 4vw, 4rem);
  line-height: 0.95;
  letter-spacing: -0.055em;
  font-weight: 600;
}
.app-card-worldframe .app-card-name,
.pipeline-card-light .pipeline-name { color: rgba(29, 29, 31, 0.72); }
.app-card:not(.app-card-worldframe) .app-card-name,
.pipeline-card-dark .pipeline-name { color: rgba(255, 255, 255, 0.78); }
.app-card h3,
.pipeline-card h3 {
  margin-top: 8px;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
  font-weight: 600;
}
.app-card-worldframe h3,
.pipeline-card-light h3 { color: #1d1d1f; }
.app-card-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.app-card-actions { margin-top: 22px; }
.app-card-actions > .app-store-link { margin-top: 12px; }
.app-card-media {
  margin-top: 38px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 260px;
}
.app-card-media img {
  width: 248px;
  max-width: 100%;
  height: 248px;
  object-fit: cover;
  object-position: center;
  border-radius: 22.5%;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.25);
}

.case-study-section {
  background: var(--surface-soft);
  color: var(--text);
}
.case-study-shell {
  background: var(--surface);
  border-radius: 40px;
  box-shadow: var(--shadow);
  padding: clamp(40px, 5vw, 64px);
}
.case-study-kicker { color: var(--muted); }
.case-study-meta { text-align: center; }
.case-study-stats {
  margin: 34px auto 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: 880px;
}
.case-study-stats-compact {
  max-width: 840px;
}
.stat-card {
  background: #f5f5f7;
  border: 1px solid var(--border);
  border-radius: 24px;
  min-height: 148px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 24px;
}
.stat-card strong {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.04em;
}
.stat-card span {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.98rem;
}
.case-study-actions { flex-direction: row; flex-wrap: wrap; }
.case-study-actions .button { min-width: 180px; }
.contact-linkedin {
  color: #ffffff;
  border: 1px solid #ffffff;
  background: #000000;
}
.contact-linkedin:hover,
.contact-linkedin:focus-visible { background: #1d1d1f; }



.web-product-section {
  background: var(--bg);
  color: var(--text);
}

.web-product-shell {
  width: min(100%, var(--content-width));
  margin: 0 auto;
}

.web-product-card {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 28px;
  align-items: center;
  background: var(--surface);
  border-radius: 40px;
  box-shadow: var(--shadow);
  padding: clamp(28px, 4vw, 48px);
  overflow: hidden;
}

.web-product-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.web-product-kicker {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.web-product-copy h2 {
  margin-top: 10px;
  max-width: 12ch;
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  line-height: 0.96;
  letter-spacing: -0.055em;
  font-weight: 600;
  color: var(--text);
}

.web-product-meta {
  margin-top: 18px;
  max-width: 58ch;
  font-size: clamp(1rem, 2vw, 1.14rem);
  line-height: 1.6;
  color: var(--muted);
}


.web-product-actions {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.web-product-media {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 260px;
  padding: 10px;
}

.web-product-media img {
  width: min(100%, 620px);
  height: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 24px 50px rgba(0, 0, 0, 0.08));
}

.onsitemate-section {
  padding-bottom: 120px;
}

.onsitemate-card {
  position: relative;
  min-height: clamp(540px, 60vw, 660px);
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(30px, 4vw, 54px);
  align-items: center;
  padding: clamp(40px, 5vw, 68px);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(236, 240, 245, 0.92) 0%, rgba(255, 255, 255, 0.97) 34%, rgba(235, 245, 248, 0.96) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 252, 0.98));
}

.onsitemate-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(110deg, rgba(0, 42, 78, 0.05) 0%, rgba(0, 42, 78, 0) 24%),
    linear-gradient(270deg, rgba(0, 187, 204, 0.08) 0%, rgba(0, 187, 204, 0) 26%);
}

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

.onsitemate-card .web-product-copy {
  justify-content: center;
}

.onsitemate-card .web-product-kicker {
  font-size: 1rem;
  color: rgba(29, 29, 31, 0.58);
}

.onsitemate-card .web-product-copy h2 {
  max-width: 7.9ch;
  font-size: clamp(3.5rem, 7vw, 5.9rem);
  line-height: 0.92;
  color: #121217;
}

.onsitemate-card .web-product-meta {
  margin-top: 22px;
  max-width: 24ch;
  font-size: clamp(1.08rem, 1.9vw, 1.38rem);
  line-height: 1.62;
  color: rgba(29, 29, 31, 0.56);
}

.onsitemate-card .web-product-actions {
  margin-top: 34px;
}

.onsitemate-media {
  position: relative;
  min-height: 100%;
  padding: clamp(8px, 1vw, 14px);
  justify-content: center;
  align-items: center;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.onsitemate-media::before {
  content: "";
  position: absolute;
  inset: 16% 2% 16% 12%;
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.50), rgba(223, 241, 245, 0.55)),
    rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.50);
  pointer-events: none;
}

.onsitemate-media img {
  position: relative;
  z-index: 1;
  width: min(100%, 680px);
  filter: drop-shadow(0 24px 46px rgba(0, 34, 58, 0.12));
}

.pipeline-card {
  min-height: 520px;
  align-items: center;
}
.pipeline-card-dark {
  background: linear-gradient(180deg, #0b0b0d 0%, #1a1a1f 100%);
  color: #ffffff;
}
.pipeline-card-light {
  background: linear-gradient(180deg, #ffffff 0%, #f3f4f7 100%);
  color: var(--text);
}
.pipeline-topline {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
}
.pipeline-pill {
  min-height: 34px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
}
.pipeline-card-dark .pipeline-pill { background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.88); }
.pipeline-card-light .pipeline-pill { background: rgba(29,29,31,0.08); color: rgba(29,29,31,0.72); }
.pipeline-meta { max-width: 34ch; text-align: center; }

.contact-section { background: var(--bg); }
.contact-shell { width: min(100%, var(--content-width)); margin: 0 auto; }
.contact-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 18px;
}
.contact-form,
.contact-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
}
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field span {
  font-size: 0.95rem;
  font-weight: 600;
}
.field em { font-style: normal; color: #ff3b30; }
.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px 16px;
  background: #ffffff;
  color: var(--text);
}
.field textarea { resize: vertical; min-height: 160px; }
.field input:focus,
.field textarea:focus {
  outline: 2px solid rgba(0, 113, 227, 0.24);
  outline-offset: 0;
  border-color: rgba(0, 113, 227, 0.3);
}
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.contact-status {
  min-height: 1.5em;
  color: var(--muted);
  font-size: 0.95rem;
}
.contact-status.is-success { color: #14803c; }
.contact-status.is-error { color: #c53b30; }
.contact-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}
.contact-card-kicker { color: var(--muted); }
.contact-card h3 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  line-height: 1;
  letter-spacing: -0.04em;
}
.contact-card p { color: var(--muted); line-height: 1.6; }
.contact-inline-link { color: var(--text); font-weight: 600; text-decoration: none; }
.contact-inline-link:hover,
.contact-inline-link:focus-visible { text-decoration: underline; }
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-footer { padding: 0 24px 40px; }
.footer-inner {
  width: min(100%, var(--content-width));
  margin: 0 auto;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  color: rgba(255,255,255,0.72);
  font-size: 0.95rem;
}
.footer-block { display: flex; flex-direction: column; gap: 10px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { transition: color 180ms ease; }
.footer-links a:hover,
.footer-links a:focus-visible { color: #ffffff; outline: none; }

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms ease, transform 700ms ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
  .apps-grid,
  .pipeline-grid,
  .case-study-stats,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

  .onsitemate-card {
    min-height: auto;
  }

  .web-product-copy {
    align-items: center;
    text-align: center;
  }

  .onsitemate-media {
    min-height: 240px;
  }

  .onsitemate-media::before {
    inset: 8% 2% 8% 2%;
  }

  .web-product-copy h2,
  .web-product-meta {
    max-width: none;
  }

  .web-product-actions {
    justify-content: center;
  }

  .field-grid { grid-template-columns: 1fr; }
  .app-card,
  .pipeline-card { min-height: 620px; }

  .onsitemate-card {
    min-height: auto;
  }

  .onsitemate-media {
    min-height: 280px;
  }
}

@media (max-width: 720px) {
  .hero,
  .project,
  .apps-section,
  .case-study-section,
  .web-product-section,
  .pipeline-section,
  .contact-section,
  .site-footer { padding-left: 16px; padding-right: 16px; }

  .project-shell { padding-left: 0; padding-right: 0; }

  .project-actions,
  .project-pdfs,
  .app-card-pdfs,
  .case-study-actions,
  .contact-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .button,
  .app-store-link,
  .store-coming-soon,
  .contact-linkedin { width: 100%; }

  .apps-title { max-width: 8ch; }
  .app-card,
  .pipeline-card,
  .contact-form,
  .contact-card { padding-left: 22px; padding-right: 22px; }

  .web-product-card {
    padding-left: 22px;
    padding-right: 22px;
  }

  .web-product-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }


  .app-card-media img {
    width: 220px;
    height: 220px;
  }

  .footer-inner { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-link,
  .button,
  .app-store-link,
  .reveal { transition: none; }
}

.project-dark .project-pdfs .button,
.project-showcase .project-pdfs .button {
  background: #ffffff;
  color: #000000;
  border-color: #000000;
}
.project-dark .project-pdfs .button:hover,
.project-dark .project-pdfs .button:focus-visible,
.project-showcase .project-pdfs .button:hover,
.project-showcase .project-pdfs .button:focus-visible {
  background: #ffffff;
  color: #000000;
  border-color: #000000;
}

/* Keep the downloads hero back button dark and transparent. */
body.downloads-page .downloads-actions .button-secondary {
  color: #ffffff;
  background: rgba(0, 0, 0, 0.28);
  border-color: rgba(255, 255, 255, 0.9);
}
body.downloads-page .downloads-actions .button-secondary:hover,
body.downloads-page .downloads-actions .button-secondary:focus-visible {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border-color: #ffffff;
}

.legal-page {
  min-height: 100svh;
  padding: 40px 24px 80px;
}

.legal-shell {
  width: min(100%, 920px);
  margin: 0 auto;
}

.legal-title {
  max-width: none;
  margin-top: 10px;
  font-size: clamp(2.8rem, 7vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  font-weight: 600;
}

.legal-card,
.legal-copy {
  margin-top: 32px;
  padding: clamp(24px, 3vw, 36px);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.legal-card h2,
.legal-copy h2 {
  margin-top: 28px;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

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

.legal-card p,
.legal-copy p,
.legal-copy li {
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.legal-copy ul {
  margin: 14px 0 0 22px;
  padding: 0;
}

.legal-copy a,
.legal-card a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.legal-back {
  margin-top: 28px;
}

.privacy-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fbfbfd;
}

.privacy-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.privacy-check input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #1d1d1f;
}

.privacy-check a,
.privacy-details a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.privacy-details {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.privacy-details summary {
  cursor: pointer;
  color: var(--text);
  font-weight: 600;
}

.privacy-details p {
  margin-top: 10px;
}

/* ============================================================
   PREMIUM LAYER — gold accents, motion & ambient effects
   (light theme; appended so it overrides base rules)
   ============================================================ */
:root {
  --accent: #c9a227;
  --accent-strong: #e3bd57;
  --accent-deep: #9a7b1f;
  --gold: #c9a227;
  --gold-soft: #e9c878;
  --gold-bright: #f4d98b;
  --gold-deep: #9a7b1f;
  --gold-grad: linear-gradient(135deg, #e9c878 0%, #c9a227 46%, #9a7b1f 100%);
}

.gold-text {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* keep ambient layers behind content */
main, .marquee, .site-footer { position: relative; z-index: 1; }

/* scroll progress */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: var(--gold-grad);
  box-shadow: 0 0 14px rgba(201, 162, 39, 0.5);
  z-index: 220; pointer-events: none;
}

/* reactive gold particle field */
.motes {
  position: fixed; inset: 0; width: 100vw; height: 100vh;
  z-index: -1; pointer-events: none; opacity: 0.6;
}

/* cursor-follow spotlight (hero) */
.spotlight {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  opacity: 0; transition: opacity 0.4s ease;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), rgba(201, 162, 39, 0.16), transparent 62%);
}

/* custom cursor + magnetic */
.cursor-ring, .cursor-dot {
  position: fixed; top: 0; left: 0; border-radius: 50%;
  pointer-events: none; z-index: 300; opacity: 0;
}
.cursor-ring {
  width: 34px; height: 34px;
  border: 1.5px solid rgba(201, 162, 39, 0.85);
  transition: width 0.2s ease, height 0.2s ease, background-color 0.2s ease;
}
.cursor-ring.is-hover { width: 56px; height: 56px; background: rgba(201, 162, 39, 0.12); }
.cursor-dot { width: 6px; height: 6px; background: var(--gold); }
body.has-cursor, body.has-cursor a, body.has-cursor button,
body.has-cursor [data-magnetic], body.has-cursor .dots button { cursor: none; }
[data-magnetic] { transition: transform 0.25s cubic-bezier(0.23, 1, 0.32, 1); }

/* section nav dots */
.dots {
  position: fixed; right: 22px; top: 50%; transform: translateY(-50%);
  z-index: 150; display: flex; flex-direction: column; gap: 14px;
}
.dots button {
  width: 10px; height: 10px; padding: 0; border-radius: 50%;
  border: 1.5px solid rgba(29, 29, 31, 0.32); background: transparent;
  cursor: pointer; transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}
.dots button:hover { border-color: var(--gold); }
.dots button.is-active { background: var(--gold); border-color: var(--gold); transform: scale(1.3); }

/* cinematic intro */
.intro {
  position: fixed; inset: 0; z-index: 400; background: var(--bg);
  display: grid; place-items: center;
  transition: transform 0.9s cubic-bezier(0.76, 0, 0.24, 1), opacity 0.55s ease 0.45s;
}
.intro.is-done { transform: translateY(-100%); opacity: 0; pointer-events: none; }
.intro-word {
  font-size: clamp(2rem, 7vw, 4rem); font-weight: 600; letter-spacing: -0.05em;
  opacity: 0; animation: introIn 0.85s ease forwards 0.15s;
}
@keyframes introIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* hero enhancements */
.hero { position: relative; overflow: hidden; }
.hero-stage { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-orbit {
  position: absolute; opacity: 0.16; will-change: transform;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.14));
}
.hero-orbit img { width: 100%; height: auto; border-radius: 26%; }
.hero-orbit--a { width: 210px; top: 13%; left: 7%; }
.hero-orbit--b { width: 150px; bottom: 15%; left: 15%; }
.hero-orbit--c { width: 185px; top: 18%; right: 8%; }
.hero-inner { position: relative; z-index: 1; }
.eyebrow-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold); margin-right: 7px; vertical-align: middle;
}
.hero-sub {
  max-width: 48ch; color: var(--muted);
  font-size: clamp(1.05rem, 2.2vw, 1.3rem); line-height: 1.5;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.hero-cta .button, .hero-cta .scroll-link { margin-top: 0; }
.hero-stats {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: clamp(16px, 4vw, 40px); margin-top: 28px;
}
.hstat { display: flex; flex-direction: column; align-items: center; }
.hstat-num {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 600; letter-spacing: -0.04em;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hstat-label { margin-top: 2px; font-size: 0.8rem; color: var(--muted); }
.hstat-sep { width: 1px; height: 30px; background: var(--border); }
.hero-scroll { display: inline-block; margin-top: 30px; opacity: 0.5; }
.mouse {
  display: block; width: 24px; height: 38px; position: relative;
  border: 2px solid var(--muted); border-radius: 14px;
}
.mouse i {
  position: absolute; top: 7px; left: 50%; width: 3px; height: 7px;
  background: var(--muted); border-radius: 2px; transform: translateX(-50%);
  animation: mouseWheel 1.6s ease infinite;
}
@keyframes mouseWheel {
  0% { opacity: 0; transform: translate(-50%, 0); }
  30% { opacity: 1; }
  60% { opacity: 1; transform: translate(-50%, 8px); }
  100% { opacity: 0; transform: translate(-50%, 8px); }
}

/* brand marquee */
.marquee {
  overflow: hidden; padding: 18px 0; margin: 0 0 48px;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: inline-flex; align-items: center; gap: 26px; white-space: nowrap;
  animation: marquee 38s linear infinite;
}
.marquee-track span {
  font-size: clamp(1.4rem, 3vw, 2.2rem); font-weight: 600; letter-spacing: -0.03em;
  color: rgba(29, 29, 31, 0.3);
}
.marquee-track .marquee-dot { color: var(--gold); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* card tilt */
.app-card, .pipeline-card { transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.3s ease; transform-style: preserve-3d; }

/* premium gold app cards + readable buttons */
.app-card-worldframe,
.app-card-flipstats,
.app-card-pixconvert,
.app-card-yatzystats {
  background:
    radial-gradient(120% 75% at 50% -8%, rgba(233, 200, 120, 0.22), transparent 60%),
    linear-gradient(180deg, #26262a 0%, #161618 100%);
  color: #ffffff;
}
.app-card .store-coming-soon {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.32);
}

/* RivalStats app-icon hero (replaces old gameplay video) */
.project-logo-tile {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 5vw, 60px);
  background: none;
  box-shadow: none;
}
.project-logo-tile::before {
  content: "";
  position: absolute;
  width: 68%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(233, 200, 120, 0.32), transparent 66%);
  filter: blur(26px);
}
.project-logo-tile img {
  position: relative;
  width: min(400px, 78%);
  height: auto;
  border-radius: 23%;
  box-shadow: 0 38px 90px rgba(0, 0, 0, 0.55);
}
.app-card-worldframe .app-card-name { color: rgba(255, 255, 255, 0.8); }
.app-card-worldframe h3 { color: #ffffff; }
.app-card .button {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.32);
}
.app-card .button:hover,
.app-card .button:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 980px) {
  .dots { display: none; }
}
@media (max-width: 720px) {
  .hero-orbit { opacity: 0.1; }
  .hero-orbit--a { width: 120px; }
  .hero-orbit--b { width: 92px; }
  .hero-orbit--c { width: 110px; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track, .mouse i { animation: none; }
  .intro { display: none; }
  .hero-orbit, .motes, .spotlight, .cursor-ring, .cursor-dot { display: none; }
  .app-card, .pipeline-card, [data-magnetic] { transition: none; }
}

/* gap so web-product sections don't touch the dark section above */
.web-product-section { padding-top: clamp(64px, 8vw, 110px); }

/* cleaner OnsiteMate logo presentation (drop the offset glass tile) */
.onsitemate-card { min-height: clamp(360px, 40vw, 470px); }
.onsitemate-media::before { display: none; }
.onsitemate-media img { width: min(100%, 600px); }
/* ============================================================
   KEYNOTE PRODUCT SCENES
   Full-screen product "moments" in normal flow — each fades & lifts
   in on scroll. No pinning, so nothing can overlap.
   ============================================================ */
.scenes { padding: clamp(20px, 5vw, 60px) clamp(18px, 4vw, 52px); }
.scene { position: relative; min-height: 86vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; }
.scene::before { content: ""; position: absolute; width: 60vmin; height: 60vmin; border-radius: 50%;
  background: radial-gradient(circle, rgba(233,200,120,0.16), transparent 66%); filter: blur(54px); z-index: -1; }
.scene__icon { width: clamp(150px, 22vw, 250px); aspect-ratio: 1 / 1; margin-bottom: 26px;
  transform: scale(0.9); transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1); }
.scene.is-visible .scene__icon { transform: scale(1); }
.scene__icon img { width: 100%; height: 100%; border-radius: 22.5%; object-fit: cover; box-shadow: 0 36px 80px rgba(0,0,0,0.28); }
.scene__badge { display: inline-flex; align-items: center; min-height: 38px; padding: 0 20px; margin-bottom: 26px;
  border-radius: 999px; font-size: 0.92rem; font-weight: 600; letter-spacing: 0.02em;
  color: var(--gold-deep); background: rgba(233, 200, 120, 0.14); border: 1px solid rgba(201, 162, 39, 0.32);
  transform: translateY(10px); opacity: 0; transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.9s ease; }
.scene.is-visible .scene__badge { transform: translateY(0); opacity: 1; }
.scene__kicker { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.scene__title { margin-top: 12px; font-size: clamp(2.6rem, 7vw, 6rem); line-height: 0.95; letter-spacing: -0.05em;
  font-weight: 600; color: var(--text); max-width: 16ch; }
.scene__sub { margin-top: 18px; max-width: 34ch; color: var(--muted); font-size: clamp(1rem, 2vw, 1.2rem); line-height: 1.5; }
.scene--final .button { margin-top: 28px; }
@media (max-width: 760px) { .scene { min-height: 76vh; } }
