/* Lab.E Robotics — colours and typography taken from the company profile */
:root {
  --navy: #0c1f34;
  --navy-mid: #142f48;
  --blue: #1458a8;
  --blue-btn: #2869b1;
  --green: #71b138;
  --green-dark: #67a337;
  --cyan: #18acd8;
  --light: #f2f7f9;
  --white: #ffffff;
  --text: #0c1f34;
  --muted: #5a6e7d;
  --muted-dark: rgba(255, 255, 255, 0.72);
  --line: #d5dee4;
  --shadow: 0 10px 30px rgba(12, 31, 52, 0.08);
  --radius: 22px;
  --header-h: 84px;
  --font: "Plus Jakarta Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  font-size: 1.05rem;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.6em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 800; text-transform: uppercase; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.45rem); font-weight: 800; }
h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.35em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--green);
  color: var(--navy);
  padding: 0.5rem 0.8rem;
  font-weight: 700;
  z-index: 1000;
  border-radius: 6px;
}
.skip-link:focus { top: 0.6rem; }

.container { width: min(var(--max), calc(100% - 2.5rem)); margin: 0 auto; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}
.top-bar {
  height: 6px;
  background: linear-gradient(90deg, var(--blue) 0 62%, var(--green) 62% 100%);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto;
  min-height: calc(var(--header-h) - 6px);
  padding: 0.55rem 0;
}
.logo {
  display: block;
  background: var(--white);
  border-radius: 6px;
  padding: 0.28rem 0.45rem 0.2rem;
  flex: 0 0 auto;
  line-height: 0;
}
.logo img { width: 200px; height: auto; }

.site-nav { display: flex; flex-wrap: wrap; gap: 0.15rem 0.1rem; justify-content: flex-end; }
.site-nav a {
  color: rgba(255,255,255,0.86);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.4rem 0.55rem;
  border-radius: 6px;
}
.site-nav a:hover,
.site-nav a:focus-visible { color: var(--white); background: rgba(255,255,255,0.08); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 10px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--white);
  margin: 6px 0;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 46%);
  background: var(--navy);
  color: var(--white);
  min-height: min(78vh, 760px);
}
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 6vw, 5rem) clamp(1.4rem, 5vw, 5rem);
  max-width: 720px;
  margin-left: auto;
  width: 100%;
}
.hero h1 { margin: 0.3em 0 0.45em; }
.tagline {
  color: rgba(255,255,255,0.82);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  max-width: 28em;
}
.hero-meta {
  margin-top: 1.6rem;
  padding-top: 1.15rem;
  border-top: 3px solid var(--green);
  width: fit-content;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
}
.hero-media { min-height: 320px; background: #061018; }
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 40% 50%;
  min-height: 100%;
}

.pill {
  display: inline-block;
  width: max-content;
  max-width: 100%;
  align-self: flex-start;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0;
}
.pill-green { background: var(--green); color: var(--white); }
.pill-blue { background: var(--blue-btn); color: var(--white); }

.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}
.eyebrow-blue { color: var(--blue); }
.eyebrow-green { color: var(--green); }
.section-dark .eyebrow-green,
.section-dark .eyebrow-blue { color: var(--green); }

.lede {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 46rem;
  margin-bottom: 2.2rem;
}
.section-dark .lede { color: var(--muted-dark); }

.kicker {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}
.kicker-blue { color: var(--blue); }
.kicker-green { color: var(--green-dark); }
.kicker-cyan { color: #0e8fb8; }
.section-dark .kicker-green,
.section-dark .kicker-blue { color: var(--green); }

.statement {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 1.5rem;
}

.footnote { color: var(--muted); font-size: 0.95rem; margin-top: 1.25rem; }
.section-dark .footnote { color: var(--muted-dark); }

/* Sections */
.section { padding: clamp(3.2rem, 6vw, 5.5rem) 0; }
.section-light { background: var(--white); }
.section-mist { background: var(--light); }
.section-dark { background: var(--navy); color: var(--white); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.15fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.split-start { align-items: start; }

.media-frame {
  margin: 0;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #0a1520;
}
.media-frame img { width: 100%; }

.card-row, .card-grid {
  display: grid;
  gap: 1rem;
}
.card-row.three, .card-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid.tight { gap: 0.85rem; }

.soft-card {
  background: var(--light);
  border-radius: var(--radius);
  padding: 1.15rem 1.15rem 1.2rem 1.25rem;
  box-shadow: var(--shadow);
  border-left: 5px solid var(--blue);
}
.soft-card h3 { text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.95rem; }
.soft-card p { color: var(--muted); font-size: 0.95rem; }
.accent-blue { border-left-color: var(--blue); }
.accent-green { border-left-color: var(--green); }
.accent-cyan { border-left-color: var(--cyan); }

.dark-card {
  background: var(--navy-mid);
  border-radius: var(--radius);
  padding: 1.35rem 1.3rem 1.4rem;
  border: 1px solid rgba(255,255,255,0.05);
}
.dark-card.accent-green { border-left: 5px solid var(--green); }
.dark-card.accent-cyan { border-left: 5px solid var(--cyan); }
.dark-card.accent-blue { border-left: 5px solid var(--blue); }
.dark-card h3 { margin-bottom: 0.4rem; }
.dark-card p { color: var(--muted-dark); font-size: 0.95rem; }
.step {
  display: block;
  color: var(--green);
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: 0.55rem;
}

.stack-block .subhead { font-size: 1.35rem; font-weight: 800; margin: 0 0 0.35rem; }
.rule { border: 0; border-top: 2px solid var(--line); margin: 1.4rem 0; }
.mini-split {
  display: grid;
  grid-template-columns: minmax(140px, 200px) 1fr;
  gap: 1rem;
  align-items: center;
}
.mini-split img { border-radius: 4px; background: #111; }

.platform-list { display: grid; gap: 0.85rem; }

.tick-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.95rem;
}
.tick-list li {
  position: relative;
  padding-left: 1.5rem;
  font-weight: 600;
  font-size: 1rem;
}
.tick-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 3px;
  background: var(--blue);
}
.dot-green::before { background: var(--green); }
.dot-cyan::before { background: var(--cyan); }
.dot-blue::before { background: var(--blue); }

.domain-grid article,
.project-grid article { min-width: 0; }
.domain-grid img,
.project-grid img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  object-position: center;
  border-radius: 6px;
  margin-bottom: 1rem;
  background: #0a1520;
}
.project-grid img {
  object-fit: cover;
  object-position: top center;
}
.domain-grid p,
.project-grid p { color: var(--muted); font-size: 0.98rem; }
.section-dark .project-grid p { color: var(--muted-dark); }

.caveat {
  margin-top: 2.2rem;
  padding-top: 1.3rem;
  border-top: 1px solid rgba(255,255,255,0.14);
  color: var(--muted-dark);
  font-size: 0.92rem;
}

.presence-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.presence-card {
  border-radius: 32px;
  padding: 2rem 2rem 2.1rem;
  min-height: 280px;
}
.presence-card h3 {
  font-size: 2rem;
  text-transform: uppercase;
  margin: 0.9rem 0 0.85rem;
  letter-spacing: -0.03em;
}
.presence-dark { background: var(--navy); color: var(--white); }
.presence-light { background: var(--light); color: var(--text); box-shadow: var(--shadow); }
.rep { margin-top: 1.6rem; font-weight: 700; color: var(--green); }
.rep-blue { color: var(--blue); }
.engagement {
  margin-top: 2rem;
  font-size: 0.98rem;
}
.engagement strong {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-right: 0.6rem;
  font-size: 0.85rem;
}

.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.78);
  padding: 2.2rem 0;
  font-size: 0.9rem;
}
.footer-row {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.footer-logo {
  width: 200px;
  background: var(--white);
  border-radius: 6px;
  padding: 0.3rem 0.45rem;
}
.site-footer p { margin: 0 0 0.25rem; }

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-media { min-height: 280px; max-height: 420px; }
  .hero-media img { min-height: 280px; max-height: 420px; }
  .split { grid-template-columns: 1fr; }
  .card-row.three { grid-template-columns: 1fr; }
  .logo img, .footer-logo { width: 168px; }
}

@media (max-width: 800px) {
  :root { --header-h: 70px; }
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    background: var(--navy);
    flex-direction: column;
    padding: 0.5rem 1.25rem 1.2rem;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  body.nav-open .site-nav { display: flex; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .site-nav a { padding: 0.7rem 0.4rem; font-size: 0.95rem; }
  .card-grid.three,
  .card-grid.two,
  .presence-grid { grid-template-columns: 1fr; }
  .mini-split { grid-template-columns: 1fr; }
  .domain-grid img,
  .project-grid img { height: auto; }
  .presence-card { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
