/* ============================================================
   Antecedent Labs — Cool Stone Theme (Option 1)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Source+Serif+4:ital,wght@0,400;0,500;0,600;1,400&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: #1F1F1F; background: #F4F6F8; }
a { color: inherit; text-decoration: none; transition: color 0.15s ease; }
img { display: block; max-width: 100%; }

/* ============================================================
   HEADER
   ============================================================ */
header {
  position: sticky; top: 0; z-index: 100;
  background: #F4F6F8;
  height: 54px;
  border-bottom: 1px solid #D2D9E0;
}
.h-inner {
  max-width: 1060px; margin: 0 auto; padding: 0 48px;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.logo { display: inline-flex; align-items: baseline; gap: 2px; }
.logo-mark { width: 28px; height: 26px; flex-shrink: 0; position: relative; top: 5px; }
.logo-text {
  font-size: 14px; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; color: #1F1F1F;
  position: relative; top: -1px;
}
.logo-text span { font-weight: 300; color: #6B7D8C; }
nav { display: flex; gap: 28px; align-items: center; }
nav a {
  font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase;
  color: #6B7D8C;
}
nav a:hover { color: #1F1F1F; }
nav .cta {
  border: 1px solid #D2D9E0; padding: 5px 16px;
  color: #6B7D8C;
}
nav .cta:hover { border-color: #3D4F5C; color: #1F1F1F; }

/* ============================================================
   HERO (homepage)
   ============================================================ */
.hero-wrap {
  background: #E2E8EF;
  border-bottom: 1px solid #C4CED8;
}
.hero {
  max-width: 1060px; margin: 0 auto;
  padding: 68px 48px 56px;
}
.hero-headline {
  max-width: 680px;
  line-height: 1.28;
}
.hero-accent {
  display: block; width: 40px; height: 3px; background: #1A5275; margin-bottom: 28px;
}
.hero-accent-bottom {
  display: block; width: 40px; height: 3px; background: #1A5275; margin-top: 28px;
}
.hero-rest {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 36px; font-weight: 400; letter-spacing: -0.02em;
  color: #103B59;
}
.hero-sub {
  font-size: 15px; color: #3D4F5C; line-height: 1.75;
  max-width: 620px;
}

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero-wrap {
  background: #E2E8EF;
  border-bottom: 1px solid #C4CED8;
}
.page-hero {
  max-width: 1060px; margin: 0 auto;
  padding: 52px 48px 44px;
}
.page-hero h1 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 28px; font-weight: 600; letter-spacing: -0.015em;
  color: #1F1F1F; line-height: 1.2;
}
.page-hero .page-subtitle {
  font-size: 14px; color: #6B7D8C; margin-top: 8px;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section { max-width: 1060px; margin: 0 auto; padding: 56px 48px; }
.sec-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 36px;
}
.sec-head h2 {
  font-size: 13px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: #103B59;
}
.sec-head .status {
  font-size: 10px; font-weight: 500; letter-spacing: 0.06em;
  text-transform: uppercase; color: #5A8A6D;
  margin-left: 12px;
}
.sec-head a {
  font-size: 12px; color: #6B7D8C;
  text-decoration: underline; text-underline-offset: 3px;
}
.sec-head a:hover { color: #1F1F1F; }
.sep { max-width: 1060px; margin: 0 auto; padding: 0 48px; }
.sep-line { height: 1px; background: #D2D9E0; }

/* ============================================================
   ENGINE
   ============================================================ */
.engine-intro {
  max-width: 580px; margin-bottom: 32px;
}
.engine-intro h3 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 21px; font-weight: 600; line-height: 1.3;
  color: #1F1F1F; margin-bottom: 14px;
}
.engine-intro p {
  font-size: 14.5px; color: #3D4F5C; line-height: 1.7;
}
.phase-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 1px solid #D2D9E0;
}
.phase-cell {
  padding: 20px 24px 20px 0;
}
.phase-cell + .phase-cell {
  padding-left: 24px;
  border-left: 1px solid #D2D9E0;
}
.phase-cell .label {
  font-size: 13px; font-weight: 600; color: #1F1F1F; margin-bottom: 4px;
}
.phase-cell .desc {
  font-size: 12px; color: #5C6F7E; line-height: 1.45;
}
.engine-foot {
  margin-top: 28px;
}
.engine-evidence {
  font-size: 12.5px; color: #3D4F5C; line-height: 1.6;
  padding: 14px 16px; margin-bottom: 16px;
  background: #E8ECF1; border-left: 3px solid #A7AFAF;
}
.engine-foot p {
  font-size: 13px; color: #5C6F7E; line-height: 1.6; margin-bottom: 10px;
}
.engine-foot .adapt {
  font-size: 13px; color: #1F1F1F; font-weight: 500;
  padding: 12px 16px; margin-top: 6px;
  background: #E8ECF1; border-left: 3px solid #1A5275;
}
.engine-foot .adapt a {
  color: #1A5275; text-decoration: underline; text-underline-offset: 3px;
}
.engine-foot .adapt a:hover { color: #1F1F1F; }

/* ============================================================
   ENGINE CAROUSEL
   ============================================================ */
.engine-carousel-wrap {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #D2D9E0;
}
.engine-carousel-label {
  font-size: 10px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: #7A8FA0;
  margin-bottom: 16px;
}
.engine-carousel {
  position: relative;
  width: 100%; max-width: 960px;
  background: #FFFFFF;
  border: 1px solid #D2D9E0;
  border-radius: 6px;
  overflow: hidden;
}
.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.carousel-slide {
  min-width: 100%;
  flex-shrink: 0;
}
.carousel-slide img {
  width: 100%;
  display: block;
}
.carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px;
  background: rgba(244, 246, 248, 0.92);
  border: 1px solid #D2D9E0;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.carousel-arrow:hover {
  background: #FFFFFF;
  border-color: #A7AFAF;
}
.carousel-arrow svg {
  width: 14px; height: 14px;
  stroke: #3D4F5C; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.carousel-prev { left: 10px; }
.carousel-next { right: 10px; }
.carousel-dots {
  display: flex; justify-content: center; gap: 8px;
  padding: 12px 0 14px;
  background: #FFFFFF;
  border-top: 1px solid #E8ECF1;
}
.carousel-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #D2D9E0;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.carousel-dot.active {
  background: #103B59;
  transform: scale(1.15);
}
.carousel-dot:hover:not(.active) {
  background: #A7AFAF;
}
.carousel-slide-label {
  position: absolute; bottom: 40px; left: 16px;
  font-size: 9.5px; font-weight: 500; letter-spacing: 0.06em;
  text-transform: uppercase; color: #7A8FA0;
  background: rgba(244, 246, 248, 0.88);
  padding: 3px 10px; border-radius: 3px;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.carousel-slide.is-active .carousel-slide-label {
  opacity: 1;
}
.engine-visual-note {
  font-size: 10px; color: #A7AFAF; font-style: italic;
  margin-top: 12px; margin-bottom: 8px;
}

/* ============================================================
   PAPERS
   ============================================================ */
.papers-grid { margin-bottom: 36px; }

.paper-source {
  max-width: 620px;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid #D2D9E0;
}
.paper-source .tag {
  font-size: 10px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: #103B59; margin-bottom: 14px;
}
.paper-source h3 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 20px; font-weight: 600; line-height: 1.3;
  color: #1F1F1F; margin-bottom: 12px;
}
.paper-source p { font-size: 14px; color: #3D4F5C; line-height: 1.65; margin-bottom: 14px; }
.paper-source .links { font-size: 11.5px; color: #7A8FA0; }
.paper-source .links a { text-decoration: underline; text-underline-offset: 2px; }
.paper-source .links a:hover { color: #1F1F1F; }

.papers-derived-label {
  font-size: 10px; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; color: #7A8FA0;
  margin-bottom: 20px;
}

.papers-two {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  margin-bottom: 0;
}
.paper { padding-right: 44px; }
.paper + .paper { padding-left: 44px; padding-right: 0; border-left: 1px solid #D2D9E0; }
.paper .tag {
  font-size: 10px; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; color: #7A8FA0; margin-bottom: 14px;
}
.paper h3 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 17px; font-weight: 600; line-height: 1.35;
  color: #1F1F1F; margin-bottom: 10px;
}
.paper p { font-size: 13.5px; color: #3D4F5C; line-height: 1.6; margin-bottom: 14px; }
.paper .links { font-size: 11.5px; color: #7A8FA0; }
.paper .links a { text-decoration: underline; text-underline-offset: 2px; }
.paper .links a:hover { color: #1F1F1F; }

/* Research page — full paper cards */
.paper-card {
  padding: 40px 0;
  border-bottom: 1px solid #D2D9E0;
}
.paper-card h2 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 20px; font-weight: 600; line-height: 1.35;
  color: #1F1F1F; margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.paper-card .paper-type {
  font-size: 10px; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; color: #7A8FA0; margin-bottom: 14px;
}
.paper-card .paper-tag {
  font-size: 10px; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; color: #103B59; margin-bottom: 14px;
  display: inline-block;
}
.paper-card .paper-meta {
  font-size: 12px; color: #6B7D8C; margin-bottom: 14px;
}
.paper-card .paper-desc {
  font-size: 14px; color: #3D4F5C; line-height: 1.65;
  margin-bottom: 16px; max-width: 640px;
}
.paper-card .paper-ids {
  font-size: 12px; color: #7A8FA0; margin-bottom: 16px;
}
.paper-card .paper-ids a {
  color: #7A8FA0; text-decoration: underline; text-underline-offset: 2px;
}
.paper-card .paper-ids a:hover { color: #1F1F1F; }
.paper-actions {
  display: flex; gap: 12px; flex-wrap: wrap;
}
.btn {
  display: inline-block; font-size: 12px; font-weight: 500;
  color: #6B7D8C; padding: 7px 18px;
  border: 1px solid #D2D9E0; transition: all 0.15s ease;
}
.btn:hover {
  border-color: #6B7D8C; color: #1F1F1F;
}
.paper-license {
  font-size: 11px; color: #7A8FA0; margin-top: 14px;
}
.sec-label {
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: #103B59; margin-bottom: 12px;
}

/* ============================================================
   GOVERNANCE
   ============================================================ */
.gov-content {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
}
.gov-main { padding-right: 44px; }
.gov-main h3 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 19px; font-weight: 600; line-height: 1.35;
  color: #1F1F1F; margin-bottom: 14px;
}
.gov-main p {
  font-size: 14px; color: #3D4F5C; line-height: 1.65; margin-bottom: 14px;
}
.gov-side {
  padding-left: 44px;
  border-left: 1px solid #D2D9E0;
}
.gov-side .reg-label {
  font-size: 10px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: #7A8FA0; margin-bottom: 14px;
}
.gov-side .reg-item {
  font-size: 12.5px; color: #3D4F5C; line-height: 1.6;
  margin-bottom: 10px;
}
.gov-side .reg-item strong {
  color: #1F1F1F; font-weight: 600;
}
.gov-cta { margin-top: 20px; }
.gov-cta a {
  font-size: 12px; color: #6B7D8C;
  text-decoration: underline; text-underline-offset: 3px;
}
.gov-cta a:hover { color: #1F1F1F; }

.gov-enterprise {
  margin-top: 40px; padding-top: 32px;
  border-top: 1px solid #D2D9E0;
}
.gov-enterprise-inner { max-width: 620px; }
.gov-enterprise h3 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 17px; font-weight: 600; line-height: 1.35;
  color: #1F1F1F; margin-bottom: 12px;
}
.gov-enterprise p {
  font-size: 13.5px; color: #3D4F5C; line-height: 1.65; margin-bottom: 16px;
}
.gov-ent-cta {
  font-size: 12px; color: #6B7D8C;
  text-decoration: underline; text-underline-offset: 3px;
}
.gov-ent-cta:hover { color: #1F1F1F; }

/* ============================================================
   MARKET INTELLIGENCE
   ============================================================ */
.intel-strip {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border-top: 1px solid #D2D9E0;
  padding-top: 32px;
}
.intel-main { padding-right: 44px; }
.intel-main h3 {
  font-size: 14px; font-weight: 600; color: #1F1F1F; margin-bottom: 8px;
}
.intel-main p {
  font-size: 13.5px; color: #3D4F5C; line-height: 1.6;
}
.intel-side {
  padding-left: 44px;
  border-left: 1px solid #D2D9E0;
  display: flex; flex-direction: column; justify-content: center;
}
.intel-side .item {
  font-size: 12.5px; color: #5C6F7E; line-height: 1.7;
}
.intel-side .item + .item { margin-top: 2px; }
.intel-cta { margin-top: 20px; }
.intel-cta a {
  font-size: 12px; color: #6B7D8C;
  text-decoration: underline; text-underline-offset: 3px;
}
.intel-cta a:hover { color: #1F1F1F; }
.intel-disclaimer {
  margin-top: 24px; padding-top: 16px;
  border-top: 1px solid #D2D9E0;
  font-size: 10.5px; color: #8694A0; line-height: 1.55;
  max-width: 680px;
}

/* ============================================================
   INNER PAGE CONTENT
   ============================================================ */
.page-body {
  max-width: 1060px; margin: 0 auto; padding: 40px 48px 80px;
}
.page-body p {
  font-size: 15px; color: #3D4F5C; line-height: 1.75;
  margin-bottom: 18px; max-width: 640px;
}
.page-body a {
  color: #6B7D8C; text-decoration: underline; text-underline-offset: 2px;
}
.page-body a:hover { color: #1F1F1F; }
.credential-list {
  list-style: none; padding: 0; margin: 24px 0;
}
.credential-list li {
  font-size: 14px; color: #3D4F5C; line-height: 1.5;
  padding: 5px 0 5px 14px; position: relative;
}
.credential-list li::before {
  content: ''; position: absolute;
  left: 0; top: 13px;
  width: 4px; height: 1px; background: #7A8FA0;
}

/* Research intro */
.research-intro {
  padding-bottom: 32px; margin-bottom: 0;
  border-bottom: 1px solid #D2D9E0;
}
.research-intro p {
  font-size: 15px; color: #3D4F5C; line-height: 1.75;
  max-width: 640px;
}
.research-orcid {
  font-size: 12px; color: #7A8FA0; margin-top: 20px;
}
.research-orcid a {
  color: #7A8FA0; text-decoration: underline; text-underline-offset: 2px;
}
.research-orcid a:hover { color: #1F1F1F; }

/* Intelligence page body */
.intel-body p {
  font-size: 15px; color: #3D4F5C; line-height: 1.75;
  margin-bottom: 18px; max-width: 640px;
}
.intel-note {
  font-size: 13px; color: #6B7D8C; font-style: normal;
  border-left: 3px solid #1A5275; padding-left: 20px;
  margin: 32px 0; max-width: 600px; line-height: 1.6;
}

/* Contact page */
.contact-email {
  font-size: 18px; font-weight: 500; color: #1F1F1F;
}
.contact-email:hover { color: #3D4F5C; }

/* ============================================================
   FOOTER
   ============================================================ */
footer { background: #F4F6F8; padding: 36px 48px; border-top: 1px solid #D2D9E0; }
.f-inner {
  max-width: 1060px; margin: 0 auto;
}
.f-top {
  display: flex; justify-content: space-between; align-items: flex-start;
}
.f-top-left {
  font-size: 12px; color: #8694A0; line-height: 1.8;
}
.f-top-left a { color: #6B7D8C; }
.f-top-left a:hover { color: #1F1F1F; }
.f-top-right { display: flex; gap: 20px; font-size: 12px; }
.f-top-right a { color: #8694A0; }
.f-top-right a:hover { color: #1F1F1F; }
.f-bottom {
  font-size: 11px; color: #8694A0; line-height: 1.6;
}
.f-bottom a { color: #6B7D8C; }
.f-bottom a:hover { color: #1F1F1F; }

/* ============================================================
   MOBILE NAV
   ============================================================ */
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.menu-toggle span {
  display: block; width: 18px; height: 1.5px; background: #6B7D8C;
  margin: 4px 0; transition: 0.2s;
}

/* ============================================================
   RESPONSIVE — 768px
   ============================================================ */
@media (max-width: 768px) {
  /* Header */
  .h-inner { padding: 0 24px; }
  .menu-toggle { display: block; }
  nav {
    display: none; position: absolute; top: 54px; left: 0; right: 0;
    background: #F4F6F8; flex-direction: column; gap: 0;
    padding: 8px 0; border-top: 1px solid #D2D9E0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  }
  nav.open { display: flex; }
  nav a { padding: 12px 24px; font-size: 12px; }
  nav .cta { border: none; margin: 4px 24px 12px; text-align: center; border-top: 1px solid #D2D9E0; padding-top: 12px; }

  /* Hero */
  .hero { padding: 40px 24px 36px; }
  .hero-headline { max-width: 100%; }
  .hero-rest { font-size: 26px; }
  .hero-sub { font-size: 14px; max-width: 100%; }

  /* Page hero */
  .page-hero { padding: 36px 24px 28px; }
  .page-hero h1 { font-size: 22px; }

  /* Sections */
  .section { padding: 36px 24px; }
  .sec-head { flex-direction: column; gap: 8px; }
  .sec-head h2 { font-size: 12px; }
  .sep { padding: 0 24px; }

  /* Engine */
  .engine-intro { max-width: 100%; }
  .engine-intro h3 { font-size: 19px; }
  .phase-row { grid-template-columns: 1fr 1fr; }
  .phase-cell { padding: 16px 16px 16px 0; }
  .phase-cell + .phase-cell { padding-left: 16px; }
  .phase-cell:nth-child(3) { border-left: none; border-top: 1px solid #D2D9E0; padding-top: 16px; margin-top: 4px; }
  .phase-cell:nth-child(4) { border-top: 1px solid #D2D9E0; padding-top: 16px; margin-top: 4px; }
  .engine-foot .adapt { font-size: 12.5px; padding: 10px 14px; }

  /* Carousel */
  .engine-carousel { max-width: 100%; }
  .carousel-arrow { width: 28px; height: 28px; }
  .carousel-arrow svg { width: 12px; height: 12px; }

  /* Papers */
  .paper-source { max-width: 100%; }
  .paper-source h3 { font-size: 18px; }
  .papers-two { grid-template-columns: 1fr; }
  .paper { padding: 0; }
  .paper + .paper { border-left: none; border-top: 1px solid #D2D9E0; padding: 24px 0 0; margin-top: 24px; }

  /* Governance */
  .gov-content { grid-template-columns: 1fr; }
  .gov-main { padding-right: 0; }
  .gov-main h3 { font-size: 17px; }
  .gov-side { padding-left: 0; border-left: none; border-top: 1px solid #D2D9E0; padding-top: 24px; margin-top: 24px; }
  .gov-enterprise-inner { max-width: 100%; }

  /* Market Intelligence */
  .intel-strip { grid-template-columns: 1fr; }
  .intel-main { padding-right: 0; }
  .intel-side { padding-left: 0; border-left: none; border-top: 1px solid #D2D9E0; padding-top: 20px; margin-top: 20px; }
  .intel-disclaimer { font-size: 10px; }

  /* Inner page body */
  .page-body { padding: 32px 24px 60px; }

  /* Footer */
  footer { padding: 28px 24px; }
  .f-top { flex-direction: column; gap: 16px; }
  .f-bottom { font-size: 10px; }
}

/* ============================================================
   RESPONSIVE — 480px
   ============================================================ */
@media (max-width: 480px) {
  .hero { padding: 32px 20px 28px; }
  .hero-rest { font-size: 22px; }
  .hero-sub { font-size: 13px; }
  .page-hero { padding: 28px 20px 22px; }
  .page-hero h1 { font-size: 20px; }
  .section { padding: 28px 20px; }
  .sep { padding: 0 20px; }
  .phase-row { grid-template-columns: 1fr; }
  .phase-cell + .phase-cell { border-left: none; border-top: 1px solid #D2D9E0; padding: 14px 0; }
  .phase-cell { padding: 14px 0; }
  .page-body { padding: 24px 20px 48px; }
  footer { padding: 24px 20px; }
}
