/* ============================================
   SENTRIX Asset Intelligence
   Aesthetic: Starlink-inspired
   Fullscreen · Snap Scroll · Cinematic
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,300;1,400&display=swap');

/* ── VARIABLES ── */
:root {
  --black:     #000000;
  --white:     #ffffff;
  --copper:    #C8965A;
  --copper-2:  #A07040;
  --grey:      rgba(255,255,255,0.55);
  --grey-dim:  rgba(255,255,255,0.30);
  --border:    rgba(255,255,255,0.12);
  --font:      'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --ease:      cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--black);
  color: var(--white);
}

body {
  font-family: var(--font);
  background: var(--black);
  overflow-x: hidden;
  /* Starlink-style: each section snaps */
  overflow-y: auto;
  scroll-behavior: smooth;
}

/* Scrollbar */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); }

::selection { background: rgba(200,150,90,0.4); }

/* ── NAV ── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  padding-left: max(32px, env(safe-area-inset-left));
  padding-right: max(32px, env(safe-area-inset-right));
  transition: background 0.5s var(--ease);
}
#nav.dark {
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo svg { width: 32px; height: 32px; }
.nav-wordmark {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
}
.nav-wordmark small {
  display: block;
  font-size: 0.55rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--grey-dim);
  text-transform: uppercase;
}

.nav-center {
  display: flex;
  gap: 28px;
  list-style: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.nav-center a {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--grey);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-center a:hover { color: var(--white); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}
.btn-order {
  padding: 9px 22px;
  background: var(--white);
  color: var(--black);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.btn-order:hover { opacity: 0.88; }
.btn-learn {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: opacity 0.2s;
}
.btn-learn:hover { opacity: 0.7; }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--white);
}

/* Mobile nav menu */
#mobile-nav {
  display: none;
  position: fixed;
  top: 60px; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.97);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  backdrop-filter: blur(20px);
}
#mobile-nav.open { display: flex; }
#mobile-nav a {
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.01em;
}

/* ── SNAP SCROLL CONTAINER ── */
#scroll-container {
  height: 100vh;
  /* Use dvh for mobile browsers with dynamic toolbars */
  height: 100dvh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
}
/* Custom scrollbar on container */
#scroll-container::-webkit-scrollbar { width: 3px; }
#scroll-container::-webkit-scrollbar-track { background: transparent; }
#scroll-container::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 2px; }

/* ── SNAP SECTION ── */
.snap {
  scroll-snap-align: start;
  scroll-snap-stop: always;
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Taller sections that need more space */
.snap.tall {
  height: auto;
  min-height: 100vh;
  scroll-snap-align: start;
}

/* ── FULLSCREEN MEDIA LAYER ── */
.snap-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.snap-media iframe {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 177.78vh;
  height: 56.25vw;
  min-width: 100%;
  min-height: 100%;
  pointer-events: none;
}
.snap-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.snap-media video {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* ── OVERLAYS ── */
.overlay-dark {
  position: absolute;
  inset: 0; z-index: 1;
  background: rgba(0,0,0,0.45);
}
.overlay-bottom {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 220px;
  z-index: 2;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
}
.overlay-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 140px;
  z-index: 2;
  background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, transparent 100%);
}
.overlay-left {
  position: absolute;
  inset: 0; z-index: 1;
  background: linear-gradient(to right, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.4) 55%, transparent 100%);
}
.overlay-gradient-v {
  position: absolute;
  inset: 0; z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.55) 0%,
    rgba(0,0,0,0.15) 40%,
    rgba(0,0,0,0.15) 60%,
    rgba(0,0,0,0.75) 100%
  );
}

/* ── CONTENT LAYOUTS ── */
.snap-content {
  position: relative;
  z-index: 5;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Center layout — like Starlink hero */
.layout-center {
  justify-content: flex-end;
  align-items: flex-start;
  padding: 0 48px 72px;
}
.layout-center.middle {
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 80px 48px 48px;
}
.layout-center.bottom-center {
  justify-content: flex-end;
  align-items: center;
  text-align: center;
  padding: 0 48px 72px;
}

/* Split layout */
.layout-split {
  flex-direction: row;
  align-items: stretch;
}
.split-text {
  flex: 0 0 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 56px 56px;
}
.split-visual {
  flex: 1;
  position: relative;
  overflow: hidden;
}

/* Full text — dark bg section */
.layout-full {
  background: var(--black);
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 80px 48px;
}

/* ── TYPOGRAPHY ── */
.label {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey-dim);
  margin-bottom: 18px;
  display: block;
}
.label.copper { color: var(--copper); }

.headline-xl {
  font-size: clamp(2.8rem, 5.5vw, 5.2rem);
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 1.07;
  color: var(--white);
  max-width: 960px;
}
.headline-xl strong {
  font-weight: 700;
}
.headline-xl em {
  font-style: italic;
  font-weight: 300;
  color: var(--grey);
}

.headline-lg {
  font-size: clamp(2rem, 4vw, 3.8rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--white);
  max-width: 780px;
}
.headline-lg strong { font-weight: 700; }

.headline-md {
  font-size: clamp(1.5rem, 3vw, 2.8rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--white);
  max-width: 680px;
}
.headline-md strong { font-weight: 700; }

.body-text {
  font-size: clamp(0.9rem, 1.4vw, 1.05rem);
  font-weight: 400;
  color: var(--grey);
  line-height: 1.65;
  max-width: 520px;
  margin-top: 20px;
}

.cta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.cta-row.centered {
  justify-content: center;
}

.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--white);
  color: var(--black);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}
.btn-white:hover { opacity: 0.88; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 28px;
  background: transparent;
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.45);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.7);
}

.btn-copper {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--copper);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}
.btn-copper:hover { opacity: 0.88; transform: translateY(-1px); }

/* Starlink-style small link */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--white);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  padding-bottom: 2px;
  transition: border-color 0.2s, opacity 0.2s;
}
.link-arrow:hover { border-color: var(--white); }
.link-arrow i { font-size: 0.65rem; }

/* ── SCROLL INDICATOR ── */
.scroll-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.5;
  animation: fadeInUp 1.5s 2s both;
}
.scroll-hint-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.6), transparent);
  animation: scrollLine 1.8s infinite;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0) translateY(-100%); opacity: 0; }
  30%  { opacity: 1; }
  100% { transform: scaleY(1) translateY(0); opacity: 0; }
}
.scroll-hint span {
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

/* ── SECTION: METRICS ── */
.metrics-bar {
  background: #050505;
  border-top: 1px solid rgba(255,255,255,0.07);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.metrics-bar .snap-content {
  flex-direction: row;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
}
.metric {
  flex: 1;
  min-width: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
  border-right: 1px solid rgba(255,255,255,0.06);
  transition: background 0.3s;
}
.metric:last-child { border-right: none; }
.metric:hover { background: rgba(255,255,255,0.025); }
.metric-val {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--white);
  line-height: 1;
}
.metric-val sup { font-size: 0.5em; color: var(--copper); }
.metric-label {
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-top: 8px;
  max-width: 120px;
  line-height: 1.4;
}

/* ── DARK CONTENT SECTIONS ── */
.dark-section {
  background: #080808;
}
.dark-section-alt {
  background: #040404;
}

/* ── GRID CARDS (Platforms) ── */
.platforms-container {
  position: relative; z-index: 5;
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.pcard {
  border-right: 1px solid rgba(255,255,255,0.07);
  padding: 48px 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  cursor: pointer;
  transition: background 0.3s;
  position: relative;
  overflow: hidden;
}
.pcard:last-child { border-right: none; }
.pcard::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--copper);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.pcard:hover { background: rgba(255,255,255,0.025); }
.pcard:hover::before { transform: scaleX(1); }

.pcard-num {
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
}
.pcard-name {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--white);
  line-height: 1.2;
}
.pcard-model {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--copper);
}
.pcard-desc {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
  flex: 1;
}
.pcard-specs {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.pcard-specs li {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.pcard-specs li::before {
  content: '—';
  color: rgba(255,255,255,0.2);
  flex-shrink: 0;
}
.pcard-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--white);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding-bottom: 2px;
  width: fit-content;
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
  cursor: pointer;
  transition: border-color 0.2s, opacity 0.2s;
}
.pcard-btn:hover { border-bottom-color: var(--white); }

/* ── INDUSTRIES GRID ── */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 0;
  flex: 1;
}
.ind-tile {
  border-right: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  transition: background 0.3s;
}
.ind-tile:nth-child(4n) { border-right: none; }
.ind-tile:nth-child(n+5) { border-bottom: none; }
.ind-tile:hover { background: rgba(255,255,255,0.025); }
.ind-tile.span2 { grid-column: span 2; }

.ind-num {
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
}
.ind-icon {
  font-size: 2rem;
  color: rgba(255,255,255,0.55);
  transition: color 0.3s;
  margin-top: 10px;
}
.ind-tile:hover .ind-icon { color: var(--copper); }
.ind-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.01em;
  margin-top: 8px;
}
.ind-desc {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.55;
  margin-top: 8px;
}

/* ── WHY SENTRIX ── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  flex: 1;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.why-item {
  padding: 44px 32px;
  border-right: 1px solid rgba(255,255,255,0.07);
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
  transition: background 0.3s;
}
.why-item:last-child { border-right: none; }
.why-item:hover { background: rgba(255,255,255,0.025); }
.why-n {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
}
.why-icon i { font-size: 1.5rem; color: rgba(255,255,255,0.5); }
.why-item:hover .why-icon i { color: var(--copper); }
.why-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.why-desc {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.6;
}

/* ── CLIENTS STRIP ── */
.clients-strip {
  display: flex;
  align-items: center;
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.07);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.clients-label {
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  padding: 24px 32px;
  white-space: nowrap;
  border-right: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}
.clients-logos {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  flex: 1;
}
.client-name {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  padding: 24px 28px;
  border-right: 1px solid rgba(255,255,255,0.07);
  transition: color 0.2s;
  white-space: nowrap;
}
.client-name:hover { color: rgba(255,255,255,0.7); }

/* ── CERTS ROW ── */
.certs-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.cert {
  padding: 9px 18px;
  border: 1px solid rgba(255,255,255,0.15);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.6);
  transition: border-color 0.2s, color 0.2s;
}
.cert:hover { border-color: rgba(255,255,255,0.4); color: var(--white); }

/* ── INTEL STEPS ── */
.intel-steps {
  display: flex;
  flex-direction: column;
  margin-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.intel-step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background 0.2s;
}
.intel-step:hover { background: rgba(255,255,255,0.02); }
.step-num {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.25);
  padding-top: 2px;
}
.step-body {}
.step-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.01em;
  margin-bottom: 5px;
}
.step-desc {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.55;
}

/* ── VIDEO WALL ── */
.vwall {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 2px;
  flex: 1;
  min-height: 100vh;
}
.vwall-item {
  position: relative;
  overflow: hidden;
  background: #0a0a0a;
  cursor: pointer;
}
.vwall-item.featured { grid-row: span 2; }
.vwall-item iframe {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 177.78%;
  height: 100%;
  min-width: 100%;
  pointer-events: none;
}
.vwall-item.portrait iframe {
  transform: translate(-50%, -50%);
  width: 56.25%;
  height: 100%;
  min-width: 56.25%;
}
.vwall-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}
.vwall-item:hover .vwall-overlay { background: rgba(0,0,0,0.1); }
.vwall-play {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.5);
  background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-size: 0.85rem;
  padding-left: 3px;
  transition: all 0.3s;
  cursor: pointer;
  background: none;
}
.vwall-item:hover .vwall-play {
  border-color: var(--white);
  background: rgba(255,255,255,0.12);
  transform: scale(1.08);
}
.vwall-tag {
  position: absolute;
  bottom: 14px; left: 16px;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

/* ── CTA FINAL ── */
.cta-final-section {
  background: var(--black);
}
.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex: 1;
  padding: 80px 48px;
  position: relative;
  z-index: 5;
}
.cta-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 700px; height: 350px;
  background: radial-gradient(ellipse, rgba(200,150,90,0.1) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.contact-row {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
}
.contact-item i { color: var(--copper); }

/* ── FOOTER ── */
#footer {
  background: #030303;
  border-top: 1px solid rgba(255,255,255,0.07);
  scroll-snap-align: start;
  padding-bottom: env(safe-area-inset-bottom);
}
.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 56px 48px 40px;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 32px;
}
.footer-brand {}
.footer-logo-row {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 16px;
}
.footer-logo-row svg { width: 28px; height: 28px; }
.footer-brand-name {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.footer-brand-sub {
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}
.footer-desc {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  line-height: 1.65;
  max-width: 260px;
}
.footer-col h5 {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-copy {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.2);
  letter-spacing: 0.02em;
}
.footer-social { display: flex; gap: 12px; }
.social-link {
  width: 34px; height: 34px;
  border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: all 0.2s;
}
.social-link:hover {
  border-color: rgba(255,255,255,0.3);
  color: var(--white);
}

/* ── MODAL ── */
.modal {
  display: none;
  position: fixed; inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.95);
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(12px);
}
.modal.open { display: flex; }
.modal-box {
  position: relative;
  width: min(90vw, 900px);
  aspect-ratio: 16/9;
  background: #000;
}
.modal-box.portrait { aspect-ratio: 9/16; max-width: min(55vw, 480px); }
.modal-box iframe { width: 100%; height: 100%; border: none; }
.modal-x {
  position: absolute;
  top: -44px; right: 0;
  background: none; border: none;
  color: rgba(255,255,255,0.6);
  font-size: 1.3rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}
.modal-x:hover { color: var(--white); }

/* ── REVEAL ANIMATIONS ── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.fade-in.visible { opacity: 1; transform: none; }
.fade-in.d1 { transition-delay: 0.1s; }
.fade-in.d2 { transition-delay: 0.2s; }
.fade-in.d3 { transition-delay: 0.3s; }
.fade-in.d4 { transition-delay: 0.4s; }
.fade-in.d5 { transition-delay: 0.5s; }
.fade-in.d6 { transition-delay: 0.6s; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── PRODUCT CARD DOWNLOAD BUTTON ── */
.pcard-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 400;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  padding-bottom: 2px;
  width: fit-content;
  letter-spacing: 0.02em;
  transition: color 0.2s, border-color 0.2s;
  cursor: pointer;
}
.pcard-download:hover {
  color: var(--copper);
  border-bottom-color: var(--copper);
}
.pcard-download i { font-size: 0.6rem; }

.pcard-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 4px;
}
.pcard-microcopy {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  line-height: 1.5;
  font-style: italic;
  border-left: 2px solid rgba(200,150,90,0.3);
  padding-left: 10px;
}

/* ── DOCS SECTION ── */
.docs-section {
  background: #060606;
  border-top: 1px solid rgba(255,255,255,0.07);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  scroll-snap-align: start;
}
.docs-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 48px;
}
.docs-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}
.doc-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.65);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  white-space: nowrap;
  background: transparent;
}
.doc-btn:hover {
  border-color: rgba(200,150,90,0.5);
  color: var(--white);
  background: rgba(200,150,90,0.05);
}
.doc-btn i {
  font-size: 0.72rem;
  color: var(--copper);
  flex-shrink: 0;
}
.doc-btn.primary-doc {
  border-color: rgba(200,150,90,0.35);
  color: rgba(200,150,90,0.85);
}
.doc-btn.primary-doc:hover {
  background: rgba(200,150,90,0.08);
  color: var(--copper);
  border-color: var(--copper);
}

/* ── LEAD FORM SECTION ── */
.form-section {
  background: #050505;
  scroll-snap-align: start;
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
}
/* Override .snap base rule for form section */
#contact.snap {
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
}
.form-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.form-lead-text .label { margin-bottom: 20px; }
.form-lead-text h2 {
  font-size: clamp(1.8rem, 3.2vw, 3rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 24px;
}
.form-lead-text h2 strong { font-weight: 700; }
.form-lead-text p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.42);
  line-height: 1.65;
  max-width: 400px;
}
.form-lead-points {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.form-lead-point {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.5;
}
.form-lead-point i {
  color: var(--copper);
  font-size: 0.7rem;
  margin-top: 3px;
  flex-shrink: 0;
}

/* Form itself */
#contact-form {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid rgba(255,255,255,0.08);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.form-row.single { grid-template-columns: 1fr; }
.form-field {
  display: flex;
  flex-direction: column;
  padding: 0;
  border-right: 1px solid rgba(255,255,255,0.06);
  position: relative;
}
.form-field:last-child { border-right: none; }
.form-field label {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  padding: 16px 18px 4px;
}
.form-field input,
.form-field select,
.form-field textarea {
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--white);
  padding: 4px 18px 16px;
  width: 100%;
  transition: background 0.2s;
  -webkit-appearance: none;
}
.form-field textarea {
  resize: none;
  min-height: 90px;
  line-height: 1.55;
}
.form-field select {
  cursor: pointer;
}
.form-field select option {
  background: #111;
  color: var(--white);
}
.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(255,255,255,0.2);
}
.form-field:focus-within {
  background: rgba(255,255,255,0.02);
}
.form-field:focus-within label {
  color: var(--copper);
}
.form-submit-row {
  padding: 24px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255,255,255,0.015);
  flex-wrap: wrap;
}
#form-submit {
  padding: 13px 28px;
  background: var(--white);
  color: var(--black);
  font-family: var(--font);
  font-size: 0.83rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}
#form-submit:hover { opacity: 0.88; }
.form-privacy {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.2);
  line-height: 1.4;
  max-width: 280px;
}
#form-success {
  display: none;
  padding: 20px 18px;
  font-size: 0.85rem;
  color: var(--copper);
  letter-spacing: 0.02em;
}

/* ── CV DOWNLOAD BUTTON (inline) ── */
.btn-cv {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 22px;
  border: 1px solid rgba(200,150,90,0.35);
  color: rgba(200,150,90,0.85);
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.btn-cv:hover {
  background: rgba(200,150,90,0.08);
  border-color: var(--copper);
  color: var(--copper);
}
.btn-cv i { font-size: 0.68rem; }

/* CTA secondary link */
.cta-secondary-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 400;
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  letter-spacing: 0.02em;
  margin-top: 4px;
  transition: color 0.2s;
}
.cta-secondary-link:hover { color: rgba(255,255,255,0.65); }
.cta-secondary-link i { font-size: 0.6rem; color: var(--copper); }

/* ══════════════════════════════════════
   RESPONSIVE — Mobile-first breakpoints
   iPhone 17 Pro/Max: 390–430px
   iPad Mini:          744px
   iPad / iPad Pro 11: 820–834px
   iPad Pro 13:        1024px
   Desktop:            1100px+
   ══════════════════════════════════════ */

/* ── 1100px — mid desktop / iPad Pro 13 ── */
@media (max-width: 1100px) {
  .platforms-container { grid-template-columns: repeat(2, 1fr); }
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
  .ind-tile:nth-child(4n) { border-right: 1px solid rgba(255,255,255,0.06); }
  .ind-tile:nth-child(2n) { border-right: none; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .why-item:nth-child(2n) { border-right: none; }
  .why-item:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,0.07); }
  .vwall { grid-template-columns: 1fr 1fr; }
  .vwall-item.featured { grid-row: span 1; }
  .nav-center { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  /* Form: reduce gap on narrower desktop */
  .form-inner { gap: 48px; }
}

/* ── 900px — iPad Pro 11" / large tablets ── */
@media (max-width: 900px) {
  /* Split layouts: stack vertically */
  .layout-split { flex-direction: column; }
  .split-text {
    flex: none;
    width: 100%;
    padding: 56px 40px 36px;
  }
  .split-visual {
    flex: none;
    width: 100%;
    min-height: 300px;
  }
  /* Section #intelligence: headline at bottom, video shows fully */
  #intelligence .split-text {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 32px 40px 48px;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
    justify-content: flex-end;
  }
  #intelligence .snap-content { position: relative; flex-direction: row; }
  /* Experience: stack */
  #experience .snap-content { flex-direction: column; background: #040404; }
  #experience .split-visual {
    border-left: none !important;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 40px 40px 56px !important;
  }
  /* Form section */
  .form-inner { grid-template-columns: 1fr; gap: 40px; padding: 64px 40px; }
  /* Docs */
  .docs-inner { padding: 56px 40px; }
}

/* ── 768px — iPad Mini / large phones landscape ── */
@media (max-width: 768px) {
  /* Nav */
  #nav { padding: 0 20px; }
  .nav-cta { display: none; }
  .nav-burger { display: flex; }

  /* Layout */
  .layout-center { padding: 0 20px 52px; }
  .layout-center.middle { padding: 80px 20px 40px; }
  .layout-center.bottom-center { padding: 0 20px 52px; }
  .split-text { padding: 48px 20px 32px; }

  /* Typography */
  .headline-xl { font-size: clamp(1.9rem, 7.5vw, 3rem); }
  .headline-lg { font-size: clamp(1.5rem, 5.5vw, 2.2rem); }

  /* Grids */
  .platforms-container { grid-template-columns: 1fr; }
  .industries-grid { grid-template-columns: 1fr 1fr; }
  .ind-tile.span2 { grid-column: span 1; }
  .why-grid { grid-template-columns: 1fr 1fr; }

  /* Video wall */
  .vwall {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    height: auto;
    min-height: 0;
  }
  .vwall-item { aspect-ratio: 16/9; height: 240px; max-height: 260px; }
  .vwall-item.portrait { aspect-ratio: 16/9; }
  .vwall-item.portrait iframe { width: 177.78%; min-width: 177.78%; transform: translate(-50%,-50%); }

  /* Footer */
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-inner { padding: 48px 20px 32px; }
  .clients-strip { flex-wrap: wrap; }

  /* Metrics */
  .metrics-bar .snap-content { flex-wrap: wrap; }
  .metric { min-width: 50%; border-bottom: 1px solid rgba(255,255,255,0.06); }

  /* Form */
  .form-inner { grid-template-columns: 1fr; gap: 36px; padding: 52px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .form-field { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .form-field:last-child { border-bottom: none; }
  .form-submit-row { flex-direction: column; align-items: stretch; }
  #form-submit { text-align: center; justify-content: center; }
  .form-privacy { max-width: 100%; }

  /* Docs */
  .docs-inner { padding: 48px 20px; }
  .docs-grid { gap: 8px; }
  .doc-btn { padding: 12px 16px; font-size: 0.75rem; white-space: normal; }

  /* CTA */
  .cta-inner { padding: 64px 20px; }
}

/* ── 480px — iPhone 17 Pro/Max / all modern phones ── */
@media (max-width: 480px) {
  /* Nav */
  #nav { padding: 0 16px; height: 56px; }

  /* Hero content: push up slightly on small screens */
  .layout-center { padding: 0 16px 48px; }
  .layout-center.middle { padding: 72px 16px 32px; }
  .layout-center.bottom-center { padding: 0 16px 48px; }
  .split-text { padding: 40px 16px 28px; }

  /* Typography — fluid on narrow */
  .headline-xl { font-size: clamp(1.75rem, 9vw, 2.6rem); letter-spacing: -0.02em; }
  .headline-lg  { font-size: clamp(1.4rem, 7vw, 2rem);   letter-spacing: -0.015em; }
  .body-text    { font-size: 0.9rem; }
  .label        { font-size: 0.68rem; }

  /* Platforms: single column, tighter padding */
  .pcard { padding: 32px 20px; gap: 14px; }
  .pcard-name { font-size: 1rem; }
  .pcard-specs { gap: 5px; }
  .pcard-actions { gap: 12px; }

  /* Industries: single column */
  .industries-grid { grid-template-columns: 1fr; }
  .ind-tile { padding: 28px 20px; }
  .ind-tile.span2 { grid-column: span 1; }
  /* Reset border overrides for single column */
  .ind-tile { border-right: none !important; }
  .ind-tile:nth-child(n) { border-right: none !important; }

  /* Why: single column */
  .why-grid { grid-template-columns: 1fr; }
  .why-item { border-right: none !important; border-bottom: 1px solid rgba(255,255,255,0.07); padding: 28px 20px; }
  .why-item:last-child { border-bottom: none; }

  /* Metrics: 2 per row, smaller */
  .metric { min-width: 50%; padding: 0 12px; }
  .metric-val { font-size: clamp(1.6rem, 6vw, 2.2rem); }
  .metric-label { font-size: 0.6rem; max-width: 90px; }

  /* Intel steps (cost section) */
  .intel-step { grid-template-columns: 36px 1fr; gap: 12px; padding: 16px 0; }

  /* Buttons: full width */
  .cta-row { flex-direction: column; align-items: stretch; gap: 10px; }
  .btn-white, .btn-ghost, .btn-copper { justify-content: center; padding: 14px 20px; font-size: 0.88rem; }
  .pcard-btn { font-size: 0.78rem; }
  .pcard-download { font-size: 0.72rem; }
  .btn-cv { white-space: normal; justify-content: center; text-align: center; width: 100%; }

  /* Experience section */
  #experience .split-visual { padding: 32px 16px 48px !important; }
  #experience .split-text { padding: 40px 16px 28px !important; }
  #experience .split-visual > div:first-child { grid-template-columns: 1fr 1fr; }

  /* CTA final */
  .cta-inner { padding: 56px 16px; }
  .cta-glow { width: 300px; height: 200px; }
  .contact-row { gap: 16px; flex-direction: column; padding-top: 28px; margin-top: 28px; }
  .contact-item { font-size: 0.8rem; justify-content: center; }

  /* Footer */
  .footer-top { grid-template-columns: 1fr; gap: 32px; padding-bottom: 32px; }
  .footer-inner { padding: 40px 16px 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }

  /* Docs */
  .docs-inner { padding: 40px 16px; }
  .doc-btn { width: 100%; justify-content: flex-start; }

  /* Form */
  .form-inner { padding: 40px 16px; gap: 32px; }
  .form-field label { font-size: 0.56rem; padding: 14px 14px 4px; }
  .form-field input,
  .form-field select,
  .form-field textarea { font-size: 0.9rem; padding: 4px 14px 14px; }
  .form-submit-row { padding: 20px 14px; }
  #form-submit { padding: 15px 20px; font-size: 0.85rem; }

  /* Mobile nav links: larger tap targets */
  #mobile-nav a { font-size: 1.4rem; }
  #mobile-nav { gap: 32px; }

  /* Video wall: 16:9 on mobile, comfortable height */
  .vwall-item { height: 200px; max-height: 200px; aspect-ratio: 16/9; }

  /* Scroll hint: hide on very small */
  .scroll-hint { display: none; }
}

/* ── 390px — iPhone SE / smallest modern phones ── */
@media (max-width: 390px) {
  .headline-xl { font-size: clamp(1.55rem, 9.5vw, 2rem); }
  .headline-lg  { font-size: clamp(1.3rem, 8vw, 1.7rem); }
  .pcard { padding: 28px 16px; }
  .metric { min-width: 100%; border-right: none; }
}

/* ── Touch device optimizations ── */
@media (hover: none) and (pointer: coarse) {
  /* Tap targets: minimum 44px */
  .pcard-btn, .pcard-download { padding-bottom: 6px; min-height: 44px; display: inline-flex; align-items: center; }
  .btn-white, .btn-ghost, .btn-copper, .btn-cv { min-height: 48px; }
  .vwall-play { width: 56px; height: 56px; }
  .nav-burger { padding: 8px; }
  .social-link { width: 44px; height: 44px; }
  /* Remove hover effects that don't translate to touch */
  .pcard:hover { background: transparent; }
  .pcard:hover::before { transform: scaleX(0); }
  .ind-tile:hover { background: transparent; }
  .why-item:hover { background: transparent; }
  /* Show copper line always on touch for pcard */
  .pcard::before { transform: scaleX(1); opacity: 0.4; }
}
