/* EJER Lab — dark research UI (distinct from CAB cyan/navy) */
:root {
  --bg: #0b0f14;
  --elev: #121820;
  --elev-2: #18212c;
  --paper: #eef1f4;
  --paper-2: #e2e7ec;
  --text: #e8eef4;
  --text-ink: #10161d;
  --muted: #8b9aab;
  --muted-ink: #5a6a7a;
  --accent: #6ec8b8;
  --accent-dim: #3d8f82;
  --bronze: #c4a35a;
  --line: rgba(110, 200, 184, 0.16);
  --line-strong: rgba(110, 200, 184, 0.35);
  --danger: #d47878;
  --wrap: 1180px;
  --font: "IBM Plex Sans", "Segoe UI", sans-serif;
  --display: "Sora", "IBM Plex Sans", sans-serif;
  --radius: 2px;
  --header-h: 72px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: #9ee0d4; }
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
}
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: var(--bg);
  padding: 0.5rem 1rem;
  z-index: 100;
}
.skip:focus { left: 0; }

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  background: rgba(11, 15, 20, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.site-header.is-scrolled {
  background: rgba(11, 15, 20, 0.92);
  border-bottom-color: var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: var(--header-h);
}
.logo img { height: 36px; width: auto; }
.site-nav { margin-left: auto; }
.site-nav ul {
  display: flex;
  gap: 0.15rem;
}
.site-nav a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
}
.site-nav a:hover,
.site-nav a.is-active {
  color: var(--text);
  background: rgba(110, 200, 184, 0.08);
}
.header-tools {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: transparent;
  padding: 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 46px;
  padding: 0 1.35rem;
  font-family: var(--display);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { min-height: 38px; padding: 0 0.95rem; font-size: 0.8rem; }
.btn-accent {
  background: var(--accent);
  color: #06201c;
}
.btn-accent:hover { background: #8ed9cb; color: #06201c; }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: rgba(232, 238, 244, 0.28);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-line {
  background: transparent;
  color: var(--accent);
  border-color: var(--line-strong);
}
.btn-line:hover { background: rgba(110, 200, 184, 0.1); color: #9ee0d4; }
.btn-ink {
  background: var(--text-ink);
  color: var(--paper);
}
.btn-ink:hover { background: #1c2733; color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Hero — full bleed, brand first */
.hero {
  position: relative;
  min-height: max(100vh, 640px);
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 3rem) 0 4.5rem;
  overflow: hidden;
  background: #0b0f14;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(11, 15, 20, 0.92) 0%, rgba(11, 15, 20, 0.72) 42%, rgba(11, 15, 20, 0.35) 100%),
    linear-gradient(0deg, rgba(11, 15, 20, 0.88) 0%, transparent 45%);
  pointer-events: none;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(110, 200, 184, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(110, 200, 184, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 20%, transparent 75%);
  animation: gridPulse 12s ease-in-out infinite;
  pointer-events: none;
}
@keyframes gridPulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.65; }
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 38rem;
}
.brand-hero {
  font-family: var(--display);
  font-size: clamp(3.2rem, 8vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin: 0 0 0.35em;
  color: #fff;
}
.brand-hero span {
  display: block;
  font-size: 0.28em;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 0.85rem;
}
.hero h1 {
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.75em;
}
.hero .lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 34rem;
  margin-bottom: 1.75rem;
}

.eyebrow {
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.85rem;
}

/* Sections */
.section {
  padding: 5rem 0;
}
.section-dark {
  background: var(--bg);
  color: var(--text);
}
.section-elev {
  background: var(--elev);
}
.section-paper {
  background: var(--paper);
  color: var(--text-ink);
}
.section-paper .eyebrow { color: var(--accent-dim); }
.section-paper .muted,
.section-paper .lead { color: var(--muted-ink); }
.section-paper a { color: var(--accent-dim); }
.section-paper a:hover { color: #2f6f64; }
.section-head {
  max-width: 36rem;
  margin-bottom: 2.5rem;
}
.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
}
.muted { color: var(--muted); }
.section-paper .muted { color: var(--muted-ink); }

.page-hero {
  padding: calc(var(--header-h) + 3rem) 0 2.5rem;
  background:
    linear-gradient(180deg, #121820 0%, #0b0f14 100%);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 {
  font-size: clamp(1.9rem, 3.5vw, 2.75rem);
  margin-bottom: 0.4em;
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 0.4rem;
  opacity: 0.5;
}

/* About home */
.about-split {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.about-visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
}
.about-split .is-lead {
  font-size: 1.15rem;
  color: var(--text);
}
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 2.5rem;
}
.stat-row div {
  background: var(--elev);
  padding: 1.35rem 1.1rem;
}
.stat-row b {
  display: block;
  font-family: var(--display);
  font-size: 1.65rem;
  color: var(--accent);
  margin-bottom: 0.25rem;
}
.stat-row span {
  font-size: 0.82rem;
  color: var(--muted);
}

/* Product family strip */
.family-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.family-list a {
  display: grid;
  grid-template-columns: 5.5rem auto 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.15rem 1.25rem;
  background: var(--elev);
  color: var(--text);
  transition: background 0.25s;
}
.family-list a:hover { background: var(--elev-2); color: #fff; }
.family-thumb {
  width: 5.5rem;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg);
}
.family-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.family-num {
  font-family: var(--display);
  font-size: 0.78rem;
  color: var(--accent);
  letter-spacing: 0.08em;
}
.family-list strong {
  display: block;
  font-family: var(--display);
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}
.family-list small {
  color: var(--muted);
  font-size: 0.88rem;
}
.family-go {
  color: var(--accent);
  opacity: 0.7;
}

/* Applications index (home dark) + paper detail */
.app-index {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}
.app-index a {
  display: grid;
  grid-template-columns: 3.5rem 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
}
.app-index a:hover { color: var(--accent); }
.app-index-num {
  font-family: var(--display);
  font-size: 0.85rem;
  color: var(--bronze);
}
.app-index strong { display: block; font-family: var(--display); }
.app-index small { color: var(--muted); }

.app-block {
  padding: 3rem 0;
  border-bottom: 1px solid rgba(16, 22, 29, 0.08);
}
.app-block:last-child { border-bottom: 0; }
.app-block-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 2rem;
  align-items: start;
}
.app-block-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid rgba(16, 22, 29, 0.08);
}
.app-block h2 {
  font-size: 1.65rem;
  margin-bottom: 0.35em;
}
.scenario-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem 1.5rem;
  margin-top: 1.5rem;
}
.scenario-list li {
  position: relative;
  padding-left: 1rem;
  color: var(--muted-ink);
  font-size: 0.95rem;
}
.scenario-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 5px;
  height: 5px;
  background: var(--accent-dim);
  border-radius: 50%;
}

/* Pipeline */
.make-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}
.make-steps li {
  padding: 1.25rem 1rem;
  border-top: 2px solid var(--accent);
  background: rgba(110, 200, 184, 0.04);
  font-family: var(--display);
  font-size: 0.95rem;
}
.make-steps li span {
  display: block;
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 0.55rem;
  letter-spacing: 0.1em;
}

/* Product grids — interactive tiles only */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.tile {
  display: flex;
  flex-direction: column;
  color: inherit;
  border: 1px solid var(--line);
  background: var(--elev);
  transition: border-color 0.2s, transform 0.2s;
}
.tile:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
  color: inherit;
}
.section-paper .tile {
  background: #fff;
  border-color: rgba(16, 22, 29, 0.08);
}
.tile-media {
  aspect-ratio: 16 / 10;
  background: var(--elev-2);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.tile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.tile:hover .tile-media img { transform: scale(1.04); }
.section-paper .tile-media {
  background: var(--paper-2);
  border-bottom-color: rgba(16, 22, 29, 0.06);
}
.product-hero-media {
  border: 1px solid var(--line);
  background: var(--elev-2);
  overflow: hidden;
}
.product-hero-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.tile-body { padding: 1.2rem 1.25rem 1.4rem; }
.tile-body h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35em;
}
.tile-body p {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
}
.section-paper .tile-body p { color: var(--muted-ink); }

/* Detail */
.detail-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
}
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.spec-table th,
.spec-table td {
  text-align: left;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}
.spec-table th {
  color: var(--muted);
  font-weight: 500;
  width: 40%;
}

/* News */
.news-list { display: flex; flex-direction: column; gap: 0; }
.news-list a {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1.25rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
}
.news-list time { color: var(--muted); font-size: 0.88rem; }
.news-list h3 { font-size: 1.1rem; margin: 0 0 0.3em; }
.prose { max-width: 42rem; }
.prose p { color: var(--muted); }

/* Forms */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-grid .full { grid-column: 1 / -1; }
label {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}
input, textarea, select {
  width: 100%;
  min-height: 44px;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--elev);
  color: var(--text);
  font: inherit;
}
textarea { min-height: 140px; resize: vertical; }
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
}

/* FAQ */
.faq-list details {
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}
.faq-list summary {
  cursor: pointer;
  font-family: var(--display);
  font-weight: 600;
}
.faq-list p {
  color: var(--muted);
  margin: 0.75rem 0 0;
}

/* CTA band */
.cta-band {
  padding: 4rem 0;
  background:
    linear-gradient(120deg, rgba(62, 143, 130, 0.22), transparent 50%),
    var(--elev);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* Footer */
.site-footer {
  background: #070a0e;
  padding: 3.5rem 0 0;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr) repeat(3, 0.9fr);
  gap: 1.5rem 1.25rem;
}
.footer-brand .footer-slogan {
  color: var(--muted);
  margin: 1rem 0 0.5rem;
  max-width: 16rem;
}
.footer-mark {
  font-size: 0.78rem;
  color: var(--accent-dim);
  letter-spacing: 0.04em;
}
.site-footer h2 {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.site-footer li + li { margin-top: 0.35rem; }
.footer-base {
  margin-top: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.1rem 0;
}
.footer-base-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.82rem;
}
.footer-base p { margin: 0; }

/* Motion */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 1100px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .about-split,
  .detail-grid,
  .tile-grid,
  .scenario-list,
  .make-steps,
  .stat-row,
  .form-grid,
  .app-block-grid {
    grid-template-columns: 1fr;
  }
  .family-list a {
    grid-template-columns: 4.5rem 1fr auto;
  }
  .family-list .family-num { display: none; }
  .family-list { grid-template-columns: 1fr; }
  .make-steps { grid-template-columns: 1fr 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .header-cta { display: none; }
  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    background: rgba(11, 15, 20, 0.97);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.25rem 1.25rem;
    display: none;
    margin: 0;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; }
  .nav-toggle { display: inline-flex; }
  .news-list a { grid-template-columns: 1fr; gap: 0.35rem; }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .make-steps { grid-template-columns: 1fr; }
  .hero { min-height: 92vh; padding-bottom: 3rem; }
}
