/* AMSEK Research Labs — amsekresearch.com
   One stylesheet, no JavaScript, no third-party requests.
   The two products (Loxymity, Aptafix) are both dark and gold; the parent is deliberately
   light, monochrome and typographic so it reads as the house, not a third product. */

@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/Inter.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #121315;
  --ink-2: #32353b;
  --body: #41454c;
  --muted: #5f636b;
  --faint: #6e727a;
  --line: #e2dfd9;
  --line-2: #d2cec6;
  --paper: #faf9f7;
  --paper-2: #f2f0ec;
  --white: #fff;
  --focus: #2d5bd7;

  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --wrap: 1080px;
  --gap: clamp(3.5rem, 8vw, 6.5rem);
}

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3 {
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.032em;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: var(--ink);
  text-decoration-color: var(--line-2);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-color: currentColor;
}

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

img,
svg {
  max-width: 100%;
  height: auto;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.7rem 1.1rem;
  z-index: 10;
  text-decoration: none;
}

.skip:focus {
  left: 0.5rem;
  top: 0.5rem;
}

.eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- header ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 76px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}

.brand img {
  width: 26px;
  height: 26px;
  display: block;
}

.brand b {
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand span {
  font-size: 0.94rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-nav {
  display: flex;
  gap: clamp(1rem, 3vw, 2rem);
  font-size: 0.93rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  white-space: nowrap;
}

.site-nav a:hover {
  color: var(--ink);
}

/* ---------- hero ---------- */

.hero {
  padding-block: clamp(4rem, 11vw, 8.5rem) clamp(3.5rem, 9vw, 6.5rem);
  border-bottom: 1px solid var(--line);
}

.hero h1 {
  font-size: clamp(2.5rem, 6.4vw, 4.4rem);
  letter-spacing: -0.038em;
  line-height: 1.03;
  margin-top: 1.5rem;
  max-width: 17ch;
}

.hero .lead {
  margin-top: 1.75rem;
  max-width: 54ch;
  font-size: clamp(1.06rem, 1.7vw, 1.22rem);
  line-height: 1.6;
  color: var(--ink-2);
}

.meta {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.meta span + span::before {
  content: '';
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--line-2);
  margin-right: 0.85rem;
}

@media (max-width: 620px) {
  .meta {
    flex-direction: column;
    gap: 0.3rem;
  }

  .meta span + span::before {
    display: none;
  }

  .site-nav {
    gap: 0.5rem 1.1rem;
    flex-wrap: wrap;
    font-size: 0.88rem;
  }
}

.cta-row {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.82rem 1.5rem;
  border-radius: 2px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--ink);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
}

.btn-primary:hover {
  background: var(--ink-2);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}

.btn-ghost:hover {
  border-color: var(--ink);
}

/* ---------- sections ---------- */

.section {
  padding-block: var(--gap);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 62ch;
}

.section-head h2 {
  margin-top: 1rem;
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
}

.section-head p {
  margin-top: 1.1rem;
  color: var(--muted);
  font-size: 1.04rem;
}

/* numbered research areas */

.areas {
  list-style: none;
  margin: 3rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.areas li {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 20ch) minmax(0, 1fr);
  gap: 0.5rem 2rem;
  align-items: start;
  padding-block: 1.9rem;
  border-bottom: 1px solid var(--line);
}

.areas .num {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
  padding-top: 0.3rem;
}

.areas h3 {
  font-size: 1.16rem;
  letter-spacing: -0.02em;
}

.areas p {
  color: var(--muted);
  font-size: 0.99rem;
}

@media (max-width: 720px) {
  .areas li {
    grid-template-columns: 3rem minmax(0, 1fr);
  }

  .areas p {
    grid-column: 2;
  }
}

/* products */

.products {
  margin-top: 3rem;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}

.product {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: clamp(1.6rem, 3vw, 2.2rem);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.product-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* each product's own mark, drawn in ink: Loxymity's round dot, Aptafix's square pixel */
.glyph {
  width: 11px;
  height: 11px;
  background: var(--ink);
  flex: none;
}

.glyph.round {
  border-radius: 50%;
}

.product h3 {
  font-size: 1.3rem;
  letter-spacing: -0.025em;
}

.product .role {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}

.product p {
  color: var(--muted);
  font-size: 0.99rem;
}

.product dl {
  margin: 0.4rem 0 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 1.25rem;
  font-size: 0.88rem;
}

.product dt {
  color: var(--faint);
}

.product dd {
  margin: 0;
  color: var(--ink-2);
}

.product .go {
  margin-top: auto;
  padding-top: 1.1rem;
  font-size: 0.93rem;
  font-weight: 500;
}

.product .go a {
  text-decoration: none;
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 2px;
}

.product .go a:hover {
  border-color: var(--ink);
}

/* two-column prose blocks (partners, careers) */

.cols {
  margin-top: 2.5rem;
  display: grid;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}

.cols h3 {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
}

.cols p + p {
  margin-top: 0.9rem;
}

.cols p {
  color: var(--muted);
  font-size: 0.99rem;
}

.note {
  margin-top: 2.25rem;
  padding: 1.15rem 1.35rem;
  background: var(--paper-2);
  border-left: 2px solid var(--line-2);
  font-size: 0.95rem;
  color: var(--muted);
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--ink);
  color: #b9bcc2;
  padding-block: clamp(3rem, 6vw, 4.5rem);
  font-size: 0.92rem;
}

.site-footer a {
  color: #e8e7e4;
  text-decoration-color: #4a4e55;
}

.site-footer a:hover {
  text-decoration-color: currentColor;
}

.foot-grid {
  display: grid;
  gap: 2.25rem clamp(1.5rem, 4vw, 3.25rem);
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.foot-grid h4 {
  margin: 0 0 0.8rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #7f838b;
}

.foot-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.foot-brand img {
  width: 26px;
  height: 26px;
  display: block;
  margin-bottom: 0.9rem;
}

.foot-brand {
  min-width: 15rem;
}

.foot-brand b {
  display: block;
  color: #f3f2f0;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.88rem;
}

.foot-brand p {
  margin-top: 0.6rem;
  max-width: 28ch;
  color: #8a8e96;
}

.legal {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid #2a2d33;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #8a8e96;
}

.legal p {
  margin: 0;
}

/* ---------- legal + 404 pages ---------- */

.doc {
  padding-block: clamp(3rem, 7vw, 5rem);
  max-width: 72ch;
}

.doc h1 {
  font-size: clamp(2rem, 4.4vw, 2.9rem);
}

.doc .updated {
  margin-top: 1rem;
  color: var(--faint);
  font-size: 0.9rem;
}

.doc h2 {
  margin-top: 2.75rem;
  font-size: 1.22rem;
  letter-spacing: -0.02em;
}

.doc h2 + p,
.doc p + p,
.doc ul + p {
  margin-top: 0.95rem;
}

.doc ul {
  margin: 0.95rem 0 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.5rem;
}

.doc li::marker {
  color: var(--line-2);
}

.center {
  min-height: 56vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 5rem;
}

.center h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}

.center p {
  margin-top: 1.1rem;
  color: var(--muted);
  max-width: 48ch;
}
