/* Dualaud v11. Dual Code brand: cream #F2ECE0 and charcoal #1C1E21 only, no accents.
   Playfair for the voice, Inter for the facts. Lots of air, thin charcoal rules.
   Symbol system: < > = agent, smile = human, full mark = together.
   The split happens once: the hero. */

:root {
  --cream: #F2ECE0;
  --charcoal: #1C1E21;
  --muted: rgba(28, 30, 33, 0.66);      /* charcoal tint for secondary text */
  --muted-dark: rgba(242, 236, 224, 0.64); /* cream tint on charcoal */
  --rule: rgba(28, 30, 33, 0.16);
  --rule-dark: rgba(242, 236, 224, 0.18);
  --wrap: 1120px;
  --measure: 640px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 400;
  color: var(--charcoal);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
}

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

/* ---------- Symbol system ---------- */
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.st {
  fill: none;
  stroke: currentColor;
  stroke-width: 67;
  stroke-linecap: round;
  stroke-linejoin: round;
}
svg { display: block; overflow: visible; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 56px; }
.wrap.narrow { max-width: calc(var(--measure) + 112px); }

.sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

h1, h2, .hero-sub, .pull, .beat, .mate p { font-family: "Playfair Display", Georgia, serif; }

/* ---------- Hero: the one split ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  min-height: 100svh;
}

.hero-half { display: flex; align-items: center; }
.hero-l { background: var(--cream); justify-content: flex-end; }
.hero-r { background: var(--charcoal); color: var(--cream); justify-content: flex-start; }

.hero-inner { width: 100%; max-width: 560px; padding: 120px 64px; }
.hero-l .hero-inner { padding-right: 84px; }
.hero-r .hero-inner { padding-left: 84px; }

h1 {
  font-weight: 900;
  font-size: clamp(3.4rem, 6.4vw, 6.25rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  max-width: 7.5em;
}

.hero-sub {
  font-weight: 400;
  font-size: clamp(1.45rem, 2.3vw, 2.05rem);
  line-height: 1.32;
  letter-spacing: -0.005em;
  max-width: 14em;
  color: var(--cream);
}

/* the mark sits on the seam and flips colour as it crosses */
.seam-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 108px;
  height: 89px;
  transform: translate(-50%, -50%);
  z-index: 2;
  pointer-events: none;
}
.seam-mark svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.seam-mark .on-light { color: var(--charcoal); clip-path: inset(0 50% 0 0); }
.seam-mark .on-dark  { color: var(--cream);    clip-path: inset(0 0 0 50%); }

/* ---------- Shared text ---------- */
.body {
  font-size: 1.125rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--muted);
}
.body + .body { margin-top: 22px; }
.body.strong { color: var(--charcoal); font-weight: 400; font-size: 1.2rem; }

.hl {
  font-style: normal;
  color: var(--charcoal);
  font-weight: 500;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  padding-bottom: 1px;
}

h2 {
  font-weight: 800;
  font-size: clamp(2.1rem, 3.6vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 36px;
  max-width: 13em;
}

/* ---------- The scene ---------- */
.scene { padding: 160px 0 150px; }

.lede {
  font-size: clamp(1.25rem, 1.9vw, 1.45rem);
  line-height: 1.6;
  font-weight: 300;
  color: var(--charcoal);
}

.pair {
  display: grid;
  grid-template-columns: 1fr 120px 1fr;
  align-items: stretch;
  max-width: 920px;
  margin: 88px auto;
}

.mate {
  position: relative;
  padding: 48px 40px 48px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.mate-agent { background: var(--charcoal); color: var(--cream); }
.mate-human { background: var(--cream); color: var(--charcoal); border: 1px solid var(--charcoal); }

/* same scale for both, so the stroke weight matches */
.glyph { align-self: flex-start; }
.glyph-eyes  { width: 90px; height: 36px; }
.glyph-smile { width: 43px; height: 15px; margin-top: 11px; margin-bottom: 10px; }

.mate p {
  margin-top: 56px;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* together: the full mark on the line between them */
.pair-link { position: relative; display: grid; place-items: center; }
.pair-link::before {
  content: ""; position: absolute; top: 50%; left: 0; right: 0;
  height: 1px; background: var(--charcoal);
}
.pair-link svg {
  position: relative;
  width: 44px; height: 36px;
  padding: 0 10px;
  box-sizing: content-box;
  background: var(--cream);
  color: var(--charcoal);
}

.beat {
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 40px;
}

/* ---------- Chapters ---------- */
.chapter { padding: 130px 0; border-top: 1px solid var(--rule); }

.pull {
  margin-top: 64px;
  padding-top: 36px;
  border-top: 1px solid var(--charcoal);
  width: fit-content;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.2;
}

/* agent + human = the mark */
.equation {
  width: 300px;
  height: auto;
  aspect-ratio: 3680 / 752;
  margin-top: 72px;
  color: var(--charcoal);
}

.chapter-dark {
  background: var(--charcoal);
  color: var(--cream);
  border-top: 0;
}
.chapter-dark .body { color: var(--muted-dark); }
.chapter-dark .body.strong { color: var(--cream); }
.chapter-dark .hl { color: var(--cream); }

/* ---------- Roadmap ---------- */
.roadmap { padding: 140px 0 120px; }
.roadmap-head { max-width: var(--measure); margin-bottom: 88px; }
.roadmap-head h2 { margin-bottom: 20px; }

.track {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 56px;
  position: relative;
  padding-top: 52px;
}
/* the line: solid through what exists, dashed into what's next */
.track::before {
  content: "";
  position: absolute;
  top: 6px; left: 0; right: 0;
  height: 1px;
  background:
    linear-gradient(to right, var(--charcoal) 0 calc(66.666% - 18px), transparent 0) no-repeat,
    repeating-linear-gradient(to right, var(--muted) 0 5px, transparent 5px 10px);
}

.phase { position: relative; }

/* small solid dots: full = live, half = being built, empty = next */
.node {
  position: absolute;
  top: -52px; left: 0;
  width: 13px; height: 13px;
  border-radius: 50%;
  border: 1px solid var(--charcoal);
  background: var(--cream);
}
.phase-live .node { background: var(--charcoal); box-shadow: 0 0 0 5px var(--cream), 0 0 0 6px var(--charcoal); }
.phase-build .node { background: linear-gradient(90deg, var(--charcoal) 50%, var(--cream) 50%); }
.phase-next .node { border-color: var(--muted); }

.items { list-style: none; }
.item { padding: 0 0 32px; }
.item + .item { padding-top: 32px; border-top: 1px solid var(--rule); }

.item-glyph { float: right; height: 13px; margin-top: 5px; color: var(--charcoal); }
.item-glyph.glyph-eyes { aspect-ratio: 896 / 362; }
.item-glyph.glyph-mark { aspect-ratio: 896 / 738; height: 22px; margin-top: 0; }
.phase-next .item-glyph { color: var(--muted); }

.item-title {
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.item-title strong { font-weight: 700; }

.tag {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-bottom: 14px;
  padding: 6px 11px 5px;
  font-family: "Inter", sans-serif;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1;
  border-radius: 2px;
}
.tag-live { background: var(--charcoal); color: var(--cream); }
.tag-live::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cream);
}
.tag-build { color: var(--charcoal); border: 1px solid var(--charcoal); padding: 5px 10px 4px; }
.tag-next  { color: var(--muted); border: 1px dashed var(--muted); padding: 5px 10px 4px; }

.item-body {
  margin-top: 10px;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.65;
  color: var(--muted);
  max-width: 30em;
}

.phase-next .item-title { color: rgba(28, 30, 33, 0.82); }

/* ---------- Close ---------- */
.close {
  padding: 150px 0 160px;
  border-top: 1px solid var(--rule);
}
.close-mark { width: 64px; height: auto; aspect-ratio: 896 / 738; margin-bottom: 48px; color: var(--charcoal); }
.close h2 { font-size: clamp(2.4rem, 4.6vw, 3.75rem); font-weight: 900; max-width: 11em; }

.mail {
  display: inline-block;
  margin-top: 56px;
  padding: 20px 34px;
  background: var(--charcoal);
  color: var(--cream);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: 1px solid var(--charcoal);
  transition: background 0.2s ease, color 0.2s ease;
}
.mail:hover { background: var(--cream); color: var(--charcoal); }
.mail:focus-visible { outline: 2px solid var(--charcoal); outline-offset: 4px; }

/* ---------- Footer ---------- */
.footer { background: var(--charcoal); color: var(--muted-dark); padding: 48px 0; }
.footer-inner { display: flex; align-items: center; gap: 22px; }
.footer-mark { width: 40px; height: auto; aspect-ratio: 896 / 738; flex: none; color: var(--cream); }
.footer p { font-size: 0.85rem; line-height: 1.55; }

/* ---------- Medium ---------- */
@media (max-width: 1024px) {
  .track { grid-template-columns: 1fr; padding-top: 0; padding-left: 48px; gap: 0; }
  .track::before {
    top: 0; bottom: 0; left: 6px; right: auto;
    width: 1px; height: auto;
    background:
      linear-gradient(to bottom, var(--charcoal) 0 62%, transparent 0) no-repeat,
      repeating-linear-gradient(to bottom, var(--muted) 0 5px, transparent 5px 10px);
  }
  .node { top: 4px; left: -48px; }
  .phase + .phase { padding-top: 48px; }
  .phase + .phase .node { top: 52px; }
}

/* ---------- Narrow ---------- */
@media (max-width: 760px) {
  .wrap, .wrap.narrow { padding: 0 24px; }

  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-half { justify-content: flex-start; min-height: 46svh; }
  .hero-inner { max-width: none; }
  .hero-l { align-items: flex-end; }
  .hero-r { align-items: flex-start; }
  .hero-l .hero-inner { padding: 112px 24px 72px; }
  .hero-r .hero-inner { padding: 72px 24px 96px; }
  h1 { font-size: clamp(3rem, 13vw, 4rem); }
  /* stacked: cream above, charcoal below, so the mark sits on the horizontal seam */
  .hero-l { order: 1; }
  .seam-mark { order: 2; position: relative; left: auto; top: auto; transform: none; width: 72px; height: 60px; margin: -30px auto; }
  .hero-r { order: 3; }
  .seam-mark .on-light { clip-path: inset(0 0 50% 0); }
  .seam-mark .on-dark  { clip-path: inset(50% 0 0 0); }

  .scene { padding: 96px 0 96px; }
  .pair { grid-template-columns: 1fr; grid-template-rows: auto 88px auto; margin: 56px auto; }
  .mate { min-height: 0; padding: 36px 28px 36px; }
  .mate p { margin-top: 36px; }
  .pair-link::before { top: 0; bottom: 0; left: 50%; right: auto; width: 1px; height: auto; }
  .pair-link svg { padding: 8px 0; }

  .chapter { padding: 88px 0; }
  h2 { margin-bottom: 28px; }
  .pull { margin-top: 48px; }
  .equation { width: 260px; margin-top: 56px; }

  .roadmap { padding: 96px 0 80px; }
  .roadmap-head { margin-bottom: 56px; }
  .track { padding-left: 36px; }
  .node { left: -36px; }
  .item-title { font-size: 1.25rem; }

  .close { padding: 96px 0 104px; }
  .mail { margin-top: 40px; padding: 18px 26px; }

  .footer-inner { align-items: flex-start; }
  .footer-mark { width: 34px; }
}
