/* =====================================================
   DUNLEVON � CORPORATE WEBSITE
   Design System: Montserrat headings � Open Sans body
   Palette: Deep Charcoal #121212 ? Off-White #F4F7F6
   Accent: Kinetic Teal #00D1C1
   ===================================================== */

/* ===== TOKENS ===== */
:root {
  /* Backgrounds */
  --dark:           #121212;
  --dark-surface:   #1A1A1A;
  --dark-elevated:  #222222;
  --light:          #F4F7F6;
  --light-surface:  #FFFFFF;

  /* Accent */
  --teal:           #970747;   /* dark pink — primary accent  */
  --accent-red:     #E7473C;   /* bright red  — highlight/CTA */
  --teal-dim:       rgba(151, 7, 71, 0.09);
  --teal-mid:       rgba(151, 7, 71, 0.18);
  --teal-glow:      rgba(151, 7, 71, 0.22);

  /* Text */
  --text-dark:      #2D3136;   /* on light sections */
  --text-dark-sub:  #4D5562;   /* secondary on light */
  --text-light:     #FFFFFF;   /* primary on dark sections  */
  --text-light-sub: #F0F0F0;   /* secondary on dark sections */
  --text-muted:     #ADADAD;

  /* Borders */
  --border-light:   rgba(0, 0, 0, 0.07);
  --border-dark:    rgba(255, 255, 255, 0.08);
  --border-teal:    rgba(151, 7, 71, 0.28);

  /* Shadows */
  --shadow-sm:      0 2px 10px rgba(0, 0, 0, 0.06);
  --shadow-card:    0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-hover:   0 12px 40px rgba(0, 0, 0, 0.13);
  --shadow-teal:    0 4px 24px rgba(151, 7, 71, 0.16);

  /* Radius */
  --r-sm:   4px;
  --r-md:   10px;
  --r-lg:   16px;
  --r-pill: 100px;
}

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

html {
  scroll-behavior:   smooth;
  scroll-padding-top: 72px;
  font-size:         16px;
}

body {
  background:               var(--dark);
  color:                    var(--text-light);
  font-family:              'Open Sans', system-ui, sans-serif;
  line-height:              1.65;
  overflow-x:               hidden;
  -webkit-font-smoothing:   antialiased;
  -moz-osx-font-smoothing:  grayscale;
}

::selection { background: var(--teal-dim); color: var(--teal); }
a           { color: inherit; text-decoration: none; }
img, video  { display: block; max-width: 100%; }

::-webkit-scrollbar            { width: 5px; }
::-webkit-scrollbar-track      { background: var(--dark); }
::-webkit-scrollbar-thumb      { background: var(--dark-elevated); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover{ background: var(--teal); }

/* ===== LAYOUT ===== */
.container {
  max-width: 1200px;
  margin:    0 auto;
  padding:   0 32px;
}

/* ===== SECTION SKINS ===== */
.section-light {
  background: var(--light);
  color:      var(--text-dark);
}
.section-dark {
  background: var(--dark);
  color:      var(--text-light);
}

/* ===== SCROLL ANIMATION ===== */
.fade-up {
  opacity:    0;
  transform:  translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity:   1;
  transform: translateY(0);
}
.fade-up:nth-child(2) { transition-delay: 0.10s; }
.fade-up:nth-child(3) { transition-delay: 0.20s; }
.fade-up:nth-child(4) { transition-delay: 0.30s; }

/* ===== SECTION HEADERS ===== */
.section-header {
  text-align:    center;
  margin-bottom: 64px;
}

.section-tag,
.section-tag-dark {
  display:       inline-block;
  padding:       4px 16px;
  margin-bottom: 14px;
  background:    var(--teal-dim);
  border:        1px solid var(--border-teal);
  border-radius: var(--r-pill);
  font-family:   'Open Sans', sans-serif;
  font-size:     0.70rem;
  font-weight:   700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color:         var(--teal);
}

/* Match Product Suite tag size to Technology & Expertise eyebrow */
#products .section-tag {
  font-size:      0.95rem;
  font-weight:    800;
  letter-spacing: 0.16em;
  color:          #ffffff;
  background:     rgba(94, 232, 216, 0.20);
  border-color:   rgba(94, 232, 216, 0.70);
  text-shadow:    0 1px 6px rgba(0, 0, 0, 0.40);
}

/* Products section header — white text over dark overlay */
#products .section-title    { color: #FFFFFF; }
#products .section-subtitle { color: rgba(255, 255, 255, 0.75); }

/* Per-card title colours */
#lm-title { color: #5ee8d8; }   /* Lane-Master          → teal */
#dc-title { color: #5ee8d8; }   /* Adaptive Speed       → teal */
#sa-title { color: #5ee8d8; }   /* Emergency Brake      → teal */
#si-title { color: #5ee8d8; }   /* Scene Understanding  → teal */

.section-title {
  font-family:    'Montserrat', sans-serif;
  font-size:      clamp(1.55rem, 3.2vw, 2.2rem);
  font-weight:    800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height:    1.15;
  color:          #970747;
  margin-bottom:  14px;
}

.section-subtitle {
  font-size:   1rem;
  color:       var(--text-dark-sub);
  max-width:   580px;
  margin:      0 auto;
  line-height: 1.75;
}

/* ===== BUTTONS ===== */
.btn {
  display:        inline-flex;
  align-items:    center;
  gap:            9px;
  padding:        13px 30px;
  border-radius:  var(--r-sm);
  font-family:    'Montserrat', sans-serif;
  font-size:      0.8rem;
  font-weight:    700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition:     all 0.22s ease;
  cursor:         pointer;
  border:         none;
  white-space:    nowrap;
}

.btn-primary {
  background:  var(--teal);
  color:       #FFFFFF;
  box-shadow:  0 2px 14px rgba(151, 7, 71, 0.30);
}
.btn-primary:hover {
  background:  #7A063E;
  box-shadow:  0 4px 22px rgba(151, 7, 71, 0.40);
  transform:   translateY(-1px);
}

.btn-outline {
  background: transparent;
  color:      #2D3136;
  border:     1.5px solid rgba(45, 49, 54, 0.28);
}
.btn-outline:hover {
  border-color: var(--teal);
  color:        var(--teal);
  background:   rgba(151, 7, 71, 0.06);
}

.btn-full {
  width:           100%;
  justify-content: center;
  margin-top:      8px;
}

/* ===== NAVBAR ===== */
#navbar {
  position:                fixed;
  top: 0; left: 0; right: 0;
  z-index:                 1000;
  height:                  72px;
  display:                 flex;
  align-items:             center;
  background:              rgba(245, 245, 245, 0.96);
  backdrop-filter:         blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:              0 1px 0 rgba(0, 0, 0, 0.07);
  transition:              background 0.35s ease, box-shadow 0.35s ease;
}

#navbar.scrolled {
  background:              rgba(18, 18, 18, 0.94);
  backdrop-filter:         blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:              0 1px 0 rgba(255, 255, 255, 0.06);
}

.nav-inner {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  width:           100%;
}

.nav-logo {
  display:     flex;
  align-items: center;
  gap:         10px;
}

.nav-logo-img {
  height:      42px;
  width:       auto;
  display:     block;
  object-fit:  contain;
  border-radius: 6px;
}

/* Navigation links with teal underline hover */
.nav-links {
  display:     flex;
  align-items: center;
  gap:         2px;
  list-style:  none;
}

.nav-links a {
  display:        block;
  padding:        8px 15px;
  font-family:    'Open Sans', sans-serif;
  font-size:      0.875rem;
  font-weight:    600;
  color:          rgba(30, 30, 30, 0.72);
  position:       relative;
  transition:     color 0.2s ease;
}
#navbar.scrolled .nav-links a { color: rgba(255, 255, 255, 0.68); }

/* Teal underline � the Alternative Embedded signature hover */
.nav-links a::after {
  content:          '';
  position:         absolute;
  bottom:           2px;
  left:             15px;
  right:            15px;
  height:           2px;
  background:       var(--teal);
  border-radius:    2px;
  transform:        scaleX(0);
  transform-origin: left center;
  transition:       transform 0.25s ease;
}

.nav-links a:hover           { color: #1A1A1A; }
.nav-links a:hover::after    { transform: scaleX(1); }
.nav-links a.active          { color: #1A1A1A; }
.nav-links a.active::after   { transform: scaleX(1); }
#navbar.scrolled .nav-links a:hover  { color: #fff; }
#navbar.scrolled .nav-links a.active { color: #fff; }

.nav-toggle {
  display:    none;
  background: none;
  border:     none;
  padding:    8px;
  color:      #1A1A1A;
  cursor:     pointer;
  transition: color 0.35s ease;
}
#navbar.scrolled .nav-toggle { color: #FFFFFF; }

/* ===== HERO ===== */
#hero {
  position:        relative;
  min-height:      100vh;
  display:         flex;
  flex-direction:  column;
  justify-content: space-between;
  background:      url('images/car_bck_3.jpg') center center / cover no-repeat;
  overflow:        visible;
}

/* Gradient overlay: faint light at top so dark headline reads, darkens at bottom for glass box contrast */
#hero::before {
  content:        '';
  position:       absolute;
  inset:          0;
  background:     linear-gradient(
    to bottom,
    rgba(245, 245, 247, 0.28) 0%,
    rgba(245, 245, 247, 0.04) 25%,
    transparent              48%,
    rgba(8, 10, 16, 0.68)   100%
  );
  pointer-events: none;
  z-index:        1;
}

#hero::after { content: none; }

/* ── Center-Top Headline ── */
.hero-headline-wrap {
  position:   relative;
  z-index:    2;
  text-align: center;
  padding:    130px 32px 0;
  animation:  anim-fade-up 0.8s ease 0.18s both;
}

.hero-title {
  font-family:    'Montserrat', sans-serif;
  font-size:      clamp(2.2rem, 5vw, 4.6rem);
  font-weight:    900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height:    1.08;
  color:          #1A1C1E;
  text-shadow:
    0 1px 18px rgba(245, 245, 247, 0.92),
    0 2px  6px rgba(245, 245, 247, 0.85);
}

.hero-accent {
  color:   #E7473C;
  display: block;
}

/* ── Lower Area (theory box aligned to bottom-right via flex) ── */
.hero-lower {
  position:        relative;
  z-index:         2;
  width:           100%;
  padding:         0 48px 64px;
  display:         flex;
  justify-content: flex-end;
}

.hero-lower .container {
  display:   block;
  max-width: none;
  padding:   0;
  margin:    0;
}

/* ── Theory Floating Box ── */
.hero-theory-box {
  max-width:               510px;
  width:                   510px;
  margin-right:            0;
  padding:                 36px 40px;
  background:              rgba(245, 245, 247, 0.68);
  backdrop-filter:         blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border:                  2px solid #970747;
  border-radius:           18px;
  box-shadow:
    0 0 0 1px rgba(151, 7, 71, 0.10),
    0 0 28px rgba(151, 7, 71, 0.22),
    0 0 60px rgba(151, 7, 71, 0.12),
    0 20px 52px rgba(0, 0, 0, 0.28);
  animation:
    hero-box-glow 3.2s ease-in-out infinite alternate,
    anim-fade-up  0.9s ease 0.42s both;
}

@keyframes hero-box-glow {
  from {
    box-shadow:
      0 0 0 1px rgba(151, 7, 71, 0.08),
      0 0 20px rgba(151, 7, 71, 0.15),
      0 0 44px rgba(151, 7, 71, 0.08),
      0 20px 52px rgba(0, 0, 0, 0.24);
    border-color: rgba(151, 7, 71, 0.55);
  }
  to {
    box-shadow:
      0 0 0 1px rgba(151, 7, 71, 0.18),
      0 0 38px rgba(151, 7, 71, 0.30),
      0 0 72px rgba(151, 7, 71, 0.16),
      0 20px 52px rgba(0, 0, 0, 0.28);
    border-color: #970747;
  }
}

.hero-eyebrow {
  display:        inline-block;
  padding:        4px 16px;
  margin-bottom:  14px;
  background:     rgba(151, 7, 71, 0.08);
  border:         1px solid rgba(151, 7, 71, 0.28);
  border-radius:  var(--r-pill);
  font-family:    'Open Sans', sans-serif;
  font-size:      0.70rem;
  font-weight:    700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color:          #970747;
}

.hero-theory-title {
  font-family:    'Montserrat', sans-serif;
  font-size:      1.16rem;
  font-weight:    900;
  text-transform: none;
  letter-spacing: 0.01em;
  line-height:    1.28;
  color:          #121417;
  margin-bottom:  14px;
}

.hero-intro {
  font-family:   'Open Sans', sans-serif;
  font-size:     0.90rem;
  color:         #2D3136;
  line-height:   1.82;
  text-align:    justify;
  margin-bottom: 18px;
}

.hero-intro--physical-ai {
  border-left:   3px solid #0a7abf;
  padding-left:  14px;
  background:    rgba(10, 122, 191, 0.05);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}

.hero-tagline {
  display:       block;
  font-family:   'Montserrat', sans-serif;
  font-size:     0.84rem;
  font-weight:   700;
  font-style:    italic;
  color:         #970747;
  padding:       11px 16px;
  border-left:   3px solid #970747;
  background:    rgba(151, 7, 71, 0.06);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  line-height:   1.55;
  margin-bottom: 26px;
}

.hero-actions {
  display:   flex;
  gap:       14px;
  flex-wrap: wrap;
}

@keyframes anim-fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== PRODUCTS ===== */
#products {
  padding:             72px 0 80px;
  box-sizing:          border-box;
  background-image:    url('images/Page3.gif');
  background-size:     cover;
  background-position: center;
  background-repeat:   no-repeat;
  position:            relative;
}

#products::before {
  content:        '';
  position:       absolute;
  inset:          0;
  background:     rgba(8, 10, 18, 0.52);
  pointer-events: none;
  z-index:        0;
}

#products .container {
  position: relative;
  z-index:  1;
}

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

.product-card {
  background:              rgba(255, 255, 255, 0.08);
  backdrop-filter:         blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius:           var(--r-md);
  border:                  1.5px solid rgba(94, 232, 216, 0.55);
  box-shadow:              0 8px 32px rgba(0, 0, 0, 0.30), 0 0 0 1px rgba(94, 232, 216, 0.10);
  transition:              transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  display:                 flex;
  flex-direction:          column;
  cursor:                  default;
}

.product-card:hover {
  box-shadow:   0 12px 40px rgba(0, 0, 0, 0.40), 0 0 18px rgba(94, 232, 216, 0.25);
  border-color: rgba(94, 232, 216, 0.90);
  transform:    translateY(-3px);
}

.product-card-inner {
  display:         flex;
  flex-direction:  column;
  align-items:     flex-start;
  justify-content: flex-start;
  height:          100%;
  padding:         26px 28px 22px;
  gap:             0;
  text-align:      justify;
}

.product-card-icon {
  width:           52px;
  height:          52px;
  border-radius:   8px;
  background:      rgba(151, 7, 71, 0.10);
  border:          1px solid rgba(151, 7, 71, 0.25);
  display:         flex;
  align-items:     center;
  justify-content: center;
  margin-bottom:   22px;
  transition:      background 0.28s ease, border-color 0.28s ease;
}

.product-card-icon svg {
  width:      22px;
  height:     22px;
  color:      #970747;
  transition: color 0.28s ease;
}

.product-card:hover .product-card-icon {
  background:   rgba(151, 7, 71, 0.18);
  border-color: rgba(151, 7, 71, 0.55);
}
.product-card:hover .product-card-icon svg { color: #970747; }

.product-card-title {
  font-family:    'Montserrat', sans-serif;
  font-size:      0.90rem;
  font-weight:    800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color:          #5ee8d8;
  margin-bottom:  10px;
  text-align:     left;
  align-self:     stretch;
}

.product-card-sub {
  font-size:      0.76rem;
  font-weight:    600;
  letter-spacing: 0.04em;
  color:          rgba(255, 255, 255, 0.55);
  margin-bottom:  10px;
  line-height:    1.4;
  text-align:     left;
}

.product-card-body {
  font-family:   'Open Sans', sans-serif;
  font-size:     0.91rem;
  color:         rgba(255, 255, 255, 0.82);
  line-height:   1.72;
  margin-bottom: 14px;
  flex:          1;
}

/* ===== TECHNOLOGY SECTION ===== */
#technology {
  padding:             72px 0 80px;
  background-image:    url('images/page2.jpg');
  background-size:     cover;
  background-position: center;
  background-repeat:   no-repeat;
  box-sizing:          border-box;
  position:            relative;
}

#technology::before {
  content:        '';
  position:       absolute;
  inset:          0;
  background:     rgba(8, 10, 18, 0.58);
  pointer-events: none;
  z-index:        0;
}

#technology .container { position: relative; z-index: 1; width: 100%; }

/* Section header */
.tech-header {
  margin-bottom: 24px;
}

.tech-eyebrow {
  display:        inline-block;
  padding:        4px 16px;
  margin-bottom:  14px;
  background:     rgba(0, 139, 170, 0.10);
  border:         1px solid rgba(0, 139, 170, 0.35);
  border-radius:  var(--r-pill);
  font-family:    'Open Sans', sans-serif;
  font-size:      0.95rem;
  font-weight:    700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color:          #5ee8d8;
}

.tech-main-title {
  font-family:    'Montserrat', sans-serif;
  font-size:      clamp(1.0rem, 1.8vw, 1.4rem);
  font-weight:    700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height:    1.08;
  color:          #FFFFFF;
}

/* Asymmetric grid: cards 45% | video 55% */
.tech-split {
  display:               grid;
  grid-template-columns: 45% 1fr;
  gap:                   48px;
  align-items:           stretch;
}

/* ── 3-column card grid (full width) ── */
.tech-card-grid {
  display:               grid;
  grid-template-columns: repeat(3, 1fr);
  gap:                   18px;
  margin-bottom:         24px;
}

/* ── Video wrap below cards ── */
.tech-video-wrap {
  width: 100%;
}

.tech-video-wrap .tech-video-frame {
  aspect-ratio: 16 / 5;
  min-height:   0;
  height:       auto;
}

/* ── Left: stacked cards ── */
.tech-cards {
  display:        flex;
  flex-direction: column;
  gap:            20px;
}

.tech-card {
  background:              rgba(255, 255, 255, 0.08);
  backdrop-filter:         blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border:                  1.5px solid rgba(94, 232, 216, 0.55);
  border-radius:           var(--r-md);
  box-shadow:              0 8px 32px rgba(0, 0, 0, 0.30), 0 0 0 1px rgba(94, 232, 216, 0.10);
  transition:              box-shadow 0.28s ease, transform 0.28s ease, border-color 0.28s ease;
  display:                 flex;
  flex-direction:          column;
}

.tech-card:hover {
  box-shadow:   0 12px 40px rgba(0, 0, 0, 0.40), 0 0 18px rgba(94, 232, 216, 0.25);
  border-color: rgba(94, 232, 216, 0.90);
  transform:    translateY(-3px);
}

.tech-card-inner {
  display:         flex;
  flex-direction:  column;
  align-items:     flex-start;
  justify-content: flex-start;
  height:          100%;
  padding:         26px 28px 22px;
  gap:             0;
  text-align:      justify;
}

.tech-card-text { flex: 1; }

.tech-card-heading {
  font-family:    'Montserrat', sans-serif;
  font-size:      0.90rem;
  font-weight:    800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color:          #5ee8d8;
  margin-bottom:  10px;
  text-align:     left;
  align-self:     stretch;
}

.tech-card-body {
  font-family:   'Open Sans', sans-serif;
  font-size:     0.91rem;
  color:         rgba(255, 255, 255, 0.82);
  line-height:   1.72;
  margin-bottom: 14px;
}

.tech-card-icon {
  flex-shrink:     0;
  width:           32px;
  height:          32px;
  border-radius:   8px;
  display:         flex;
  align-items:     center;
  justify-content: center;
  margin-bottom:   12px;
}

.tech-card-icon--pink {
  background: rgba(151, 7, 71, 0.10);
  border:     1px solid rgba(151, 7, 71, 0.25);
  color:      #970747;
}

.tech-card-icon--teal {
  background: rgba(0, 122, 153, 0.10);
  border:     1px solid rgba(0, 122, 153, 0.30);
  color:      #007A99;
}

.tech-metric {
  display:       inline-flex;
  align-items:   baseline;
  gap:           7px;
  padding:       5px 11px;
  background:    rgba(94, 232, 216, 0.10);
  border:        1px solid rgba(94, 232, 216, 0.40);
  border-radius: var(--r-sm);
  margin-top:    auto;
}

.tech-metric-val {
  font-family: 'Montserrat', sans-serif;
  font-size:   0.88rem;
  font-weight: 800;
  color:       #5ee8d8;
}

.tech-metric-label {
  font-size:      0.62rem;
  font-weight:    600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color:          rgba(255, 255, 255, 0.80);
}

.tech-metric-label--sentence {
  text-transform: none;
  letter-spacing: 0.02em;
}

/* ── Right: dominant video window ── */
.tech-right {
  position:   relative;
  align-self: stretch;
}

.tech-video-frame {
  position:        relative;
  width:           100%;
  height:          auto;
  min-height:      0;
  border-radius:   var(--r-md);
  background:      #060d1a;
  border:          2px solid #970747;
  overflow:        hidden;
  display:         flex;
  align-items:     center;
  justify-content: center;
  box-shadow:
    0 0 48px rgba(151, 7, 71, 0.22),
    0 0 80px rgba(151, 7, 71, 0.10),
    0 24px 60px rgba(0, 0, 0, 0.50);
}

/* Pink scanning line */
.tech-video-frame::before {
  content:    '';
  position:   absolute;
  left: 0; right: 0;
  top:        -2px;
  height:     2px;
  background: linear-gradient(90deg, transparent, #970747, transparent);
  opacity:    0.65;
  animation:  scan-line 4.5s linear infinite;
  z-index:    3;
}
@keyframes scan-line {
  0%   { top: -2px; }
  100% { top: 100%; }
}

/* Background grid inside frame */
.tech-video-frame::after {
  content:  '';
  position: absolute;
  inset:    0;
  background-image:
    linear-gradient(rgba(0, 209, 193, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 209, 193, 0.04) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events:  none;
  z-index:         1;
}

/* Corner brackets — pink */
.video-corner {
  position:     absolute;
  width:        18px;
  height:       18px;
  border-color: #970747;
  border-style: solid;
  opacity:      0.90;
  z-index:      4;
}
.video-corner-tl { top: 10px;    left: 10px;   border-width: 2px 0 0 2px; border-radius: 3px 0 0 0; }
.video-corner-tr { top: 10px;    right: 10px;  border-width: 2px 2px 0 0; border-radius: 0 3px 0 0; }
.video-corner-bl { bottom: 10px; left: 10px;   border-width: 0 0 2px 2px; border-radius: 0 0 0 3px; }
.video-corner-br { bottom: 10px; right: 10px;  border-width: 0 2px 2px 0; border-radius: 0 0 3px 0; }

/* Data coordinate overlays */
.vid-coord {
  position:       absolute;
  font-family:    'Open Sans', monospace;
  font-size:      0.60rem;
  font-weight:    600;
  letter-spacing: 0.08em;
  color:          rgba(0, 209, 193, 0.65);
  z-index:        4;
  line-height:    1;
}
/* text with small gap after the inner edge of each L-bracket */
.vid-coord-tl { top: 18px;    left: 18px; }
.vid-coord-tr { top: 18px;    right: 18px; text-align: right; }
.vid-coord-bl { bottom: 18px; left: 18px; }
.vid-coord-br { bottom: 18px; right: 18px; text-align: right; }

.video-inner {
  display:        flex;
  flex-direction: column;
  align-items:    center;
  gap:            16px;
  z-index:        2;
  transition:     opacity 0.3s ease;
}

/* Actual video element inside tech frame */
.tech-video {
  position:   absolute;
  inset:      0;
  width:      100%;
  height:     100%;
  object-fit: cover;
  z-index:    1;
}

/* ── Tech video timeline ── */
.vid-timeline {
  position:   absolute;
  bottom:     0;
  left:       0;
  right:      0;
  z-index:    5;
  display:    flex;
  align-items: center;
  gap:        8px;
  padding:    8px 14px 10px;
  background: linear-gradient(transparent, rgba(5, 10, 20, 0.72));
  opacity:    0;
  transition: opacity 0.25s ease;
}
.tech-video-frame:hover .vid-timeline,
.tech-video-frame:focus-within .vid-timeline { opacity: 1; }

.vid-timeline-track {
  flex:            1;
  height:          4px;
  background:      rgba(255,255,255,0.22);
  border-radius:   2px;
  position:        relative;
  pointer-events:  none;
}
.vid-timeline-fill {
  height:       100%;
  width:        0%;
  background:   #00D1C1;
  border-radius: 2px;
  transition:   width 0.1s linear;
}
.vid-timeline-range {
  position:   absolute;
  inset:      0;
  width:      100%;
  height:     100%;
  opacity:    0;
  cursor:     pointer;
  margin:     0;
  padding:    0;
}
.vid-timeline-time {
  font-family:    'Open Sans', monospace;
  font-size:      0.58rem;
  font-weight:    600;
  letter-spacing: 0.06em;
  color:          rgba(0,209,193,0.85);
  white-space:    nowrap;
  min-width:      32px;
  text-align:     right;
}

.video-play-btn {
  width:           80px;
  height:          80px;
  border-radius:   50%;
  background:      rgba(151, 7, 71, 0.14);
  border:          2px solid rgba(151, 7, 71, 0.55);
  display:         flex;
  align-items:     center;
  justify-content: center;
  cursor:          pointer;
  color:           #F5F5F7;
  transition:      all 0.25s ease;
}
.video-play-btn:hover {
  background:   rgba(151, 7, 71, 0.26);
  border-color: #970747;
  box-shadow:   0 0 32px rgba(151, 7, 71, 0.40);
  transform:    scale(1.07);
}

.video-caption {
  font-family:    'Open Sans', sans-serif;
  font-size:      clamp(0.50rem, 1.2vw, 0.72rem);
  font-weight:    700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color:          rgba(0, 209, 193, 0.70);
  text-align:     center;
  max-width:      80%;
}

/* Hide controls overlay while tech video is playing; click video to reveal */
.tech-video-frame.is-playing .video-inner {
  opacity:        0;
  pointer-events: none;
}
.tech-video-frame.is-playing {
  cursor: pointer;
}

/* ===== OUR STORY TIMELINE ===== */
#our-story {
  padding:             72px 0 80px;
  background-image:    url('images/ContactUs.jpg');
  background-size:     cover;
  background-position: center;
  background-repeat:   no-repeat;
  box-sizing:          border-box;
  position:            relative;
}

#our-story::before {
  content:        '';
  position:       absolute;
  inset:          0;
  background:     rgba(8, 10, 18, 0.58);
  pointer-events: none;
  z-index:        0;
}

#our-story .container { position: relative; z-index: 1; }

/* Match Our Story tag to tech eyebrow */
#our-story .section-tag {
  font-size:    0.95rem;
  letter-spacing: 0.16em;
  color:        #ffffff;
  background:   rgba(94, 232, 216, 0.20);
  border-color: rgba(94, 232, 216, 0.70);
  font-weight:  800;
  text-shadow:  0 1px 6px rgba(0, 0, 0, 0.40);
}

/* Match Our Story section title to tech main title style */
#our-story .section-title {
  color: #FFFFFF;
}

#our-story .section-subtitle {
  color: rgba(255, 255, 255, 0.75);
}

.timeline {
  position:  relative;
  max-width: 780px;
  margin:    0 auto;
}

.timeline-line {
  position:   absolute;
  left:       23px;
  top:        24px;
  bottom:     0;
  width:      2px;
  background: linear-gradient(180deg, rgba(94, 232, 216, 0.80) 0%, rgba(94, 232, 216, 0.08) 100%);
}

.timeline-item {
  display:     flex;
  gap:         28px;
  margin-bottom: 40px;
  align-items: flex-start;
}
.timeline-item:last-child { margin-bottom: 0; }

.timeline-node {
  width:           48px;
  height:          48px;
  border-radius:   50%;
  background:      rgba(255, 255, 255, 0.08);
  border:          2px solid rgba(94, 232, 216, 0.35);
  display:         flex;
  align-items:     center;
  justify-content: center;
  flex-shrink:     0;
  z-index:         2;
  position:        relative;
  color:           rgba(94, 232, 216, 0.60);
  transition:      all 0.30s ease;
}
.timeline-node svg { width: 18px; height: 18px; }

.timeline-node.active {
  background:   rgba(94, 232, 216, 0.15);
  border-color: #5ee8d8;
  color:        #5ee8d8;
  box-shadow:   0 0 18px rgba(94, 232, 216, 0.30);
}

.timeline-card {
  flex:                    1;
  padding:                 28px 32px;
  background:              rgba(255, 255, 255, 0.08);
  backdrop-filter:         blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius:           var(--r-md);
  border:                  1.5px solid rgba(94, 232, 216, 0.55);
  box-shadow:              0 8px 32px rgba(0, 0, 0, 0.30), 0 0 0 1px rgba(94, 232, 216, 0.10);
  transition:              box-shadow 0.28s ease, border-color 0.28s ease;
}
.timeline-card:hover {
  box-shadow:   0 12px 40px rgba(0, 0, 0, 0.40), 0 0 18px rgba(94, 232, 216, 0.25);
  border-color: rgba(94, 232, 216, 0.90);
}

.timeline-era {
  display:        block;
  font-family:    'Open Sans', sans-serif;
  font-size:      0.68rem;
  font-weight:    700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color:          rgba(255, 255, 255, 0.55);
  margin-bottom:  6px;
}

.timeline-stage {
  font-family:    'Montserrat', sans-serif;
  font-size:      0.98rem;
  font-weight:    800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color:          #5ee8d8;
  margin-bottom:  10px;
}

.timeline-desc {
  font-size:   0.875rem;
  color:       rgba(255, 255, 255, 0.82);
  line-height: 1.7;
}

.timeline-badge {
  display:        inline-block;
  margin-top:     12px;
  padding:        3px 12px;
  background:     rgba(94, 232, 216, 0.12);
  border:         1px solid rgba(94, 232, 216, 0.40);
  border-radius:  var(--r-pill);
  font-family:    'Open Sans', sans-serif;
  font-size:      0.63rem;
  font-weight:    700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color:          #5ee8d8;
}

/* ===== CONTACT ===== */
#contact {
  padding:             72px 0 80px;
  box-sizing:          border-box;
  background-image:    url('images/ContactUs_2.jpg');
  background-size:     cover;
  background-position: center;
  background-repeat:   no-repeat;
  position:            relative;
}

#contact::before {
  content:        '';
  position:       absolute;
  inset:          0;
  background:     rgba(8, 10, 18, 0.60);
  pointer-events: none;
  z-index:        0;
}

#contact .container { position: relative; z-index: 1; }

/* Match Get in Touch tag to Product Suite size */
#contact .section-tag {
  font-size:      0.95rem;
  font-weight:    800;
  letter-spacing: 0.16em;
  color:          #ffffff;
  background:     rgba(94, 232, 216, 0.20);
  border-color:   rgba(94, 232, 216, 0.70);
  text-shadow:    0 1px 6px rgba(0, 0, 0, 0.40);
}

.contact-grid {
  display:               grid;
  grid-template-columns: 1fr 1fr;
  gap:                   80px;
  align-items:           start;
}

.contact-heading {
  font-family:    'Montserrat', sans-serif;
  font-size:      clamp(1.5rem, 3vw, 2.1rem);
  font-weight:    800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color:          #FFFFFF;
  margin-bottom:  28px;
  line-height:    1.15;
}

.contact-form-col,
.contact-info-col {
  display:        flex;
  flex-direction: column;
}

/* Form fields */
.form-group { margin-bottom: 20px; }

.form-label {
  display:        block;
  font-family:    'Open Sans', sans-serif;
  font-size:      0.70rem;
  font-weight:    700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color:          rgba(255, 255, 255, 0.85);
  margin-bottom:  7px;
}

.form-input,
.form-textarea {
  width:            100%;
  padding:          12px 16px;
  background:       #FFFFFF;
  border:           1px solid #D1D9E6;
  border-radius:    var(--r-sm);
  color:            var(--text-dark);
  font-family:      'Open Sans', sans-serif;
  font-size:        0.875rem;
  outline:          none;
  transition:       border-color 0.2s, box-shadow 0.2s;
}
.form-input::placeholder,
.form-textarea::placeholder      { color: #9AAABB; }
.form-input:focus,
.form-textarea:focus {
  border-color: var(--teal);
  box-shadow:   0 0 0 3px rgba(151, 7, 71, 0.08);
}
.form-textarea { resize: vertical; min-height: 120px; }

/* Contact Info column */
.contact-info-title {
  font-family:    'Montserrat', sans-serif;
  font-size:      1.15rem;
  font-weight:    800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color:          #5ee8d8;
  margin-bottom:  14px;
  margin-top:     48px;
}

.contact-info-body {
  font-size:     0.9rem;
  color:         rgba(255, 255, 255, 0.80);
  line-height:   1.80;
  margin-bottom: 32px;
}

.contact-detail {
  display:                 flex;
  align-items:             flex-start;
  gap:                     16px;
  padding:                 16px;
  border-radius:           var(--r-sm);
  border:                  1px solid rgba(94, 232, 216, 0.40);
  background:              rgba(255, 255, 255, 0.08);
  backdrop-filter:         blur(10px);
  -webkit-backdrop-filter: blur(10px);
  margin-bottom:           12px;
  transition:              border-color 0.2s, box-shadow 0.2s;
}
.contact-detail:hover {
  border-color: rgba(94, 232, 216, 0.80);
  box-shadow:   0 0 14px rgba(94, 232, 216, 0.20);
}

.contact-detail-icon {
  width:           36px;
  height:          36px;
  border-radius:   8px;
  background:      rgba(151, 7, 71, 0.09);
  display:         flex;
  align-items:     center;
  justify-content: center;
  flex-shrink:     0;
  color:           var(--teal);
}
.contact-detail-icon svg { width: 16px; height: 16px; }

.contact-detail-label {
  font-family:    'Open Sans', sans-serif;
  font-size:      0.67rem;
  font-weight:    700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color:          rgba(255, 255, 255, 0.55);
  margin-bottom:  3px;
}
.contact-detail-value {
  font-size:   0.875rem;
  font-weight: 500;
  color:       #FFFFFF;
  line-height: 1.55;
}
.contact-link               { color: #5ee8d8; }
.contact-link:hover         { text-decoration: underline; }

/* ===== FOOTER ===== */
footer {
  padding:     38px 0 26px;
  border-top:  1px solid rgba(255, 255, 255, 0.07);
  background:  var(--dark);
}

.footer-inner {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  gap:             24px;
  flex-wrap:       wrap;
}

.footer-logo {
  display:     flex;
  align-items: center;
  gap:         10px;
}

.footer-logo-img {
  height:      38px;
  width:       auto;
  display:     block;
  object-fit:  contain;
  border-radius: 6px;
}

.footer-copy {
  font-size: 0.80rem;
  color:     var(--text-muted);
}

.footer-links {
  display:    flex;
  gap:        24px;
  list-style: none;
}
.footer-links a {
  font-size:  0.80rem;
  color:      var(--text-muted);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--teal); }

/* ===== PRODUCT VIDEO CAROUSEL ===== */
.pvcarousel-wrap {
  margin-top:     60px;
  padding-bottom: 20px;
}

.pvcarousel-header {
  text-align:    center;
  margin-bottom: 36px;
}

.pvcarousel-title {
  font-family:    'Montserrat', sans-serif;
  font-size:      1.4rem;
  font-weight:    800;
  color:          #121417;
  margin:         0 0 6px;
  letter-spacing: 0.01em;
}

.pvcarousel-sub {
  font-family: 'Open Sans', sans-serif;
  font-size:   0.84rem;
  color:       #64748B;
  margin:      0;
}

.pvcarousel-stage {
  position: relative;
  height:   340px;
  overflow: hidden;
}

/* Each video card */
.pvc-item {
  position:        absolute;
  left:            50%;
  top:             0;
  width:           54%;
  aspect-ratio:    16 / 9;
  border-radius:   14px;
  overflow:        hidden;
  transform-origin: top left;
  transition:      transform 0.55s cubic-bezier(0.4, 0, 0.2, 1),
                   opacity   0.55s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:      0 8px 36px rgba(0, 0, 0, 0.26);
  background:      linear-gradient(135deg, #111827 0%, #0d1520 100%);
  cursor:          pointer;
}

/* ── 2-left  ·  centre active  ·  2-right ── */
.pvc-item[data-pos="0"] {          /* CENTER – active */
  transform:      translateX(-50%) scale(1);
  opacity:        1;
  z-index:        5;
}
.pvc-item[data-pos="1"] {          /* RIGHT near */
  transform:      translateX(-15%) translateY(11%) scale(0.78);
  opacity:        0.50;
  z-index:        4;
}
.pvc-item[data-pos="2"] {          /* LEFT near — mirror of pos=1 */
  transform:      translateX(-63%) translateY(11%) scale(0.78);
  opacity:        0.50;
  z-index:        4;
}

.pvc-video {
  width:      100%;
  height:     100%;
  object-fit: cover;
  display:    block;
}

/* ── Carousel item timeline ── */
.pvc-timeline {
  position:   absolute;
  bottom:     0;
  left:       0;
  right:      0;
  z-index:    6;
  display:    flex;
  align-items: center;
  gap:        6px;
  padding:    6px 10px 8px;
  background: linear-gradient(transparent, rgba(5,10,20,0.75));
  opacity:    0;
  transition: opacity 0.2s ease;
}
.pvc-item[data-pos="0"] .pvc-timeline { opacity: 1; }
.pvc-item[data-pos="0"]:hover .pvc-timeline { opacity: 1; }

.pvc-timeline-track {
  flex:           1;
  height:         3px;
  background:     rgba(255,255,255,0.20);
  border-radius:  2px;
  position:       relative;
  pointer-events: none;
}
.pvc-timeline-fill {
  height:        100%;
  width:         0%;
  background:    #00D1C1;
  border-radius: 2px;
  transition:    width 0.1s linear;
}
.pvc-timeline-range {
  position:  absolute;
  inset:     0;
  width:     100%;
  height:    100%;
  opacity:   0;
  cursor:    pointer;
  margin:    0;
  padding:   0;
}
.pvc-timeline-time {
  font-family:    'Open Sans', monospace;
  font-size:      0.52rem;
  font-weight:    600;
  letter-spacing: 0.05em;
  color:          rgba(0,209,193,0.85);
  white-space:    nowrap;
  min-width:      28px;
  text-align:     right;
}

.pvc-glass {
  position:                absolute;
  inset:                   0;
  display:                 flex;
  flex-direction:          column;
  align-items:             center;
  justify-content:         center;
  gap:                     14px;
  padding:                 20px;
  background:              rgba(10, 15, 30, 0.52);
  backdrop-filter:         blur(2px);
  -webkit-backdrop-filter: blur(2px);
  transition:              background 0.3s ease, backdrop-filter 0.3s ease, -webkit-backdrop-filter 0.3s ease;
}
.pvc-item[data-pos="0"]:hover .pvc-glass {
  background: rgba(10, 15, 30, 0.36);
}

.pvc-play {
  width:           58px;
  height:          58px;
  border-radius:   50%;
  border:          2px solid rgba(255, 255, 255, 0.82);
  background:      rgba(255, 255, 255, 0.12);
  color:           #fff;
  display:         flex;
  align-items:     center;
  justify-content: center;
  cursor:          pointer;
  flex-shrink:     0;
  transition:      background 0.25s ease, transform 0.25s ease, opacity 0.3s ease;
}
.pvc-item[data-pos="0"] .pvc-play:hover {
  background: rgba(151, 7, 71, 0.80);
  transform:  scale(1.10);
}

/* While a carousel video is playing: remove dark overlay so video is fully visible.
   Click the card to pause and reveal controls again. */
.pvc-item.is-playing .pvc-glass {
  background:              transparent;
  backdrop-filter:         none;
  -webkit-backdrop-filter: none;
}
.pvc-item.is-playing .pvc-play,
.pvc-item.is-playing .pvc-meta {
  opacity:        0;
  pointer-events: none;
}
.pvc-item.is-playing {
  cursor: pointer;
}

.pvc-meta {
  display:        flex;
  flex-direction: column;
  align-items:    center;
  gap:            4px;
  text-align:     center;
  transition:     opacity 0.3s ease;
}
.pvc-label {
  font-family:    'Montserrat', sans-serif;
  font-size:      0.92rem;
  font-weight:    700;
  color:          #fff;
  letter-spacing: 0.02em;
}
.pvc-sub-label {
  font-family: 'Open Sans', sans-serif;
  font-size:   0.72rem;
  color:       rgba(255, 255, 255, 0.68);
}

/* ── Controls row ── */
.pvcarousel-controls {
  display:         flex;
  align-items:     center;
  justify-content: center;
  gap:             18px;
  margin-top:      28px;
}

.pvc-nav {
  width:           40px;
  height:          40px;
  border-radius:   50%;
  border:          1.5px solid rgba(0, 0, 0, 0.16);
  background:      #fff;
  color:           #1A1C1E;
  display:         flex;
  align-items:     center;
  justify-content: center;
  cursor:          pointer;
  box-shadow:      0 2px 8px rgba(0, 0, 0, 0.10);
  transition:      background 0.22s ease, border-color 0.22s ease, color 0.22s ease, transform 0.22s ease;
}
.pvc-nav:hover {
  background:   #970747;
  border-color: #970747;
  color:        #fff;
  transform:    scale(1.08);
}

.pvc-dots {
  display:     flex;
  gap:         8px;
  align-items: center;
}
.pvc-dot {
  width:         9px;
  height:        9px;
  border-radius: 50%;
  border:        none;
  background:    #CBD5E1;
  cursor:        pointer;
  padding:       0;
  transition:    background 0.22s ease, transform 0.22s ease;
}
.pvc-dot.pvc-dot--active {
  background: #970747;
  transform:  scale(1.35);
}

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

/* ─────────────────────────────────────────────
   Desktop only (> 1100px): fill full viewport
   so the next section is never visible
───────────────────────────────────────────── */
@media (min-width: 1101px) {
  #technology,
  #products,
  #our-story,
  #contact {
    min-height: 100vh;
  }
}

/* ─────────────────────────────────────────────
   1280px  – large laptops starting to shrink
───────────────────────────────────────────── */
@media (max-width: 1280px) {
  /* PAGE 1: slightly reduce theory box */
  .hero-theory-box { max-width: 480px; width: 480px; }
}

/* ─────────────────────────────────────────────
   1100px  – tablets landscape / small laptops
───────────────────────────────────────────── */
@media (max-width: 1100px) {

  /* PAGE 1 – Hero */
  .hero-lower {
    justify-content: center;
    padding:         0 36px 52px;
  }
  .hero-theory-box {
    width:     100%;
    max-width: 580px;
  }

  /* PAGE 2 – Technology: 3 cols → 2 cols */
  #technology     { padding: 72px 0 60px; }
  .tech-card-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .tech-video-wrap .tech-video-frame { aspect-ratio: 16 / 5.5; }

  /* PAGE 3 – Products: 4 cols → 2 cols */
  #products       { padding: 72px 0 60px; }
  .product-grid   { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .section-header { margin-bottom: 40px; }

  /* PAGE 4 – Our Story */
  #our-story      { padding: 72px 0 60px; }

  /* PAGE 5 – Contact */
  #contact        { padding: 72px 0 60px; }
  .contact-grid   { gap: 52px; }
}

/* ─────────────────────────────────────────────
   900px  – tablets portrait / hamburger nav
───────────────────────────────────────────── */
@media (max-width: 900px) {

  /* Navbar: show hamburger */
  .nav-links  { display: none; }
  .nav-toggle { display: flex; align-items: center; justify-content: center; }

  /* Common */
  .container      { padding: 0 28px; }
  .section-header { margin-bottom: 40px; }
  .section-title  { font-size: clamp(1.3rem, 3.5vw, 1.9rem); }

  /* PAGE 1 – Hero */
  .hero-headline-wrap {
    padding: 108px 28px 28px;
  }
  .hero-title { font-size: clamp(2rem, 5.5vw, 3.8rem); }
  .hero-lower { padding: 0 28px 44px; }
  .hero-theory-box {
    width:     100%;
    max-width: 100%;
    padding:   28px 30px 24px;
  }

  /* PAGE 2 – Technology */
  #technology     { padding: 60px 0 48px; }
  .tech-card-grid { grid-template-columns: repeat(2, 1fr); }
  .tech-video-wrap .tech-video-frame { aspect-ratio: 16 / 6; }
  .tech-eyebrow   { font-size: 0.85rem; letter-spacing: 0.12em; }
  .tech-main-title { font-size: 1.1rem; }

  /* PAGE 3 – Products */
  #products { padding: 60px 0 50px; }

  /* PAGE 4 – Our Story */
  #our-story { padding: 60px 0 50px; }

  /* PAGE 5 – Contact: 2 cols → 1 col */
  #contact          { padding: 60px 0 50px; }
  .contact-grid     { grid-template-columns: 1fr; gap: 32px; }
  .contact-info-title { margin-top: 0; }
  .contact-heading  { font-size: 1.7rem; margin-bottom: 20px; }
}

/* ─────────────────────────────────────────────
   768px  – iPad portrait mid-range
───────────────────────────────────────────── */
@media (max-width: 768px) {

  /* PAGE 1 – Hero */
  .hero-headline-wrap { padding: 100px 24px 24px; }
  .hero-title         { font-size: clamp(1.9rem, 6vw, 3.2rem); }
  .hero-lower         { padding: 0 24px 40px; }
  .hero-theory-box    { padding: 26px 26px 22px; }
  .hero-intro         { font-size: 0.875rem; }

  /* PAGE 2 – Technology */
  .tech-card-inner { padding: 22px 20px 18px; }

  /* PAGE 3 – Products: 2 cols → 1 col */
  .product-grid { grid-template-columns: 1fr; }
  .product-card { padding: 30px 24px 26px; }

  /* PAGE 5 – Contact */
  .form-input, .form-textarea { font-size: 0.9rem; }
}

/* ─────────────────────────────────────────────
   640px  – phones (large)
───────────────────────────────────────────── */
@media (max-width: 640px) {

  /* Common */
  .container      { padding: 0 16px; }
  .section-header { margin-bottom: 32px; }
  .section-title  { font-size: 1.25rem; }
  .section-subtitle { font-size: 0.88rem; }

  /* PAGE 1 – Hero */
  #hero { background-position: 65% center; }
  .hero-headline-wrap {
    padding: 92px 16px 20px;
  }
  .hero-title { font-size: clamp(1.7rem, 8vw, 2.6rem); }
  .hero-lower { padding: 0 16px 32px; }
  .hero-theory-box {
    padding:       20px 18px 18px;
    border-radius: 14px;
  }
  .hero-eyebrow       { font-size: 0.65rem; }
  .hero-theory-title  { font-size: 0.92rem; margin-bottom: 10px; }
  .hero-intro         { font-size: 0.83rem; line-height: 1.72; margin-bottom: 14px; }
  .hero-tagline       { font-size: 0.78rem; padding: 9px 13px; margin-bottom: 18px; }
  .hero-actions       { flex-direction: column; gap: 10px; }
  .hero-actions .btn  { width: 100%; justify-content: center; padding: 13px 20px; }

  /* PAGE 2 – Technology */
  #technology         { padding: 56px 0 40px; }
  .tech-header        { margin-bottom: 12px; }
  .tech-eyebrow       { font-size: 0.75rem; padding: 3px 11px; letter-spacing: 0.10em; }
  .tech-main-title    { font-size: 0.95rem; }
  .tech-card-grid     { grid-template-columns: 1fr; gap: 8px; margin-bottom: 10px; }
  .tech-card-inner    { padding: 12px 13px 10px; }
  .tech-card-heading  { font-size: 0.78rem; margin-bottom: 5px; letter-spacing: 0.08em; }
  .tech-card-body     { font-size: 0.80rem; line-height: 1.55; margin-bottom: 7px; }
  .tech-metric        { padding: 3px 8px; }
  .tech-video-wrap    { margin-top: 8px; }
  .tech-video-wrap .tech-video-frame { aspect-ratio: 16 / 7; min-height: 0; max-height: 200px; }
  .vid-coord          { font-size: 0.44rem; letter-spacing: 0.04em; }
  .vid-coord-tl       { top: 18px;    left: 18px; }
  .vid-coord-tr       { top: 18px;    right: 18px; }
  .vid-coord-bl       { bottom: 18px; left: 18px; }
  .vid-coord-br       { bottom: 18px; right: 18px; }
  .video-inner        { gap: 8px; }
  .video-play-btn     { width: 48px; height: 48px; }
  .video-caption      { font-size: clamp(0.46rem, 1.8vw, 0.58rem); letter-spacing: 0.07em; }

  /* PAGE 3 – Products */
  #products       { padding: 56px 0 40px; }
  .product-grid   { gap: 14px; }
  .product-card   { padding: 24px 20px 22px; }
  .product-card-title { font-size: 0.92rem; }
  .product-card-body  { font-size: 0.84rem; }

  /* PAGE 5 – Contact */
  #contact          { padding: 56px 0 40px; }
  .contact-heading  { font-size: 1.4rem; }
  .contact-grid     { gap: 24px; }
  .contact-info-body { font-size: 0.84rem; }
  .form-input, .form-textarea { font-size: 0.85rem; padding: 10px 14px; }
  .form-textarea    { min-height: 90px; }

  /* Footer */
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .footer-links { flex-wrap: wrap; gap: 12px; }
  .footer-copy  { font-size: 0.74rem; }
}

/* ─────────────────────────────────────────────
   480px  – phones (small, iPhone SE etc.)
───────────────────────────────────────────── */
@media (max-width: 480px) {

  /* PAGE 1 – Hero */
  .hero-headline-wrap { padding: 84px 14px 18px; }
  .hero-title         { font-size: clamp(1.45rem, 8.5vw, 2rem); }
  .hero-lower         { padding: 0 14px 26px; }
  .hero-theory-box    { padding: 18px 15px 16px; border-radius: 12px; }
  .hero-theory-title  { font-size: 0.86rem; }
  .hero-intro         { font-size: 0.80rem; }
  .hero-tagline       { font-size: 0.74rem; padding: 8px 11px; }
  .btn                { padding: 11px 18px; font-size: 0.76rem; }

  /* PAGE 2 – Technology */
  #technology         { padding: 52px 0 36px; }
  .tech-card-inner    { padding: 10px 11px 9px; }
  .tech-card-heading  { font-size: 0.74rem; letter-spacing: 0.07em; }
  .tech-card-body     { font-size: 0.76rem; line-height: 1.52; }
  .tech-metric-label  { font-size: 0.55rem; }
  .tech-metric-val    { font-size: 0.80rem; }
  .tech-video-wrap .tech-video-frame { aspect-ratio: 16 / 7; min-height: 0; max-height: 160px; }
  .vid-coord-bl, .vid-coord-br { display: none; }
  .vid-coord          { font-size: 0.40rem; }
  .video-inner        { gap: 6px; }
  .video-play-btn     { width: 38px; height: 38px; }
  .video-caption      { font-size: clamp(0.42rem, 2vw, 0.52rem); letter-spacing: 0.06em; }

  /* PAGE 3 – Products */
  .product-card       { padding: 20px 16px 18px; }
  .product-card-icon  { width: 44px; height: 44px; margin-bottom: 16px; }
  .product-card-title { font-size: 0.86rem; }
  .product-card-sub   { font-size: 0.72rem; }
  .product-card-body  { font-size: 0.81rem; }

  /* PAGE 5 – Contact */
  .contact-heading    { font-size: 1.2rem; }
  .contact-detail     { padding: 12px; gap: 12px; }
  .contact-detail-icon { width: 30px; height: 30px; }
  .contact-detail-value { font-size: 0.82rem; }

  /* Footer */
  footer { padding: 24px 0 16px; }
  .section-header { margin-bottom: 28px; }
}

/* ─────────────────────────────────────────────
   380px  – very small phones
───────────────────────────────────────────── */
@media (max-width: 380px) {
  .hero-title      { font-size: 1.4rem; }
  .hero-theory-box { padding: 15px 13px 14px; }
  .tech-card-body  { font-size: 0.74rem; line-height: 1.5; }
  .tech-card-inner { padding: 9px 10px 8px; }
  .tech-video-wrap .tech-video-frame { max-height: 130px; aspect-ratio: 16 / 6; }
  .vid-coord { display: none; }
  .video-play-btn { width: 34px; height: 34px; }
  .video-caption  { font-size: 0.44rem; letter-spacing: 0.05em; }
  .product-card    { padding: 18px 14px 16px; }
  .contact-heading { font-size: 1.1rem; }
  .btn             { padding: 10px 16px; font-size: 0.73rem; }
}

/* ===== PRODUCT VIDEO CAROUSEL – RESPONSIVE ===== */
@media (max-width: 900px) {
  .pvcarousel-stage       { height: 280px; }
  .pvc-item               { width: 62%; }
  .pvc-item[data-pos="0"] { transform: translateX(-50%) scale(1); }
  .pvc-item[data-pos="1"] { transform: translateX(-14%) translateY(11%) scale(0.76); opacity: 0.46; }
  .pvc-item[data-pos="2"] { transform: translateX(-62%) translateY(11%) scale(0.76); opacity: 0.46; }
}

@media (max-width: 640px) {
  .pvcarousel-wrap        { margin-top: 40px; }
  .pvcarousel-stage       { height: 220px; }
  .pvcarousel-title       { font-size: 1.1rem; }
  .pvc-item               { width: 72%; }
  .pvc-item[data-pos="0"] { transform: translateX(-50%) scale(1); }
  .pvc-item[data-pos="1"] { transform: translateX(-13%) translateY(11%) scale(0.74); opacity: 0.38; }
  .pvc-item[data-pos="2"] { transform: translateX(-61%) translateY(11%) scale(0.74); opacity: 0.38; }
  .pvc-play               { width: 46px; height: 46px; }
}

@media (max-width: 480px) {
  .pvcarousel-stage       { height: 175px; }
  .pvc-item               { width: 80%; }
  .pvc-item[data-pos="0"] { transform: translateX(-50%) scale(1); }
  .pvc-item[data-pos="1"] { transform: translateX(-12%) translateY(11%) scale(0.72); opacity: 0.30; }
  .pvc-item[data-pos="2"] { transform: translateX(-60%) translateY(11%) scale(0.72); opacity: 0.30; }
  .pvc-label              { font-size: 0.80rem; }
  .pvc-sub-label          { display: none; }
}

/* ===== PRODUCT VIDEO CAROUSEL – TOUCH / MOBILE FIXES ===== */
/* Touch devices: no hover support, so we reduce the glass overlay so the
   video is clearly visible, and keep the pause button always visible
   (at low opacity) so users know they can tap to pause.               */
@media (hover: none) and (pointer: coarse) {

  /* Lighter overlay → video is clearly visible on mobile */
  .pvc-item[data-pos="0"] .pvc-glass {
    background:              rgba(10, 15, 30, 0.22);
    backdrop-filter:         none;
    -webkit-backdrop-filter: none;
  }

  /* While playing: fully hide overlay and controls so video is 100% clear.
     Tapping anywhere on the card pauses it (handled by JS click handler). */
  .pvc-item.is-playing .pvc-glass {
    background:              transparent;
    backdrop-filter:         none;
    -webkit-backdrop-filter: none;
  }
  .pvc-item.is-playing .pvc-play,
  .pvc-item.is-playing .pvc-meta {
    opacity:        0;
    pointer-events: none;
  }
}
