/* ============================================
   COFACTOR — Coming Soon Page
   Brand: Black + Golden Gate Bridge Orange (#CD382C) + White
   Font: Neue Haas Grotesk (fallback: Helvetica Neue, Inter)
   ============================================ */

@font-face {
  font-family: 'Neue Haas Grotesk';
  src: local('Neue Haas Grotesk Display Pro'), local('NeueHaasDisplay-Light'),
       url('../assets/fonts/NeueHaasDisplayLight.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Neue Haas Grotesk';
  src: local('Neue Haas Grotesk Text Pro'), local('NeueHaasDisplay-Roman'),
       url('../assets/fonts/NeueHaasDisplayRoman.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Neue Haas Grotesk';
  src: local('Neue Haas Grotesk Display Pro'), local('NeueHaasDisplay-Medium'),
       url('../assets/fonts/NeueHaasDisplayMedium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Neue Haas Grotesk';
  src: local('Neue Haas Grotesk Display Pro'), local('NeueHaasDisplay-Bold'),
       url('../assets/fonts/NeueHaasDisplayBold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Neue Haas Grotesk';
  src: local('Neue Haas Grotesk Display Pro'), local('NeueHaasDisplay-Black'),
       url('../assets/fonts/NeueHaasDisplayBlack.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* COFACTOR Brand Colors */
  --black: #000000;
  --red: #CD382C;
  --red-dim: rgba(205, 56, 44, 0.15);
  --red-glow: rgba(205, 56, 44, 0.5);
  --red-bright: #e04438;
  --white: #FFFFFF;
  --gray-dark: #1a1a1a;
  --gray-mid: #888888;
  --gray-light: #cccccc;

  /* Semantic */
  --bg-primary: var(--black);
  --bg-card: #0d0d0d;
  --text-primary: var(--white);
  --text-secondary: var(--gray-mid);
  --accent: var(--red);
  --accent-dim: var(--red-dim);
  --accent-glow: var(--red-glow);

  /* Typography */
  --font-display: 'Neue Haas Grotesk', 'Helvetica Neue', 'Inter', 'Arial', sans-serif;
  --font-body: 'Neue Haas Grotesk', 'Helvetica Neue', 'Inter', 'Arial', sans-serif;

  /* Safe areas */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 300;
  overflow-x: hidden;
  overscroll-behavior: none;
  cursor: url('assets/symbol-red-32.png') 16 16, auto;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 12vh;
}

/* Brand selection color */
::selection {
  background: rgba(205, 56, 44, 0.3);
  color: var(--white);
}

::-webkit-selection {
  background: rgba(205, 56, 44, 0.3);
  color: var(--white);
}

/* ---- Particle Field ---- */
#particle-field {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ---- Main ---- */
main {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 960px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

/* ============================================
   Supply Chain Section — Collapsing animation
   ============================================ */
#chain-section {
  width: 100%;
  padding: 2rem 0;
}

#supply-chain {
  position: relative;
  width: 100%;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 0;
}

/* Chain Nodes */
.chain-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 1.1rem 1.3rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  background: var(--bg-card);
  min-width: 100px;
  transition: border-color 0.6s ease, background 0.6s ease, box-shadow 0.6s ease, transform 0.3s ease;
}

.chain-node .node-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.5;
  transition: opacity 0.4s ease;
}

.chain-node .node-icon svg {
  transition: fill 0.4s ease, opacity 0.4s ease;
}

.chain-node .node-label {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: color 0.4s ease;
}

/* Endpoint nodes (Manufacturer & Retailer) */
.node-endpoint {
  border-color: rgba(205, 56, 44, 0.25);
  background: rgba(205, 56, 44, 0.06);
}

.node-endpoint .node-icon {
  opacity: 1;
}

.node-endpoint .node-icon svg {
  fill: var(--red);
}

.node-endpoint .node-label {
  color: var(--white);
  font-weight: 700;
}

/* Connected glow (applied after collapse) */
.node-endpoint.connected {
  border-color: var(--red);
  box-shadow: 0 0 40px var(--accent-dim), inset 0 0 20px var(--accent-dim);
}

/* Toll booth flash */
.node-middle.toll-flash {
  border-color: rgba(205, 56, 44, 0.5);
}

.node-middle.toll-flash .node-icon svg {
  fill: var(--red) !important;
  opacity: 0.8 !important;
}

.node-middle.toll-flash .node-label {
  color: var(--red);
}

/* Collapsible elements — middle nodes and their arrows */
.collapsible {
  overflow: hidden;
  transition: max-width 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              padding 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              margin 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.4s ease,
              transform 0.4s ease;
}

.collapsible.chain-node {
  max-width: 200px;
  min-width: 100px;
}

.collapsible.chain-arrow {
  max-width: 60px;
  min-width: 0;
}

/* Collapsed state — fully removed from flow */
.collapsible.collapsed {
  max-width: 0 !important;
  min-width: 0 !important;
  opacity: 0;
  padding: 0 !important;
  margin: 0;
  border-width: 0;
  gap: 0;
  pointer-events: none;
}

.collapsible.collapsed .arrow-img,
.collapsible.collapsed .node-icon,
.collapsible.collapsed .node-label {
  width: 0;
  height: 0;
  overflow: hidden;
}

/* Chain Arrows */
.chain-arrow {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 0.5rem;
  opacity: 0.3;
}

.chain-arrow svg,
.chain-arrow .arrow-img {
  width: 18px;
  height: 18px;
  fill: var(--red);
  opacity: 0.5;
}

.arrow-img {
  display: block;
  flex-shrink: 0;
}

/* Direct connection arrow (hidden by default, appears on collapse) */
.direct-arrow {
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  padding: 0;
  gap: 10px;
  pointer-events: none;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.3s,
              max-width 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              padding 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.direct-arrow .arrow-img {
  width: 24px;
  height: 24px;
  opacity: 1;
  filter: drop-shadow(0 0 6px var(--red-glow));
}

.direct-arrow.visible {
  opacity: 1;
  max-width: 200px;
  padding: 0 1.5rem;
}

/* ============================================
   Brand Reveal
   ============================================ */
#reveal-section {
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  padding: 3rem 0;
}

#reveal-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Logo */
#brand-reveal {
  position: relative;
  z-index: 1;
}

.brand-logo {
  margin-bottom: 1.2rem;
  position: relative;
  display: inline-block;
}

.brand-logo-img {
  height: clamp(50px, 10vw, 80px);
  width: auto;
  display: block;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Glow behind the arrow mark */
.logo-glow {
  position: absolute;
  top: 50%;
  left: 52%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, var(--red-glow) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 1;
  opacity: 0;
  filter: blur(20px);
}

#reveal-section.visible .logo-glow {
  opacity: 1;
  animation: logoGlow 3s ease-in-out infinite 1s;
}

@keyframes logoGlow {
  0%, 100% {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(1.4);
  }
}

/* Tagline */
.brand-tagline {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  color: var(--text-secondary);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(10px);
}

#reveal-section.visible .brand-tagline {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease 0.6s, transform 0.8s ease 0.6s;
}

/* ============================================
   Odometer Countdown
   ============================================ */
#countdown-section {
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
  width: 100%;
}

#countdown-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.countdown-label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

#odometer {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.3rem;
  margin-bottom: 2.5rem;
}

.odo-group {
  display: flex;
  align-items: flex-start;
  position: relative;
  gap: 3px;
}

.odo-digit {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 900;
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  padding: 0.3rem 0.55rem;
  min-width: 2.3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  line-height: 1.2;
}

/* Mechanical flip line */
.odo-digit::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: rgba(0, 0, 0, 0.4);
  pointer-events: none;
}

.odo-digit.flipping {
  animation: odoFlip 0.4s ease-in-out;
}

@keyframes odoFlip {
  0% { transform: perspective(200px) rotateX(0deg); }
  50% { transform: perspective(200px) rotateX(-12deg); border-color: rgba(205, 56, 44, 0.3); }
  100% { transform: perspective(200px) rotateX(0deg); }
}

.odo-label {
  position: absolute;
  bottom: -1.4rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
  white-space: nowrap;
}

.odo-separator {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 900;
  color: var(--red);
  opacity: 0.4;
  line-height: 1.2;
  padding: 0.3rem 0;
}

/* ============================================
   Email Capture
   ============================================ */
#signup-form {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.form-row {
  display: flex;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50px;
  overflow: hidden;
  background: var(--bg-card);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-row:focus-within {
  border-color: var(--red);
  box-shadow: 0 0 25px var(--accent-dim);
}

#email-input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 1rem 1.6rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.9rem;
  outline: none;
  min-width: 0;
}

#email-input::placeholder {
  color: var(--text-secondary);
  opacity: 0.5;
}

#submit-btn {
  background: var(--red);
  border: none;
  color: var(--white);
  padding: 0.8rem 1.4rem;
  cursor: url('assets/symbol-red-32.png') 16 16, pointer;
  transition: all 0.3s ease;
  border-radius: 0 50px 50px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

#submit-btn svg,
#submit-btn .btn-arrow-img {
  width: 28px;
  height: 28px;
  fill: var(--white);
  transition: transform 0.3s ease;
}

.btn-arrow-img {
  display: block;
}

#submit-btn:hover {
  background: var(--red-bright);
  box-shadow: 0 0 25px var(--accent-glow);
}

#submit-btn:hover svg,
#submit-btn:hover .btn-arrow-img {
  transform: translateX(3px);
}

#form-response {
  margin-top: 0.8rem;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--red);
  min-height: 1.2rem;
  text-align: center;
}

.footer-text {
  margin-top: 1.5rem;
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--text-secondary);
  opacity: 0.4;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* ============================================
   Hamburger Navigation
   ============================================ */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 2rem;
  padding-top: calc(1.2rem + var(--safe-top));
}

/* Subtle gradient for nav readability */
#nav::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
  pointer-events: none;
  z-index: -1;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  z-index: 101;
  -webkit-tap-highlight-color: transparent;
}

.nav-logo img {
  transition: transform 0.3s ease;
}

.nav-logo:hover img {
  transform: scale(1.1);
}

.hamburger {
  position: relative;
  z-index: 101;
  width: 44px;
  height: 34px;
  background: none;
  border: none;
  cursor: inherit;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 4px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

.hamburger.open span:nth-child(1) {
  transform-origin: right center;
  transform: rotate(-35deg) scaleX(0.6);
  background: var(--red);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
  transform-origin: right center;
  transform: rotate(35deg) scaleX(0.6);
  background: var(--red);
}

.nav-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 320px;
  height: 100vh;
  height: 100dvh;
  background: rgba(0, 0, 0, 0.97);
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding-bottom: var(--safe-bottom);
}

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

.nav-menu a {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
  padding: 0.5rem 1rem;
  -webkit-tap-highlight-color: transparent;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--white);
}

.nav-menu a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: var(--red);
}

/* ============================================
   Contact Page
   ============================================ */
.contact-main {
  padding-top: 5rem;
  justify-content: flex-start;
  min-height: 100vh;
  min-height: 100dvh;
}

.contact-section {
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
}

.contact-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.contact-sub {
  font-weight: 300;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

#contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
}

.form-group input,
.form-group textarea,
.form-group select {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 0.9rem 1.2rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--red);
  box-shadow: 0 0 20px var(--accent-dim);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-secondary);
  opacity: 0.4;
}

.form-group select {
  cursor: inherit;
}

.form-group select option {
  background: var(--bg-card);
  color: var(--text-primary);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

/* Captcha */
.captcha-group {
  background: rgba(205, 56, 44, 0.04);
  border: 1px solid rgba(205, 56, 44, 0.15);
  border-radius: 10px;
  padding: 1.2rem;
}

.captcha-q {
  color: var(--red);
  font-weight: 900;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.captcha-group input {
  max-width: 160px;
}

/* Submit button */
.contact-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: var(--red);
  border: none;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 1rem 2rem;
  border-radius: 50px;
  cursor: inherit;
  transition: all 0.3s ease;
  align-self: flex-start;
  -webkit-tap-highlight-color: transparent;
}

.contact-submit:hover {
  background: var(--red-bright);
  box-shadow: 0 0 30px var(--accent-glow);
}

.contact-submit:hover .btn-arrow-img {
  transform: translateX(4px);
}

.contact-submit .btn-arrow-img {
  transition: transform 0.3s ease;
}

.contact-response {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--red);
  min-height: 1.2rem;
  transition: opacity 0.3s ease;
}

/* ============================================
   Touch Devices — disable custom cursor
   ============================================ */
@media (hover: none) and (pointer: coarse) {
  body,
  #submit-btn,
  .contact-submit,
  .form-group select {
    cursor: auto !important;
  }
}

/* ============================================
   Active States — mobile tap feedback
   ============================================ */
#submit-btn:active,
.contact-submit:active {
  transform: scale(0.96);
  background: var(--red-bright);
}

.hamburger:active {
  opacity: 0.7;
}

/* ============================================
   Responsive — Mobile (≤ 700px)
   ============================================ */
@media (max-width: 700px) {
  body {
    padding-top: calc(5rem + var(--safe-top));
    justify-content: center;
  }

  main {
    padding: 0 1.5rem;
    padding-bottom: calc(1.5rem + var(--safe-bottom));
    gap: 1.2rem;
    justify-content: center;
  }

  /* ---- Supply chain: vertical ---- */
  #supply-chain {
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 0.5rem 0;
  }

  #chain-section {
    padding: 0;
  }

  .chain-node {
    min-width: 220px;
    max-width: 260px;
    flex-direction: row;
    padding: 0.85rem 1.4rem;
    gap: 0.8rem;
    border-radius: 10px;
    justify-content: center;
  }

  .chain-node .node-icon {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    display: flex;
    opacity: 1;
  }

  .chain-node .node-icon svg {
    width: 100%;
    height: 100%;
  }

  .chain-node .node-label {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
  }

  .chain-arrow {
    transform: none;
    padding: 0.15rem 0;
    opacity: 0.3;
  }

  .chain-arrow .arrow-img {
    width: 14px;
    height: 14px;
    transform: rotate(90deg);
  }

  /* Collapsible transitions for vertical */
  .collapsible {
    transition: max-height 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                margin 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.4s ease,
                border-width 0.4s ease;
  }

  .collapsible.chain-node {
    max-width: none;
    min-width: 200px;
    max-height: 60px;
  }

  .collapsible.chain-arrow {
    max-width: none;
    max-height: 18px;
  }

  .collapsible.collapsed {
    max-width: none !important;
    min-width: 0 !important;
    max-height: 0 !important;
    opacity: 0;
    padding: 0 !important;
    margin: 0;
    border-width: 0;
    overflow: hidden;
    pointer-events: none;
  }

  /* Direct arrow — vertical on mobile, show brand symbols */
  .direct-arrow {
    transform: none;
    flex-direction: column;
    align-items: center;
    max-width: none !important;
    max-height: 0;
    padding: 0;
    gap: 6px;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.2s,
                max-height 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .direct-arrow .arrow-img {
    width: 18px;
    height: 18px;
    filter: drop-shadow(0 0 4px var(--red-glow));
    transform: rotate(90deg);
  }

  .direct-arrow.visible {
    max-height: 120px;
    padding: 0.4rem 0;
    opacity: 1;
  }

  /* ---- Brand reveal ---- */
  #reveal-section {
    padding: 0.8rem 0;
  }

  .brand-logo {
    margin-bottom: 0.8rem;
  }

  .brand-logo-img {
    height: clamp(56px, 16vw, 80px);
  }

  .logo-glow {
    width: 90px;
    height: 90px;
  }

  .brand-tagline {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
  }

  /* ---- Countdown ---- */
  #countdown-section {
    padding: 0;
  }

  .countdown-label {
    font-size: 0.6rem;
    margin-bottom: 0.6rem;
    letter-spacing: 0.3em;
  }

  #odometer {
    margin-bottom: 1.6rem;
    gap: 0.2rem;
  }

  .odo-digit {
    min-width: 1.7rem;
    padding: 0.2rem 0.4rem;
    font-size: clamp(1.5rem, 7vw, 2.2rem);
    border-radius: 5px;
  }

  .odo-separator {
    font-size: clamp(1.5rem, 7vw, 2.2rem);
    padding: 0.2rem 0;
  }

  .odo-label {
    font-size: 0.45rem;
    bottom: -1rem;
    letter-spacing: 0.1em;
  }

  /* ---- Email form ---- */
  #signup-form {
    max-width: 100%;
    padding: 0;
  }

  .form-row {
    border-radius: 44px;
  }

  #email-input {
    padding: 0.85rem 1.2rem;
    font-size: 1rem;
  }

  #email-input::placeholder {
    font-size: 0.8rem;
  }

  #submit-btn {
    padding: 0.85rem 1.1rem;
    min-width: 52px;
    min-height: 48px;
    border-radius: 0 44px 44px 0;
  }

  #submit-btn .btn-arrow-img {
    width: 22px;
    height: 22px;
  }

  .footer-text {
    font-size: 0.6rem;
    margin-top: 0.8rem;
    letter-spacing: 0.1em;
  }

  #form-response {
    font-size: 0.8rem;
    min-height: 1.2rem;
    margin-top: 0.5rem;
  }

  /* ---- Nav ---- */
  #nav {
    padding: 0.8rem 1rem;
    padding-top: calc(0.8rem + var(--safe-top));
  }

  .nav-logo img {
    width: 28px;
    height: 28px;
  }

  .hamburger {
    width: 32px;
    height: 24px;
    padding: 10px;
    margin: -10px;
    min-width: 44px;
    min-height: 44px;
    -webkit-tap-highlight-color: transparent;
  }

  .hamburger span {
    height: 3px;
  }

  .nav-menu {
    max-width: 100%;
    border-left: none;
    gap: 2.5rem;
  }

  .nav-menu a {
    font-size: 1.5rem;
    letter-spacing: 0.2em;
    padding: 0.8rem 1.5rem;
  }

  .nav-menu a.active::after {
    bottom: 0;
    left: 1.5rem;
    right: 1.5rem;
    height: 2px;
  }

  /* ---- Contact page ---- */
  .contact-main {
    padding-top: calc(4rem + var(--safe-top));
    justify-content: flex-start;
  }

  .contact-section {
    max-width: 100%;
  }

  .contact-sub {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    line-height: 1.6;
  }

  #contact-form {
    gap: 1.2rem;
  }

  .form-group label {
    font-size: 0.6rem;
    margin-bottom: 0.1rem;
  }

  .form-group input,
  .form-group textarea,
  .form-group select {
    font-size: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 10px;
  }

  .form-group textarea {
    min-height: 100px;
  }

  .captcha-group {
    padding: 1rem;
    border-radius: 10px;
  }

  .captcha-group input {
    max-width: 100%;
  }

  .captcha-q {
    font-size: 0.85rem;
  }

  .contact-submit {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 0.85rem;
    border-radius: 44px;
    min-height: 48px;
  }

  .contact-response,
  #form-response {
    font-size: 0.8rem;
    min-height: 1.2rem;
    word-wrap: break-word;
    text-align: center;
  }
}

/* ============================================
   Responsive — Small phones (≤ 380px)
   ============================================ */
@media (max-width: 380px) {
  main {
    padding: 0 1rem;
    padding-bottom: calc(1rem + var(--safe-bottom));
    gap: 1rem;
  }

  .chain-node {
    min-width: 180px;
    max-width: 200px;
    padding: 0.65rem 1rem;
  }

  .collapsible.chain-node {
    min-width: 180px !important;
  }

  .chain-node .node-icon {
    width: 20px;
    height: 20px;
  }

  .chain-node .node-label {
    font-size: 0.6rem;
  }

  .odo-digit {
    min-width: 1.4rem;
    padding: 0.15rem 0.3rem;
    font-size: clamp(1.3rem, 7vw, 1.8rem);
  }

  .odo-separator {
    font-size: clamp(1.3rem, 7vw, 1.8rem);
  }

  .brand-logo-img {
    height: clamp(44px, 14vw, 60px);
  }

  .brand-tagline {
    font-size: 0.6rem;
    letter-spacing: 0.15em;
  }
}

/* ============================================
   Landscape phones — keep chain horizontal
   ============================================ */
@media (max-height: 500px) and (orientation: landscape) {
  body {
    padding-top: calc(2rem + var(--safe-top));
  }

  main {
    gap: 0.8rem;
  }

  #supply-chain {
    flex-direction: row !important;
  }

  .chain-node {
    flex-direction: column !important;
    min-width: 80px !important;
    max-width: 100px !important;
    padding: 0.5rem 0.6rem !important;
  }

  .collapsible.chain-node {
    max-width: 100px !important;
    max-height: none !important;
  }

  .collapsible.collapsed.chain-node {
    max-width: 0 !important;
  }

  .chain-arrow {
    padding: 0 0.3rem;
  }

  .chain-arrow .arrow-img {
    width: 14px;
    height: 14px;
  }

  .direct-arrow {
    flex-direction: row !important;
    max-height: none !important;
  }

  .direct-arrow .arrow-img {
    width: 16px;
    height: 16px;
  }

  .direct-arrow.visible {
    max-height: none;
    padding: 0 0.5rem;
  }

  .chain-node .node-label {
    font-size: 0.5rem;
  }

  #reveal-section {
    padding: 0.3rem 0;
  }

  .brand-logo-img {
    height: 32px;
  }

  .brand-tagline {
    font-size: 0.6rem;
  }

  #countdown-section {
    padding: 0;
  }

  .countdown-label {
    margin-bottom: 0.3rem;
  }

  #odometer {
    margin-bottom: 1rem;
  }

  .odo-digit {
    font-size: 1.2rem;
    min-width: 1.2rem;
    padding: 0.1rem 0.25rem;
  }

  .odo-separator {
    font-size: 1.2rem;
  }
}
