/* JASS Agentic site. Tokens from the JASS Agentic design system; one light theme. */

:root {
  --mesquite: #5E8C4A;
  --verdigris: #22796E;
  --sand: #D9C29C;
  --paprika: #E4572E;
  --gold: #F3A712;
  --parchment: #FAF7EF;
  --juniper: #1E3B33;
  --card: #FFFFFF;

  --font: "Sora", system-ui, sans-serif;
  --gutter: 32px;
  --section: 96px;
  --band-h: 72px;
  --header-h: calc(116px + var(--band-h));
  color-scheme: light;
}

@property --p {
  syntax: "<number>";
  inherits: true;
  initial-value: 1;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--parchment);
  color: var(--juniper);
  font: 400 18px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-top: var(--header-h);
}
main { overflow-x: clip; }
section[id] { scroll-margin-top: 96px; }

h1, h2, h3, h4, p, ul, ol { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--verdigris); }

:focus-visible { outline: 3px solid var(--juniper); outline-offset: 3px; border-radius: 2px; }
.panel-dark :focus-visible, .site-footer :focus-visible { outline-color: var(--gold); }

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 20;
  background: var(--juniper); color: var(--parchment);
  padding: 12px 16px; border-radius: 4px; font-weight: 700; text-decoration: none;
}
.skip:focus { top: 16px; }

.wrap { max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- type ---------- */

.display {
  font-size: clamp(52px, 7.4vw, 104px);
  line-height: .98;
  font-weight: 800;
  letter-spacing: -.035em;
}
.h1 {
  font-size: clamp(36px, 4.6vw, 56px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -.03em;
}
h2 {
  font-size: clamp(32px, 3.6vw, 44px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -.02em;
}
h3 {
  font-size: 26px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -.01em;
}
.lead { font-size: 20px; line-height: 1.55; }

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

.btn {
  display: inline-flex;
  align-items: center;
  font: 700 16px/1 var(--font);
  padding: 14px 20px;
  border-radius: 4px;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .15s ease-out;
}
.btn-primary { background: var(--juniper); color: var(--parchment); }
.btn-primary:hover { background: var(--verdigris); }
.btn-cta { background: var(--paprika); color: var(--parchment); font-size: 19px; padding: 18px 26px; }
.btn-cta:hover { background: color-mix(in srgb, var(--paprika) 84%, var(--juniper)); }

.text-link {
  color: var(--juniper);
  font-weight: 700;
  font-size: 17px;
  text-decoration: underline 2px var(--verdigris);
  text-underline-offset: 6px;
  transition: text-decoration-color .15s ease-out;
}
.text-link:hover { text-decoration-color: var(--juniper); }

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

/* Fixed, so the nav is always there; past the hero it shrinks to the mark. */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  background: var(--parchment);
  border-bottom: 2px solid transparent;
  transition: border-color .2s ease-out, transform .3s ease-out;
}
/* Scrolled: the band slides up until only its bottom 8px shows, where the footer's five-colour stripe fades in. */
.site-header.is-compact { border-bottom-color: var(--sand); transform: translateY(calc(8px - var(--band-h))); }
.header-band .stripe { position: absolute; left: 0; right: 0; bottom: 0; opacity: 0; transition: opacity .3s ease-out; }
.is-compact .header-band .stripe { opacity: 1; }

/* The brand band from the design system cover: mesquite, sand and juniper blocks, crossed by
   parchment cut-outs, a paprika and a ranch-gold stripe. Measured from the bottom so the top can trim. */
.header-band {
  position: relative;
  height: var(--band-h);
  background: linear-gradient(90deg, var(--mesquite) 0 50%, var(--sand) 50% 70%, var(--juniper) 70%);
}
.header-band > i { position: absolute; left: 0; right: 0; }
.header-band .cut-1 { bottom: 48px; height: 4px; background: var(--parchment); }
.header-band .paprika { bottom: 36px; height: 8px; background: var(--paprika); }
.header-band .cut-2 { bottom: 28px; height: 4px; background: var(--parchment); }
.header-band .gold { bottom: 16px; height: 8px; background: var(--gold); }
.header-row {
  display: flex;
  align-items: center;
  gap: 40px;
  padding-block: 12px;
  transition: padding .2s ease-out;
}
.is-compact .header-row { padding-block: 8px; }
.brand { display: block; flex: none; }
.brand .logo-full { width: 168px; }
.brand .logo-mark { width: 56px; display: none; }
.is-compact .brand .logo-full { display: none; }
.is-compact .brand .logo-mark { display: block; }
.site-footer .brand img { width: 168px; }
.nav { display: flex; gap: 32px; margin-left: auto; }
.nav .narrow-only { display: none; }
.nav a {
  color: var(--juniper);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  padding-block: 6px;
  background: linear-gradient(var(--verdigris), var(--verdigris)) left bottom / 0 2px no-repeat;
  transition: background-size .2s ease-out;
}
.nav a:hover { background-size: 100% 2px; }

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

.hero { background: var(--sand); padding-block: 72px; margin-top: 48px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 48px;
  align-items: center;
}
.hero-copy { position: relative; z-index: 1; }
.bar {
  display: block;
  width: 96px;
  height: 8px;
  background: var(--gold);
  margin: 32px 0 28px;
  transform-origin: left;
  animation: bar-draw .7s cubic-bezier(.2, .7, .2, 1) .35s both;
}
@keyframes bar-draw { from { transform: scaleX(0); } }
.hero .lead { max-width: 38ch; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 32px;
  margin-top: 40px;
}
.hero-note { margin-top: 32px; font-size: 15px; font-weight: 600; }
/* The settled logo fills the right column (site.js sets its size to fit). Its canvas is far bigger than the
   column, centred on it, so the nodes fly in and out across all four edges of the panel. */
.hero-mark { position: relative; align-self: stretch; min-height: 420px; }
.hero-mark jass-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  height: 190%;
  width: auto;
  aspect-ratio: 1.7;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* ---------- sections and panels ---------- */

.section { padding-block: var(--section); }
.section-head { max-width: 46rem; margin-bottom: 64px; }
.section-head h2 { margin-bottom: 20px; }

.panel {
  width: calc(100% - 32px);
  max-width: 1360px;
  margin-inline: auto;
  border-radius: 8px;
  padding-block: var(--section);
}
.panel-sand { background: var(--sand); }
.panel-dark { background: var(--juniper); color: var(--parchment); }

/* ---------- how we work ---------- */

.steps-body { position: relative; view-timeline: --steps block; }
.step-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px;
  position: relative;
}
.step p:last-child { max-width: 34ch; }
.step-node {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--mesquite);
  background: var(--mesquite);
  color: var(--parchment);
  font-size: 19px;
  font-weight: 800;
  position: relative;
  z-index: 1;
}
.step h3 { margin: 28px 0 14px; }
.service-tag { margin: -6px 0 12px; font-size: 15px; font-weight: 700; color: var(--verdigris); }

.track {
  position: absolute;
  top: 20px;
  left: 22px;
  width: calc(66.667% + 32px);
  height: 4px;
  background: var(--sand);
}
.track-fill {
  display: block;
  height: 100%;
  background: var(--mesquite);
  transform-origin: left;
  transform: scaleX(var(--p));
}

/* Scroll-linked: the line fills as the section scrolls through, each step lights when the line reaches it. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .track-fill { animation: track-fill linear both; animation-timeline: --steps; animation-range: cover 8% cover 38%; }
    .step:nth-child(1) .step-node { animation: node-on-1 linear both; animation-timeline: --steps; animation-range: cover 8% cover 38%; }
    .step:nth-child(2) .step-node { animation: node-on-2 linear both; animation-timeline: --steps; animation-range: cover 8% cover 38%; }
    .step:nth-child(3) .step-node { animation: node-on-3 linear both; animation-timeline: --steps; animation-range: cover 8% cover 38%; }
  }
}
@keyframes track-fill { from { --p: 0; } to { --p: 1; } }
@keyframes node-on-1 {
  0% { background: var(--parchment); color: var(--juniper); border-color: var(--juniper); }
  4%, 100% { background: var(--mesquite); color: var(--parchment); border-color: var(--mesquite); }
}
@keyframes node-on-2 {
  0%, 47% { background: var(--parchment); color: var(--juniper); border-color: var(--juniper); }
  53%, 100% { background: var(--mesquite); color: var(--parchment); border-color: var(--mesquite); }
}
@keyframes node-on-3 {
  0%, 94% { background: var(--parchment); color: var(--juniper); border-color: var(--juniper); }
  100% { background: var(--mesquite); color: var(--parchment); border-color: var(--mesquite); }
}

/* ---------- every team ---------- */

.teams-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 56px 72px;
  align-items: center;
}
.teams-head { grid-column: 1 / -1; max-width: 46rem; }
.teams-head h2 { margin-bottom: 20px; }

.orbit {
  position: relative;
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1;
  margin-inline: auto;
}
.orbit-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.orbit-lines line {
  stroke: var(--juniper);
  stroke-width: 2;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  opacity: .32;
  transition: opacity .3s ease-out;
}
.orbit-lines line.is-active { opacity: 1; stroke-width: 3; }
.orbit-lines circle { fill: var(--gold); }

.node {
  position: absolute;
  transform: translate(-50%, -50%);
  font: 700 15px/1 var(--font);
  color: var(--juniper);
  background: var(--parchment);
  border: 2px solid var(--juniper);
  border-radius: 6px;
  padding: 11px 14px;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s ease-out, color .2s ease-out, box-shadow .2s ease-out;
}
/* hover answers at once: the team turns gold like the core, and its link to the core lights up (site.js) */
.node:hover:not([aria-selected="true"]) { background: var(--gold); animation: none; transition-duration: .06s; }
.orbit-lines line.is-hover { opacity: 1; transition-duration: .06s; }
/* the selected node answers hover too: its paprika ring thickens */
.node[aria-selected="true"]:hover { box-shadow: 0 0 0 7px var(--paprika); transition-duration: .06s; }
.node[aria-selected="true"] {
  background: var(--juniper);
  color: var(--parchment);
  box-shadow: 0 0 0 4px var(--paprika);
}

.hint { margin-top: 20px; font-size: 16px; font-weight: 700; }
.examples-note { margin-top: 24px; font-size: 15px; font-weight: 600; max-width: 44ch; }

/* Until someone clicks, a ring ripples around the teams to say they open. */
@media (prefers-reduced-motion: no-preference) {
  .orbit:not(.is-touched) .node:not([aria-selected="true"]) { animation: nudge 2.8s ease-out infinite; }
  .orbit:not(.is-touched) .node:nth-child(2) { animation-delay: .3s; }
  .orbit:not(.is-touched) .node:nth-child(3) { animation-delay: .6s; }
  .orbit:not(.is-touched) .node:nth-child(4) { animation-delay: .9s; }
  .orbit:not(.is-touched) .node:nth-child(5) { animation-delay: 1.2s; }
  .orbit:not(.is-touched) .node:nth-child(6) { animation-delay: 1.5s; }
}
@keyframes nudge {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--juniper) 55%, transparent); }
  60%, 100% { box-shadow: 0 0 0 10px color-mix(in srgb, var(--juniper) 0%, transparent); }
}

.team-panel h3 { margin-bottom: 8px; }
.team-panel ul { list-style: none; padding: 0; }
.team-panel li {
  padding: 16px 0;
  border-bottom: 2px solid color-mix(in srgb, var(--juniper) 18%, var(--sand));
}
.team-panel li:last-child { border-bottom: 0; }
.js .team-panel:not(.is-current) { display: none; }
.js .team-panel { animation: panel-in .3s ease-out both; }
@keyframes panel-in { from { opacity: 0; transform: translateY(6px); } }
.team-panel + .team-panel { margin-top: 40px; }
.js .team-panel + .team-panel { margin-top: 0; }

/* ---------- fit: the promise left, what it means right ---------- */

.fit-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 48px 72px;
  align-items: start;
}
.fit-list { margin: 0; border-top: 4px solid var(--juniper); }
.fit-list > div { padding-block: 24px; border-bottom: 2px solid color-mix(in srgb, var(--juniper) 18%, var(--parchment)); }
.fit-list > div:last-child { border-bottom: 0; }
.fit-list dt { font-size: 22px; font-weight: 800; letter-spacing: -.01em; margin-bottom: 6px; display: flex; align-items: center; gap: 12px; }
.fit-list dd { margin: 0 0 0 26px; max-width: 44ch; }
/* each point's node fills when the diagram reaches its step */
.fit-list dt::before {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--juniper);
  background: var(--parchment);
  transition: background-color .3s ease-out, border-color .3s ease-out;
}
.fit-list > div.is-on dt::before, .fit-list:not(.is-live) dt::before { background: var(--mesquite); border-color: var(--mesquite); }
.fit-list > div { padding-block: 32px; }

.fit-diagram { display: block; width: 100%; max-width: 520px; margin-top: 56px; overflow: visible; font-family: var(--font); }
.fit-diagram text { font-size: 17px; font-weight: 700; fill: var(--juniper); text-anchor: middle; }
.fit-diagram .biz { fill: var(--sand); stroke: var(--juniper); stroke-width: 2; stroke-linejoin: round; transition: stroke-opacity .6s ease-out; }
.fit-diagram .piece { fill: var(--gold); stroke: var(--juniper); stroke-width: 2; stroke-linejoin: round; transition: stroke-opacity .6s ease-out; }
.fit-diagram .piece-label { font-size: 26px; font-weight: 800; }
/* settled: the seam goes and the two read as one shape */
.fit-diagram.s3 .biz, .fit-diagram.s3 .piece { stroke-opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .fit-diagram *, .fit-list dt::before { transition: none !important; }
}

/* ---------- partners ---------- */

.partners-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 48px 80px;
  align-items: end;
}
.partners-grid h2 { margin-bottom: 24px; max-width: 18ch; }
.partners-grid .lead { margin-bottom: 20px; max-width: 40ch; }
.partners-grid p:not(.lead) { color: var(--sand); max-width: 48ch; }
.partners-grid { align-items: stretch; }
.partners-grid > div:first-child { align-self: end; }
.partners-side { display: flex; flex-direction: column; justify-content: space-between; gap: 48px; min-width: 0; }
.founder { border-top: 2px solid var(--sand); padding-top: 24px; }

/* Logo strip: two rows drifting in opposite directions. site.js doubles each row so the loop is seamless. */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.marquee {
  display: grid;
  gap: 20px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { list-style: none; margin: 0; padding: 0; display: flex; gap: 40px; width: max-content; }
.marquee-track li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--sand);
  font-size: 17px;
  font-weight: 700;
  white-space: nowrap;
}
.marquee-track svg { width: 26px; height: 26px; fill: currentColor; flex: none; }
.js .marquee-track { padding-right: 40px; }
@media (prefers-reduced-motion: no-preference) {
  .js .marquee-track { animation: marquee 48s linear infinite; }
  .js .marquee-track.reverse { animation-direction: reverse; animation-duration: 42s; }
  .marquee:hover .marquee-track { animation-play-state: paused; }
}
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-track { flex-wrap: wrap; width: auto; gap: 16px 28px; }
  .marquee-track li[aria-hidden] { display: none; }
}
.founder h3 { font-size: 20px; color: var(--sand); margin-bottom: 12px; }

/* ---------- contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 48px 72px;
  align-items: end;
}
.contact-grid { align-items: start; }
.contact-intro { max-width: 44ch; margin-bottom: 28px; }
.contact-form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 15px; font-weight: 700; }
.field .optional { font-weight: 400; }
.field input, .field textarea {
  font: 400 17px/1.5 var(--font);
  color: var(--juniper);
  background: var(--card);
  border: 2px solid var(--juniper);
  border-radius: 4px;
  padding: 12px 14px;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 132px; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--verdigris); outline-offset: 1px; }
.field [aria-invalid="true"] { border-color: var(--paprika); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .btn-cta { justify-self: start; border: 0; cursor: pointer; }
.contact-form .btn-cta[disabled] { opacity: .6; cursor: progress; }
.form-status { font-size: 16px; font-weight: 600; min-height: 1.6em; }
.form-status.is-error { color: color-mix(in srgb, var(--paprika) 70%, var(--juniper)); }
.form-done { border-top: 4px solid var(--mesquite); padding-top: 24px; }
.form-done h3 { margin-bottom: 8px; }

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

.site-footer { background: var(--juniper); color: var(--parchment); }
.footer-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "brand tag nav" "brand legal nav";
  gap: 4px 48px;
  align-items: center;
  padding-block: 56px;
}
.site-footer .brand { grid-area: brand; }
.footer-tag { grid-area: tag; align-self: end; font-weight: 700; }
.legal { grid-area: legal; align-self: start; font-size: 15px; color: var(--sand); }
.footer-nav { grid-area: nav; display: grid; grid-template-columns: repeat(2, auto); gap: 8px 40px; }
.footer-nav a { color: var(--parchment); font-size: 16px; text-decoration: none; }
.footer-nav a:hover { text-decoration: underline 2px var(--sand); text-underline-offset: 5px; }

.stripe { display: flex; height: 8px; }
.stripe i { flex: 1; }
.stripe i:nth-child(1) { background: var(--mesquite); }
.stripe i:nth-child(2) { background: var(--verdigris); }
.stripe i:nth-child(3) { background: var(--sand); }
.stripe i:nth-child(4) { background: var(--gold); }
.stripe i:nth-child(5) { background: var(--paprika); }

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  :root { --section: 72px; --band-h: 60px; --header-h: calc(156px + var(--band-h)); }
  .header-row { flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; }
  .is-compact .header-row { padding-block: 6px; }
  .brand .logo-full { width: 160px; }
  .brand .logo-mark { width: 44px; }
  .nav { order: 3; width: 100%; margin-left: 0; gap: 24px; overflow-x: auto; scrollbar-width: none; }
  .nav a { font-size: 15px; white-space: nowrap; }
  .nav .wide-only { display: none; }
  .nav .narrow-only { display: inline; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-mark { min-height: 0; }
  .hero-mark jass-mark {
    position: relative;
    top: auto;
    left: 50%;
    transform: translateX(-50%);
    width: min(115%, 520px);
    height: auto;
    aspect-ratio: 1;
    margin-bottom: calc(-1 * var(--section) - 56px);
  }
  .teams-grid { grid-template-columns: 1fr; }
  .partners-grid, .contact-grid, .fit-grid { grid-template-columns: 1fr; }
  .footer-row { grid-template-columns: 1fr; grid-template-areas: "brand" "tag" "nav" "legal"; gap: 16px; }
}

@media (max-width: 760px) {
  :root { --gutter: 20px; --section: 64px; }
  .step-list { grid-template-columns: 1fr; gap: 40px; }
  .step { position: relative; padding-left: 72px; }
  .step-node { position: absolute; left: 0; top: 0; }
  .step h3 { margin-top: 8px; }
  .track { display: none; }
  .step:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 20px;
    top: 44px;
    bottom: -40px;
    width: 4px;
    background: var(--sand);
  }
  @supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
      .step:nth-child(n) .step-node { animation: node-on-self linear both; animation-timeline: view(); animation-range: entry 100% cover 45%; }
    }
  }
  .node { font-size: 13px; padding: 9px 10px; }
  .btn-primary { padding: 12px 16px; }
}
@keyframes node-on-self {
  0%, 85% { background: var(--parchment); color: var(--juniper); border-color: var(--juniper); }
  100% { background: var(--mesquite); color: var(--parchment); border-color: var(--mesquite); }
}

@media (prefers-reduced-motion: reduce) {
  .bar, .js .team-panel { animation: none; }
  .node, .orbit-lines line, .nav a, .btn, .text-link, .site-header { transition: none; }
}
