@font-face {
  font-family: "Atomency Display";
  src: local("Georgia");
}

:root {
  --paper: #f7f4ea;
  --paper-2: #eee7d7;
  --ink: #121416;
  --ink-2: #30383f;
  --muted: #6c746d;
  --line: rgba(18, 20, 22, 0.16);
  --gold: #c99a2e;
  --gold-2: #e4c15f;
  --blue: #245a74;
  --green: #286f5f;
  --red: #a94634;
  --white: #fffdf7;
  --shadow: 0 24px 70px rgba(35, 30, 20, 0.16);
  --radius: 8px;
  --max: 1180px;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Atomency Display", Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  color: var(--ink);
  font-family: var(--sans);
  background:
    linear-gradient(rgba(36, 90, 116, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 90, 116, 0.05) 1px, transparent 1px),
    var(--paper);
  background-size: 34px 34px;
  letter-spacing: 0;
}

a {
  color: inherit;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  z-index: 20;
  background: var(--ink);
  color: var(--white);
  padding: 10px 14px;
}

.skip-link:focus {
  left: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247, 244, 234, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.nav {
  max-width: var(--max);
  margin: 0 auto;
  min-height: 72px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border: 1px solid var(--ink);
  display: grid;
  place-items: center;
  background: var(--gold);
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  font-size: 13px;
  font-weight: 760;
  padding: 10px 12px;
  border-bottom: 2px solid transparent;
  color: var(--ink-2);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
  border-bottom-color: var(--gold);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 2px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
  box-shadow: 5px 5px 0 var(--gold);
}

.button.secondary {
  background: transparent;
  color: var(--ink);
  box-shadow: none;
}

.home-hero {
  position: relative;
  min-height: calc(100vh - 72px);
  overflow: hidden;
  display: grid;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(247, 244, 234, 0.96) 0%, rgba(247, 244, 234, 0.86) 42%, rgba(247, 244, 234, 0.18) 100%),
    url("lab-snapshot.svg") center right / cover no-repeat;
}

.home-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 110px;
  background: linear-gradient(0deg, var(--paper), transparent);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 110px) 24px 76px;
}

.hero-copy {
  max-width: 670px;
  min-width: 0;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 900;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(54px, 9vw, 112px);
  line-height: 0.9;
}

h2 {
  font-size: clamp(34px, 5vw, 66px);
  line-height: 0.96;
}

h3 {
  font-size: clamp(23px, 3vw, 35px);
  line-height: 1.05;
}

.hero-copy p {
  max-width: 540px;
  margin: 26px 0 0;
  color: var(--ink-2);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
  font-weight: 620;
  overflow-wrap: break-word;
}

.hero-actions,
.actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 34px;
}

.quick-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 760px;
  margin-top: 46px;
  border: 1px solid var(--line);
  background: var(--line);
}

.proof-item {
  background: rgba(255, 253, 247, 0.88);
  padding: 14px 16px;
}

.proof-item strong {
  display: block;
  font-size: 24px;
  font-family: var(--serif);
}

.proof-item span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(70px, 9vw, 128px) 24px;
}

.section.tight {
  padding-top: 62px;
  padding-bottom: 62px;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 0.6fr);
  gap: clamp(26px, 6vw, 80px);
  align-items: end;
  margin-bottom: 42px;
}

.section-head p,
.lead {
  margin: 0;
  color: var(--ink-2);
  font-size: 18px;
  line-height: 1.7;
  font-weight: 560;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.65fr);
  gap: clamp(30px, 6vw, 74px);
  align-items: center;
}

.rail {
  border-top: 2px solid var(--ink);
}

.rail-row {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr) minmax(240px, 0.5fr);
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.rail-row .num {
  font-family: var(--serif);
  font-size: 36px;
  color: var(--gold);
  line-height: 1;
}

.rail-row p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
  align-content: flex-start;
}

.tag-list span {
  align-self: flex-start;
  border: 1px solid var(--line);
  background: var(--white);
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 800;
}

.workbench {
  position: relative;
  min-height: 420px;
  border: 1px solid var(--ink);
  background:
    linear-gradient(rgba(36, 90, 116, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 90, 116, 0.1) 1px, transparent 1px),
    var(--white);
  background-size: 28px 28px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.workbench::before {
  content: "MOLECULAR LAB";
  position: absolute;
  left: 20px;
  top: 18px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.15em;
  color: var(--blue);
}

.molecule-map {
  position: absolute;
  inset: 0;
}

.molecule-svg {
  position: absolute;
  inset: 56px 38px 26px;
  width: calc(100% - 76px);
  height: calc(100% - 82px);
}

.molecule-svg line {
  stroke: var(--blue);
  stroke-width: 7;
  stroke-linecap: round;
}

.svg-atom circle {
  stroke: rgba(18, 20, 22, 0.14);
  stroke-width: 1;
  filter: drop-shadow(0 16px 20px rgba(18, 20, 22, 0.12));
}

.svg-atom text {
  text-anchor: middle;
  font-family: var(--sans);
  font-size: 24px;
  font-weight: 950;
  fill: var(--ink);
}

.svg-atom.carbon circle {
  fill: #d8d8d6;
}

.svg-atom.oxygen circle {
  fill: #e33b2f;
}

.svg-atom.oxygen text {
  fill: white;
}

.svg-atom.hydrogen circle {
  fill: #fffdf7;
}

.atom {
  position: absolute;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink);
  font-weight: 950;
  box-shadow: inset -14px -16px 24px rgba(0, 0, 0, 0.16), 0 14px 32px rgba(0, 0, 0, 0.12);
}

.atom.c { left: 38%; top: 38%; background: #d8d8d6; }
.atom.o { left: 57%; top: 38%; background: #e94332; color: white; }
.atom.h1 { left: 27%; top: 23%; width: 54px; height: 54px; background: #fff; }
.atom.h2 { left: 27%; top: 59%; width: 54px; height: 54px; background: #fff; }
.atom.h3 { left: 72%; top: 42%; width: 54px; height: 54px; background: #fff; }

.bond {
  position: absolute;
  height: 5px;
  background: var(--blue);
  transform-origin: left center;
  border-radius: 99px;
}

.bond.b1 { left: 44%; top: 48%; width: 98px; }
.bond.b2 { left: 35%; top: 40%; width: 88px; transform: rotate(38deg); }
.bond.b3 { left: 35%; top: 60%; width: 88px; transform: rotate(-38deg); }

.note-strip {
  border-left: 3px solid var(--gold);
  padding-left: 18px;
}

.note-strip p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

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

.feature-card {
  background: rgba(255, 253, 247, 0.78);
  border: 1px solid var(--line);
  padding: 24px;
}

.feature-card strong {
  display: block;
  font-size: 18px;
  margin-bottom: 12px;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 247, 0.58);
}

.page-hero {
  max-width: var(--max);
  margin: 0 auto;
  min-height: 52vh;
  padding: clamp(72px, 9vw, 116px) 24px 58px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 0.55fr);
  gap: clamp(30px, 7vw, 90px);
  align-items: end;
}

.page-hero p {
  margin: 18px 0 0;
  color: var(--ink-2);
  font-size: 20px;
  line-height: 1.65;
  font-weight: 560;
}

.ledger {
  border-top: 2px solid var(--ink);
}

.ledger-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.35fr) minmax(0, 1fr);
  gap: 28px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.ledger-row strong {
  font-family: var(--serif);
  font-size: 24px;
}

.ledger-row p,
.ledger-row ul {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.ledger-row li + li {
  margin-top: 8px;
}

.contact-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.contact-tile {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 28px;
  text-decoration: none;
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-tile:hover {
  border-color: var(--ink);
}

.contact-tile span {
  color: var(--muted);
  line-height: 1.6;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 34px 24px;
  color: var(--muted);
  background: rgba(247, 244, 234, 0.92);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
}

.footer a {
  color: var(--ink);
  font-weight: 800;
}

@media (max-width: 900px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .nav-links {
    width: 100%;
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    white-space: nowrap;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links a {
    flex: 0 0 auto;
    padding: 7px 2px;
    font-size: 12px;
  }

  .nav-cta {
    width: auto;
    min-height: 40px;
  }

  .home-hero {
    min-height: auto;
    background:
      linear-gradient(rgba(247, 244, 234, 0.9), rgba(247, 244, 234, 0.92)),
      url("lab-snapshot.svg") center / cover no-repeat;
  }

  .quick-proof,
  .section-head,
  .split,
  .page-hero,
  .feature-grid,
  .contact-board {
    grid-template-columns: 1fr;
  }

  .rail-row,
  .ledger-row {
    grid-template-columns: 1fr;
  }

  .rail-row .num {
    font-size: 28px;
  }

  h1 {
    font-size: clamp(48px, 17vw, 76px);
  }
}

@media (max-width: 560px) {
  .hero-inner,
  .section,
  .page-hero {
    padding-left: 18px;
    padding-right: 18px;
    max-width: 100%;
  }

  .hero-inner {
    width: 100vw;
  }

  .hero-actions,
  .actions {
    align-items: stretch;
    flex-direction: column;
    width: min(100%, calc(100vw - 36px));
    max-width: calc(100vw - 36px);
  }

  .button {
    width: calc(100vw - 42px);
    max-width: calc(100vw - 42px);
  }

  .hero-copy,
  .hero-copy p,
  .quick-proof {
    width: min(100%, calc(100vw - 36px));
    max-width: calc(100vw - 36px);
  }

  .workbench {
    min-height: 340px;
  }
}
