/* ============================================================
   AgentLab / Christoph Hellmuth — Home & Journey Architectural Styles
   Matching the exact branding and styling of https://agentlab.framer.ai/
   Load order: tokens.css -> styles.css -> home.css
   ============================================================ */

body.home {
  background-color: #ffffff;
  color: #000000;
}

/* Base Headings — Merriweather Editorial Serif (weight 300) */
body.home h1,
body.home h2,
body.home h3 {
  font-family: var(--font-serif);
  letter-spacing: -0.015em;
  font-weight: 300;
}

/* ============================================================
   AgentLab Hero Section
   ============================================================ */

body.home .hero {
  padding: 0;
  position: relative;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

body.home .hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 0;
  align-items: stretch;
  position: relative;
  z-index: 1;
  padding: 0;
  border-bottom: 0;
}

body.home .hero-copy {
  padding: 108px 56px 108px 40px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

body.home .hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 4.3vw, 3.6rem);
  font-weight: 300;
  line-height: 1.13;
  letter-spacing: -0.015em;
  margin: 0 0 24px;
  color: #000000;
}

body.home .hero .lede {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-dim);
  max-width: 48ch;
  margin: 0 0 36px;
}

body.home .hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* Hero Showcase Abstract Design System Frame */
body.home .hero-mosaic {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 560px;
  background: #fafafa;
  padding: 64px 40px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  position: relative;
}

body.home .hero-mosaic > img,
body.home .hero-mosaic > svg {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
}

/* Hero Full-Width Cobalt & ASCII-Matrix Showcase Graphic */
body.home .hero-showcase > .container.hero-graphic-wrap,
body.home .hero-graphic-wrap {
  padding: 48px 40px;
  background: #ffffff;
}

.hero-graphic {
  margin: 0;
  position: relative;
  z-index: 2;
  border-radius: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #001a72;
}

.hero-graphic img,
.hero-graphic svg {
  display: block;
  width: 100%;
  height: auto;
}

/* ============================================================
   Nexus Preview Card
   ============================================================ */

body.home .nexus-preview {
  background: #000000;
  border: 1px solid #000000;
  border-radius: 0;
  padding: 20px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

body.home .np-row {
  display: flex;
  gap: 8px;
}

body.home .np-btn {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 6px 12px;
  background: #558bfb;
  color: #ffffff;
  border-radius: 0;
}

body.home .np-btn.ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

body.home .np-swatches {
  display: flex;
  gap: 6px;
}

body.home .np-swatches i {
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 0;
}

body.home .np-swatches i:nth-child(1) { background: #0036fa; }
body.home .np-swatches i:nth-child(2) { background: #558bfb; }
body.home .np-swatches i:nth-child(3) { background: #c0e2f9; }
body.home .np-swatches i:nth-child(4) { background: #ffffff; }

body.home .np-type {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 300;
  margin: 0;
  color: #ffffff;
  line-height: 1;
}

body.home .np-caption {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
}

/* ============================================================
   Services 2x2 Architectural Feature Grid (AgentLab Features Style)
   ============================================================ */

.services-bento {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-top: 36px;
  border: 1px solid var(--line);
  background: #ffffff;
}

@media (max-width: 860px) {
  .services-bento {
    grid-template-columns: 1fr;
  }
}

.service-card {
  background: #ffffff;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: background-color var(--motion-fast);
}

.service-card:nth-child(2n) {
  border-right: 0;
}

.service-card:nth-last-child(-n+2) {
  border-bottom: 0;
}

.service-card:hover {
  background: #fafafa;
}

/* Put text header on top and Cobalt graphic showcase below, or clean architectural framing */
.service-card-media {
  width: 100%;
  background: #001a72;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.service-card-media img,
.service-card-media svg {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.4s ease;
}

.service-card:hover .service-card-media img,
.service-card:hover .service-card-media svg {
  transform: scale(1.015);
}

.service-card-body {
  padding: 28px 32px 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-card-body h3 {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 21px;
  color: #000000;
  margin: 0 0 10px;
}

.service-card-body p {
  color: var(--ink-dim);
  font-size: 15px;
  line-height: 1.625;
  margin: 0 0 20px;
  flex: 1;
}

.service-card-link {
  color: #000000;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.service-card-link:hover {
  color: #0036fa;
}

/* Phase Lifecycle Visual Container */
.phase-graphic {
  margin: 32px 0;
  border-radius: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #001a72;
}

.phase-graphic img,
.phase-graphic svg {
  display: block;
  width: 100%;
  height: auto;
}

/* ============================================================
   Journey / Example Project Page Styling (example-project.html)
   ============================================================ */

body.journey .journey-hero {
  padding: 0;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
  position: relative;
}

body.journey .journey-hero > .container:first-child {
  padding-top: 64px;
  padding-bottom: 48px;
}

body.journey .journey-hero > .container:last-child {
  padding: 0;
  border-top: 1px solid var(--line);
}

body.journey .journey-hero h1 {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(2.4rem, 4.4vw, 3.5rem);
  line-height: 1.13;
  letter-spacing: -0.015em;
  margin: 0 0 18px;
  max-width: 20em;
  color: #000000;
}

body.journey .journey-hero .lede {
  font-size: 16.5px;
  line-height: 1.625;
  color: var(--ink-dim);
  max-width: 64ch;
  margin: 0 0 32px;
}

body.home .phase-rail {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: 0;
  background: #fafafa;
  border: 0;
  border-radius: 0;
  overflow: hidden;
}

body.home .phase-rail a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 44px;
  padding: 20px 22px;
  border-right: 1px solid var(--line);
  transition: background-color var(--motion-fast);
}

body.home .phase-rail a:last-child {
  border-right: 0;
}

body.home .phase-rail a:hover {
  background: #000000;
}

body.home .phase-rail a:hover strong,
body.home .phase-rail a:hover em {
  color: #ffffff;
}

body.home .phase-rail span {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: #0036fa;
}

body.home .phase-rail a:hover span {
  color: #558bfb;
}

body.home .phase-rail strong {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 15px;
  color: #000000;
}

body.home .phase-rail em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-faint);
}

body.home .journey-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}

body.home .journey-split-aside {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

body.home .journey-callout {
  background: #fafafa;
  border: 1px solid var(--line);
  padding: 28px;
}

body.home .journey-callout h3 {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 20px;
  margin: 0 0 10px;
  color: #000000;
}

body.home .journey-callout p {
  margin: 0;
  color: var(--ink-dim);
  font-size: 15px;
  line-height: 1.625;
}

body.home .journey-callout.invest {
  margin-top: 32px;
  background: #000000;
  border-color: #000000;
  color: #ffffff;
}

body.home .journey-callout.invest h3 {
  color: #ffffff;
}

body.home .journey-callout.invest p {
  color: rgba(255, 255, 255, 0.78);
}

body.home .code-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-dim);
  margin: 0 0 10px;
}

body.home .spec {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 0;
  border: 1px solid var(--line);
  background: #ffffff;
}

body.home .spec > div {
  background: #ffffff;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 28px 32px;
}

body.home .spec > div:nth-child(2n) {
  border-right: 0;
}

body.home .spec > div:nth-last-child(-n+2) {
  border-bottom: 0;
}

body.home .spec dt {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0036fa;
}

body.home .spec dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.625;
  color: var(--ink-dim);
}

body.home .spec dd a {
  color: #0036fa;
  text-decoration: underline;
}

body.home .timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--line);
  background: #ffffff;
}

body.home .timeline li {
  display: grid;
  grid-template-columns: 64px minmax(200px, 260px) minmax(0, 1fr);
  gap: 16px 28px;
  align-items: start;
  padding: 28px 32px;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  transition: background-color var(--motion-fast);
}

body.home .timeline li:last-child {
  border-bottom: 0;
}

body.home .timeline li:hover {
  background: #fafafa;
}

body.home .timeline .no {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
  background: #000000;
  border: 1px solid #000000;
  border-radius: 0;
  padding: 6px 10px;
  text-align: center;
  width: fit-content;
}

body.home .timeline h3 {
  font-family: var(--font-serif);
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 300;
  color: #000000;
}

body.home .timeline .when {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-faint);
}

body.home .timeline li > p {
  margin: 0;
  color: var(--ink-dim);
  font-size: 15px;
  line-height: 1.625;
}

body.home .deliver {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  background: #ffffff;
}

body.home .deliver li {
  background: #ffffff;
  border-right: 1px solid var(--line);
  border-top: 3px solid #0036fa;
  border-radius: 0;
  padding: 28px;
}

body.home .deliver li:last-child {
  border-right: 0;
}

body.home .deliver span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0036fa;
}

body.home .deliver h3 {
  font-family: var(--font-serif);
  margin: 10px 0 8px;
  font-size: 20px;
  font-weight: 300;
  color: #000000;
}

body.home .deliver p {
  margin: 0;
  color: var(--ink-dim);
  font-size: 14.5px;
  line-height: 1.6;
}

/* Journey Milestone Table */
body.journey .journey-milestones {
  margin-top: 48px;
}

body.journey .journey-milestones-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 300;
  margin: 0 0 18px;
  color: #000000;
}

body.journey .journey-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 0;
}

body.journey .journey-table th,
body.journey .journey-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  vertical-align: top;
}

body.journey .journey-table th:last-child,
body.journey .journey-table td:last-child {
  border-right: 0;
}

body.journey .journey-table th {
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #000000;
  background: #f7f7f7;
}

body.journey .journey-table tr:last-child td {
  border-bottom: 0;
}

body.journey .journey-table td:first-child {
  font-family: var(--font-mono);
  font-weight: 600;
  color: #0036fa;
  white-space: nowrap;
}

body.journey .journey-table td {
  color: var(--ink-dim);
  line-height: 1.55;
}

body.home .ledger-title {
  margin-top: 48px;
}

body.home .ledger {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 24px 0 16px;
  border: 1px solid var(--line);
  background: #ffffff;
}

body.home .ledger > div {
  background: #ffffff;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 28px;
}

body.home .ledger > div:nth-child(3n) {
  border-right: 0;
}

body.home .ledger > div:nth-last-child(-n+3) {
  border-bottom: 0;
}

body.home .ledger dt {
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 3.2vw, 2.8rem);
  font-weight: 300;
  color: #000000;
  line-height: 1;
}

body.home .ledger dd {
  margin: 10px 0 0;
  color: var(--ink-dim);
  font-size: 14.5px;
  line-height: 1.55;
}

body.home .quote {
  margin: 40px 0 0;
  padding: 32px;
  background: #fafafa;
  border: 1px solid var(--line);
  border-left: 3px solid #0036fa;
}

body.home .quote blockquote {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 300;
  color: #000000;
  margin: 0 0 12px;
}

body.home .quote figcaption {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-dim);
}

@media (max-width: 880px) {
  body.home .hero-split,
  body.home .journey-split {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  body.home .hero-copy {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 56px 20px;
  }
  body.home .hero-mosaic {
    min-height: 320px;
    padding: 36px 20px;
  }
  body.home .hero-showcase > .container.hero-graphic-wrap,
  body.home .hero-graphic-wrap {
    padding: 32px 20px;
  }
  body.home .phase-rail {
    display: flex;
    overflow-x: auto;
  }
  body.home .phase-rail a {
    min-width: 170px;
    flex: none;
  }
  body.home .spec,
  body.home .deliver,
  body.home .ledger,
  body.home .timeline li {
    grid-template-columns: 1fr;
  }
  body.home .spec > div,
  body.home .deliver li,
  body.home .ledger > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}
