/*
  Machine & Partners — golden-ratio system

  Type scale: 17px body, stepped by √φ (1.272), so every second step is ×φ (1.618).
    13.4 · 17 · 21.6 · 27.5 · 35 · 44.5 · 56.6 · 72
  Spacing: Fibonacci, each step ≈ the previous ×φ.
    8 · 13 · 21 · 34 · 55 · 89 · 144
  Layout: two-column sections split 1 : φ (38.2% / 61.8%); cards are golden rectangles.
  Leading: φ (1.618) for reading text, φ⁻¹ + 0.618 (1.236) for headings, tighter for display.
*/

:root {
  --phi: 1.618;

  /* type */
  --t-small: 13.4px;
  --t-body: 17px;
  --t-lead: clamp(19.2px, 0.6vw + 16.5px, 21.6px); /* 19.2 = 17 × φ^¼ on phones */
  --t-item: 21.6px;
  --t-h2: clamp(35px, 3.1vw + 13px, 44.5px);
  --t-close: clamp(35px, 3.9vw + 12px, 56.6px);
  --t-display: clamp(44.5px, 5vw + 7px, 72px);

  /* space */
  --s1: 8px;
  --s2: 13px;
  --s3: 21px;
  --s4: 34px;
  --s5: 55px;
  --s6: 89px;
  --s7: 144px;
  --section: var(--s7);
  --gutter: var(--s4);

  /* colour */
  --ink: #1E6D92;
  --ink-dark: #134B66;
  --teal: #5EB4C7;
  --grey: #EEEEEE;
  --soft: #F7F7F7;
  --line: #D9D9D9;
  --text: #434343;
  --black: #000000;
  --head: #111111;

  --serif: 'Roboto Serif', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
}

@media (max-width: 760px) {
  :root {
    --section: var(--s6);
    --gutter: var(--s3);
  }
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--s6); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: #FFFFFF;
  font-family: var(--sans);
  font-size: var(--t-body);
  line-height: var(--phi);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--ink); }
a:hover { color: var(--ink-dark); }
p { text-wrap: pretty; }
img { max-width: 100%; }

.container { max-width: 1200px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding-top: var(--section); padding-bottom: var(--section); }

.bg-white { background: #FFFFFF; }
.bg-soft { background: var(--soft); }

/* ---------- Type roles ---------- */

/* 1. Display: the one headline. φ above the section heads. */
.display {
  font-family: var(--serif);
  font-weight: 200;
  font-size: var(--t-display);
  line-height: 1.146;
  letter-spacing: -0.025em;
  color: var(--head);
  max-width: 14em;
  text-wrap: balance;
}

/* 2. Section heads */
.h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: var(--t-h2);
  line-height: 1.236;
  letter-spacing: -0.015em;
  color: var(--black);
  text-wrap: balance;
}

/* 3. Lead: sets up each section. Same size as items, but sans and grey, so it reads as voice, not content. */
.lead {
  font-size: var(--t-lead);
  line-height: var(--phi);
  color: var(--text);
  max-width: 30em;
  text-wrap: balance;
}

@media (max-width: 760px) { .lead { text-wrap: pretty; } }

/* 4. Items: the things we list. Serif, black — the content of each section. */
.item {
  font-family: var(--serif);
  font-weight: 300;
  font-size: var(--t-item);
  line-height: 1.236;
  letter-spacing: -0.005em;
  color: var(--black);
  text-wrap: balance;
}

/* Section intro: head → lead 21, intro → content 55 */
.intro { display: flex; flex-direction: column; gap: var(--s3); max-width: 61.8%; margin-bottom: var(--s5); }
@media (max-width: 900px) { .intro { max-width: none; } }

/* The one marker: an 8px teal square */
.sq { display: block; width: var(--s1); height: var(--s1); background: var(--teal); flex-shrink: 0; }

/* ---------- Buttons ---------- */
/* Height = 55 (17px text + 2 × 17 + line box) */
.btn {
  text-decoration: none;
  background: var(--ink);
  color: #FFFFFF;
  padding: 17px var(--s4);
  font-size: var(--t-body);
  font-weight: 500;
  line-height: 21px;
  display: inline-block;
  transition: background-color .2s ease;
}
.btn:hover { background: var(--ink-dark); color: #FFFFFF; }
.btn-sm {
  padding: 0 var(--s3);
  min-height: 44px;
  font-size: var(--t-small);
  display: inline-flex;
  align-items: center;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--grey);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  padding-top: var(--s2);
  padding-bottom: var(--s2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
}
.nav-logo { display: flex; align-items: center; }
.logo { height: 21px; width: auto; display: block; }
.nav .logo { height: 27.5px; }
@media (max-width: 420px) { .nav .logo { height: 21.6px; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--grey); }
.hero-flow {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: min(680px, 61.8%);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to left, #000 0%, #000 38.2%, transparent 100%);
  mask-image: linear-gradient(to left, #000 0%, #000 38.2%, transparent 100%);
}
.hero-flow svg { position: absolute; right: 0; top: 50%; transform: translateY(-50%); display: block; }
.flow line { stroke-linecap: square; }
.hero-inner {
  position: relative;
  padding-top: var(--s7);
  padding-bottom: var(--s7);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero-inner .lead { margin-top: var(--s4); max-width: 29em; }
.hero-inner .btn { margin-top: var(--s5); }
@media (max-width: 760px) {
  .hero-inner { padding-top: var(--s6); padding-bottom: var(--s6); }
  .hero-inner .lead { margin-top: var(--s3); }
  .hero-inner .btn { margin-top: var(--s4); }
  .hero-flow {
    width: 100%;
    top: auto;
    height: 61.8%;
    opacity: .5;
    -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 100%);
    mask-image: linear-gradient(to top, #000 0%, transparent 100%);
  }
}

/* ---------- Work: golden-rectangle cards ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
  gap: var(--s2);
}
.work-grid li {
  background: #FFFFFF;
  aspect-ratio: 1.618;
  padding: var(--s3);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: var(--s3);
}
@media (max-width: 600px) {
  .work-grid { gap: var(--s1); }
  .work-grid li { aspect-ratio: auto; flex-direction: row; align-items: baseline; justify-content: flex-start; padding: var(--s3); }
  .work-grid li .sq { transform: translateY(-3px); }
}

/* ---------- How: three steps on hairlines ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.steps li {
  background: #FFFFFF;
  padding: var(--s4);
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}
@media (max-width: 600px) { .steps li { padding: var(--s3); } }
.step-head { display: flex; align-items: center; gap: var(--s2); }
.step-num {
  width: var(--s3); height: var(--s3);
  background: var(--ink);
  color: #FFFFFF;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; line-height: 1;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.steps h3 { font-size: var(--t-body); font-weight: 600; line-height: 1.236; color: var(--black); }
.steps p { color: var(--text); }

/* ---------- Two-column sections, 1 : φ ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s5);
  align-items: start;
}
@media (min-width: 901px) {
  .split { grid-template-columns: 1fr 1.618fr; gap: var(--s6); }
}
.aside { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s3); }
.aside .btn { margin-top: var(--s3); }
@media (min-width: 901px) { .aside { position: sticky; top: calc(var(--s6) + var(--s3)); } }

/* ---------- Fit ---------- */
.fit-list li {
  display: flex;
  align-items: baseline;
  gap: var(--s3);
  padding: var(--s3) 0;
  border-top: 1px solid var(--line);
}
.fit-list li:last-child { border-bottom: 1px solid var(--line); }
.fit-list .sq { transform: translateY(-4px); }

/* ---------- Also ---------- */
.also { background: #FFFFFF; border-bottom: 1px solid var(--grey); }
.also-inner {
  padding-top: var(--s6);
  padding-bottom: var(--s6);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s4);
  align-items: center;
}
@media (min-width: 901px) {
  .also-inner { grid-template-columns: 1fr 1.618fr; gap: var(--s6); }
}
@media (max-width: 760px) { .also-inner { padding-top: var(--s5); padding-bottom: var(--s5); gap: var(--s3); } }
.chips { display: flex; gap: var(--s1); flex-wrap: wrap; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  min-height: 44px;
  padding: 0 var(--s3);
  border: 1px solid var(--line);
  background: #FFFFFF;
  font-size: var(--t-body);
  font-weight: 500;
  color: var(--black);
}

/* ---------- FAQ ---------- */
.faq { background: #FFFFFF; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s4);
  padding: var(--s3) 0;
  min-height: 44px;
  transition: color .2s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--ink); }
.faq-icon { flex-shrink: 0; width: var(--s2); height: var(--s2); transition: transform .2s ease; }
.faq details[open] .faq-icon { transform: rotate(45deg); }
.faq details p { padding-bottom: var(--s4); max-width: 34em; color: var(--text); }

/* ---------- Closing CTA + footer ---------- */
.footer { background: var(--grey); color: var(--text); }
.cta {
  padding-top: var(--section);
  padding-bottom: var(--section);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s5);
}
@media (max-width: 760px) { .cta { gap: var(--s4); } }
.cta-title {
  font-family: var(--serif);
  font-weight: 200;
  font-size: var(--t-close);
  line-height: 1.146;
  letter-spacing: -0.02em;
  color: var(--head);
  max-width: 16em;
  text-wrap: balance;
}
.footer-bar {
  border-top: 1px solid var(--line);
  padding-top: var(--s4);
  padding-bottom: var(--s4);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s3);
  flex-wrap: wrap;
  font-size: var(--t-small);
}
