/* ============================================================
   ASIKM Research Home — Tilde-inspired, breakthroughs only
   Minimal text. Large type. List of what we study.
   ============================================================ */

@import url('magie.css');
@import url('asikm-logo.css');

/* Reset product-page noise for this surface */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.page-research-home {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--ground-0);
  color: var(--ink-0);
  font-family: var(--font-grotesk, Inter, system-ui, sans-serif);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Quieter grid than product landing */
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--grid-line, #e4e2dc) 55%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--grid-line, #e4e2dc) 55%, transparent) 1px, transparent 1px);
  background-size: 48px 48px;
  background-attachment: fixed;
}

body.page-research-home::before {
  opacity: 0.55;
}

/* ---- Nav ---- */
body.page-research-home nav.rh-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav, 100);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 48px);
  background: color-mix(in srgb, var(--ground-0) 78%, transparent);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}

body.page-research-home nav.rh-nav.is-scrolled {
  border-bottom-color: var(--breath-1);
}

.rh-nav-left,
.rh-nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.rh-nav a.rh-link {
  font-family: var(--font-grotesk);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-1);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: var(--r-1, 6px);
  letter-spacing: 0.01em;
  transition: color 0.15s ease, background 0.15s ease;
}

.rh-nav a.rh-link:hover {
  color: var(--ink-0);
  background: var(--ground-2);
}

.rh-nav a.rh-link .rh-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  color: var(--ink-2);
  margin-left: 6px;
}

/* ---- Main ---- */
.rh-main {
  flex: 1;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 120px clamp(20px, 4vw, 48px) 80px;
}

/* ---- Hero ---- */
.rh-hero {
  min-height: min(58vh, 520px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 48px;
  margin-bottom: 8px;
}

.rh-hero-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(42px, 8.5vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--ink-0);
  margin: 0;
  max-width: 14ch;
}

.rh-hero-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--ink-1);
}

.rh-hero-lede {
  margin-top: 28px;
  max-width: 36ch;
  font-family: var(--font-serif);
  font-size: clamp(16px, 1.6vw, 19px);
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink-1);
}

.rh-hero-lede + .rh-hero-lede {
  margin-top: 12px;
  font-size: clamp(14px, 1.3vw, 16px);
  color: var(--ink-2);
  max-width: 42ch;
}

/* ---- Breakthroughs ---- */
.rh-section {
  margin-top: 72px;
  padding-top: 8px;
  border-top: 1px solid var(--breath-1);
}

.rh-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rh-item {
  border-bottom: 1px solid var(--breath-1);
}

.rh-item:first-child {
  border-top: 1px solid transparent;
}

.rh-item a {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 16px 24px;
  align-items: baseline;
  padding: 22px 4px;
  text-decoration: none;
  color: inherit;
  transition: background 0.18s ease;
}

.rh-item a:hover {
  background: color-mix(in srgb, var(--ground-2) 70%, transparent);
}

.rh-item a:hover .rh-item-title {
  color: var(--signal);
}

.rh-item-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-2);
  letter-spacing: 0.04em;
  padding-top: 4px;
}

.rh-item-body {
  min-width: 0;
}

.rh-item-title {
  font-family: var(--font-serif);
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink-0);
  margin: 0 0 6px;
  transition: color 0.15s ease;
}

.rh-item-line {
  font-family: var(--font-grotesk);
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-1);
  margin: 0;
  max-width: 52ch;
}

.rh-item-stat {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  white-space: nowrap;
  padding-top: 6px;
  text-align: right;
}

/* ---- Contact strip ---- */
.rh-contact {
  margin-top: 72px;
  padding-top: 40px;
  border-top: 1px solid var(--breath-1);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
}

.rh-contact-line {
  font-family: var(--font-grotesk);
  font-size: 14px;
  color: var(--ink-1);
  margin: 0;
  max-width: 36ch;
}

.rh-contact a.rh-mail {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--signal);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.rh-contact a.rh-mail:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---- Footer ---- */
.rh-footer {
  margin-top: auto;
  padding: 28px clamp(20px, 4vw, 48px) 36px;
  border-top: 1px solid var(--breath-1);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1120px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.rh-footer-brand {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.rh-footer-links {
  display: flex;
  gap: 16px;
  align-items: center;
}

.rh-footer-links a {
  font-family: var(--font-grotesk);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
}

.rh-footer-links a:hover {
  color: var(--ink-0);
}

/* ---- Responsive ---- */
@media (max-width: 720px) {
  .rh-item a {
    grid-template-columns: 36px 1fr;
    gap: 8px 14px;
    padding: 18px 2px;
  }

  .rh-item-stat {
    grid-column: 2;
    text-align: left;
    padding-top: 0;
  }

  .rh-hero {
    min-height: 42vh;
    padding-bottom: 32px;
  }

  .rh-nav-links .rh-link .rh-num {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rh-item a,
  .rh-nav a.rh-link {
    transition: none;
  }
}
