/* ---------- Tokens ---------- */
:root {
  --paper: #f1f2ee;
  --paper-2: #e5e8e1;
  --ink: #16181a;
  --muted: #575d5a;
  --line: #cbcfc8;
  --blue: #1f3fa8;
  --red: #d5352b;
  --yellow: #f0b323;
  --font:
    "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  --gutter: clamp(20px, 5vw, 56px);
  --max: 1180px;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}
.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  z-index: 100;
}
.skip:focus {
  left: 8px;
}
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Header ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(241, 242, 238, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.mark {
  display: flex;
  gap: 3px;
  align-items: flex-end;
}
.mark i {
  display: block;
  width: 12px;
  height: 12px;
}
.mark i:nth-child(1) {
  background: var(--red);
  border-radius: 50%;
}
.mark i:nth-child(2) {
  background: var(--blue);
}
.mark i:nth-child(3) {
  background: var(--yellow);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.95rem;
}
.nav a {
  text-decoration: none;
  color: var(--muted);
}
.nav a:hover {
  color: var(--ink);
}
.nav .btn {
  color: var(--paper);
}
.nav .btn:hover {
  color: #fff;
}
@media (max-width: 860px) {
  .nav a:not(.btn) {
    display: none;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-weight: 600;
  padding: 12px 22px;
  border: 2px solid var(--ink);
  transition:
    background 0.2s,
    color 0.2s;
}
.btn:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.btn.big {
  padding: 18px 34px;
  font-size: 1.15rem;
}
.btn.light {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}
.btn.light:hover {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--ink);
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(40px, 8vw, 104px) 0 clamp(48px, 8vw, 96px);
}
.hero .wrap {
  display: grid;
  gap: clamp(32px, 5vw, 72px);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 900px) {
  .hero .wrap {
    grid-template-columns: 1.25fr 1fr;
  }
}
.kicker {
  margin: 0 0 20px;
  color: var(--muted);
  font-weight: 500;
}
h1 {
  margin: 0 0 28px;
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-size: clamp(2.4rem, 6.4vw, 4.9rem);
}
.lede {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  max-width: 34em;
  color: var(--ink);
  margin: 0 0 32px;
}
.hero-art {
  width: 100%;
  max-width: 480px;
  justify-self: center;
  overflow: visible;
}
.draw > * {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: drawline 2.2s cubic-bezier(0.6, 0, 0.2, 1) forwards;
}
.draw > *:nth-child(2) {
  animation-delay: 0.25s;
}
.draw > *:nth-child(3) {
  animation-delay: 0.5s;
}
.draw > *:nth-child(4) {
  animation-delay: 0.75s;
}
@keyframes drawline {
  to {
    stroke-dashoffset: 0;
  }
}
.pop {
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
  animation: pop 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.pop.p1 {
  animation-delay: 1.2s;
}
.pop.p2 {
  animation-delay: 1.45s;
}
.pop.p3 {
  animation-delay: 1.7s;
}
.pop.p4 {
  animation-delay: 1.95s;
}
.pop.p5 {
  animation-delay: 2.2s;
}
@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.6);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ---------- Sections ---------- */
.sec {
  border-top: 1px solid var(--ink);
  padding: clamp(48px, 7vw, 96px) 0;
}
.sec .wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
@media (min-width: 960px) {
  .sec .wrap {
    grid-template-columns: 3fr 9fr;
    gap: 48px;
  }
}
.sec-head h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 600;
}
@media (min-width: 960px) {
  .sec-head {
    position: sticky;
    top: 96px;
    align-self: start;
  }
}
.sec-head .shape {
  display: block;
  width: 22px;
  height: 22px;
  margin-bottom: 18px;
}
.shape.circle {
  background: var(--red);
  border-radius: 50%;
}
.shape.square {
  background: var(--blue);
}
.shape.tri {
  background: var(--yellow);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.shape.half {
  background: var(--ink);
  border-radius: 22px 22px 0 0;
  height: 11px;
}
.shape.ring {
  border: 5px solid var(--red);
  border-radius: 50%;
}
.sec-body > p:first-child {
  margin-top: 0;
}
.big-p {
  font-size: clamp(1.25rem, 2.3vw, 1.7rem);
  line-height: 1.35;
  letter-spacing: -0.015em;
  max-width: 30em;
  margin: 0 0 1.4em;
}
.muted {
  color: var(--muted);
}

/* ---------- Principles ---------- */
.principles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}
.principles li {
  display: grid;
  gap: 6px 32px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.principles li:first-child {
  border-top: 0;
  padding-top: 0;
}
@media (min-width: 700px) {
  .principles li {
    grid-template-columns: 14em 1fr;
  }
}
.principles h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}
.principles p {
  margin: 0;
  color: var(--muted);
  max-width: 36em;
}

/* ---------- Gate animation ---------- */
.gate {
  margin: 0;
}
.gate-art {
  width: 100%;
  height: auto;
  background: var(--paper-2);
}
.gate .t {
  font: 600 22px var(--font);
  fill: var(--ink);
}
.gate .t.w {
  fill: #fff;
}
.gate figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 40em;
}
.questions {
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0;
  counter-reset: q;
}
.questions li {
  padding: 14px 0 14px 44px;
  border-top: 1px solid var(--line);
  position: relative;
  counter-increment: q;
}
.questions li::before {
  content: counter(q);
  position: absolute;
  left: 0;
  top: 14px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.85rem;
  font-weight: 600;
  display: grid;
  place-items: center;
}
.questions strong {
  font-weight: 600;
}

/* ---------- Capabilities ---------- */
.feature {
  background: var(--blue);
  color: #fff;
  padding: clamp(24px, 4vw, 44px);
  margin-bottom: 12px;
  display: grid;
  gap: 12px;
  position: relative;
  overflow: hidden;
}
.feature h3 {
  margin: 0;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  letter-spacing: -0.02em;
  font-weight: 600;
  position: relative;
}
.feature p {
  margin: 0;
  max-width: 34em;
  font-size: 1.1rem;
  position: relative;
}
.feature::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--yellow);
  opacity: 0.95;
}
.rows {
  display: grid;
}
.row {
  display: grid;
  gap: 6px 32px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.row:last-child {
  border-bottom: 1px solid var(--line);
}
@media (min-width: 700px) {
  .row {
    grid-template-columns: 14em 1fr;
  }
}
.row h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}
.row p {
  margin: 0;
  color: var(--muted);
  max-width: 38em;
}

/* ---------- Process ---------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  position: relative;
}
.steps li {
  position: relative;
  padding: 0 0 32px 76px;
}
.steps li:last-child {
  padding-bottom: 0;
}
.steps::before {
  /* drawn line, vertical on small screens */
  content: "";
  position: absolute;
  left: 21px;
  top: 22px;
  bottom: 22px;
  width: 2px;
  background: var(--ink);
  transform-origin: top;
  transform: scaleY(0);
  transition: transform 1.6s cubic-bezier(0.6, 0, 0.2, 1);
}
.steps.in::before {
  transform: scaleY(1);
}
.no-js .steps::before,
.steps.static::before {
  transform: none;
}
.steps .ico {
  position: absolute;
  left: 0;
  top: 0;
  width: 44px;
  height: 44px;
  background: var(--paper);
  z-index: 1;
}
.steps h3 {
  margin: 0 0 4px;
  font-size: 1.15rem;
  font-weight: 600;
}
.steps .n {
  color: var(--muted);
  font-weight: 500;
  margin-right: 6px;
}
.steps p {
  margin: 0;
  color: var(--muted);
  max-width: 30em;
}
.js .steps li {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
  transition-delay: calc(var(--i) * 0.28s);
}
.js .steps.in li {
  opacity: 1;
  transform: none;
}
@media (min-width: 1000px) {
  .steps {
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
  }
  .steps li {
    padding: 76px 0 0 0;
  }
  .steps::before {
    left: 0;
    right: 0;
    top: 21px;
    bottom: auto;
    width: auto;
    height: 2px;
    transform-origin: left;
    transform: scaleX(0);
  }
  .steps.in::before {
    transform: scaleX(1);
  }
}
/* In the wide process layout the body column is narrower; keep it readable. */
@media (min-width: 1000px) and (max-width: 1180px) {
  .steps {
    gap: 14px;
  }
  .steps p {
    font-size: 0.98rem;
  }
}

/* ---------- Hands-on visuals ---------- */
.duo {
  display: grid;
  gap: 20px;
}
@media (min-width: 900px) {
  .duo {
    grid-template-columns: 1.2fr 1fr;
  }
}
.duo figure {
  margin: 0;
}
.duo figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.95rem;
}
.canvas {
  width: 100%;
  height: auto;
  background: var(--paper-2);
}
.canvas .t {
  font: 600 17px var(--font);
  fill: var(--ink);
}
.canvas .t.w {
  fill: #fff;
}
.flow {
  stroke-dasharray: 6 8;
  animation: dash 1.1s linear infinite;
}
@keyframes dash {
  to {
    stroke-dashoffset: -14;
  }
}
.ring {
  transform-box: fill-box;
  transform-origin: center;
  animation: ring 2.4s ease-out infinite;
}
@keyframes ring {
  0% {
    transform: scale(0.9);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}
.editor {
  background: var(--ink);
  padding: 0;
  height: 100%;
  min-height: 260px;
}
.editor .bar {
  display: flex;
  gap: 7px;
  padding: 12px 14px;
  border-bottom: 1px solid #2c3033;
}
.editor .bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.editor .bar i:nth-child(1) {
  background: var(--red);
}
.editor .bar i:nth-child(2) {
  background: var(--yellow);
}
.editor .bar i:nth-child(3) {
  background: var(--blue);
}
.editor .code {
  padding: 18px 18px 22px;
}
.ln {
  display: flex;
  gap: 8px;
  height: 8px;
  margin: 0 0 15px;
}
.ln span {
  display: block;
  height: 100%;
  background: #4a5053;
  border-radius: 2px;
}
.ln .a {
  background: #7f9bf0;
}
.ln .b {
  background: var(--yellow);
}
.ln .c {
  background: #e8837a;
}
.ln .g {
  background: #8f969a;
}
.ln.i1 {
  margin-left: 22px;
}
.ln.i2 {
  margin-left: 44px;
}
.cursor {
  display: inline-block;
  width: 9px;
  height: 16px;
  background: var(--yellow);
  animation: blink 1.1s steps(1) infinite;
  margin-left: 44px;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* ---------- Background / fit ---------- */
.two {
  display: grid;
  gap: 32px;
}
@media (min-width: 760px) {
  .two {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
}
.two h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 600;
}
.two p {
  margin: 0;
  color: var(--muted);
}
.fit {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
}
.fit li {
  padding: 16px 0 16px 34px;
  border-top: 1px solid var(--line);
  position: relative;
}
.fit li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 23px;
  width: 14px;
  height: 14px;
  background: var(--yellow);
  border-radius: 50%;
}
.fit li:nth-child(2)::before {
  background: var(--blue);
  border-radius: 0;
}
.fit li:nth-child(3)::before {
  background: var(--red);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  border-radius: 0;
}
.fit li:nth-child(4)::before {
  background: var(--ink);
}
.fit li:last-child {
  border-bottom: 1px solid var(--line);
}

/* ---------- Closing ---------- */
.closing {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(64px, 10vw, 128px) 0;
  position: relative;
  overflow: hidden;
}
.closing .wrap {
  position: relative;
  z-index: 1;
}
.closing h2 {
  margin: 0 0 20px;
  font-size: clamp(2rem, 5.4vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 600;
  max-width: 15em;
}
.closing p {
  margin: 0 0 36px;
  max-width: 32em;
  color: #c9cdc7;
  font-size: 1.15rem;
}
.closing .deco {
  position: absolute;
  right: calc(var(--gutter) * -1);
  bottom: -60px;
  width: min(46vw, 420px);
  opacity: 0.9;
}
@media (max-width: 700px) {
  .closing .deco {
    opacity: 0.35;
  }
}
footer {
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 0.9rem;
  background: var(--paper);
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .draw > * {
    stroke-dashoffset: 0 !important;
  }
  .pop {
    opacity: 1 !important;
  }
  .js .steps li {
    opacity: 1 !important;
    transform: none !important;
  }
  .steps::before {
    transform: none !important;
  }
}
@media print {
  .site-head {
    position: static;
  }
  .nav,
  .closing .deco {
    display: none;
  }
  .draw > * {
    stroke-dashoffset: 0;
  }
  .pop {
    opacity: 1;
  }
  .js .steps li {
    opacity: 1;
    transform: none;
  }
  .steps::before {
    transform: none;
  }
}

/* Added helpers */
/* Solving stakeholder management section contrast issue, yellow balloon thingy */
/* horrendous solution I know but don't want to mess with the theming too much */
.site-head { z-index: 9999; }
.feature p { z-index: 99; }
.feature::after { z-index: 9; }

/*@media all and (min-width: 365px) and (max-width: 798px) {}*/

@media all and (max-width: 798px) {
  .feature::after {
    background: rgba(240, 179, 35, 0.75);
  }
}
/* ---------- Stakeholder management section fix ---------- */
