/* FPF · Conducting AI visual language / Ideogram layout */
@import url("tokens.css");

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 7rem; overflow-x: clip; }
body {
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: clamp(.96rem, .45vw + .84rem, 1.05rem);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2, h3, p, blockquote { margin-top: 0; }
h1, h2, h3 {
  margin-bottom: 0;
  font-family: var(--font-display);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -.052em;
  overflow-wrap: anywhere;
}
h1 { max-width: 14ch; font-size: clamp(2.75rem, 5vw, 4.6rem); }
h2 { max-width: 13ch; font-size: clamp(2.5rem, 4.6vw, 5.2rem); }
h3 { font-size: clamp(1.35rem, 2vw, 2rem); line-height: 1.04; letter-spacing: -.035em; }
p { max-width: 68ch; }
ul, ol { padding: 0; margin: 0; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  padding: .75rem 1rem;
  background: var(--ink);
  color: var(--paper);
}
.skip-link:focus { top: 1rem; }
:where(a, button, summary):focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

.site-header {
  position: relative;
  z-index: 20;
  width: min(100%, calc(var(--max) + 2 * var(--gutter)));
  min-height: 6.5rem;
  margin: 0 auto;
  padding: 1.4rem var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 2.5rem;
  border-bottom: 1px solid var(--rule);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: .9rem;
  width: max-content;
  text-decoration: none;
}
.foundry-mark {
  width: 3.2rem;
  height: 3.2rem;
  display: block;
}
.wordmark-copy { display: grid; gap: .12rem; min-width: 10rem; text-transform: uppercase; }
.wordmark-copy strong {
  font-family: var(--font-body);
  font-size: .82rem;
  line-height: 1;
  letter-spacing: .27em;
}
.wordmark-copy small {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: .65rem;
  font-family: var(--font-body);
  font-size: .58rem;
  line-height: 1;
  letter-spacing: .32em;
}
.wordmark-copy i { height: 1px; background: var(--ink); }
.desktop-nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); }
.desktop-nav a + a { margin-left: .35rem; }
.desktop-nav a, .site-footer a {
  position: relative;
  font-family: var(--font-mono);
  font-size: .72rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.desktop-nav a { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.header-login {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 500;
  text-transform: uppercase;
  text-decoration: none;
}
.header-login:hover { text-decoration: underline; text-underline-offset: .35rem; }
.desktop-nav a::after, .site-footer a::after, .text-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -.35rem;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms var(--ease);
}
.desktop-nav a:hover::after, .site-footer a:hover::after, .text-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}
.button {
  min-height: 2.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .78rem 1.25rem;
  border: 1px solid currentColor;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .01em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease);
}
.button::after { content: "↗"; margin-left: 1rem; font-size: .95rem; }
.button:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--paper-muted); }
.button-dark { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.button-light { background: var(--paper-raised); color: var(--ink); border-color: var(--ink); }
.text-link {
  position: relative;
  width: max-content;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: .76rem;
  font-weight: 500;
  text-decoration: none;
  text-transform: uppercase;
}
.mobile-menu { display: none; position: relative; }
.mobile-menu summary {
  min-height: 2.75rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  list-style: none;
  border: 1px solid var(--rule-dark);
  padding-inline: 1rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  text-transform: uppercase;
}
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu nav {
  position: absolute;
  right: 0;
  top: calc(100% + .75rem);
  z-index: 20;
  min-width: min(19rem, 88vw);
  display: grid;
  background: var(--paper-raised);
  border: 1px solid var(--rule-dark);
  box-shadow: 12px 12px 0 var(--paper-muted);
}
.mobile-menu a { min-height: 3rem; padding: .7rem 1rem; display: flex; align-items: center; border-bottom: 1px solid var(--rule); text-decoration: none; }
.mobile-menu a:last-child { border: 0; background: var(--ink); color: var(--paper); }

.hero, .section, .trusted, .site-footer {
  width: min(100%, calc(var(--max) + 2 * var(--gutter)));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.hero {
  min-height: min(55rem, calc(100svh - 6.5rem));
  padding-top: clamp(4rem, 8vw, 8rem);
  padding-bottom: clamp(4rem, 7vw, 7rem);
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(34rem, 1.22fr);
  grid-template-rows: auto auto 1fr;
  gap: 1.8rem clamp(3rem, 7vw, 8rem);
  align-items: start;
}
.hero > *, .site-header > * { min-width: 0; }
.overline, .spec-number {
  margin-bottom: 1.4rem;
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .04em;
  line-height: 1.45;
  text-transform: uppercase;
  color: var(--accent);
  overflow-wrap: anywhere;
}
.hero > .overline { grid-column: 1; margin: 0; padding-top: .45rem; }
.hero > h1 { grid-column: 1; }
.hero-intro {
  grid-column: 1;
  display: grid;
  align-content: start;
  gap: 1.8rem;
}
.hero-intro > p { margin: 0; color: var(--ink-soft); font-size: clamp(1rem, 1.25vw, 1.18rem); }
.hero-actions { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }

.system-stage {
  position: relative;
  grid-column: 2;
  grid-row: 1 / 4;
  min-height: 39rem;
  margin: 0;
  padding: clamp(1.4rem, 3vw, 2.6rem);
  display: grid;
  grid-template-rows: auto 1fr;
  background-color: var(--paper-raised);
  background-image:
    linear-gradient(var(--rule) 1px, transparent 1px),
    linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-size: 42px 42px;
  border: 1px solid var(--rule-dark);
  isolation: isolate;
}
.system-stage::before {
  content: "FPF / SYSTEM MAP / 01";
  position: absolute;
  top: 50%;
  right: -6.7rem;
  font-family: var(--font-mono);
  font-size: .58rem;
  letter-spacing: .08em;
  transform: rotate(90deg);
  color: var(--ink-muted);
}
.system-stage::after {
  content: "";
  position: absolute;
  inset: 1rem;
  z-index: -1;
  border: 1px solid color-mix(in srgb, var(--rule) 65%, transparent);
}
.system-stage figcaption {
  padding: .8rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  background: var(--paper-raised);
}
.system-stage figcaption span { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .05em; }
.system-stage figcaption strong {
  max-width: 19ch;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2.6rem);
  line-height: 1;
  letter-spacing: -.04em;
  font-weight: 500;
}
.system-flow {
  align-self: center;
  padding: 2rem .8rem .8rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 2.75rem minmax(11rem, .85fr) 2.75rem minmax(0, 1fr);
  align-items: center;
  gap: .6rem;
}
.surface-list, .worker-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--paper-raised);
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}
.surface-list::before, .worker-list::before {
  grid-column: 1 / -1;
  padding: .55rem .7rem;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  font-family: var(--font-mono);
  font-size: .55rem;
  letter-spacing: .05em;
}
.surface-list::before { content: "COMMAND SURFACES"; }
.worker-list::before { content: "EXECUTION LAYER"; }
.surface-list span, .worker-list span {
  min-width: 0;
  padding: .72rem;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  font-family: var(--font-mono);
  font-size: .62rem;
  line-height: 1.3;
}
.orchestrator {
  position: relative;
  aspect-ratio: 1;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 50%;
  text-align: center;
  box-shadow: 0 0 0 9px var(--paper-raised), 0 0 0 10px var(--ink);
}
.orchestrator::before {
  content: "";
  position: absolute;
  top: 1rem;
  left: 50%;
  width: .45rem;
  height: .45rem;
  transform: translateX(-50%);
  background: var(--accent);
}
.orchestrator small { font-family: var(--font-mono); font-size: .48rem; }
.orchestrator strong { margin-block: .3rem; font-family: var(--font-display); font-size: 1.3rem; line-height: 1; font-weight: 500; }
.orchestrator span { font-size: .58rem; line-height: 1.35; color: var(--paper-muted); }
.flow-line { height: 1px; background: var(--ink); }
.flow-line::after { content: "→"; display: block; margin-top: -.8rem; text-align: center; font-family: var(--font-mono); font-size: .7rem; }

.trusted { padding-block: 2.35rem; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: #fff; }
.trusted > p { margin-bottom: 1.4rem; font-family: var(--font-mono); font-size: .62rem; letter-spacing: .04em; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, black 4%, black 96%, transparent); }
.marquee-track { width: max-content; display: flex; align-items: center; gap: 3.25rem; animation: marquee 52s linear infinite; }
.marquee-track span { font-family: var(--font-display); font-size: 1.2rem; font-weight: 500; white-space: nowrap; color: var(--ink-soft); }
.marquee-track img { height: 48px; width: auto; max-width: 180px; object-fit: contain; filter: grayscale(1); mix-blend-mode: multiply; opacity: .85; }
@keyframes marquee { to { transform: translateX(-50%); } }

.section { padding-top: var(--section); padding-bottom: var(--section); border-bottom: 1px solid var(--rule); }
.section-heading {
  margin-bottom: clamp(3.5rem, 8vw, 7rem);
  display: grid;
  grid-template-columns: minmax(8rem, .32fr) minmax(0, 1fr) minmax(17rem, .44fr);
  gap: clamp(1.5rem, 4vw, 4.5rem);
  align-items: start;
}
.section-heading .overline { margin: .5rem 0 0; }
.section-heading > p:last-child { margin: .5rem 0 0; color: var(--ink-soft); }

.offer-index { list-style: none; border-top: 1px solid var(--ink); counter-reset: offer; }
.offer-index li {
  min-height: 7.4rem;
  padding: 1.5rem 0;
  display: grid;
  grid-template-columns: 5rem 1fr;
  align-items: start;
  border-bottom: 1px solid var(--rule);
  transition: padding 180ms var(--ease), background 180ms var(--ease);
}
.offer-index li:hover { padding-inline: 1rem; background: var(--paper-raised); }
.offer-index li > span { color: var(--accent); font-family: var(--font-mono); font-size: .66rem; }
.offer-index li > div { display: grid; grid-template-columns: minmax(13rem, .55fr) 1fr; gap: clamp(1.5rem, 5vw, 5rem); }
.offer-index h3 { font-size: clamp(1.4rem, 2.2vw, 2.25rem); }
.offer-index p { max-width: 55ch; margin: .15rem 0 0; color: var(--ink-soft); }

.system-section { position: relative; }
.install-spec {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--rule);
}
.install-spec article {
  position: relative;
  min-width: 0;
  min-height: 28rem;
  padding: clamp(1.5rem, 3.5vw, 3.2rem);
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: color-mix(in srgb, var(--paper-raised) 38%, transparent);
}
.install-spec article:nth-child(4n + 2), .install-spec article:nth-child(4n + 3) { background: var(--paper-raised); }
.install-spec article::after {
  content: "+";
  position: absolute;
  right: -.35rem;
  bottom: -.8rem;
  z-index: 2;
  font-family: var(--font-mono);
  color: var(--ink-muted);
  background: var(--paper);
}
.install-spec article > p:not(.spec-number) { color: var(--ink-soft); }
.install-spec ul { margin-top: auto; padding-top: 1.75rem; list-style: none; }
.install-spec li { padding: .55rem 0; border-top: 1px solid var(--rule); font-family: var(--font-mono); font-size: .68rem; }

.room-section {
  position: relative;
  color: var(--ink);
  background: var(--paper);
}
.room-section::before {
  content: "ENTRY PATH";
  position: absolute;
  top: 0;
  right: var(--gutter);
  padding: .4rem .7rem;
  transform: translateY(-50%);
  background: var(--paper);
  border: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: .58rem;
}
.engagements {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--rule);
}
.engagements article {
  min-width: 0;
  min-height: 22rem;
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.engagements article:nth-child(even) { background: var(--paper-raised); }
.engagements span { font-family: var(--font-mono); font-size: .65rem; }
.engagements h3 { margin-top: auto; }
.engagements p { margin: 1.15rem 0 0; color: var(--ink-soft); font-size: .9rem; }

.result-ledger {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--rule);
}
.result-ledger article {
  min-width: 0;
  min-height: 15rem;
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.result-ledger strong { font-family: var(--font-display); font-size: clamp(2.7rem, 5vw, 5rem); font-weight: 500; line-height: .9; letter-spacing: -.06em; }
.result-ledger span { max-width: 32ch; margin-top: 1rem; color: var(--ink-soft); font-size: .84rem; }
.result-ledger a { position: relative; min-width: 44px; min-height: 44px; margin-top: auto; padding-top: 1.5rem; width: max-content; display: inline-flex; align-items: flex-end; font-family: var(--font-mono); font-size: .62rem; text-underline-offset: .25em; }
.testimonial-feature {
  margin-top: clamp(4rem, 8vw, 7rem);
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center;
  padding: clamp(1.25rem, 2.6vw, 2.25rem);
  border: 1px solid var(--ink);
  background: var(--paper-raised);
}
.testimonial-feature video { width: 100%; display: block; border: 1px solid var(--rule); }
.testimonial-feature strong { display: block; margin-top: .9rem; font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3.6rem); font-weight: 500; line-height: .95; letter-spacing: -.05em; }
.testimonial-feature .feature-attrib { margin: 1.6rem 0 0; font-family: var(--font-mono); font-size: .68rem; font-weight: 500; text-transform: uppercase; }
.testimonial-feature .feature-attrib span { display: block; margin-top: .3rem; color: var(--ink-muted); font-size: .62rem; font-weight: 400; }
.testimonial-feature + .testimonials { margin-top: 0; border-top: 0; }

.testimonials {
  margin-top: clamp(4rem, 8vw, 7rem);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
  counter-reset: quote;
}
.testimonials article {
  position: relative;
  min-height: 22rem;
  padding: clamp(1.5rem, 3.2vw, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  counter-increment: quote;
}
.testimonials article::before {
  content: "0" counter(quote);
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  font-family: var(--font-mono);
  font-size: .58rem;
  color: var(--ink-muted);
}
.testimonials article:nth-child(4n + 2), .testimonials article:nth-child(4n + 3) { background: var(--paper-raised); }
.testimonials blockquote {
  max-width: 28ch;
  padding-right: 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.9rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -.03em;
}
.testimonials p { margin: 2rem 0 0; font-family: var(--font-mono); font-size: .68rem; font-weight: 500; text-transform: uppercase; }
.testimonials p span { display: block; margin-top: .3rem; color: var(--ink-muted); font-size: .62rem; font-weight: 400; }
.proof-source { margin: 1.2rem 0 0; color: var(--ink-muted); font-size: .76rem; }
.proof-source a { min-height: 44px; display: inline-flex; align-items: center; }

.founder-section { display: grid; grid-template-columns: 1.08fr .72fr; gap: clamp(3rem, 10vw, 10rem); }
.founder-section > div:last-child { padding-top: 2.5rem; }
.founder-section > div:last-child p { color: var(--ink-soft); }
.final-cta {
  width: min(100%, calc(var(--max) + 2 * var(--gutter)));
  margin-inline: auto;
  padding: var(--section) var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, .55fr);
  column-gap: clamp(3rem, 9vw, 9rem);
  align-items: end;
  color: var(--ink);
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
}
.final-cta .overline, .final-cta h2 { grid-column: 1; }
.final-cta > p:not(.overline) { grid-column: 2; grid-row: 1 / 3; align-self: center; margin: 0 0 4rem; font-size: 1.08rem; }
.final-cta .button { grid-column: 2; justify-self: start; }
.site-footer {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 2rem;
  align-items: start;
}
.site-footer strong { font-family: var(--font-display); font-size: 1.2rem; }
.site-footer p { margin-bottom: 0; color: var(--ink-muted); font-size: .76rem; }
.site-footer nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2rem; }
.site-footer nav a { min-height: 44px; display: inline-flex; align-items: center; }
.footer-brand { display: flex; align-items: flex-start; gap: 1rem; }
.footer-brand img { width: 3.25rem; height: 3.25rem; flex: 0 0 auto; }

@media (max-width: 1120px) {
  .desktop-nav, .header-login, .header-cta { display: none; }
  .site-header { grid-template-columns: minmax(0, 1fr) auto; }
  .mobile-menu { display: block; }
  .hero { grid-template-columns: minmax(0, .75fr) minmax(30rem, 1.25fr); gap: 1.5rem 3rem; }
  .system-flow { grid-template-columns: 1fr; }
  .flow-line { width: 1px; height: 1.6rem; justify-self: center; }
  .flow-line::after { content: "↓"; margin: .35rem 0 0 -.45rem; }
  .orchestrator { width: 10rem; justify-self: center; }
  .surface-list, .worker-list { width: min(100%, 22rem); justify-self: center; }
  .system-stage { min-height: 46rem; }
}

@media (max-width: 900px) {
  .hero {
    min-height: 0;
    display: block;
  }
  .hero > h1 { max-width: 10ch; margin-top: 1.5rem; }
  .hero-intro { margin-top: 1.75rem; }
  .system-stage { min-height: 41rem; margin-top: 2rem; }
  .section-heading, .founder-section, .final-cta { grid-template-columns: 1fr; }
  .section-heading { gap: 1.5rem; }
  .section-heading > p:last-child { max-width: 50ch; }
  .engagements { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .final-cta > p:not(.overline), .final-cta .button { grid-column: 1; grid-row: auto; }
  .final-cta > p:not(.overline) { margin: 2rem 0; }
}

@media (max-width: 660px) {
  h1 { max-width: 100%; font-size: clamp(2.25rem, 9vw, 3.2rem); }
  h2 { font-size: clamp(2.35rem, 12vw, 4rem); }
  .wordmark-copy { min-width: 8.5rem; }
  .wordmark-copy strong { font-size: .7rem; }
  .wordmark-copy small { font-size: .52rem; }
  .site-header { gap: 1rem; padding-inline: 1rem; }
  .mobile-menu { justify-self: end; }
  .hero { padding-top: 3.5rem; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .system-stage { min-height: 47rem; margin-inline: calc(-1 * var(--gutter)); padding: 1.1rem; }
  .system-stage::before { display: none; }
  .system-stage figcaption { flex-direction: column; }
  .surface-list, .worker-list { grid-template-columns: 1fr; width: min(100%, 18rem); }
  .offer-index li { grid-template-columns: 2.5rem 1fr; }
  .offer-index li > div { grid-template-columns: 1fr; gap: .55rem; }
  .install-spec, .engagements, .result-ledger, .testimonials, .testimonial-feature { grid-template-columns: 1fr; }
  .install-spec article { min-height: 24rem; }
  .engagements article { min-height: 15rem; }
  .testimonials article { min-height: 18rem; border-right: 0; }
  .site-footer { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .button, .offer-index li { transition: none; }
}
