/* ==========================================================================
   LERCH design — Production Site Styles
   Single-page scroll-driven website
   February 2026
   ========================================================================== */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Landscape Blocker (mobile phones only) ── */
.landscape-blocker {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #1A2332;
  color: rgba(255, 255, 255, 0.85);
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
}

.landscape-blocker__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.landscape-blocker__icon {
  opacity: 0.7;
  animation: landscapeRotate 2s ease-in-out infinite;
}

.landscape-blocker__icon .landscape-blocker__arrow {
  display: none;
}

@keyframes landscapeRotate {
  0%, 100% { transform: rotate(0deg); }
  30%, 70% { transform: rotate(-90deg); }
}

.landscape-blocker p {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0.6;
  max-width: 220px;
  line-height: 1.5;
}

/* Show ONLY on phones in landscape — max-height catches phone screens,
   min-width avoids triggering on narrow portrait tablets */
@media (max-height: 500px) and (orientation: landscape) and (max-width: 932px) {
  .landscape-blocker {
    display: flex;
  }
}

/* PWA exception — no browser chrome in standalone mode, landscape is fine */
@media (display-mode: standalone) {
  .landscape-blocker { display: none !important; }
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  font-weight: var(--weight-regular);
  line-height: 1.6;
  color: var(--color-black);
  /* Golden background — never a white flash between sections */
  background: var(--color-gold);
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }

/* ==========================================================================
   TERMINAL PRELOADER
   ========================================================================== */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #121518;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  overflow: hidden;
}

/* Scanline overlay for CRT/Matrix feel */
.preloader::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.15) 0px,
    rgba(0, 0, 0, 0.15) 1px,
    transparent 1px,
    transparent 3px
  );
  pointer-events: none;
  z-index: 1;
}

.preloader__terminal {
  max-width: 600px;
  width: 90vw;
  text-align: left;
  position: relative;
  z-index: 2;
}

.preloader__lines {
  font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-weight: 400;
  line-height: 1.8;
  color: #20C20E;
  text-shadow:
    0 0 4px rgba(32, 194, 14, 0.8),
    0 0 12px rgba(32, 194, 14, 0.4),
    0 0 30px rgba(32, 194, 14, 0.15),
    0 0 50px rgba(32, 194, 14, 0.06);
}

.preloader__lines div {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* "> " prompt prefix style */
.preloader__lines div::before {
  content: '> ';
  color: #1a8a0e;
  opacity: 0.5;
}

.preloader__cursor {
  display: inline-block;
  width: 0.6em;
  height: 1.1em;
  background: #20C20E;
  vertical-align: text-bottom;
  animation: cursorPulse 800ms ease-in-out infinite;
  box-shadow:
    0 0 6px rgba(32, 194, 14, 0.7),
    0 0 18px rgba(32, 194, 14, 0.3);
  margin-left: 2px;
  position: relative;
  top: 0.15em;
}

@keyframes cursorPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.15; }
}

.preloader__sound-hint {
  margin-top: 40px;
  font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 0.65rem;
  color: rgba(32, 194, 14, 0.2);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: hintPulse 2s ease-in-out infinite;
  z-index: 2;
  position: relative;
}

@keyframes hintPulse {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.45; }
}

.preloader--hidden {
  pointer-events: none;
}

/* ── Honeycomb Canvas ── */
.honeycomb-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
}

/* ── Sections ── */
.section {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.section__inner {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-2xl) var(--container-padding);
  text-align: center;
}

.section--light {
  background: var(--color-off-white);
}

.section--dark {
  background: var(--color-dark-deep);
  color: rgba(255, 255, 255, 0.9);
}

/* CertForge dark theme */
.section--certforge-dark {
  background: radial-gradient(ellipse 80% 60% at 50% 40%, #3a3d45 0%, var(--certforge-bg) 60%, #1f2228 100%);
  color: rgba(255, 255, 255, 0.9);
}

.section--certforge-dark .project__tagline,
.section--certforge-dark .project__description {
  color: rgba(255, 255, 255, 0.6);
}

.section--dark .project__tagline,
.section--dark .project__description {
  color: rgba(255, 255, 255, 0.6);
}

.section--dark .mockup__placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.section--dark .mockup__placeholder span {
  color: rgba(255, 255, 255, 0.25);
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  /* Golden gradient — rich, warm, matches hero gold */
  background:
    linear-gradient(180deg,
      rgba(255, 224, 130, 0.95) 0%,
      rgba(245, 197, 24, 0.92) 50%,
      rgba(232, 180, 0, 0.90) 100%
    );
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(180, 140, 0, 0.25);
  /* Subtle bottom shadow for depth + curve feel */
  box-shadow:
    0 2px 12px rgba(200, 160, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.nav--visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nav__logo {
  display: block;
  flex-shrink: 0;
}

.nav__logo img {
  height: 40px;
  width: auto;
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 101;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-black);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav__links a {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-dark);
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
  position: relative;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.15);
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-red);
  transition: width 0.3s ease;
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--color-red);
}

.nav__links a.active::after {
  width: 100%;
}

.nav__cta {
  padding: 6px 16px;
  border: 1.5px solid var(--color-red);
  border-radius: 6px;
  color: var(--color-red) !important;
  font-weight: 600 !important;
  transition: background 0.2s ease, color 0.2s ease !important;
}

.nav__cta::after { display: none !important; }

.nav__cta:hover {
  background: var(--color-red);
  color: var(--color-white) !important;
}

/* ── Language Selector ── */
.nav__lang {
  position: relative;
  flex-shrink: 0;
  margin-left: 8px;
}

.nav__lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(180, 140, 0, 0.3);
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  font-size: var(--text-xs, 12px);
  font-weight: 600;
  color: var(--color-dark);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.nav__lang-btn:hover {
  background: rgba(255, 255, 255, 0.4);
  border-color: rgba(180, 140, 0, 0.5);
}

.nav__lang-flag {
  display: block;
  border-radius: 2px;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.12);
}

.nav__lang-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  list-style: none;
  margin: 0;
  padding: 4px 0;
  min-width: 100px;
  background:
    linear-gradient(180deg,
      rgba(255, 237, 169, 0.98) 0%,
      rgba(245, 197, 24, 0.96) 100%
    );
  border: 1px solid rgba(180, 140, 0, 0.3);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  z-index: 300;
}

.nav__lang-menu.is-open {
  display: block;
}

.nav__lang-menu li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: var(--text-xs, 12px);
  font-weight: 600;
  color: var(--color-dark);
  transition: background 0.15s ease;
}

.nav__lang-menu li:hover {
  background: rgba(255, 255, 255, 0.35);
}

.nav__lang-menu li.is-active {
  background: rgba(255, 255, 255, 0.3);
  position: relative;
}

.nav__lang-menu li.is-active::after {
  content: '\2713';
  margin-left: auto;
  font-size: 13px;
  color: var(--color-red);
  font-weight: 700;
}

.nav__lang-menu li img {
  border-radius: 2px;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.12);
}

/* ==========================================================================
   HERO
   ========================================================================== */

.section--hero {
  background: radial-gradient(
    ellipse 90% 80% at 50% 45%,
    var(--color-gold-white) 0%,
    var(--color-gold-bright) 35%,
    var(--color-gold) 70%,
    #E8B400 100%
  );
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  overflow: hidden;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: var(--space-lg) var(--container-padding);
}

.hero__logo {
  width: 68vw;
  max-width: 960px;
  height: auto;
}

.block,
.hero-design-paths path {
  will-change: transform, opacity;
}

.hero-design-paths path {
  fill: #E30613;
}

.hero__scroll-hint {
  position: absolute;
  bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--color-gray-500);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero__scroll-hint svg {
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ==========================================================================
   INTRO / MISSION
   ========================================================================== */

.section--intro {
  background:
    radial-gradient(
      ellipse 90% 80% at 50% 50%,
      var(--color-gold-white) 0%,
      var(--color-gold-bright) 40%,
      var(--color-gold) 80%,
      #E8B400 100%
    );
  position: relative;
}

.section--intro::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../assets/patterns/honeycomb.svg') repeat;
  opacity: 0.12;
  pointer-events: none;
}

.intro__label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-red);
  margin-bottom: var(--space-md);
}

.intro__text {
  max-width: 820px;
  margin: 0 auto;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: var(--weight-light);
  line-height: 1.4;
  color: var(--color-black);
  letter-spacing: -0.01em;
}

.intro__text strong {
  font-weight: var(--weight-bold);
}

/* ==========================================================================
   PROJECT SECTIONS
   ========================================================================== */

.project {
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
  width: 100%;
}

.project__label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gray-500);
  margin: 0 0 var(--space-md) 0;
  text-align: center;
  width: 100%;
}

.project__label--light {
  color: rgba(255, 255, 255, 0.4);
}

.project__logo-wrap {
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.project__logo--square {
  border-radius: var(--radius-lg);
}

.project__logo--wide {
  height: auto;
}

.project__name {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: var(--weight-bold);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.tm {
  font-size: 0.5em;
  vertical-align: super;
  font-weight: var(--weight-regular);
}

/* Project accent colors */
.project__name--certforge { color: var(--certforge-amber); }
.project__name--airx { color: var(--airx-cyan); }
.project__name--sentxt { color: var(--sentxt-blue); }
.project__name--reflexed { color: var(--reflexed-text); }
.project__name--pps { color: var(--pps-blue); }

/* ── CertForge wordmark ── */
.certforge-wordmark {
  display: inline;
}

.certforge-acme {
  font-weight: var(--weight-light);
  opacity: 0.7;
  margin-right: 0.15em;
}

/* ── Enlarged product logos ── */
.project__logo--xl {
  width: 160px !important;
  height: 160px !important;
}

.project__logo--xxl {
  width: min(500px, 90vw) !important;
  height: auto !important;
}

.project__logo-wrap--hero {
  margin-bottom: var(--space-lg);
  position: relative;
}

.project__tagline--hero {
  font-size: clamp(1.75rem, 4vw, 2.75rem) !important;
  font-weight: var(--weight-bold) !important;
  color: rgba(255, 255, 255, 0.95) !important;
  margin-bottom: var(--space-md);
}

/* Light section hero tagline */
.section--light .project__tagline--hero {
  color: var(--color-black) !important;
}

/* ==========================================================================
   PRODUCT GRID — 2-column layout for all product sections (desktop default)
   ========================================================================== */

.project:has(.product-grid) {
  max-width: 100%;
  text-align: left;
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 clamp(24px, 4vw, 56px);
  align-items: center;
  position: relative;
  width: 100%;
}

/* Fancy gradient divider — fades at top and bottom */
.product-grid::after {
  content: '';
  position: absolute;
  top: 8%;
  bottom: 8%;
  left: 50%;
  width: 1px;
  transform: translateX(-50%);
  pointer-events: none;
}

.section--dark .product-grid::after,
.section--certforge-dark .product-grid::after {
  background: linear-gradient(to bottom,
    transparent 0%,
    rgba(255, 255, 255, 0.1) 20%,
    rgba(255, 255, 255, 0.1) 80%,
    transparent 100%
  );
}

.section--light .product-grid::after {
  background: linear-gradient(to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.08) 20%,
    rgba(0, 0, 0, 0.08) 80%,
    transparent 100%
  );
}

.product-col {
  display: flex;
  flex-direction: column;
}

.product-col--left {
  align-items: flex-start;
}

.product-col--center {
  align-items: center;
  text-align: center;
}

.product-col--right {
  align-items: flex-start;
}

/* Override description max-width inside grid columns */
.product-col .project__description {
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.product-col .project__logo-wrap {
  justify-content: flex-start;
}

.product-col--center .project__logo-wrap {
  justify-content: center;
}

/* ── CertForge screenshot ── */
.certforge-screenshot-wrap {
  max-width: 600px;
  margin: 0 auto;
}

.certforge-screenshot {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow:
    0 0 20px rgba(245, 158, 11, 0.25),
    0 0 60px rgba(245, 158, 11, 0.15),
    0 0 120px rgba(245, 158, 11, 0.08),
    0 8px 32px rgba(0, 0, 0, 0.4);
}

/* ── aiRx² section ── */
.section--airx {
  background: var(--airx-navy);
}

.airx-logo-square {
  width: min(280px, 60vw);
  height: auto;
  position: relative;
  z-index: 1;
  border-radius: 48px;
}

.airx-tagline-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: var(--space-md);
}

.airx-tagline-line {
  display: block;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: var(--weight-bold);
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.2;
}

.airx-spotlight {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 119, 255, 0.18) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}

/* ── aiRx² feature pills ── */
.airx-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: var(--space-md);
}

.airx-pill {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  padding: 7px 18px;
  border-radius: 20px;
  border: 1px solid rgba(0, 119, 255, 0.25);
  color: rgba(255, 255, 255, 0.85);
  background: rgba(0, 119, 255, 0.08);
}

/* ── SENTxt animated icons ── */
.sentxt-icons {
  display: flex;
  justify-content: flex-start;
  gap: var(--space-lg);
  margin: 0 auto var(--space-md);
  max-width: 400px;
}

.sentxt-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: #999;
}

.sentxt-icon svg {
  transition: color 0.6s ease;
}

.sentxt-icon.is-active {
  color: var(--sentxt-blue);
}

.sentxt-icon-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.02em;
  line-height: 1.3;
  transition: color 0.6s ease;
}

.sentxt-features {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 400px;
  text-align: left;
}

.sentxt-features li {
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  color: var(--color-gray-700);
  padding: 0 0 0 24px;
  position: relative;
}

.sentxt-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sentxt-blue);
}

/* ── reFLEX'ed section ── */
.section--reflexed {
  background: var(--reflexed-dark);
}

.project__name--reflexed {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
}

.reflexed-re,
.reflexed-ed {
  color: var(--reflexed-text);
  font-weight: 900;
  font-style: normal;
}

.reflexed-flex {
  color: var(--reflexed-blue);
  font-weight: 900;
  font-style: italic;
}

/* reFLEX'ed feature bullets */
.reflexed-features {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.reflexed-features li {
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  color: rgba(255, 255, 255, 0.8);
  padding: 0 0 0 24px;
  position: relative;
}

.reflexed-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--reflexed-blue);
}

.reflexed-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
  margin: 0 0 var(--space-sm);
}

.reflexed-pill {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  padding: 8px 20px;
  border-radius: 20px;
  border: 1px solid rgba(91, 160, 217, 0.25);
  color: var(--reflexed-text);
  background: rgba(91, 160, 217, 0.08);
}

.project__domain {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: rgba(255, 255, 255, 0.35);
  margin-top: var(--space-sm);
  letter-spacing: 0.02em;
}

/* ── PPS accent update ── */
.project__name--pps { color: var(--pps-blue); }

/* ── Mockup screenshot ── */
.mockup__screenshot {
  width: 100%;
  height: auto;
  display: block;
}

.project__tagline {
  font-size: var(--text-xl);
  font-weight: var(--weight-regular);
  color: var(--color-gray-500);
  margin-bottom: var(--space-md);
}

.project__description {
  font-size: var(--text-lg);
  font-weight: var(--weight-regular);
  color: var(--color-gray-700);
  line-height: 1.7;
  max-width: 580px;
  margin: 0 auto var(--space-lg);
}

/* ── Browser Mockup Frame ── */
.mockup {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.08),
    0 8px 20px rgba(0, 0, 0, 0.04);
}

.mockup--dark {
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.3),
    0 8px 20px rgba(0, 0, 0, 0.2);
}

.mockup__bar {
  background: #E8E8E8;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mockup__bar--dark {
  background: #2A2A2A;
}

.mockup__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.mockup__dot--close { background: #FF5F57; }
.mockup__dot--min { background: #FEBC2E; }
.mockup__dot--max { background: #28C840; }

.mockup__url {
  flex: 1;
  margin-left: 12px;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 4px;
  padding: 4px 12px;
  font-size: 0.6875rem;
  font-family: 'SF Mono', 'Fira Code', monospace;
  color: var(--color-gray-500);
}

.mockup__bar--dark .mockup__url {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.4);
}

.mockup__screen {
  background: #F5F5F5;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  padding: var(--space-md);
}

.mockup__screen--dark {
  background: #1A1A2E;
}

.mockup__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--color-gray-300);
  font-size: var(--text-sm);
  font-weight: 500;
}

/* ==========================================================================
   CONTACT MODAL
   ========================================================================== */

/* ── Modal overlay ── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.is-open {
  visibility: visible;
  opacity: 1;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 35, 50, 0.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.modal__container {
  position: relative;
  width: 90%;
  max-width: 560px;
  max-height: 90vh;
  max-height: 90dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  background:
    radial-gradient(ellipse 80% 60% at 50% 30%,
      rgba(255, 248, 220, 0.95) 0%,
      rgba(255, 224, 130, 0.9) 40%,
      rgba(245, 197, 24, 0.88) 100%
    );
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.3),
    0 4px 16px rgba(0, 0, 0, 0.1);
  transform: translateY(30px) scale(0.96);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal__container::-webkit-scrollbar {
  display: none;
}

.modal.is-open .modal__container {
  transform: translateY(0) scale(1);
}

.modal__close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--color-gray-500);
  line-height: 1;
  padding: 4px;
  transition: color 0.2s ease;
  z-index: 1;
}

.modal__close:hover {
  color: var(--color-red);
}

.modal__title {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--color-black);
  margin: 0 0 6px 0;
}

.modal__subtitle {
  font-size: var(--text-base);
  color: var(--color-gray-500);
  margin: 0 0 var(--space-md) 0;
}

/* ── Modal views ── */
.modal__view {
  display: none;
}

.modal__view.active {
  display: block;
}

/* ── Form styles ── */
.form__group {
  margin-bottom: 1.25rem;
  text-align: left;
}

.form__group label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: var(--weight-semibold);
  font-size: var(--text-sm);
  color: var(--color-black);
}

.form__group input,
.form__group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--color-gray-200);
  border-radius: 8px;
  font-size: var(--text-base);
  font-family: inherit;
  background: var(--color-white);
  color: var(--color-black);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.form__group input:focus,
.form__group textarea:focus {
  outline: none;
  border-color: var(--color-red);
  box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.08);
}

.form__group input::placeholder,
.form__group textarea:placeholder {
  color: var(--color-gray-300);
}

.form__group textarea {
  resize: vertical;
  min-height: 120px;
}

.form__group input.is-invalid,
.form__group textarea.is-invalid {
  border-color: var(--color-red);
}

.form__honeypot {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.required {
  color: var(--color-red);
}

.optional {
  font-weight: var(--weight-regular);
  color: var(--color-gray-500);
  font-size: var(--text-xs);
}

.form__error {
  color: var(--color-red);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  margin-bottom: 1rem;
  min-height: 0;
}

.form__error:empty {
  display: none;
}

/* ── reCAPTCHA ── */
.grecaptcha-badge { visibility: hidden !important; }
.form__recaptcha-notice {
  margin-top: 0.75rem;
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  opacity: 0.6;
}
.form__recaptcha-notice a {
  color: var(--text-muted);
  text-decoration: underline;
}

/* ── Buttons ── */
.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: background 0.2s ease, transform 0.1s ease, border-color 0.2s ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn--primary {
  background: var(--color-red);
  color: var(--color-white);
}

.btn--primary:hover {
  background: var(--color-red-hover);
}

.btn--primary:disabled {
  background: var(--color-gray-300);
  cursor: not-allowed;
}

.btn--secondary {
  background: transparent;
  border: 1.5px solid var(--color-gray-300);
  color: var(--color-gray-500);
}

.btn--secondary:hover {
  border-color: var(--color-gray-500);
  color: var(--color-gray-700);
}

.btn--full {
  display: block;
  width: 100%;
  margin-top: var(--space-sm);
}

/* ── Confirmation view ── */
.confirm__email-notice {
  font-size: 1.05rem;
  margin: 1rem 0 0.5rem;
  color: var(--color-black);
}

.confirm__email-notice strong {
  color: var(--color-red);
}

.confirm__check {
  color: var(--color-gray-500);
  font-size: var(--text-sm);
  margin: 0 0 1.25rem 0;
}

.confirm__summary {
  background: var(--color-warm-50);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin: 0 0 1.5rem 0;
  font-size: 0.95rem;
  line-height: 1.7;
  text-align: left;
}

.confirm__summary dt {
  font-weight: var(--weight-semibold);
  color: var(--color-gray-500);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.75rem;
}

.confirm__summary dt:first-child {
  margin-top: 0;
}

.confirm__summary dd {
  margin: 0.2rem 0 0 0;
  color: var(--color-black);
  word-wrap: break-word;
  white-space: pre-wrap;
}

.confirm__actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

/* ── Success view ── */
.modal__view--success {
  text-align: center;
  padding: 1rem 0;
}

.success__icon {
  margin-bottom: 1rem;
}

.success__icon svg {
  display: inline-block;
}

.success__email-note {
  color: var(--color-gray-500);
  font-size: var(--text-sm);
  margin: 0.5rem 0 1.5rem;
}

.success__summary {
  background: rgba(255, 255, 255, 0.5);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin: 1rem 0 1.5rem;
  font-size: 0.95rem;
  line-height: 1.7;
  text-align: left;
}

.success__summary dt {
  font-weight: var(--weight-semibold);
  color: var(--color-gray-500);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.75rem;
}

.success__summary dt:first-child {
  margin-top: 0;
}

.success__summary dd {
  margin: 0.2rem 0 0 0;
  color: var(--color-black);
  word-wrap: break-word;
  white-space: pre-wrap;
}

/* ── Loading overlay ── */
.modal__loading {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 197, 24, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal__loading.active {
  opacity: 1;
  visibility: visible;
}

.modal__loading-inner {
  text-align: center;
  color: var(--color-dark);
  font-weight: var(--weight-semibold);
}

.modal__spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(0, 0, 0, 0.15);
  border-top-color: var(--color-dark);
  border-radius: 50%;
  margin: 0 auto 12px;
  animation: btnSpin 0.7s linear infinite;
}

/* ── Loading spinner for send button ── */
.btn--loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.btn--loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btnSpin 0.6s linear infinite;
}

@keyframes btnSpin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  padding: 10px var(--container-padding);
  background:
    linear-gradient(180deg,
      rgba(255, 224, 130, 0.92) 0%,
      rgba(245, 197, 24, 0.95) 50%,
      rgba(232, 180, 0, 0.93) 100%
    );
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 -2px 12px rgba(200, 160, 0, 0.15);
  opacity: 0;
  transform: translateY(100%);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.footer--visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.footer__mark {
  opacity: 1;
}

.footer__copy {
  font-size: var(--text-xs);
  color: var(--color-dark);
  opacity: 0.6;
}

/* ==========================================================================
   SOUND TOGGLE
   ========================================================================== */

.sound-toggle {
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 100;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, background 0.2s ease, color 0.2s ease, transform 0.4s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.sound-toggle--visible {
  opacity: 1;
  pointer-events: auto;
}

.sound-toggle:hover {
  background: rgba(0, 0, 0, 0.4);
  color: rgba(255, 255, 255, 0.9);
}

.footer--visible ~ .sound-toggle {
  transform: translateY(-48px);
}

.sound-toggle__off { display: none; }
.sound-toggle--muted .sound-toggle__on { display: none; }
.sound-toggle--muted .sound-toggle__off { display: block; }

/* ==========================================================================
   SECTION TRANSITION GRADIENTS (no hard lines)
   ========================================================================== */

.section--dark::before {
  content: '';
  position: absolute;
  top: -140px;
  left: 0;
  right: 0;
  height: 140px;
  background: linear-gradient(to bottom, transparent 0%, var(--color-dark-deep) 100%);
  z-index: 2;
  pointer-events: none;
}

.section--airx::before {
  background: linear-gradient(to bottom, transparent 0%, var(--airx-navy) 100%);
}

.section--reflexed::before {
  background: linear-gradient(to bottom, transparent, var(--reflexed-dark));
}

/* Light section after dark: gradient bleed-out at dark section bottom */
.section--dark::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: 0;
  right: 0;
  height: 100px;
  z-index: 2;
  pointer-events: none;
}

.section--airx::after {
  background: linear-gradient(to bottom, var(--airx-navy), transparent);
}

.section--reflexed::after {
  background: linear-gradient(to bottom, var(--reflexed-dark), transparent);
}

.section--certforge-dark::before {
  content: '';
  position: absolute;
  top: -140px;
  left: 0;
  right: 0;
  height: 140px;
  background: linear-gradient(to bottom, transparent 0%, var(--certforge-bg) 100%);
  z-index: 2;
  pointer-events: none;
}

.section--certforge-dark::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to bottom, var(--certforge-bg), transparent);
  z-index: 2;
  pointer-events: none;
}

/* Intro to CertForge: warm gold fading to off-white */
.section--light::before {
  content: '';
  position: absolute;
  top: -80px;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent 0%, var(--color-off-white) 100%);
  z-index: 2;
  pointer-events: none;
}

/* ==========================================================================
   PPS DOOR ANIMATION
   ========================================================================== */

.pps-stage {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0 auto var(--space-md);
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pps-door {
  width: 100%;
  max-width: 360px;
}

.pps-door__frame {
  position: relative;
  background: linear-gradient(135deg, #d8d8d8, #efefef);
  border: 1.5px solid #b8b8b8;
  border-radius: 6px;
  padding: 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 4px 16px rgba(0, 0, 0, 0.08);
}

.pps-door__opening {
  position: relative;
  background: #fff;
  border-radius: 4px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.12);
  padding: 4px;
  perspective: 1200px;
  transform-style: preserve-3d;
  aspect-ratio: 1;
}

.pps-door__letters {
  position: absolute;
  inset: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.6);
}

.pps-door__letters svg {
  width: 100%;
  height: 100%;
}

.pps-door__panel {
  position: relative;
  background: linear-gradient(180deg, #f9f9f9, #f0f0f0);
  border: 1.5px solid #b0b0b0;
  border-radius: 4px;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  transform-origin: left center;
  z-index: 2;
}

.pps-door__header {
  background: linear-gradient(180deg, #d4d4d4, #a8a8a8 50%, #b8b8b8);
  color: #333;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  padding: 8px 16px;
  border-bottom: 1px solid #999;
  border-radius: 3px 3px 0 0;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}

.pps-door__latch {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
}

.pps-final {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
}

.pps-final__logo {
  width: 300px;
  height: auto;
}

/* Wordmark is now inside the product grid, not the animation stage */
.pps-wordmark-wrap {
  opacity: 0;
  margin-bottom: var(--space-sm);
}

.pps-wordmark-svg {
  width: min(400px, 100%);
  height: auto;
}

/* PPS door SVG animation elements */
.pps-door-svg-wrap {
  position: relative;
  width: 75%;
  max-width: 360px;
  margin: 0 auto;
}

.pps-door-svg {
  width: 100%;
  height: auto;
  display: block;
}

.pps-latch-overlay,
.pps-panel-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.pps-letters-zoom {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
}

.pps-letters-zoom svg {
  width: 50%;
  height: auto;
}

.pps-tagline {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: var(--text-base);
  font-weight: 300;
  color: #aaa;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}

.pps-tagline strong {
  font-weight: 700;
  color: var(--pps-blue);
}

/* PPS product grid content — starts hidden, revealed after door animation */
#ppsContent {
  opacity: 0;
}

/* PPS feature list */
.pps-features {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 400px;
  text-align: left;
}

.pps-features li {
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  color: var(--color-gray-700);
  padding: 0 0 0 28px;
  position: relative;
}

.pps-features li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--pps-blue);
  font-weight: var(--weight-bold);
}

/* ==========================================================================
   PAGE MODE — full-viewport section controller (replaces scroll)
   ========================================================================== */

body.page-mode {
  overflow: hidden;
  height: 100vh;
  height: 100dvh;
}

body.page-mode .section {
  position: fixed;
  inset: 0;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
  z-index: 0;
  transition: none;
}

body.page-mode .section.page--active {
  visibility: visible;
  opacity: 1;
  z-index: 2;
}

body.page-mode .section.page--transitioning {
  visibility: visible;
  z-index: 1;
}

body.page-mode .section.page--scrollable {
  overflow-y: auto;
}

body.page-mode .section {
  align-items: center;
  justify-content: center;
}

body.page-mode .hero {
  min-height: 100%;
}

/* Offset centering for nav overlay — nav is ~68px, half of that shifts
   the visual center. Applied to all sections except hero (nav isn't
   visible on hero). */
body.page-mode .section:not(.section--hero) {
  padding-top: 68px;
}

body.page-mode .section--intro .section__inner {
  transform: translateY(-75px);
}

body.page-mode .section__inner {
  padding-top: 24px;
  padding-bottom: 24px;
}

/* In page mode, disable gradient bleeds — sections are overlaid, not stacked */
body.page-mode .section::before,
body.page-mode .section::after {
  display: none;
}

/* ==========================================================================
   GSAP ANIMATION HELPERS
   ========================================================================== */

/* Elements that GSAP will reveal on scroll */
.reveal {
  will-change: transform, opacity;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero__scroll-hint svg {
    animation: none;
  }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
  .hero__logo {
    width: 82vw;
  }

  .intro__text {
    font-size: 2.25rem;
  }
}

@media (max-width: 768px) {
  .hero__logo {
    width: 92vw;
  }

  .section__inner {
    padding: var(--space-lg) var(--space-sm);
  }

  body.page-mode .section__inner {
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .project__label {
    margin-bottom: var(--space-sm);
  }

  /* Collapse product grid to single column on mobile */
  .product-grid {
    grid-template-columns: 1fr;
    gap: var(--space-sm) 0;
  }

  .product-grid::after {
    display: none;
  }

  .product-col--left,
  .product-col--center {
    align-items: center;
    text-align: center;
  }

  .product-col--right {
    align-items: center;
    text-align: center;
  }

  .product-col .project__description {
    text-align: center;
  }

  .product-col .project__logo-wrap {
    justify-content: center;
  }

  /* Scale content to fit one screen in portrait */
  .product-col .project__name {
    font-size: var(--text-2xl);
  }

  .product-col .project__tagline {
    font-size: var(--text-base);
    margin-bottom: var(--space-xs);
  }

  .product-col .project__description {
    font-size: var(--text-sm);
    margin-bottom: var(--space-sm);
    line-height: 1.5;
  }

  .reflexed-features {
    gap: 6px;
  }

  .reflexed-features li {
    font-size: var(--text-sm);
  }

  .reflexed-pills {
    justify-content: center;
    gap: 8px;
  }

  .airx-pills {
    justify-content: center;
    gap: 8px;
  }

  .sentxt-icons {
    justify-content: center;
  }

  .sentxt-features {
    align-items: center;
  }

  .project__label {
    margin-bottom: var(--space-sm);
  }

  .project__name {
    font-size: var(--text-3xl);
  }

  .project__tagline {
    font-size: var(--text-lg);
    margin-bottom: var(--space-sm);
  }

  .project__description {
    font-size: var(--text-base);
    margin-bottom: var(--space-md);
  }

  .project__logo-wrap {
    margin-bottom: var(--space-sm);
  }

  .project__logo-wrap--hero {
    margin-bottom: var(--space-sm);
  }

  .project__logo--xl {
    width: 80px !important;
    height: 80px !important;
  }

  .airx-logo-square {
    width: min(200px, 50vw);
    border-radius: 32px;
  }

  .airx-spotlight {
    width: 320px;
    height: 320px;
  }

  .airx-tagline-stack {
    margin-bottom: var(--space-sm);
  }

  .certforge-screenshot-wrap {
    max-width: 100%;
  }

  .certforge-screenshot {
    max-height: 25vh;
    width: auto;
    margin: 0 auto;
  }

  /* SENTxt tighter spacing */
  .sentxt-icons {
    gap: var(--space-md);
    margin: var(--space-sm) auto;
  }

  .sentxt-icon svg {
    width: 60px;
    height: 60px;
  }

  .sentxt-icon-stack {
    font-size: var(--text-xs);
  }

  .sentxt-features {
    margin-top: var(--space-sm);
    gap: 6px;
  }

  /* reFLEX'ed tighter spacing */
  .reflexed-pills {
    gap: 8px;
    margin: var(--space-sm) auto;
  }

  /* PPS tighter spacing */
  .pps-stage {
    max-width: 55vw;
    min-height: auto;
    margin-bottom: var(--space-sm);
  }

  .pps-wordmark-wrap {
    margin-bottom: var(--space-xs);
  }

  .pps-features {
    gap: 6px;
  }

  .preloader__lines {
    font-size: clamp(0.9rem, 3vw, 1.2rem);
  }

  .nav {
    padding: 12px 16px;
  }

  .nav__hamburger {
    display: flex;
  }

  .nav__links {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 80px 0 24px;
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    z-index: 200;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    /* Warm gold gradient with depth and subtle light sweep */
    background:
      linear-gradient(165deg,
        rgba(255, 255, 255, 0.18) 0%,
        rgba(255, 255, 255, 0) 40%
      ),
      linear-gradient(180deg,
        rgb(255, 237, 169) 0%,
        rgb(255, 215, 84) 20%,
        rgb(245, 197, 24) 55%,
        rgb(220, 165, 0) 100%
      );
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
      -8px 0 40px rgba(160, 120, 0, 0.35),
      inset 1px 0 0 rgba(255, 255, 255, 0.4);
    border-left: 1px solid rgba(255, 255, 255, 0.25);
  }

  /* Backdrop overlay — prevents gold-on-gold "blob" */
  .nav::after {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(26, 35, 50, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    z-index: 199;
    pointer-events: none;
  }

  .nav--open::after {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav--open .nav__links {
    transform: translateX(0);
  }

  .nav__links a {
    display: block;
    padding: 14px 28px;
    font-size: var(--text-base);
    font-weight: 600;
    width: 100%;
    color: var(--color-dark);
    border-bottom: 1px solid rgba(180, 140, 0, 0.15);
    transition: background 0.2s ease, padding-left 0.2s ease;
  }

  .nav__links a:hover,
  .nav__links a.active {
    background: rgba(255, 255, 255, 0.2);
    padding-left: 34px;
  }

  .nav__links a::after {
    display: none;
  }

  .nav__cta {
    margin: 16px 28px 0;
    text-align: center;
    border: none !important;
    border-radius: 8px !important;
    color: #fff !important;
    padding: 12px 24px !important;
    font-weight: 700 !important;
    background: #E30613 !important;
    box-shadow: 0 2px 8px rgba(227, 6, 19, 0.3);
  }

  .nav__cta:hover {
    background: #c80510 !important;
    color: #fff !important;
  }

  .nav--open .nav__hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .nav--open .nav__hamburger span:nth-child(2) {
    opacity: 0;
  }
  .nav--open .nav__hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  /* Language selector — mobile: horizontal flag row at bottom of sidebar */
  .nav__lang {
    display: none;
    margin: 0;
  }

  .nav--open .nav__lang {
    display: block;
  }

  /* Hide the dropdown button on mobile — show inline row instead */
  .nav__lang-btn {
    display: none;
  }

  .nav__lang-menu {
    display: flex !important;
    position: static;
    flex-direction: row;
    justify-content: center;
    gap: 8px;
    padding: 16px 28px;
    margin-top: auto;
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    border-top: 1px solid rgba(180, 140, 0, 0.2);
  }

  .nav__lang-menu li {
    padding: 8px 10px;
    border-radius: 6px;
    border: 1.5px solid transparent;
    gap: 5px;
    transition: border-color 0.2s ease, background 0.2s ease;
  }

  .nav__lang-menu li.is-active {
    border-color: var(--color-red);
    background: rgba(255, 255, 255, 0.3);
  }

  .nav__lang-menu li.is-active::after {
    display: none;
  }

  /* Modal responsive */
  .modal__container {
    width: 95%;
    padding: 1.75rem;
    max-height: 90vh;
    max-height: 90dvh;
    border-radius: 12px;
  }

  .modal__title {
    font-size: var(--text-xl);
    padding-right: 2rem;
  }

  .confirm__actions {
    flex-direction: column-reverse;
  }

  .confirm__actions .btn {
    width: 100%;
    text-align: center;
  }

  .mockup__screen {
    min-height: 220px;
  }

  .sentxt-icons {
    gap: var(--space-md);
  }

  .sentxt-icon svg {
    width: 72px;
    height: 72px;
  }

  .sentxt-icon-stack {
    font-size: var(--text-xs);
  }

  .reflexed-pills {
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .nav__logo img {
    height: 32px;
  }

  .hero__logo {
    width: 96vw;
  }

  .project__name {
    font-size: var(--text-2xl);
  }

  .project__logo--wide {
    max-width: 200px;
  }

  .project__logo--square {
    width: 60px;
    height: 60px;
  }

  .hero__scroll-hint {
    bottom: 24px;
  }

  .sentxt-icons {
    gap: var(--space-sm);
  }

  .sentxt-icon svg {
    width: 56px;
    height: 56px;
  }

  .sentxt-features li {
    font-size: var(--text-sm);
  }

  .reflexed-pill {
    font-size: var(--text-xs);
    padding: 6px 14px;
  }
}

/* ==========================================================================
   LANDSCAPE MOBILE / TABLET — content must fit between header and footer
   ========================================================================== */

@media (max-height: 500px) and (orientation: landscape) {
  body.page-mode .section__inner {
    padding-top: 40px;
    padding-bottom: 12px;
  }

  .section__inner {
    padding: var(--space-xs) var(--space-md);
  }

  /* Use dvh for Safari collapsible toolbar */
  .page--active {
    min-height: 100vh;
    min-height: 100dvh;
  }

  /* Tighter text for landscape */
  .project__label {
    font-size: 0.55rem;
    margin-bottom: 2px;
  }

  .project__name {
    font-size: var(--text-lg);
    margin-bottom: 2px;
  }

  .project__tagline {
    font-size: var(--text-sm);
    margin-bottom: 2px;
  }

  .project__description {
    font-size: var(--text-xs);
    margin-bottom: 4px;
    line-height: 1.35;
  }

  /* Keep 2-column grid but tighten */
  .product-grid {
    gap: 0 var(--space-sm);
    align-items: start;
  }

  /* ── CertForge — smaller lock icon ── */
  .project__logo--xl {
    width: 48px !important;
    height: 48px !important;
  }

  .project__logo-wrap--large {
    margin-bottom: 2px;
  }

  .certforge-screenshot {
    max-height: 30vh;
    max-height: 30dvh;
    width: auto;
  }

  .certforge-screenshot-wrap {
    max-width: 100%;
  }

  .certforge-wordmark {
    font-size: var(--text-base);
  }

  /* ── aiRx² — shrink logo, reduce gap ── */
  .airx-logo-square {
    width: min(120px, 25vw);
    border-radius: 24px;
  }

  .airx-tagline-stack {
    margin-bottom: 2px;
    gap: 0;
    overflow: visible;
  }

  .airx-tagline-line {
    font-size: clamp(0.85rem, 2.5vw, 1.25rem);
  }

  .airx-spotlight {
    width: 160px;
    height: 160px;
  }

  .project__logo-wrap--hero {
    margin-bottom: 2px;
  }

  .airx-pills {
    gap: 6px;
  }

  .airx-pill {
    font-size: var(--text-xs);
    padding: 4px 10px;
  }

  /* ── SENTxt — close gap under logo, align bullets ── */
  .section--light .project__logo--wide {
    max-width: min(220px, 40vw) !important;
  }

  .section--light .project__tagline--hero {
    font-size: var(--text-base) !important;
    margin-bottom: 2px;
  }

  .sentxt-icons {
    gap: 6px;
    margin-bottom: 2px;
  }

  .sentxt-icon svg {
    width: 40px;
    height: 40px;
  }

  .sentxt-icon-stack {
    font-size: 0.6rem;
  }

  .sentxt-features {
    gap: 1px;
    padding-left: 0;
    margin-top: 2px;
  }

  .sentxt-features li {
    font-size: var(--text-xs);
    padding-left: 14px;
  }

  .sentxt-features li::before {
    width: 6px;
    height: 6px;
    top: 7px;
  }

  /* ── reFLEX'ed — larger product name, tighter features ── */
  .project__name--reflexed {
    font-size: var(--text-xl) !important;
    margin-bottom: 2px;
  }

  .reflexed-features {
    gap: 2px;
  }

  .reflexed-features li {
    font-size: var(--text-xs);
    padding-left: 16px;
  }

  .reflexed-features li::before {
    width: 6px;
    height: 6px;
    top: 7px;
  }

  .reflexed-pills {
    gap: 4px;
  }

  .reflexed-pill {
    font-size: 0.6rem;
    padding: 3px 10px;
  }

  .project__domain {
    margin-top: 2px;
    font-size: var(--text-xs);
  }

  /* ── PPS landscape — tighter stage ── */
  #pps .pps-stage {
    max-width: 30vh;
    min-height: auto;
    margin: 0 auto 8px;
  }

  #pps .pps-wordmark-svg {
    width: min(300px, 100%);
  }

  .pps-tagline {
    font-size: var(--text-sm);
    margin-bottom: 2px;
  }

  .pps-features {
    gap: 2px;
  }

  .pps-features li {
    font-size: var(--text-xs);
  }

  /* Footer tighter in landscape */
  .footer {
    padding: 8px 16px;
  }

  .footer__copy {
    font-size: var(--text-xs);
  }

  /* ── Contact modal landscape — compact to fit ── */
  .modal__container {
    max-height: 100vh;
    max-height: 100dvh;
    padding: 1rem 1.25rem;
    border-radius: 10px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .modal__title {
    font-size: var(--text-base);
    margin-bottom: 2px;
  }

  .modal__subtitle {
    font-size: var(--text-xs);
    margin-bottom: var(--space-xs);
  }

  .form__group {
    margin-bottom: 0.5rem;
  }

  .form__group label {
    margin-bottom: 0.15rem;
    font-size: var(--text-xs);
  }

  .form__group input,
  .form__group textarea {
    padding: 0.4rem 0.6rem;
    font-size: var(--text-sm);
  }

  .form__group textarea {
    min-height: 40px;
  }

  .btn--full {
    padding: 0.5rem 1rem;
    font-size: var(--text-sm);
  }
}

/* Extreme landscape — Safari toolbar visible + bookmarks bar */
@media (max-height: 400px) and (orientation: landscape) {
  body.page-mode .section__inner {
    padding-top: 36px;
    padding-bottom: 8px;
  }

  .project__label {
    font-size: 0.5rem;
    margin-bottom: 1px;
  }

  .project__name {
    font-size: var(--text-base);
    margin-bottom: 1px;
  }

  .project__tagline {
    font-size: var(--text-xs);
    margin-bottom: 1px;
  }

  .project__description {
    font-size: 0.65rem;
    margin-bottom: 2px;
    line-height: 1.3;
  }

  /* Hide third aiRx tagline line in extreme landscape */
  .airx-tagline-line:nth-child(3) {
    display: none;
  }
}
