/* Ulysse site styles. Plain CSS, no framework, no build step.
 *
 * The point of that choice: this site has to survive being handed to incubators, edited by
 * a non-engineer, and left alone for months. Anything with a toolchain rots. Four HTML
 * files and one stylesheet do not.
 *
 * Structure: index is the summary, about / product / case-example are the double-clicks.
 */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 78px; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16.5px;
  line-height: 1.62;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-serif); color: var(--navy); font-weight: 600; margin: 0; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); line-height: 1.1; letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 2.5vw, 2.05rem); line-height: 1.2; letter-spacing: -.01em; }
h3 { font-size: 1.09rem; line-height: 1.3; }
p { margin: 0 0 1rem; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ------------------------------------------------------------------------------- header */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.93);
  backdrop-filter: saturate(160%) blur(9px);
  border-bottom: 1px solid var(--border);
}
header.site .inner {
  max-width: var(--maxw); margin: 0 auto; padding: 13px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
header.site .wordmark { font-size: 23px; }
nav.top { display: flex; align-items: center; gap: 21px; font-size: 14.5px; }
nav.top a { color: var(--muted); white-space: nowrap; }
nav.top a:hover { color: var(--navy); text-decoration: none; }
nav.top a.cta {
  background: var(--navy); color: #fff; padding: 8px 16px; border-radius: 6px; font-weight: 600;
}
nav.top a.cta:hover { background: var(--navy-deep); }
@media (max-width: 900px) { nav.top a.hide-sm { display: none; } }

/* --------------------------------------------------------------------------------- hero */
.hero { padding: 74px 0 60px; background:
  radial-gradient(ellipse 900px 420px at 18% -8%, var(--lavender), transparent 70%),
  radial-gradient(ellipse 700px 380px at 90% 0%, #EFF1FC, transparent 70%); }
.hero .lede { font-size: clamp(1.06rem, 1.55vw, 1.25rem); color: var(--body); max-width: 62ch; margin-top: 20px; }
.hero .meta { margin-top: 26px; font-size: 14.5px; color: var(--muted); }
.hero .btns { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 11px 21px; border-radius: 7px; font-size: 15.5px;
  font-weight: 600; border: 1px solid transparent;
}
.btn.primary { background: var(--navy); color: #fff; }
.btn.primary:hover { background: var(--navy-deep); text-decoration: none; }
.btn.second { background: #fff; color: var(--navy); border-color: var(--border); }
.btn.second:hover { border-color: var(--accent); text-decoration: none; }

/* ------------------------------------------------------------------------------ sections */
section { padding: 62px 0; }
section.alt { background: var(--card); }
.eyebrow {
  font-size: 11.5px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 11px;
}
.section-lede { color: var(--muted); max-width: 74ch; margin-top: 14px; }

.cards { display: grid; gap: 16px; margin-top: 34px; }
.c4 { grid-template-columns: repeat(4, 1fr); }
.c3 { grid-template-columns: repeat(3, 1fr); }
.c2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1000px) { .c4, .c3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 660px)  { .c4, .c3, .c2 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 21px 20px; box-shadow: var(--shadow);
}
section.alt .card { box-shadow: none; }
.card h3 { margin-bottom: 7px; }
.card p { font-size: 15px; color: var(--muted); margin: 0; }

/* numbered steps */
.steps { counter-reset: s; display: grid; gap: 13px; margin-top: 34px; }
.step {
  display: grid; grid-template-columns: 42px 1fr; gap: 17px; align-items: start;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px;
}
.step .n {
  width: 32px; height: 32px; border-radius: 50%; background: var(--gradient); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 15px;
  font-family: var(--font-sans);
}
.step h3 { margin-bottom: 4px; }
.step p { font-size: 15px; color: var(--muted); margin: 0; }

/* bullet lists inside cards */
.card ul, .plain ul { margin: 9px 0 0; padding-left: 19px; }
.card li, .plain li { font-size: 15px; color: var(--muted); margin-bottom: 7px; }

/* callout */
.callout {
  margin-top: 30px; background: var(--lavender); border: 1px solid var(--lavender-2);
  border-left: 3px solid var(--accent); border-radius: var(--radius); padding: 17px 21px;
  color: var(--navy); font-size: 15.5px;
}
.callout b { font-weight: 600; }

/* phases */
.phases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 34px; align-items: end; }
.phase { border: 1px solid var(--border); border-radius: var(--radius); padding: 19px 20px; background: #fff; }
.phase:nth-child(1) { border-top: 3px solid #C6C7EC; }
.phase:nth-child(2) { border-top: 3px solid var(--indigo); }
.phase:nth-child(3) { border-top: 3px solid var(--violet); }
.phase .ph { font-size: 11.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); }
@media (max-width: 800px) { .phases { grid-template-columns: 1fr; } }

/* founder */
.founder { display: grid; grid-template-columns: 250px 1fr; gap: 34px; align-items: start; margin-top: 30px; }
.founder .who { border-right: 1px solid var(--border); padding-right: 28px; }
.founder .who .nm { font-family: var(--font-serif); font-size: 1.42rem; color: var(--navy); font-weight: 600; }
.founder .who .cr { font-size: 14px; color: var(--muted); margin-top: 5px; }
@media (max-width: 800px) {
  .founder { grid-template-columns: 1fr; }
  .founder .who { border-right: 0; border-bottom: 1px solid var(--border); padding: 0 0 20px; }
}

/* footer */
footer.site { background: var(--navy); color: #C9CFEC; padding: 46px 0 34px; font-size: 14.5px; }
footer.site .wordmark { font-size: 21px; margin-bottom: 13px; }
footer.site a { color: #fff; }
footer.site .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 30px; }
footer.site .fine { margin-top: 30px; padding-top: 19px; border-top: 1px solid rgba(255,255,255,.16);
  font-size: 12.5px; color: #99A2CE; }
@media (max-width: 760px) { footer.site .cols { grid-template-columns: 1fr; } }

.disclaim { font-size: 13px; color: var(--grey); margin-top: 17px; }

/* ------------------------------------------------------------------------ platform page */
.console-frame {
  margin-top: 26px; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; background: var(--card); box-shadow: var(--shadow);
}
.console-frame iframe { display: block; width: 100%; height: 1010px; border: 0; }

/* Break the console out of the reading column. The three-panel layout needs width: inside
   1160px the cohort table wraps practice names onto three lines. */
.bleed {
  width: min(1680px, calc(100vw - 34px));
  margin-left: calc(50% - min(840px, calc(50vw - 17px)));
}
.open-full { display: none; }
@media (max-width: 900px) {
  /* Below the console's own breakpoint it stacks into one very tall column, which is
     unpleasant inside a fixed iframe. Offer the full-screen version instead. */
  .console-frame iframe { height: 620px; }
  .open-full { display: block; margin-top: 14px; font-size: 15px; }
}
.synthetic-banner {
  background: var(--lavender); border: 1px solid var(--lavender-2); border-radius: var(--radius);
  padding: 15px 19px; color: var(--navy); font-size: 15px; margin-top: 24px;
}
.synthetic-banner b { font-weight: 600; }


/* -------------------------------------------------------------------------- small phones */
@media (max-width: 430px) {
  .wrap, header.site .inner { padding-left: 18px; padding-right: 18px; }
  header.site .wordmark { font-size: 19px; }
  nav.top { gap: 12px; }
  nav.top a.cta { padding: 7px 12px; font-size: 14px; }
  body { font-size: 16px; }
  section { padding: 46px 0; }
  .hero { padding: 46px 0 40px; }
}

/* ---------- pipeline diagram ---------- */
.pipe-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 34px;
  margin-top: 30px;
  align-items: stretch;
}
.pipe-stage {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 17px 17px 15px;
}
.pipe-stage::after {
  content: "";
  position: absolute;
  top: 40px;
  right: -22px;
  width: 9px;
  height: 9px;
  border-top: 2px solid var(--indigo);
  border-right: 2px solid var(--indigo);
  transform: rotate(45deg);
}
.pipe-stage:last-child::after { display: none; }
.pipe-num {
  width: 23px; height: 23px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  font-size: 12.5px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 11px;
}
.pipe-stage h4 {
  margin: 0 0 7px;
  font-family: var(--font-serif);
  font-size: 18px; font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
}
.pipe-stage p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--body);
}
.pipe-tech {
  display: inline-block;
  margin-top: 11px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--accent);
  background: var(--lavender);
  border-radius: 4px;
  padding: 3px 6px;
  word-break: break-word;
}
.pipe-band {
  display: flex;
  gap: 16px;
  align-items: baseline;
  margin-top: 16px;
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--body);
}
.pipe-band.gov { background: var(--lavender); border: 1px solid var(--lavender-2); }
.pipe-band.acc { background: var(--card); border: 1px solid var(--border); }
.pipe-band .lbl {
  flex: 0 0 148px;
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--accent);
}
.pipe-band p { margin: 0; }
@media (max-width: 1080px) {
  .pipe-row { grid-template-columns: 1fr; gap: 28px; max-width: 620px; }
  .pipe-stage::after {
    top: auto; bottom: -20px;
    right: auto; left: 50%; margin-left: -5px;
    transform: rotate(135deg);
  }
  .pipe-band { display: block; }
  .pipe-band .lbl { display: block; margin-bottom: 5px; }
}
@media (max-width: 1080px) {
  .pipe-row.bleed { width: auto; margin-left: 0; }
}

/* ------------------------------------------------------------------- home page components
 * The home page is a summary only. Everything here exists to state the idea plainly and
 * then hand the reader to about / product / case-example.
 */

/* "Simply put" — three plain-language statements, numbered, no card chrome. */
.plainly { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 34px; }
.plainly .line { border-top: 2px solid var(--lavender-2); padding-top: 15px; }
.plainly .num {
  font-family: var(--font-serif); font-size: 13px; font-weight: 700; letter-spacing: .1em;
  color: var(--accent); text-transform: uppercase;
}
.plainly p { font-size: 17px; color: var(--body); margin: 7px 0 0; }
.plainly b { color: var(--navy); font-weight: 600; }
@media (max-width: 800px) { .plainly { grid-template-columns: 1fr; gap: 22px; } }

/* Doors: the three subsequent pages, as large clickable cards. */
.doors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 34px; }
.door {
  display: block; background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 23px 22px; box-shadow: var(--shadow); color: inherit;
}
.door:hover { border-color: var(--accent); text-decoration: none; transform: translateY(-2px); }
.door { transition: border-color .16s ease, transform .16s ease; }
.door .ph {
  font-size: 11.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: var(--accent);
}
.door h3 { margin: 8px 0 7px; font-size: 1.22rem; }
.door p { font-size: 15px; color: var(--muted); margin: 0; }
.door .go { display: inline-block; margin-top: 14px; font-size: 14.5px; font-weight: 600; color: var(--accent); }
@media (max-width: 900px) { .doors { grid-template-columns: 1fr; } }

/* Compact founder strip for the home page. */
.founder-mini {
  display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: start; margin-top: 30px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 27px 28px;
}
.founder-mini .nm { font-family: var(--font-serif); font-size: 1.5rem; color: var(--navy); font-weight: 600; }
.founder-mini .cr { font-size: 14px; color: var(--muted); margin-top: 5px; }
.founder-mini p { font-size: 15.5px; color: var(--muted); }
.founder-mini p:last-child { margin-bottom: 0; }
@media (max-width: 800px) { .founder-mini { grid-template-columns: 1fr; gap: 20px; padding: 22px; } }

/* ------------------------------------------------------------------------- about page
 * Long-form story column, narrower than the grid sections so it stays readable.
 */
.prose { max-width: 68ch; margin-top: 26px; }
.prose p { font-size: 17px; color: var(--body); }
.prose h3 { margin: 30px 0 8px; }
.prose .pull {
  border-left: 3px solid var(--accent); padding: 4px 0 4px 20px; margin: 26px 0;
  font-family: var(--font-serif); font-size: 20px; line-height: 1.42; color: var(--navy);
}

/* Sub-lists inside the three-block engine explanation on the product page. */
.card .sub { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); margin: 15px 0 4px; }
.card .sub:first-of-type { margin-top: 13px; }

/* Small badge used for the operating-model row and page intros. */
.tagrow { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tag {
  font-size: 13px; color: var(--navy); background: var(--lavender); border: 1px solid var(--lavender-2);
  border-radius: 20px; padding: 5px 13px;
}

/* Page hero, shorter than the home hero. */
.pagehead { padding: 52px 0 8px; background:
  radial-gradient(ellipse 900px 340px at 15% -20%, var(--lavender), transparent 70%); }
.pagehead h1 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.pagehead .lede { font-size: clamp(1.02rem, 1.4vw, 1.16rem); color: var(--body); max-width: 68ch; margin-top: 16px; }

/* Next-page footer link. */
.nextup { margin-top: 42px; border-top: 1px solid var(--border); padding-top: 24px;
  display: flex; flex-wrap: wrap; gap: 14px; align-items: baseline; justify-content: space-between; }
.nextup .lbl { font-size: 11.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--grey); }
