:root {
  --forest: #103720;
  --forest-deep: #082718;
  --leaf: #b9db43;
  --leaf-light: #e5f0a8;
  --water: #4d7c67;
  --petal: #e7a0b4;
  --sun: #f2c879;
  --ink: #102519;
  --off-white: #f7f8f0;
  --line: rgba(16, 37, 25, 0.22);
  font-family: "Avenir Next", Avenir, "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  color: var(--ink);
  background: var(--off-white);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--off-white); }
a { color: inherit; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10;
  padding: 10px 14px;
  color: var(--off-white);
  background: var(--forest-deep);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.site-header,
main > section,
footer {
  width: min(1240px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 750;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.wordmark span {
  width: 17px;
  height: 17px;
  display: inline-block;
  background: var(--forest);
  border-radius: 50% 50% 12% 50%;
  transform: rotate(45deg);
}

nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 26px;
}
nav a { font-size: 0.9rem; font-weight: 650; text-decoration: none; }
nav a:not(.account-link):hover { text-decoration: underline; text-underline-offset: 4px; }

.account-link,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 750;
  text-decoration: none;
}
.account-link { color: var(--off-white); background: var(--forest); }

.hero {
  min-height: calc(100svh - 112px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  align-items: center;
  gap: clamp(52px, 8vw, 120px);
  padding: clamp(64px, 9vw, 118px) clamp(28px, 6vw, 88px);
  overflow: hidden;
  color: var(--forest-deep);
  background: var(--leaf);
  border-radius: 16px;
}
.hero-copy { position: relative; z-index: 1; }

.kicker,
.section-intro > p,
.account-heading > p,
.ownership > div > p,
.developer-note > div > p {
  margin: 0 0 22px;
  font-size: 0.82rem;
  font-weight: 800;
}

h1, h2, h3, p { overflow-wrap: anywhere; }
h1 {
  max-width: 720px;
  margin: 0;
  font: 800 clamp(3.3rem, 7.4vw, 5.9rem) / 0.94 "Arial Rounded MT Bold", "Avenir Next", sans-serif;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.hero-lede {
  max-width: 630px;
  margin: 30px 0 0;
  font-size: clamp(1.08rem, 1.8vw, 1.35rem);
  line-height: 1.55;
}
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px 24px; margin-top: 36px; }
.button-primary, .button-dark { color: var(--off-white); background: var(--forest-deep); }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 750; text-underline-offset: 4px; }

.account-orbit { min-height: 540px; position: relative; isolation: isolate; }
.orbit-ring { position: absolute; border: 1px solid rgba(8, 39, 24, 0.34); border-radius: 50%; }
.orbit-ring-one { inset: 6% 4% 7%; transform: rotate(-10deg); }
.orbit-ring-two { inset: 18% 14%; transform: rotate(18deg); }
.orbit-center, .orbit-product { position: absolute; display: grid; place-content: center; text-align: center; }
.orbit-center {
  inset: 30% 24%;
  z-index: 2;
  min-width: 190px;
  aspect-ratio: 1;
  padding: 24px;
  color: var(--off-white);
  background: var(--forest-deep);
  border-radius: 50%;
}
.orbit-center small, .orbit-product span { font-size: 0.78rem; }
.orbit-center strong { margin-top: 4px; font-size: 1.45rem; }
.orbit-product {
  z-index: 3;
  min-width: 126px;
  min-height: 88px;
  padding: 18px;
  border-radius: 50%;
  box-shadow: 0 6px 0 rgba(8, 39, 24, 0.2);
}
.orbit-product strong { font-size: 1rem; }
.orbit-product span { margin-top: 3px; }
.orbit-twyne { top: 5%; right: 6%; background: var(--petal); transform: rotate(5deg); }
.orbit-keating { bottom: 3%; left: 3%; background: var(--sun); transform: rotate(-6deg); }
.orbit-interleave { right: 0; bottom: 13%; color: #fff; background: var(--water); transform: rotate(8deg); }

.product-story { padding: clamp(100px, 14vw, 190px) 0; }
.section-intro {
  display: grid;
  grid-template-columns: minmax(160px, 0.35fr) minmax(0, 1fr);
  gap: clamp(36px, 8vw, 120px);
  margin-bottom: 76px;
}
h2 {
  margin: 0;
  font: 750 clamp(2.5rem, 5.4vw, 4.8rem) / 1 "Arial Rounded MT Bold", "Avenir Next", sans-serif;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.product-list { border-top: 1px solid var(--line); }
.product-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 32px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}
.product-list p { margin: 0; }
.product-list h3 { margin: 0 0 10px; font-size: clamp(1.65rem, 3vw, 2.55rem); letter-spacing: -0.025em; }
.product-list article div p { max-width: 670px; color: #3f5849; line-height: 1.65; }
.product-verb {
  min-width: 88px;
  padding: 8px 14px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 800;
  border: 1px solid var(--ink);
  border-radius: 999px;
}

.account-story {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(56px, 10vw, 150px);
  padding: clamp(72px, 9vw, 120px);
  color: var(--off-white);
  background: var(--forest-deep);
  border-radius: 16px;
}
.account-heading > p, .ownership > div > p { color: var(--leaf); }
.account-points { display: grid; gap: 36px; }
.account-points article { padding-top: 28px; border-top: 1px solid rgba(247, 248, 240, 0.25); }
.account-points h3 { margin: 0 0 10px; font-size: 1.25rem; }
.account-points p { max-width: 620px; margin: 0; color: #c9d8cc; line-height: 1.65; }

.ownership {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.65fr) auto;
  align-items: end;
  gap: clamp(36px, 6vw, 92px);
  margin-top: 24px;
  padding: clamp(52px, 7vw, 88px);
  background: var(--petal);
  border-radius: 16px;
}
.ownership > div > p { color: var(--forest-deep); }
.ownership > p { margin: 0; line-height: 1.65; }

.developer-note {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 1fr) auto;
  align-items: end;
  gap: clamp(30px, 6vw, 86px);
  padding: 92px 0;
}
.developer-note h2 { font-size: clamp(2rem, 3.7vw, 3.35rem); }
.developer-note > p { max-width: 600px; margin: 0; color: #3f5849; line-height: 1.65; }

footer {
  min-height: 120px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 34px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
footer p { margin: 0; color: #4e6658; font-size: 0.9rem; }
a:hover.account-link, a:hover.button { transform: translateY(-2px); }
a:focus-visible { outline: 3px solid var(--petal); outline-offset: 4px; }

@media (max-width: 980px) {
  .hero { min-height: auto; grid-template-columns: 1fr; }
  .account-orbit { width: min(580px, 100%); min-height: 460px; margin-inline: auto; }
  .account-story, .ownership, .developer-note { grid-template-columns: 1fr; }
  .ownership, .developer-note { align-items: start; }
  .ownership .button, .developer-note .text-link { justify-self: start; }
  footer { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .site-header { min-height: 76px; }
  .site-header nav a:not(.account-link) { display: none; }
  .site-header, main > section, footer { width: min(100% - 24px, 1240px); }
  .hero { padding: 54px 22px 30px; }
  h1 { font-size: clamp(3rem, 15vw, 4.6rem); }
  .account-orbit { min-height: 390px; }
  .orbit-center { inset: 29% 22%; min-width: 150px; }
  .orbit-product { min-width: 108px; min-height: 76px; padding: 14px; }
  .section-intro, .product-list article { grid-template-columns: 1fr; }
  .section-intro { gap: 14px; margin-bottom: 46px; }
  .product-list article { gap: 16px; }
  .product-verb { justify-self: start; }
  .account-story, .ownership { padding: 48px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* ============================================================
   Company surface: four products, philosophy, billing, investors
   ============================================================ */

:root {
  --dusk: #a9b6e0;
  --forest-soft: #3f5849;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* --- Orbit, rebalanced for four products --- */
.orbit-twyne { top: 1%; right: 9%; }
.orbit-keating { bottom: 1%; left: 9%; }
.orbit-interleave { right: 0; bottom: 26%; }
.orbit-stich {
  top: 24%;
  left: 0;
  color: var(--forest-deep);
  background: var(--dusk);
  transform: rotate(-8deg);
}

/* --- Shared section scaffolding --- */
.section-intro > div { display: grid; gap: 22px; }
.section-lede {
  max-width: 640px;
  margin: 0;
  font-size: clamp(1rem, 1.5vw, 1.16rem);
  line-height: 1.65;
  color: var(--forest-soft);
}

/* --- Approach / principles --- */
.approach { padding: clamp(96px, 13vw, 176px) 0 clamp(60px, 7vw, 90px); }
.principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.principles article {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: clamp(28px, 3.4vw, 44px);
  background: var(--off-white);
}
.principle-index {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--water);
}
.principles h3 {
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  letter-spacing: -0.02em;
}
.principles p { margin: 0; line-height: 1.65; color: var(--forest-soft); }

/* --- Product list additions --- */
.product-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 0.92rem;
  font-weight: 750;
  text-underline-offset: 4px;
}

/* --- Account points, two up --- */
.account-points { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 34px 44px; }

/* --- Plain-language block --- */
.plain-version {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: clamp(36px, 7vw, 100px);
  margin-top: 24px;
  padding: clamp(52px, 7vw, 88px);
  background: var(--petal);
  border-radius: 16px;
}
.plain-version > div > p {
  margin: 0 0 22px;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--forest-deep);
}
.plain-version h2 { font-size: clamp(2.1rem, 4vw, 3.4rem); }
.plain-body { display: grid; justify-items: start; gap: 30px; }
.plain-body p { margin: 0; font-size: clamp(1rem, 1.5vw, 1.14rem); line-height: 1.7; }

/* --- Two exits: developers and investors --- */
.exits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2px;
  margin: 92px 0;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.exits article {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: clamp(34px, 4vw, 56px) clamp(0px, 3vw, 44px);
  background: var(--off-white);
}
.exits article > p:first-child {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--water);
}
.exits h3 { margin: 0; font-size: clamp(1.5rem, 2.6vw, 2.1rem); letter-spacing: -0.025em; }
.exits article p { margin: 0; line-height: 1.65; color: var(--forest-soft); }
.exits .text-link { margin-top: 6px; }

/* --- Footer --- */
.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 2fr);
  align-items: start;
  gap: clamp(36px, 6vw, 80px);
  padding: 56px 0 44px;
  border-top: 1px solid var(--line);
}
.footer-brand p { max-width: 260px; margin: 16px 0 0; }
.footer-links {
  display: grid;
  align-items: start;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 30px 34px;
}
.footer-links > div { display: grid; align-content: start; gap: 10px; }
.footer-links h2 {
  margin: 0 0 4px;
  font: 800 0.78rem/1.4 "Avenir Next", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--water);
}
.footer-links a { font-size: 0.94rem; text-underline-offset: 3px; }
.footer-legal {
  grid-column: 1 / -1;
  max-width: 720px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
  line-height: 1.6;
}

@media (max-width: 980px) {
  .plain-version { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr; }
}

/* ============================================================
   Interior pages: services.html, investors.html
   ============================================================ */

.page-hero {
  display: grid;
  gap: 0;
  padding: clamp(56px, 8vw, 104px) clamp(28px, 5vw, 72px) clamp(52px, 7vw, 88px);
  margin-top: 8px;
  color: var(--forest-deep);
  background: var(--leaf);
  border-radius: 16px;
}
.page-hero .kicker { color: var(--forest-deep); }
.page-hero h1 { max-width: 900px; font-size: clamp(2.6rem, 6vw, 4.6rem); }
.page-hero .hero-lede { max-width: 660px; }

.prose {
  display: grid;
  grid-template-columns: minmax(190px, 0.32fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 96px);
  padding: clamp(52px, 7vw, 88px) 0;
  border-bottom: 1px solid var(--line);
}
main > section.prose:last-of-type { border-bottom: 0; }

.prose-head { align-self: start; }
.prose-head > p {
  margin: 0 0 14px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--water);
}
.prose-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  letter-spacing: -0.03em;
}

.prose-body { max-width: 760px; }
.prose-body > p {
  margin: 0 0 20px;
  font-size: clamp(1rem, 1.4vw, 1.09rem);
  line-height: 1.72;
  color: var(--forest-soft);
}
.prose-body > p:last-child { margin-bottom: 0; }
.prose-body a { text-underline-offset: 3px; font-weight: 650; }
.prose-body strong { color: var(--ink); font-weight: 800; }

.subhead {
  margin: 46px 0 12px;
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  letter-spacing: -0.02em;
}

.pull {
  padding: 24px 28px;
  margin: 30px 0;
  color: var(--forest-deep) !important;
  background: var(--leaf-light);
  border-left: 3px solid var(--forest);
  border-radius: 0 12px 12px 0;
  font-weight: 650;
}

/* Definition lists for specifics */
.spec-list { display: grid; gap: 0; margin: 8px 0 24px; }
.spec-list > div {
  display: grid;
  grid-template-columns: minmax(150px, 0.34fr) minmax(0, 1fr);
  gap: 12px 32px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.spec-list > div:last-child { border-bottom: 1px solid var(--line); }
.spec-list dt { font-weight: 800; letter-spacing: -0.01em; }
.spec-list dd { margin: 0; line-height: 1.7; color: var(--forest-soft); }

/* Two kinds of purchase */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2px;
  margin: 28px 0;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.offer-grid article {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 28px;
  background: var(--off-white);
}
.offer-tag {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--water);
}
.offer-grid h3 { margin: 0; font-size: 1.25rem; letter-spacing: -0.02em; }
.offer-grid p { margin: 0; line-height: 1.65; color: var(--forest-soft); }

/* Tables */
.table-scroll { overflow-x: auto; margin: 22px 0 8px; }
.plan-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  text-align: left;
}
.plan-table th,
.plan-table td {
  padding: 14px 18px 14px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.55;
}
.plan-table thead th {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--water);
  border-bottom: 1px solid var(--ink);
  white-space: nowrap;
}
.plan-table tbody th { font-weight: 800; white-space: nowrap; }
.plan-table td { color: var(--forest-soft); }

/* Portfolio cards */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 28px 0 8px;
}
.portfolio-grid article {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 26px 24px;
  color: var(--forest-deep);
  border-radius: 14px;
}
.portfolio-grid article > p:first-child {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.portfolio-grid h3 { margin: 0; font-size: 1.55rem; letter-spacing: -0.025em; }
.portfolio-grid p { margin: 0; line-height: 1.55; font-size: 0.94rem; }
.portfolio-twyne { background: var(--petal); }
.portfolio-keating { background: var(--sun); }
.portfolio-interleave { background: var(--water); color: var(--off-white); }
.portfolio-stich { background: var(--dusk); }

/* Rules we hold to */
.rule-list { display: grid; gap: 18px; margin: 8px 0 0; padding: 0; list-style: none; }
.rule-list li {
  padding-left: 22px;
  line-height: 1.72;
  color: var(--forest-soft);
  border-left: 2px solid var(--leaf);
}
.rule-list strong { display: block; color: var(--ink); }

.contact-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 28px;
  margin: 26px 0 !important;
}

@media (max-width: 760px) {
  .page-hero { padding: 44px 22px 40px; }
  .prose { grid-template-columns: 1fr; gap: 22px; }
  .spec-list > div { grid-template-columns: 1fr; gap: 6px; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .plan-table th, .plan-table td { padding-right: 14px; }
}

/* Draft notice on placeholder legal pages */
.draft-banner {
  width: min(1240px, calc(100% - 40px));
  margin: 28px auto -12px;
  padding: 18px 24px;
  background: var(--sun);
  border-radius: 12px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--forest-deep);
}
.draft-banner strong { font-weight: 800; }
