:root {
  --bg: oklch(98.6% 0.006 220);
  --surface: oklch(96.6% 0.008 215);
  --surface-strong: oklch(93.6% 0.012 212);
  --ink: oklch(22% 0.03 240);
  --ink-soft: oklch(38% 0.03 236);
  --muted: oklch(50% 0.024 232);
  --line: oklch(89% 0.012 222);
  --line-soft: oklch(92% 0.01 222);
  --teal: oklch(54% 0.098 199);
  --teal-dark: oklch(41% 0.084 199);
  --clay: oklch(72% 0.066 62);
  --radius: 10px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px oklch(30% 0.03 235 / 0.06);
  --shadow: 0 22px 60px oklch(28% 0.03 235 / 0.1);
  --maxw: 1180px;
  --pad: clamp(16px, 4vw, 24px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    "Aptos", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
p,
dl,
dd,
figure {
  margin: 0;
  overflow-wrap: break-word;
}

:focus-visible {
  outline: 2px solid var(--teal-dark);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 50;
  padding: 10px 16px;
  background: var(--ink);
  color: oklch(98% 0.01 210);
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
}

.site-header,
.site-footer,
.hero,
.section,
.contact-section {
  width: min(var(--maxw), calc(100% - 2 * var(--pad)));
  margin-inline: auto;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 76px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 24px;
  padding: 12px 0;
  background: oklch(98.6% 0.006 220 / 0.86);
  backdrop-filter: saturate(120%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  object-fit: contain;
}

.brand-text {
  min-width: 0;
}

.brand strong {
  display: block;
  font-size: 21px;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.brand small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--ink-soft);
  font-size: 15px;
}

.nav a {
  position: relative;
  padding: 6px 2px;
  transition: color 160ms ease;
}

.nav a:hover {
  color: var(--teal-dark);
}

.header-action,
.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: var(--radius);
  font-weight: 650;
  font-size: 15px;
  border: 1px solid transparent;
  transition: background 160ms ease, border-color 160ms ease,
    transform 160ms ease, box-shadow 160ms ease, color 160ms ease;
}

.header-action,
.primary-action {
  background: var(--teal-dark);
  color: oklch(98% 0.01 205);
  box-shadow: 0 10px 26px oklch(40% 0.08 199 / 0.22);
}

.header-action:hover,
.primary-action:hover {
  background: var(--teal);
  transform: translateY(-1px);
}

.secondary-action {
  background: oklch(99% 0.004 210);
  border-color: var(--line);
  color: var(--ink);
}

.secondary-action:hover {
  border-color: var(--teal);
  color: var(--teal-dark);
  transform: translateY(-1px);
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.8fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding: clamp(48px, 7vw, 84px) 0 clamp(40px, 6vw, 64px);
}

.eyebrow {
  margin: 0;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

h1 {
  margin-top: 16px;
  /* Company name stays on a single line at every width; the cap and vw factor
     carry a safety margin so it never wraps/overflows across font fallbacks. */
  font-size: clamp(22px, 7.2vw, 46px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.hero-lead {
  max-width: 600px;
  margin-top: 24px;
  color: var(--ink-soft);
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.hero-chips li {
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
}

.hero-panel {
  align-self: stretch;
  display: grid;
  align-content: start;
  gap: 18px;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(165deg, oklch(97% 0.014 199 / 0.7), oklch(98.6% 0.006 220)),
    var(--surface);
  box-shadow: var(--shadow);
}

.hero-logo {
  width: 84px;
  height: 84px;
  object-fit: contain;
}

.hero-panel-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.fact-list {
  display: grid;
  gap: 0;
}

.fact-list div {
  display: grid;
  gap: 3px;
  padding: 12px 0;
  border-top: 1px solid var(--line-soft);
}

.fact-list div:first-child {
  border-top: 0;
  padding-top: 0;
}

.fact-list dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.fact-list dd {
  color: var(--ink);
  font-weight: 650;
  font-size: 16px;
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(56px, 7vw, 96px) 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 820px;
  margin-bottom: clamp(32px, 4vw, 48px);
}

.section-heading h2,
.contact-section h2 {
  margin-top: 12px;
  font-size: clamp(28px, 3.6vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.section-heading p:not(.eyebrow),
.contact-section p:not(.eyebrow) {
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 18px;
}

.section-heading.split {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.5fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: end;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 64px);
  color: var(--ink-soft);
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.62;
}

/* Capabilities */
.capability-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.capability {
  display: grid;
  align-content: start;
  padding: 26px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: oklch(99% 0.004 210);
}

.capability-number,
.rd-timeline span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid oklch(56% 0.09 199 / 0.4);
  border-radius: 50%;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 750;
}

.capability h3,
.contour h3,
.rd-timeline h3 {
  margin-top: 22px;
  font-size: 21px;
  line-height: 1.2;
}

.capability p,
.contour p,
.contour li,
.rd-timeline p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 16px;
}

/* Contours */
.contour-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contour {
  padding: clamp(26px, 3vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: oklch(99% 0.004 210);
}

.contour.regulated {
  background:
    linear-gradient(150deg, oklch(98% 0.008 210), oklch(95% 0.024 62 / 0.55));
}

.contour ul {
  display: grid;
  gap: 9px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.contour li {
  position: relative;
  margin-top: 0;
  padding-left: 22px;
}

.contour li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
}

/* R&D */
.rd-timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}

.rd-timeline article {
  padding: 30px 30px 8px 0;
  border-right: 1px solid var(--line);
}

.rd-timeline article + article {
  padding-left: 30px;
}

.rd-timeline article:last-child {
  border-right: 0;
}

/* Status */
.status-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

.partner-logos {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.partner-logos li {
  min-height: 104px;
  display: grid;
  place-items: center;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: oklch(99.2% 0.003 210);
}

.partner-logos img {
  max-height: 60px;
  width: auto;
  object-fit: contain;
}

.status-badges {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.status-badges li {
  display: grid;
  gap: 4px;
  padding: 16px 0;
  border-top: 1px solid var(--line-soft);
}

.status-badges li:first-child {
  padding-top: 0;
  border-top: 0;
}

.status-badges strong {
  font-size: 17px;
  font-weight: 650;
}

.status-badges span {
  color: var(--muted);
  font-size: 15px;
}

/* Projects */
.projects .section-heading {
  max-width: 760px;
}

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

.project-card {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: oklch(99% 0.004 210);
}

.project-card.linked {
  border-color: oklch(56% 0.09 199 / 0.4);
  background:
    linear-gradient(150deg, oklch(96% 0.022 199 / 0.7), oklch(99% 0.004 210));
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.project-card.linked:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.project-card span {
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.project-card strong {
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.15;
}

.project-card small {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

/* Contacts */
.contact-section {
  margin-block: clamp(56px, 7vw, 96px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, auto);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(30px, 4vw, 52px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(140deg, oklch(96% 0.022 199 / 0.6), oklch(95% 0.022 62 / 0.5)),
    var(--surface);
}

.contact-address {
  margin-top: 18px;
  color: var(--ink-soft);
  font-style: normal;
  font-size: 16px;
}

.contact-actions {
  display: grid;
  gap: 10px;
  min-width: min(320px, 100%);
}

.contact-actions .primary-action,
.contact-actions .secondary-action {
  width: 100%;
}

/* Footer */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(36px, 5vw, 56px) 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-meta {
  display: grid;
  gap: 4px;
  text-align: right;
  font-size: 14px;
}

.footer-copy {
  margin-top: 8px;
}

/* 404 */
.not-found {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.not-found-panel {
  width: min(520px, 100%);
  padding: 44px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-align: center;
}

.not-found-panel h1 {
  margin-top: 0;
  font-size: 34px;
}

.not-found-panel p {
  margin: 14px 0 28px;
  color: var(--muted);
}

/* ---------- Responsive ---------- */
/* Hero stacks to one column earlier so the single-line H1 always has room. */
@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: 10px;
  }

  .nav {
    grid-column: 1 / -1;
    grid-row: 2;
    flex-wrap: wrap;
    gap: 8px 18px;
    padding-top: 4px;
    border-top: 1px solid var(--line-soft);
  }

  .hero,
  .section-heading.split,
  .intro-grid,
  .contour-grid,
  .status-grid,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .capability-grid {
    grid-template-columns: 1fr 1fr;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .rd-timeline {
    grid-template-columns: 1fr;
  }

  .rd-timeline article,
  .rd-timeline article + article {
    padding: 24px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .rd-timeline article:last-child {
    border-bottom: 0;
  }

  .footer-meta {
    text-align: left;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .brand small {
    display: none;
  }

  .header-action {
    min-height: 42px;
    padding: 0 16px;
    font-size: 14px;
  }

  .nav {
    font-size: 14px;
    gap: 6px 14px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .primary-action,
  .hero-actions .secondary-action {
    width: 100%;
  }

  .capability-grid {
    grid-template-columns: 1fr;
  }

  .project-card,
  .contour,
  .capability {
    padding: 22px;
  }
}
