/* ==========================================================================
   mine. — design tokens
   ========================================================================== */
:root {
  --paper: #f3f1ed;
  --ink: #1e1e1e;
  --body: #4a4a47;
  --muted: #6e6a64;
  --faint: #8c8880;
  --rule: #e2ded5;
  --rule-soft: #dcd8cf;
  --panel: #e4e0d8;

  --teal: #007c82;
  --teal-dark: #00565a;
  --teal-deep: #00676c;
  --teal-light: #3fa8ad;
  --coral: #ff6b5a;

  --sans: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Crimson Text', Georgia, 'Times New Roman', serif;
  --mono: ui-monospace, Menlo, Consolas, monospace;

  --shell: 1440px;
  --gutter: 64px;
}

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

html {
  scroll-behavior: smooth;
  /* Offset anchor targets so the sticky header never covers a heading. */
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-dark); }

img { max-width: 100%; }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.shell {
  max-width: var(--shell);
  margin: 0 auto;
  width: 100%;
  padding-inline: var(--gutter);
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 20px;
  font-size: 13px;
}
.skip-link:focus { left: 12px; top: 12px; color: var(--paper); }

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

/* ==========================================================================
   Header / nav
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.site-header[data-scrolled='true'] { border-bottom-color: var(--rule); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding-block: 28px;
}

.wordmark { display: flex; align-items: center; }
.wordmark img { height: 26px; width: auto; display: block; }

.nav {
  display: flex;
  align-items: center;
  gap: 44px;
  font-size: 13px;
  letter-spacing: 0.02em;
}
/* :not(.btn) so the Client Portal button keeps its own colours — a bare
   `.nav a` rule outranks `.btn--primary` on specificity. */
.nav a:not(.btn) { color: var(--ink); }
.nav a:not(.btn):hover { color: var(--teal); }

.btn {
  display: inline-block;
  border-radius: 2px;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn--primary {
  background: var(--teal);
  border: 1px solid var(--teal);
  color: #fff;
  padding: 10px 22px;
}
.btn--primary:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: #fff; }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--rule);
  background: transparent;
  border-radius: 2px;
  cursor: pointer;
  padding: 0;
  place-items: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  content: '';
  position: relative;
}
.nav-toggle span::before { position: absolute; top: -5px; }
.nav-toggle span::after { position: absolute; top: 5px; }

.nav-toggle span { transition: background-color 0.15s ease; }
.nav-toggle span::before,
.nav-toggle span::after { transition: top 0.15s ease, transform 0.15s ease 0.15s; }

/* Open: the middle bar disappears and the outer two cross into an X. */
.nav-toggle[aria-expanded='true'] span { background: transparent; }
.nav-toggle[aria-expanded='true'] span::before,
.nav-toggle[aria-expanded='true'] span::after {
  top: 0;
  transition: top 0.15s ease, transform 0.15s ease 0.15s;
}
.nav-toggle[aria-expanded='true'] span::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded='true'] span::after { transform: rotate(-45deg); }

/* ==========================================================================
   Typography
   ========================================================================== */
.brand {
  font-family: var(--serif);
  font-size: 1.2em;
  letter-spacing: 0;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 56px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--dot, var(--teal));
  flex: 0 0 auto;
}

.display {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 6.4vw, 96px);
  line-height: 1.06;
  letter-spacing: -0.025em;
}

.heading {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 4.6vw, 76px);
  line-height: 1.1;
  letter-spacing: -0.022em;
}

.lede {
  margin: 0;
  font-size: clamp(20px, 1.9vw, 28px);
  font-weight: 300;
  line-height: 1.45;
  color: var(--body);
}
.lede--teal { color: var(--teal); }
.lede--coral { color: var(--coral); }
.lede--teal-light { color: var(--teal-light); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  display: flex;
  align-items: center;
  padding-bottom: 100px;
  min-height: 72vh;
}
.hero .display .nowrap { white-space: nowrap; }
.hero .display em {
  font-style: normal;
  color: var(--teal);
}

/* ==========================================================================
   Section rhythm
   ========================================================================== */
.section { padding-block: 140px 120px; }
.section--ruled { border-top: 1px solid var(--rule); }
.section--dark { background: var(--ink); color: var(--paper); }
.section--dark .eyebrow { color: rgba(243, 241, 237, 0.6); }
.section--dark .lede { color: rgba(243, 241, 237, 0.72); }

/* Three-step diagram rows (Capture/Manage/Build, Ask/Run/Act) */
.steps {
  display: grid;
  grid-template-columns: 1fr 40px 1fr 40px 1fr;
  align-items: stretch;
  margin-top: 120px;
}
.steps--tight { margin-top: 104px; }

.step {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.steps--tight .step { gap: 26px; }

.step__label {
  display: flex;
  align-items: baseline;
  gap: 16px;
}
.step__num {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.section--dark .step__num { color: rgba(243, 241, 237, 0.6); }
.step__name {
  font-size: clamp(24px, 2.3vw, 34px);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.step__name--teal { color: var(--teal); }
.step__name--coral { color: var(--coral); }

.step__body {
  margin: 0;
  font-size: 17px;
  line-height: 1.62;
  color: var(--body);
}
.section--dark .step__body { color: rgba(243, 241, 237, 0.72); }

.step__arrow {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 14px;
  font-size: 18px;
  color: rgba(30, 30, 30, 0.3);
}
.section--dark .step__arrow { color: rgba(243, 241, 237, 0.35); }

/* The six diagrams are SVG files in assets/figures/ — see docs. */
.figure {
  display: block;
  width: 100%;
  height: auto;
}

/* ==========================================================================
   Team
   ========================================================================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 64px 112px;
  max-width: 770px;
  margin: 0 auto;
}
.person { display: flex; flex-direction: column; gap: 24px; }

.person__portrait {
  position: relative;
  width: 264px;
  max-width: 100%;
  margin: 0 auto;
}

/* Revealed on hover, and always visible where hover does not exist. */
.person__linkedin {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--teal);
  color: #fff;
  border-radius: 2px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.18s ease, transform 0.18s ease, background 0.15s ease;
}
.person__linkedin:hover { background: var(--teal-dark); color: #fff; }
.person__portrait:hover .person__linkedin,
.person__linkedin:focus-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (hover: none) {
  .person__linkedin { opacity: 1; transform: none; }
}

.person__photo {
  width: 264px;
  max-width: 100%;
  margin: 0 auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top center;
  background: var(--panel);
  display: block;
}
.person__photo--placeholder {
  background: repeating-linear-gradient(135deg, #e4e0d8 0 9px, #edeae3 9px 18px);
  display: flex;
  align-items: flex-end;
  padding: 18px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}
.person__meta { text-align: center; }
.person__name {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.14;
  letter-spacing: -0.015em;
}
.person__role {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.person__role--founder { color: var(--teal-deep); }
.person__bio {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--body);
}

/* ==========================================================================
   Technology
   ========================================================================== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--rule);
  border-block: 1px solid var(--rule);
}
.split > div {
  background: var(--paper);
  padding-block: 52px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.split > div:first-child { padding-right: 56px; }
.split > div:last-child { padding-left: 56px; }
.split h3 {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal-deep);
}
.split p {
  margin: 0;
  font-size: clamp(18px, 1.6vw, 23px);
  font-weight: 300;
  line-height: 1.55;
  color: var(--ink);
}

.backers {
  display: flex;
  align-items: center;
  gap: 56px;
  padding-top: 44px;
  flex-wrap: wrap;
}
.backers__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.backers__logos { display: flex; align-items: center; gap: 56px; flex-wrap: wrap; }
.backers__logo {
  height: 34px;
  width: 132px;
  border: 1px solid var(--rule-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--faint);
}

/* ==========================================================================
   Contact + footer
   ========================================================================== */
.contact { padding-block: 150px 130px; }
.btn--invert {
  align-self: flex-start;
  background: var(--paper);
  color: var(--ink);
  padding: 17px 40px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid var(--paper);
}
.btn--invert:hover { background: transparent; color: var(--paper); }

.site-footer { border-top: 1px solid rgba(243, 241, 237, 0.14); }

.site-footer__identity {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.site-footer__identity span + span { color: rgba(243, 241, 237, 0.38); }

.site-footer__inner { border-top: 1px solid rgba(243, 241, 237, 0.1); }
.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding-block: 32px;
  font-size: 13px;
  color: rgba(243, 241, 237, 0.5);
}
.site-footer__links { display: flex; gap: 28px; flex-wrap: wrap; }
.site-footer a { color: rgba(243, 241, 237, 0.5); }
.site-footer a:hover { color: var(--paper); }
.site-footer .brand { color: var(--teal-light); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  :root { --gutter: 40px; }
  .section { padding-block: 100px 88px; }
  .steps,
  .steps--tight {
    grid-template-columns: 1fr;
    gap: 72px;
    margin-top: 80px;
  }
  /* The chevrons only read as flow in a horizontal row. */
  .step__arrow { display: none; }
  /* Stacked in one column, the diagrams centre rather than hug the left. */
  .figure { max-width: 420px; margin-inline: auto; }
  .team-grid { gap: 56px 64px; }
}

@media (max-width: 860px) {
  .nav-toggle { display: grid; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-block: 1px solid var(--rule);
    padding: 8px var(--gutter) 20px;
    font-size: 15px;
  }
  .nav:not([data-open='true']) { display: none; }
  .nav a { padding-block: 14px; }
  .nav .btn--primary { text-align: center; margin-top: 10px; padding-block: 14px; }
}

@media (max-width: 720px) {
  :root { --gutter: 24px; }
  .site-header__inner { padding-block: 20px; }
  .section { padding-block: 80px 72px; }
  .contact { padding-block: 96px 80px; }
  .eyebrow { margin-bottom: 36px; }
  .hero { min-height: 68vh; padding-bottom: 64px; }
  /* The design nowraps the hero's first line at desktop width only. */
  .hero .display .nowrap { white-space: normal; }
  .team-grid { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .split > div:first-child { padding: 0 0 40px; }
  .split > div:last-child { padding: 40px 0 0; }
  .backers { gap: 28px; padding-top: 36px; }
  .backers__logos { gap: 24px; }
  .btn--invert { align-self: stretch; text-align: center; }
}
