/* ==========================================================================
   BlueTube Technology — one-pager
   Reproduced from Figma design (frame "Bluetube website", 1440 × 7483)
   ========================================================================== */

/* ---------- Fonts (self-hosted) ---------- */
@font-face {
  font-family: 'Electrolize';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/electrolize-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../assets/fonts/instrument-sans-latin.woff2') format('woff2');
}

/* ---------- Design tokens ---------- */
:root {
  --navy: #151e58;
  --navy-dark: #0c1c51;
  --red: #e31e24;
  --body-gray: #717171;
  --nav-gray: #4a4a4a;
  --footer-gray: #5a5a5a;
  --chart-label: #585858;
  --bg-light: #f8f9fa;
  --bg-lavender: #eaecf7;
  --border-gray: #b6b6b6;
  --line-header: #cacaca;
  --line-divider: #acacac;
  --line-section: #c3c3c3;
  --line-chart: #c6c6c6;
  --line-footer: #c5c5c5;
  --bar-a: #9091a2;
  --bar-b: #c4c4ce;
  --font-head: 'Electrolize', 'Segoe UI', Arial, sans-serif;
  --font-body: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--body-gray);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: 70px;
}

/* ---------- Typography ---------- */
.h-display {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 58px;
  line-height: 1.19;
  letter-spacing: -1.16px;
  color: var(--navy);
}
.eyebrow {
  font-weight: 600;
  font-size: 20px;
  line-height: 1.447;
  letter-spacing: 3.6px;
  text-transform: uppercase;
  color: var(--red);
}
.body-lg {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.1857;
  letter-spacing: -0.4px;
  color: var(--body-gray);
}
.body-lg p + p { margin-top: 1.1857em; }

/* Registered-trademark sign — raised to a proper superscript */
.reg {
  font-size: 0.6em;
  vertical-align: super;
  line-height: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 189px;
  height: 65px;
  padding-inline: 30px;
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.4px;
  line-height: 1.1857;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn-primary { background: var(--navy); color: #fff; border: 1px solid var(--navy); }
.btn-primary:hover { background: #1d2a75; border-color: #1d2a75; }
.btn-primary:active { background: var(--navy-dark); }
.btn-outline { background: transparent; color: var(--navy); border: 1px solid var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-white { background: #fff; color: var(--navy); border: 1px solid #fff; }
.btn-white:hover { background: var(--bg-lavender); border-color: var(--bg-lavender); }
.btn:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  border-bottom: 1px solid var(--line-header);
  background: #fff;
}
.site-header .container {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.header-logo img { width: 58px; height: 60px; object-fit: contain; }
.site-nav ul {
  display: flex;
  align-items: center;
  gap: 38px;
}
.site-nav a {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.32px;
  color: var(--nav-gray);
  transition: color .2s ease;
}
.site-nav a:hover, .site-nav a:active { color: var(--navy); }
.btn-header {
  min-width: 113px;
  height: 49px;
  font-size: 16px;
  letter-spacing: -0.32px;
  line-height: 1.447;
  padding-inline: 20px;
}
.nav-toggle { display: none; }
.nav-toggle-label { display: none; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { overflow: hidden; }
.hero-inner {
  max-width: 1440px;
  margin-inline: auto;
  padding-left: 70px;
  padding-right: 6px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 38px;
}
.hero-copy {
  max-width: 584px;
  padding-top: 144px;
  padding-bottom: 90px;
}
.hero-copy h1 { max-width: 584px; }
.hero-copy .body-lg { max-width: 548px; margin-top: 30px; }
.hero-actions {
  margin-top: 35px;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}
.hero-grid {
  flex: 0 0 auto;
  width: 536px;
}
.hero-grid > img {
  display: block;
  width: 100%;
  height: auto;
}

/* ==========================================================================
   Feature bar
   ========================================================================== */
.feature-bar { background: var(--bg-light); }
.feature-bar .container {
  min-height: 218px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: 66px;
  gap: 60px;
}
.feature-item {
  display: flex;
  align-items: center;
  gap: 20px;
}
.feature-item img { width: 85px; height: 85px; flex: 0 0 auto; }
.feature-item h3 {
  font-size: 25px;
  font-weight: 600;
  line-height: 1.447;
  letter-spacing: -0.5px;
  text-transform: uppercase;
  color: var(--navy);
}
.feature-item p {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.447;
  letter-spacing: -0.4px;
  color: var(--body-gray);
}
.feature-divider {
  width: 1px;
  height: 85px;
  background: var(--line-divider);
  flex: 0 0 auto;
}

/* ==========================================================================
   About
   ========================================================================== */
.about { padding-top: 90px; }
.about-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 50px;
}
.about-copy { max-width: none; flex: 1; }
.about-copy .h-display { margin-top: 20px; }
.about-copy .body-lg { margin-top: 30px; }
.about-media {
  width: 666px;
  max-width: 100%;
  aspect-ratio: 666 / 329;
  position: relative;
  overflow: hidden;
  margin-top: 102px;
  flex: 0 0 auto;
}
.about-media img {
  position: absolute;
  left: -9.83%;
  top: -18.21%;
  width: 123.56%;
  height: 167.01%;
  max-width: none;
  max-height: none;
  object-fit: cover;
}

/* ---------- Expertise cards ---------- */
.expertise {
  margin-top: 90px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.expertise-card {
  background: var(--bg-light);
  border: 1px solid var(--border-gray);
  border-right: none;
  padding: 66px 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.expertise-card:last-child { border-right: 1px solid var(--border-gray); }
.expertise-card img { width: 90px; height: 90px; }
.expertise-card h3 {
  margin-top: 22px;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.447;
  letter-spacing: -0.4px;
  color: var(--navy);
}
.expertise-card p {
  margin-top: 15px;
  max-width: 220px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.447;
  letter-spacing: -0.32px;
  color: var(--body-gray);
}

/* ==========================================================================
   Team
   ========================================================================== */
.team { background: var(--bg-lavender); padding-block: 90px 90px; }
.team-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 60px;
}
.team-stats {
  margin-top: 0;
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 293px);
  grid-auto-rows: minmax(220px, auto);
}
.stat-cell {
  border: 1px solid var(--border-gray);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 36px 24px;
}
.stat-cell:nth-child(2) { border-left: none; }
.stat-cell:nth-child(3) { border-top: none; }
.stat-cell:nth-child(4) { border-left: none; border-top: none; }
.stat-cell img {
  width: 72px;
  height: 72px;
  margin-bottom: 14px;
}
.stat-cell strong {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 47px;
  line-height: 1.19;
  letter-spacing: -0.94px;
  color: var(--navy);
}
.stat-cell span {
  margin-top: 5px;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.1857;
  letter-spacing: -0.4px;
  color: var(--navy);
  opacity: .8;
  max-width: 201px;
}
.team-copy { max-width: 492px; }
.team-copy .h-display { margin-top: 20px; }
.team-copy .body-lg { margin-top: 30px; opacity: .8; }
.team-copy .btn { margin-top: 60px; min-width: 238px; }

/* ==========================================================================
   Mission / Vision
   ========================================================================== */
.mission { padding-top: 90px; }
.split {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 50px;
}
.split-copy { max-width: 584px; }
.mission .split-copy { max-width: none; flex: 1; }
.split-copy .h-display { margin-top: 20px; }
.split-copy .body-lg { margin-top: 30px; }
.mission-media {
  width: 566px;
  flex: 0 0 auto;
  margin-top: -37px;
}
.mission-media img { width: 100%; height: auto; }
.section-rule {
  border: 0;
  border-top: 1px solid var(--line-section);
  margin: 46px auto 0;
  max-width: 1300px;
}
.vision { padding-block: 47px 90px; }
.vision .split-copy h2 { max-width: 520px; }
.vision-media {
  width: 616px;
  flex: 0 0 auto;
  aspect-ratio: 616 / 391;
  overflow: hidden;
}
.vision-media img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   Sustainability banner
   ========================================================================== */
.banner {
  position: relative;
  background: var(--navy);
  overflow: hidden;
  padding-block: 90px;
  color: #fff;
}
.banner-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.banner-bg .banner-photo {
  position: absolute;
  left: -9px;
  top: -237px;
  width: calc(100% + 18px);
  height: 974px;
  object-fit: cover;
  opacity: .17;
}
.banner-net {
  position: absolute;
  width: 596px;
  height: 490px;
  top: -135px;
}
.banner-net-right { right: -298px; }
.banner-net-left { left: -336px; transform: scaleX(-1); }
.banner-content {
  position: relative;
  text-align: center;
}
.banner h2 {
  color: #fff;
  max-width: 920px;
  margin-inline: auto;
}
.banner .body-lg {
  color: #fff;
  opacity: .8;
  max-width: 1050px;
  margin: 27px auto 0;
}

/* ==========================================================================
   Why BlueTube
   ========================================================================== */
.why { padding-block: 90px 0; }
.why-head { text-align: center; }
.why-head .h-display { margin-top: 20px; max-width: 960px; margin-inline: auto; }
.why-head .body-lg { max-width: 1116px; margin: 30px auto 0; }
.why-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 90px;
}
.why-row + .why-row { margin-top: 77px; }
.why-item {
  /* 20% − (gap share) keeps 5 per row at every desktop width (== 244px at the
     1300px max), so the first row never orphans an item onto its own line. */
  width: calc(20% - 16px);
  max-width: 244px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.why-item img { width: 84px; height: 84px; }
.why-item p {
  margin-top: 15px;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.1857;
  letter-spacing: -0.4px;
  color: var(--navy);
  opacity: .8;
}

/* ==========================================================================
   Benchmark
   ========================================================================== */
.benchmark { background: var(--bg-lavender); margin-top: 90px; padding-block: 90px; }
.benchmark-head { text-align: center; }
.benchmark-head .h-display { margin-top: 20px; }
.benchmark-head .body-lg { max-width: 1172px; margin: 30px auto 0; opacity: .8; }
.benchmark-grid {
  margin-top: 121px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.bench-card {
  background: #fff;
  padding: 25px 25px 30px;
  min-height: 368px;
}
.bench-tag {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.447;
  letter-spacing: 2.88px;
  text-transform: uppercase;
  color: var(--red);
}
.bench-card h3 {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 25px;
  line-height: 1.19;
  letter-spacing: -0.5px;
  color: var(--navy);
  margin-top: 3px;
}
.bench-card .bench-desc {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.447;
  letter-spacing: -0.32px;
  color: var(--body-gray);
  opacity: .8;
  margin-top: 16px;
  min-height: 46px;
}
.chart-img {
  display: block;
  margin-top: 18px;
  width: 100%;
  height: auto;
}
.chart {
  position: relative;
  margin-top: 18px;
  height: 172px;
  padding-left: 57px;
}
.chart-plot {
  position: relative;
  height: 140px;
  border-left: 1px solid var(--line-chart);
  border-bottom: 1px solid var(--line-chart);
}
.chart-grid {
  position: absolute;
  left: -7px;
  right: 0;
  height: 0;
  border-top: 1px dashed var(--line-chart);
}
.chart-ylabel {
  position: absolute;
  right: calc(100% + 8px);
  transform: translateY(-50%);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.32px;
  line-height: 1;
  color: var(--chart-label);
  white-space: nowrap;
}
.chart-bar {
  position: absolute;
  bottom: 0;
  width: 19.96%;
}
.chart-bar .bar-fill { width: 100%; }
.chart-bar .bar-value {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 1px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.32px;
  color: var(--navy-dark);
  white-space: nowrap;
}
.chart-bar .bar-name {
  position: absolute;
  top: calc(100% + 5px);
  left: 50%;
  transform: translateX(-50%);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.32px;
  color: var(--chart-label);
  white-space: nowrap;
}
.chart-bar-a { left: 8.78%; }
.chart-bar-b { left: 37.13%; }
.chart-bar-c { left: 65.47%; }
.chart-bar-a .bar-fill { background: var(--bar-a); }
.chart-bar-b .bar-fill { background: var(--bar-b); }
.chart-bar-c .bar-fill { background: var(--navy-dark); }

/* ==========================================================================
   CTA — Get a demo
   ========================================================================== */
.cta {
  position: relative;
  background: var(--navy);
  overflow: hidden;
  color: #fff;
  padding-block: 90px;
}
.cta-net {
  position: absolute;
  left: 675px;
  top: -78px;
  width: 962px;
  height: 790px;
  pointer-events: none;
}
.cta-content { position: relative; }
.cta .bench-tag { color: var(--red); }
.cta h2 { color: #fff; margin-top: 20px; max-width: 920px; }
.cta .body-lg { color: #fff; opacity: .8; margin-top: 30px; max-width: 1050px; }
.cta-contacts { margin-top: 43px; display: flex; flex-direction: column; gap: 20px; }
.cta-contact {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.4px;
  line-height: 1.1857;
  color: #fff;
  width: fit-content;
  transition: opacity .2s ease;
}
a.cta-contact:hover { opacity: .75; }
.cta-contact img { width: 36px; height: 36px; }
.cta .btn { margin-top: 87px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { padding-top: 64px; background: #fff; }
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 50px;
  flex-wrap: wrap;
}
.footer-brand { max-width: 362px; }
.footer-brand > img { width: 111px; height: auto; }
.footer-tagline {
  margin-top: 17px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.1857;
  letter-spacing: -0.4px;
  color: var(--navy);
}
.footer-made {
  margin-top: 25px;
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.4px;
  color: var(--navy);
}
.footer-made img { width: 35px; height: 21px; }
.footer-col h3 {
  font-size: 25px;
  font-weight: 400;
  line-height: 1.447;
  letter-spacing: -0.5px;
  color: var(--navy);
}
.footer-col ul { margin-top: 10px; }
.footer-subhead { margin-top: 30px; }
.footer-col li + li { margin-top: 15px; }
.footer-col a, .footer-col p {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.447;
  letter-spacing: -0.32px;
  color: var(--footer-gray);
  transition: color .2s ease;
}
.footer-col a:hover { color: var(--navy); }
.footer-contact li {
  display: flex;
  align-items: center;
  gap: 15px;
}
.footer-contact li + li { margin-top: 20px; }
.footer-contact img { width: 36px; height: 36px; flex: 0 0 auto; }
.footer-contact a, .footer-contact span {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.1857;
  letter-spacing: -0.4px;
  color: var(--footer-gray);
  display: inline-block;
}
.footer-contact a:hover { color: var(--navy); }
.footer-bottom {
  margin-top: 60px;
  border-top: 1px solid var(--line-footer);
}
.footer-bottom .container {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-block: 20px;
}
.footer-bottom p, .footer-legal a {
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.32px;
  color: var(--footer-gray);
}
.footer-legal { display: flex; gap: 30px; flex-wrap: wrap; }
.footer-legal a:hover { color: var(--navy); }

/* ==========================================================================
   Motion — scroll reveals, chart growth, hover lifts (opacity/transform only;
   disabled entirely for users who prefer reduced motion)
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1);
    will-change: opacity, transform;
  }
  .reveal.in-view {
    opacity: 1;
    transform: none;
  }

  /* Benchmark bars grow up once their card is revealed */
  .bench-card .bar-fill {
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform .8s cubic-bezier(.22,.61,.36,1);
  }
  .bench-card .bar-value {
    opacity: 0;
    transition: opacity .5s ease;
  }
  .bench-card.in-view .bar-fill { transform: none; }
  .bench-card.in-view .bar-value { opacity: 1; }
  .bench-card.in-view .chart-bar-a .bar-fill { transition-delay: .25s; }
  .bench-card.in-view .chart-bar-b .bar-fill { transition-delay: .40s; }
  .bench-card.in-view .chart-bar-c .bar-fill { transition-delay: .55s; }
  .bench-card.in-view .chart-bar-a .bar-value { transition-delay: .65s; }
  .bench-card.in-view .chart-bar-b .bar-value { transition-delay: .80s; }
  .bench-card.in-view .chart-bar-c .bar-value { transition-delay: .95s; }

  /* Gentle hover lifts */
  .btn { transition: background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
  .btn:hover { transform: translateY(-2px); }
  .btn:active { transform: translateY(0); }

  .expertise-card, .bench-card, .stat-cell {
    transition-property: opacity, transform, box-shadow;
    transition-duration: .7s;
  }
  .expertise-card:hover, .bench-card:hover, .stat-cell:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(21, 30, 88, .08);
    transition-duration: .25s;
  }

  /* Slow zoom on photos */
  .hero-grid > img, .mission-media img, .vision-media img {
    transition: transform .6s cubic-bezier(.22,.61,.36,1);
  }
  .hero-grid > img:hover, .mission-media:hover img, .vision-media:hover img {
    transform: scale(1.03);
  }
  .mission-media { overflow: hidden; }


  .why-item img { transition: transform .3s ease; }
  .why-item:hover img { transform: translateY(-4px); }
}

/* ==========================================================================
   Responsive — breakpoints derived from the design's natural break behavior
   ========================================================================== */

/* Large / 4K external monitors: the layout is capped at a 1440px centered
   container, so on a very wide screen the fixed-px icons read small. Scale
   them up to the client's requested ~2x here — this bracket is above every
   built-in Apple laptop display (16" = 1728), so laptops keep the moderate
   sizes above and only external/4K monitors get the larger icons. */
@media (min-width: 1800px) {
  .expertise-card img { width: 120px; height: 120px; }
  .expertise-card h3 { margin-top: 26px; font-size: 28px; }
  .stat-cell img { width: 96px; height: 96px; margin-bottom: 16px; }
  .why-item img { width: 108px; height: 108px; }
}

/* Below 1440: hero grid + type scale down proportionally */
@media (max-width: 1439px) {
  .hero-inner { padding-right: 0; padding-left: 48px; gap: 30px; }
  .hero-grid { width: min(42vw, 536px); }
  .hero-copy { padding-top: 90px; }
  .container { padding-inline: 48px; }
  .h-display { font-size: clamp(38px, 4vw, 58px); letter-spacing: -0.02em; }
  .about-media { width: min(46vw, 666px); }
  .mission-media { width: min(42vw, 566px); margin-top: 0; }
  .vision-media { width: min(44vw, 616px); }
  .team-stats { grid-template-columns: repeat(2, minmax(220px, 293px)); grid-auto-rows: minmax(200px, auto); }
  .team-stats { margin-top: 0; }
  .expertise-card { padding: 66px 44px; }
  .cta-net { left: auto; right: -300px; }
}

@media (max-width: 1180px) {
  .site-nav ul { gap: 24px; }
  .expertise { grid-template-columns: repeat(2, 1fr); }
  .expertise-card { border-right: 1px solid var(--border-gray); aspect-ratio: auto; min-height: 300px; }
  .expertise-card:nth-child(1), .expertise-card:nth-child(2) { border-bottom: none; }
  .expertise-card:nth-child(2n) { border-left: none; }
}

/* Tablet: stacked split sections, collapsed nav */
@media (max-width: 1024px) {
  .nav-toggle-label {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    padding: 8px;
    cursor: pointer;
    order: 3;
  }
  .nav-toggle-label span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--navy);
    transition: transform .2s ease, opacity .2s ease;
  }
  .site-header .container { position: relative; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line-header);
    z-index: 50;
  }
  .nav-toggle:checked ~ .site-nav { display: block; }
  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 10px 48px 20px;
  }
  .site-nav li { width: 100%; }
  .site-nav a { display: block; padding: 12px 0; font-size: 18px; }
  .btn-header { margin-left: auto; }

  .hero-inner { flex-direction: column; padding-right: 48px; }
  .hero-copy { padding-top: 60px; padding-bottom: 0; }
  .hero-actions { margin-top: 40px; }
  .hero-grid { width: 100%; max-width: 536px; margin-bottom: 0; }
  .hero { padding-bottom: 60px; }

  .about-grid, .split { flex-direction: column; }
  .about-media { width: 100%; margin-top: 0; }
  .mission-media, .vision-media { width: 100%; }
  .vision .split { flex-direction: column-reverse; }
  .team-grid { flex-direction: column-reverse; }
  .team-stats { margin-top: 0; width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-copy { max-width: none; }
  .benchmark-grid { grid-template-columns: 1fr; margin-top: 60px; }
  .bench-card { min-height: 0; }
  .banner-net-left, .banner-net-right { opacity: .5; }
  .cta-net { right: -500px; }
  .footer-grid { gap: 40px; }

  /* Why grid: fixed 244px items leave big uneven margins here — let them
     fill the row as an even 3-up, so trailing items stay centered. */
  .why-row { gap: 44px 24px; margin-top: 70px; }
  .why-row + .why-row { margin-top: 56px; }
  .why-item { width: calc(33.333% - 16px); }
}

/* Mobile */
@media (max-width: 680px) {
  .container, .hero-inner { padding-inline: 20px; }
  .site-nav ul { padding-inline: 20px; }
  .site-header .container { height: 88px; }
  .header-logo img { width: 46px; height: 48px; }
  .h-display { font-size: 34px; letter-spacing: -0.68px; }
  .eyebrow { font-size: 16px; letter-spacing: 2.88px; }
  .body-lg { font-size: 18px; }
  .hero-actions .btn { width: 100%; }
  .feature-bar .container { flex-direction: column; align-items: flex-start; gap: 30px; padding-block: 40px; }
  .feature-divider { width: 85px; height: 1px; }
  .expertise { grid-template-columns: 1fr; }
  .expertise-card { min-height: 0; aspect-ratio: auto; padding: 32px 24px; }
  .expertise-card h3 { margin-top: 24px; }
  .expertise-card { border: 1px solid var(--border-gray); border-bottom: none; }
  .expertise-card:last-child { border-bottom: 1px solid var(--border-gray); }
  .stat-cell { padding: 30px 10px; }
  /* Fluid so the wide word "DeepTech" still fits down to ~320px screens. */
  .stat-cell strong { font-size: clamp(27px, 8vw, 32px); }
  .stat-cell span { font-size: 16px; }
  /* minmax(0,1fr) keeps the two columns equal — plain 1fr lets a wide word
     like "DeepTech" stretch its column and crowd the cell edges. */
  .team-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(150px, auto); }
  .why-row { margin-top: 50px; gap: 30px 16px; }
  .why-row + .why-row { margin-top: 30px; }
  .why-item { width: calc(50% - 8px); }
  .why-item p { font-size: 17px; }
  .about, .mission, .why { padding-top: 60px; }
  .team, .benchmark, .banner, .cta { padding-block: 60px; }
  .vision { padding-block: 40px 60px; }
  .benchmark { margin-top: 60px; }
  .expertise { margin-top: 60px; }
  .bench-card { padding: 20px 16px 24px; }
  .chart { padding-left: 42px; }
  .chart-ylabel { font-size: 12px; right: calc(100% + 6px); }
  .chart-bar .bar-value, .chart-bar .bar-name { font-size: 12px; }
  .cta .btn { margin-top: 50px; width: 100%; }
  .cta-contact { font-size: 18px; align-items: flex-start; overflow-wrap: break-word; }
  .cta-contact img { margin-top: 2px; }
  .footer-grid { flex-direction: column; }
  .footer-bottom .container { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   Cookie consent banner
   ========================================================================== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  background: #fff;
  border-top: 1px solid var(--line-header);
  box-shadow: 0 -8px 30px rgba(12, 28, 81, .12);
  animation: cookie-rise .3s ease both;
}
.cookie-banner[hidden] { display: none; }
@keyframes cookie-rise { from { transform: translateY(100%); } to { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .cookie-banner { animation: none; } }

.cookie-banner-inner {
  max-width: 1440px;
  margin-inline: auto;
  padding: 26px 70px;
  display: flex;
  align-items: center;
  gap: 40px;
}
.cookie-text { flex: 1 1 auto; }
.cookie-title {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 24px;
  color: var(--navy);
  margin-bottom: 8px;
}
.cookie-text p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--body-gray);
}
.cookie-text a { color: var(--navy); text-decoration: underline; }

.cookie-options { margin-top: 16px; display: grid; gap: 12px; }
.cookie-options[hidden] { display: none; }
.cookie-option {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  line-height: 1.55;
  color: var(--body-gray);
}
.cookie-option input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--navy);
  cursor: pointer;
}
.cookie-option input:disabled { cursor: not-allowed; opacity: .7; }
.cookie-option strong { color: var(--navy); }

.cookie-actions {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}
.cookie-btn {
  min-width: 150px;
  height: 52px;
  font-size: 18px;
}
.cookie-btn[hidden] { display: none; }

@media (max-width: 900px) {
  .cookie-banner-inner { flex-direction: column; align-items: stretch; gap: 20px; padding: 22px 24px; }
  .cookie-actions { justify-content: stretch; }
  .cookie-btn { flex: 1 1 auto; min-width: 0; }
}

/* ==========================================================================
   Request a Datasheet
   ========================================================================== */
.datasheet { background: var(--bg-light); padding-block: 90px; }
.datasheet-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}
.datasheet-copy { max-width: 720px; }
.datasheet-copy h2 { margin-top: 20px; }
.datasheet-copy .body-lg { margin-top: 30px; }
.datasheet-action { flex-shrink: 0; }
.datasheet-action .btn { min-width: 260px; }

/* ---------- Modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal[hidden] { display: none; }
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(12, 28, 81, 0.55);
}
.modal-dialog {
  position: relative;
  background: #fff;
  border-radius: 6px;
  padding: 40px;
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(12, 28, 81, 0.25);
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  font-size: 34px;
  line-height: 1;
  color: var(--nav-gray);
  cursor: pointer;
  padding: 4px;
  transition: color .2s ease;
}
.modal-close:hover { color: var(--navy); }
.modal-dialog h3 {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.19;
  letter-spacing: -0.64px;
  color: var(--navy);
  margin-top: 6px;
}
.modal-intro {
  margin-top: 12px;
  font-size: 17px;
  font-weight: 500;
  color: var(--body-gray);
}

/* ---------- Modal forms (datasheet + contact) ---------- */
.datasheet-form,
.contact-form { margin-top: 26px; }
.datasheet-form .field,
.contact-form .field { margin-bottom: 18px; }
.datasheet-form label,
.contact-form label {
  display: block;
  margin-bottom: 7px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.2px;
  color: var(--navy);
}
.datasheet-form input,
.contact-form input {
  width: 100%;
  height: 52px;
  padding-inline: 16px;
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--border-gray);
  border-radius: 3px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.datasheet-form input:focus,
.contact-form input:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px var(--bg-lavender);
}
.datasheet-form input:invalid:not(:placeholder-shown),
.contact-form input:invalid:not(:placeholder-shown) { border-color: var(--red); }
.datasheet-form .hp,
.contact-form .hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.datasheet-submit,
.contact-submit { margin-top: 8px; width: 100%; }
.datasheet-submit[disabled],
.contact-submit[disabled] { opacity: .6; cursor: default; }
.form-status {
  margin-top: 16px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  min-height: 1em;
}
.form-status.is-success { color: #1c7c3c; }
.form-status.is-error { color: var(--red); }

@media (max-width: 900px) {
  .datasheet-inner { flex-direction: column; align-items: flex-start; gap: 34px; }
  .datasheet-action { width: 100%; }
  .datasheet-action .btn { width: 100%; }
}
@media (max-width: 680px) {
  .datasheet { padding-block: 60px; }
  .modal-dialog { padding: 32px 22px; }
  .modal-dialog h3 { font-size: 27px; }
}
