/* ==========================================================================
   Mosaic Engine — Blueprint direction
   Drop-in alternative to styles.css. Same class names, different language:
   warm cream paper, deep teal + burnt-orange, Archivo throughout, sharp
   corners, hairline-divided lists instead of boxed cards, technical
   line-diagrams instead of decorative gradients.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800&display=swap');

:root {
  /* surfaces */
  --paper: #ECECEA;          /* page background — warm off-white */
  --surface: #FFFFFF;        /* raised panels (demo-build cards) */
  --ink: #1E2E2C;            /* primary text — deep teal-black */
  --slate: #44514F;          /* secondary text, muted teal grey */
  --grout: #CFCDC7;          /* hairlines and borders */

  /* accents */
  --brass: #3A6260;          /* primary accent — deep teal: buttons, dark panels, numerals */
  --violet-light: #4A7674;   /* lighter teal — hover state of teal fills */
  --cyan: #D9853B;           /* vivid orange — decorative fills/icons/squares only */
  --amber: #9A5A17;          /* rust for TEXT — eyebrows, links, step numbers */
  --amber-dark: #7A4812;     /* hover shade of amber links */
  --brass-soft: #3A6260;     /* "inverted" dark panel fill — same as --brass, cream text on top */

  --font-sans: "Archivo", system-ui, -apple-system, sans-serif;
  --font-serif: "Archivo", system-ui, -apple-system, sans-serif;

  --t-display: 3.5rem;
  --t-h1: 3.5rem;
  --t-h2: 2.5rem;
  --t-h3: 1.375rem;
  --t-lead: 1.0625rem;
  --t-body: 1.0625rem;
  --t-small: 0.875rem;

  --lh-tight: 1.05;
  --lh-body: 1.65;
  --lh-serif: 1.65;

  --s-1: 8px;  --s-2: 16px; --s-3: 24px; --s-4: 32px;
  --s-5: 48px; --s-6: 72px; --s-7: 120px;

  --radius: 0px;
  --radius-sm: 0px;
  --container: 1200px;
  --measure-sans: 62ch;
  --measure-serif: 62ch;
}

@media (max-width: 860px) {
  :root {
    --t-display: 2.25rem; --t-h1: 2.25rem; --t-h2: 1.75rem;
    --t-h3: 1.25rem; --s-7: 72px; --s-6: 48px;
  }
}

/* --- reset ------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--t-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 800;
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
  color: var(--ink);
}
h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); letter-spacing: -0.01em; font-weight: 700; }
p { margin: 0 0 var(--s-3); max-width: var(--measure-sans); }
ul { margin: 0; padding: 0; list-style: none; }

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

.skip { position: absolute; left: -9999px; top: 0; background: var(--brass); color: #fff; padding: var(--s-2) var(--s-3); z-index: 100; }
.skip:focus { left: 0; }

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

/* --- layout ------------------------------------------------------------ */

.wrap { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--s-5); }
@media (max-width: 640px) { .wrap { padding: 0 var(--s-3); } }

.section { padding: var(--s-7) 0; }

/* the seam loses its accent rule — plain block, hairline rules do the work now */
.seam { position: relative; }
.seam::before { content: none; }
.seam > .seam-head { position: relative; }
.seam > .seam-head::before { content: none; }

.col-8 { max-width: 66%; }
.col-7 { max-width: 58%; }
@media (max-width: 900px) { .col-8, .col-7 { max-width: 100%; } }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--amber);
  margin: 0 0 var(--s-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  display: block;
  width: 10px; height: 10px;
  background: var(--cyan);
  flex-shrink: 0;
}

.lead { font-size: var(--t-lead); line-height: var(--lh-serif); max-width: var(--measure-serif); color: var(--ink); }
.prose { line-height: var(--lh-serif); max-width: var(--measure-serif); color: var(--ink); }

.pull {
  font-family: var(--font-sans);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.5;
  max-width: 40ch;
  margin: var(--s-4) 0 0;
  color: var(--ink);
}

/* --- inverted: dark teal panel ------------------------------------------ */

.inverted {
  background: var(--brass-soft);
  color: var(--paper);
}
.inverted h2, .inverted h3 { color: var(--paper); }
.inverted .lead, .inverted .prose { color: #C7DAD8; }
.inverted .eyebrow { color: #F0B876; }
.inverted .eyebrow::before { background: var(--cyan); }
.inverted .pull { color: var(--paper); }

/* --- buttons and links ------------------------------------------------- */

.btn {
  position: relative;
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 800;
  padding: 15px 26px;
  border-radius: 0;
  border: 1px solid var(--brass);
  background: var(--brass);
  color: var(--paper);
  text-decoration: none;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}
.btn:hover {
  background: var(--violet-light);
  border-color: var(--violet-light);
}
.inverted .btn { background: var(--paper); border-color: var(--paper); color: var(--brass); }
.inverted .btn:hover { background: var(--cyan); border-color: var(--cyan); color: var(--ink); }

.btn-quiet {
  background: transparent; color: var(--paper); border: 1px solid var(--paper);
}
.btn-quiet:hover { background: rgba(236,236,234,0.12); }
.inverted .btn-quiet { color: var(--paper); border-color: rgba(236,236,234,0.5); }

.link {
  color: var(--amber);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(154,90,23,0.35);
  transition: border-color 150ms ease, color 150ms ease;
}
.link:hover { border-color: var(--amber); }
.inverted .link { color: var(--paper); border-color: rgba(236,236,234,0.4); }
.inverted .link:hover { border-color: var(--paper); }

.link-quiet {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
}
.link-quiet:hover { color: var(--brass); border-color: var(--brass); }

.actions { display: flex; align-items: center; gap: var(--s-4); flex-wrap: wrap; margin-top: var(--s-5); }

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

.site-head {
  border-bottom: 1px solid var(--grout);
  position: sticky; top: 0; z-index: 50;
  background: rgba(236,236,234,0.92);
  backdrop-filter: saturate(160%) blur(12px);
}
.head-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); }
.brand-mark { display: block; width: 33px; height: 28px; flex-shrink: 0; }
.brand span {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
  white-space: nowrap;
}
@media (max-width: 400px) { .brand span { font-size: 1.1rem; } }
.nav { display: flex; gap: var(--s-4); align-items: center; }
.nav a { font-family: var(--font-sans); color: var(--ink); text-decoration: none; font-size: var(--t-small); font-weight: 600; }
.nav a:hover, .nav a[aria-current] { color: var(--amber); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px; height: 42px;
  border: 1px solid var(--grout);
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); transition: transform 280ms cubic-bezier(.22,.9,.3,1), opacity 200ms ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 760px) {
  .head-inner { flex-wrap: wrap; }
  .nav-toggle { display: flex; }
  .nav {
    order: 3;
    flex-basis: 100%;
    position: absolute;
    left: 0; right: 0; top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--grout);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding: 0 var(--s-3);
    transition: max-height 350ms cubic-bezier(.22,.9,.3,1), opacity 300ms ease, padding 350ms ease;
  }
  .nav.open { max-height: 320px; opacity: 1; padding: var(--s-3); }
  .nav a:not(.nav-cta) { display: block; padding: var(--s-3) 0; border-bottom: 1px solid var(--grout); }
  .nav-cta { display: inline-block; margin-top: var(--s-2); align-self: flex-start; }
}
.nav-cta {
  color: var(--paper) !important;
  background: var(--brass);
  padding: 10px 18px;
  border-bottom: 0;
}
.nav-cta:hover { background: var(--violet-light); }

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

.hero { padding: var(--s-6) 0 var(--s-5); }
.hero-grid { display: grid; grid-template-columns: 1fr 480px; gap: var(--s-6); align-items: center; }
.hero h1 { font-size: var(--t-display); margin-bottom: var(--s-4); max-width: 13ch; }
.hero h1 .accent { color: var(--cyan); }
.hero .lead { font-size: 1.0625rem; }
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-diagram { order: 1; margin: var(--s-5) 0 0; max-width: 100%; }
}

/* hero blueprint diagram */
.hero-diagram {
  position: relative;
  aspect-ratio: 480 / 400;
  background-image:
    linear-gradient(var(--grout) 1px, transparent 1px),
    linear-gradient(90deg, var(--grout) 1px, transparent 1px);
  background-size: 48px 48px;
  border: 1px solid var(--grout);
}
.hero-diagram-grid {
  position: absolute; inset: 24px 24px 24px 24px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.hero-diagram-grid::after {
  content: "";
  position: absolute; right: 4px; top: 8px; bottom: 8px;
  width: 2px;
  background: var(--ink);
}
.hero-diagram-row {
  display: flex; align-items: center; gap: var(--s-2);
}
.hero-diagram-box {
  background: var(--paper);
  border: 1.5px solid var(--ink);
  padding: 10px 14px;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  white-space: nowrap;
}
.hero-diagram-dash { flex: 1; border-top: 2px dashed var(--slate); min-width: 16px; }
.hero-diagram-node { width: 9px; height: 9px; background: var(--cyan); flex-shrink: 0; }
.hero-diagram-engine {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  background: var(--brass);
  color: var(--paper);
  font-family: var(--font-sans); font-weight: 800; font-size: 0.9375rem;
  padding: 22px 20px;
  text-align: center;
  line-height: 1.25;
}
.hero-diagram-sq {
  position: absolute;
  pointer-events: none;
}
@media (max-width: 620px) {
  .hero-diagram-box { font-size: 0.6875rem; padding: 8px 10px; }
  .hero-diagram-engine { font-size: 0.8125rem; padding: 16px 14px; }
}

/* --- commitments / stats strip ------------------------------------------ */

.commitments {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4);
  margin-top: var(--s-6); padding-top: var(--s-3); border-top: 1px solid var(--ink);
}
.commitments li {
  font-family: var(--font-sans);
  font-size: var(--t-small);
  color: var(--ink);
}
.commitments li strong {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--brass);
  margin-bottom: 6px;
}
.commitments li .eyebrow { margin-bottom: var(--s-1); }
@media (max-width: 760px) { .commitments { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .commitments { grid-template-columns: 1fr; } }

/* --- pillars (hairline-divided numbered list) --------------------------- */

.pillar {
  display: grid; grid-template-columns: 120px 1fr 260px; gap: var(--s-4);
  padding: var(--s-4) 0;
  border-top: 1px solid var(--grout);
  align-items: start;
  transition: background 150ms ease;
}
.pillar:last-child { border-bottom: 1px solid var(--grout); }
.pillar-num { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; font-family: var(--font-sans); font-size: 0.875rem; font-weight: 800; color: var(--amber); line-height: 1.2; }
.pillar-icon { width: 26px; height: 26px; color: var(--brass); }
.pillar h3 { margin-bottom: var(--s-2); }
.pillar p { margin-bottom: var(--s-2); color: var(--ink); }
.pillar-inc { font-family: var(--font-sans); font-size: 0.8125rem; color: var(--slate); text-transform: uppercase; letter-spacing: 0.02em; line-height: 1.6; }
.pillar-inc .link { text-transform: none; letter-spacing: normal; }
@media (max-width: 900px) { .pillar { grid-template-columns: 80px 1fr; } .pillar-inc { grid-column: 2; } }
@media (max-width: 640px) { .pillar { grid-template-columns: 1fr; gap: var(--s-2); } .pillar-inc { grid-column: 1; } }

/* --- cards (why-us: hairline list; demo builds: bordered cards) --------- */

.cards { display: grid; gap: var(--s-4); margin-top: var(--s-5); }
.cards-2 { grid-template-columns: 1fr 1fr; column-gap: var(--s-6); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .cards-2, .cards-3 { grid-template-columns: 1fr; } }

.card {
  border-top: 1px solid var(--grout);
  padding: var(--s-4) 0 0;
}
.card h3 { font-size: 1.1875rem; margin-bottom: var(--s-2); }
.card p { font-size: 0.9375rem; color: var(--ink); margin: 0; }
.inverted .card { border-color: rgba(236,236,234,0.25); }
.inverted .card p { color: #C7DAD8; }

/* demo-build cards keep the bordered-box treatment, with a dashed media slot */
.cards-3 .card {
  border: 1px solid var(--grout);
  padding: 0;
  background: var(--surface);
  min-width: 0;
}
.cards-3 .card .card-tag,
.cards-3 .card h3,
.cards-3 .card p { padding-left: var(--s-4); padding-right: var(--s-4); }
.cards-3 .card h3 { margin-top: var(--s-3); }
.cards-3 .card p { padding-bottom: var(--s-2); }
.cards-3 .card > .link { display: inline-block; margin: 0 var(--s-4) var(--s-4); font-size: 0.8125rem; }

.card-tag {
  display: inline-block; font-family: var(--font-sans); font-size: 0.75rem; font-weight: 700;
  color: var(--amber); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: var(--s-2);
}
.card-media {
  aspect-ratio: 16 / 10;
  border: none;
  border-bottom: 1px dashed var(--grout);
  background: var(--paper);
  margin-bottom: var(--s-3);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  color: var(--slate); font-size: 0.8125rem; text-align: center; padding: var(--s-3);
}
.card-media svg { width: 28px; height: 28px; opacity: 0.5; }
.card-media.has-img { padding: 0; border-bottom: 1px solid var(--grout); display: block; min-width: 0; }
.card-media img { width: 100%; height: 100%; min-width: 0; object-fit: cover; object-position: top left; display: block; }

/* --- process ----------------------------------------------------------- */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); margin-top: var(--s-5); }
.step {
  border-top: 1px solid var(--grout);
  padding: var(--s-3) 0 0;
}
.step-num { font-family: var(--font-sans); font-size: 0.875rem; font-weight: 800; color: var(--amber); display: block; margin-bottom: var(--s-2); }
.step-icon { width: 24px; height: 24px; color: var(--brass); margin-bottom: var(--s-2); }
.step h3 { font-size: 1.1875rem; margin-bottom: var(--s-1); }
.step p { font-size: 0.9375rem; color: var(--ink); margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* --- faq (two-column editorial layout) ---------------------------------- */

.faq-layout { display: grid; grid-template-columns: 280px 1fr; gap: var(--s-6); margin-top: var(--s-5); }
@media (max-width: 860px) { .faq-layout { grid-template-columns: 1fr; gap: var(--s-3); } }

.faq { max-width: 860px; }
.faq details {
  border-top: 1px solid var(--grout);
  padding: 0;
}
.faq details:last-of-type { border-bottom: 1px solid var(--grout); }
.faq summary {
  cursor: pointer; list-style: none;
  padding: var(--s-3) 30px var(--s-3) 0;
  font-family: var(--font-sans); font-weight: 700;
  display: flex; justify-content: flex-start; align-items: center; gap: var(--s-3);
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "+";
  color: var(--cyan);
  font-weight: 800;
  font-size: 1.125rem;
  width: 16px;
  flex-shrink: 0;
}
.faq details[open] summary::before { content: "\2715"; font-size: 0.8125rem; }
.faq details p {
  line-height: var(--lh-serif); color: var(--ink); padding-bottom: var(--s-3); max-width: var(--measure-serif);
  padding-left: 40px;
}

/* --- page head, forms, splits ------------------------------------------ */

.page-head { padding: var(--s-6) 0 var(--s-5); border-bottom: 1px solid var(--grout); }
.page-head h1 { max-width: 18ch; margin-bottom: var(--s-3); }
.crumb { font-family: var(--font-sans); font-size: var(--t-small); color: var(--slate); margin-bottom: var(--s-4); }
.crumb a { color: var(--slate); text-decoration: none; }
.crumb a:hover { color: var(--amber); }

.form { max-width: 620px; margin-top: var(--s-5); }
.field { margin-bottom: var(--s-4); }
.field label { display: block; font-family: var(--font-sans); font-size: var(--t-small); color: var(--slate); margin-bottom: var(--s-1); font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--font-sans); font-size: var(--t-body); color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--grout);
  padding: 13px 14px;
  transition: border-color 150ms ease;
}
.field textarea { resize: vertical; min-height: 120px; line-height: var(--lh-body); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brass); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }
.form-note { font-size: var(--t-small); color: var(--slate); margin-top: var(--s-3); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: var(--s-5); } }

.deliverables { max-width: var(--measure-sans); }
.deliverables li { padding: var(--s-3) 0; border-top: 1px solid var(--grout); font-size: var(--t-body); color: var(--ink); }
.deliverables li:last-child { border-bottom: 1px solid var(--grout); }
.deliverables strong { font-family: var(--font-sans); font-weight: 700; color: var(--ink); }
.deliverables span { color: var(--slate); }

.price-line {
  font-family: var(--font-sans); font-weight: 800;
  font-size: var(--t-h3); color: var(--amber);
  margin-top: var(--s-5);
  background: var(--surface);
  border: 1px solid var(--grout);
  padding: var(--s-4);
}
.price-line small { display: block; font-family: var(--font-sans); font-weight: 400; font-size: var(--t-small); color: var(--slate); margin-top: var(--s-2); }

/* --- founder ------------------------------------------------------------ */

.founder-grid { display: grid; grid-template-columns: 180px 1fr; gap: var(--s-5); align-items: start; }
@media (max-width: 760px) { .founder-grid { grid-template-columns: 1fr; justify-items: center; text-align: center; } }

.founder-portrait { display: flex; flex-direction: column; align-items: center; gap: var(--s-2); }
.founder-portrait-frame {
  width: 180px; height: 180px;
  border: 1.5px solid var(--ink);
  padding: 3px;
}
.founder-portrait-frame > * {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
  background: var(--surface);
  overflow: hidden;
}
.founder-portrait-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.founder-initials {
  font-family: var(--font-sans);
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--ink);
}
.founder-email { font-size: var(--t-small); }

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

.site-foot { border-top: 1px solid var(--grout); padding: var(--s-6) 0 var(--s-5); background: var(--paper); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--s-5); }
.foot-grid h4 { font-family: var(--font-sans); font-size: 0.8125rem; color: var(--slate); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: var(--s-2); }
.foot-grid li { margin-bottom: 10px; }
.foot-grid a { color: var(--ink); text-decoration: none; font-size: var(--t-small); }
.foot-grid a:hover { color: var(--amber); }
.foot-brand-name { font-family: var(--font-sans); font-weight: 800; font-size: 1.1rem; color: var(--ink); margin-bottom: var(--s-2); }
.foot-base {
  margin-top: var(--s-6); padding-top: var(--s-3);
  border-top: 1px solid var(--grout);
  display: flex; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap;
  font-size: var(--t-small); color: var(--slate);
}
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }

.social { display: flex; gap: var(--s-3); margin-top: var(--s-3); }
.social a { color: var(--amber); text-decoration: none; font-size: var(--t-small); font-weight: 700; }
.social a:hover { color: var(--ink); }

/* --- ecosystem connector diagram (dark panel) --------------------------- */

.ecosystem-diagram {
  display: flex; flex-wrap: wrap; gap: var(--s-4);
  margin-top: var(--s-5);
}
.ecosystem-node {
  flex: 1 1 140px;
  border-top: 1px solid rgba(236,236,234,0.35);
  padding-top: var(--s-2);
}
.ecosystem-node .node-dot { width: 10px; height: 10px; background: var(--cyan); margin-bottom: var(--s-2); }
.ecosystem-node h4 { font-family: var(--font-sans); font-weight: 800; font-size: 0.9375rem; color: var(--paper); margin-bottom: 4px; }
.ecosystem-node p { font-size: 0.8125rem; color: #A9C6C3; margin: 0; }

.ticker {
  overflow: hidden;
  border-top: 1px solid rgba(236,236,234,0.2);
  border-bottom: 1px solid rgba(236,236,234,0.2);
  padding: 14px 0;
  margin-bottom: var(--s-6);
}
.ticker-track {
  display: flex; gap: 40px; white-space: nowrap;
  font-family: var(--font-sans); font-weight: 800; font-size: 0.8125rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: rgba(236,236,234,0.5);
  animation: ticker-scroll 30s linear infinite;
  width: max-content;
}
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* --- problem broken-chain diagram --------------------------------------- */

.chain-diagram { display: flex; align-items: center; gap: 8px; margin-top: var(--s-5); flex-wrap: wrap; row-gap: 20px; }
.chain-box {
  border: 1.5px solid var(--ink);
  padding: 8px 14px;
  font-family: var(--font-sans); font-weight: 800; font-size: 0.75rem;
  letter-spacing: 0.03em; color: var(--ink); background: var(--paper);
  flex-shrink: 0;
}
.chain-dash { flex: 0 0 28px; border-top: 2px dashed var(--slate); height: 2px; }
.chain-break { color: var(--cyan); font-weight: 800; font-size: 0.9rem; flex-shrink: 0; }

/* --- scroll reveal ------------------------------------------------------ */
/* .js is set by an inline head script; without it (no-JS) everything stays visible. */

.js .seam,
.js .card,
.js .pillar,
.js .step,
.js .commitments li,
.js .faq details,
.js .price-line {
  opacity: 0;
  transform: perspective(1000px) translateY(28px) rotateX(-10deg);
  transform-origin: 50% 100%;
  transition: opacity 700ms cubic-bezier(.22,.9,.3,1), transform 700ms cubic-bezier(.22,.9,.3,1);
}
.js .seam.in-view,
.js .card.in-view,
.js .pillar.in-view,
.js .step.in-view,
.js .commitments li.in-view,
.js .faq details.in-view,
.js .price-line.in-view {
  opacity: 1;
  transform: perspective(1000px) translateY(0) rotateX(0deg);
}

/* a seam wrapping a tall card grid (e.g. 6 stacked demo-build cards on mobile) breaks the
   perspective/rotateX reveal — the 3D tilt distorts its bounding box far past its real size,
   which can trap the IntersectionObserver ratio below threshold and leave it permanently hidden. */
.js .seam:has(.cards-3) { transform: translateY(16px); }
.js .seam:has(.cards-3).in-view { transform: translateY(0); }

.cards .card:nth-child(1), .steps .step:nth-child(1), .commitments li:nth-child(1) { transition-delay: 0ms; }
.cards .card:nth-child(2), .steps .step:nth-child(2), .commitments li:nth-child(2) { transition-delay: 100ms; }
.cards .card:nth-child(3), .steps .step:nth-child(3), .commitments li:nth-child(3) { transition-delay: 200ms; }
.steps .step:nth-child(4), .commitments li:nth-child(4) { transition-delay: 300ms; }

.pillar:nth-of-type(1) { transition-delay: 0ms; }
.pillar:nth-of-type(2) { transition-delay: 90ms; }
.pillar:nth-of-type(3) { transition-delay: 180ms; }
.pillar:nth-of-type(4) { transition-delay: 270ms; }
.pillar:nth-of-type(5) { transition-delay: 360ms; }

.faq details:nth-of-type(1) { transition-delay: 0ms; }
.faq details:nth-of-type(2) { transition-delay: 60ms; }
.faq details:nth-of-type(3) { transition-delay: 120ms; }
.faq details:nth-of-type(4) { transition-delay: 180ms; }
.faq details:nth-of-type(5) { transition-delay: 240ms; }
.faq details:nth-of-type(6) { transition-delay: 300ms; }
.faq details:nth-of-type(7) { transition-delay: 360ms; }

/* --- motion preference ------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .seam, .js .card, .js .pillar, .js .step,
  .js .commitments li, .js .faq details, .js .price-line {
    opacity: 1;
    transform: none;
  }
}
