@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/geist-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/instrument-serif-italic-latin.woff2") format("woff2");
}

:root {
  color-scheme: light dark;

  --bg: #FAFAF7;
  --bg-rgb: 250 250 247;
  --surface: #FFFFFF;
  --surface-rgb: 255 255 255;
  --ink: #0F1B2D;
  --ink-soft: #334155;
  --ink-muted: #4A5568;
  --line: rgb(15 27 45 / 0.1);
  --line-strong: rgb(15 27 45 / 0.16);

  --green: #059669;
  --green-ink: #047857;
  --green-hover: #065F46;
  --navy: #1E3A8A;
  --teal: #14B8A6;

  --button-bg: #047857;
  --button-bg-hover: #065F46;
  --button-text: #FFFFFF;
  --check-bg: #E6F4EF;
  --logo-filter: grayscale(1) contrast(1.1);
  --logo-filter-hover: none;
  --logo-blend: multiply;

  --font-sans: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;

  --container: 1160px;
  --gutter: clamp(16px, 6.4vw, 32px);
  --section-y: clamp(72px, 10vw, 120px);
  --header-h: 72px;

  --radius: 28px;
  --radius-lg: 40px;
  --shadow: 0 1px 2px rgb(15 27 45 / 0.04), 0 16px 40px -20px rgb(15 27 45 / 0.16);
  --tray-shadow: 0 -1px 0 rgb(15 27 45 / 0.06), 0 -18px 48px -16px rgb(15 27 45 / 0.18);
  --tray-dim: 0.06;
  --glass-from: 0.5;
  --glass-filter: blur(6px) saturate(1.3) brightness(1.06);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B1220;
    --bg-rgb: 11 18 32;
    --surface: #111A2E;
    --surface-rgb: 17 26 46;
    --ink: #E8EDF5;
    --ink-soft: #C3CCDA;
    --ink-muted: #9AA6B8;
    --line: rgb(232 237 245 / 0.1);
    --line-strong: rgb(232 237 245 / 0.18);

    --green-ink: #34D399;
    --green-hover: #6EE7B7;
    --navy: #3B63D9;

    --button-bg: #34D399;
    --button-bg-hover: #6EE7B7;
    --button-text: #052E22;
    --check-bg: rgb(52 211 153 / 0.14);
    /* Inverting turns the logos' white boxes black, which screen blending then drops. */
    --logo-filter: grayscale(1) invert(1);
    --logo-filter-hover: grayscale(1) invert(1) brightness(1.3);
    --logo-blend: screen;

    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 16px 40px -20px rgb(0 0 0 / 0.6);
    --tray-shadow: 0 -1px 0 rgb(232 237 245 / 0.08), 0 -18px 48px -12px rgb(0 0 0 / 0.7);
    --tray-dim: 0.3;
    --glass-from: 0.5;
    --glass-filter: blur(6px) saturate(1.4) brightness(0.9);
  }
}

/* Base */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

@media (max-width: 760px) {
  body {
    font-size: 1.0625rem;
  }
}

img,
svg,
canvas {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
blockquote {
  margin: 0;
}

ul[role="list"],
.list-reset {
  list-style: none;
  padding: 0;
}

h1,
h2,
h3 {
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

h3 {
  font-size: 1.1875rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

p {
  text-wrap: pretty;
}

a {
  color: var(--green-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--green-hover);
}

:focus-visible {
  outline: 3px solid var(--green-ink);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: rgb(20 184 166 / 0.25);
}

.accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.08em;
  letter-spacing: -0.01em;
  color: var(--green-ink);
}

/* Layout primitives */

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  isolation: isolate;
  padding-block: var(--section-y);
}

.page {
  overflow-x: clip;
}

.prose {
  max-width: 62ch;
}

.prose > * + * {
  margin-top: 1.1em;
}

.prose h2,
.prose h3 {
  margin-top: 1.8em;
}

.prose ul,
.prose ol {
  padding-left: 1.25em;
}

.prose li + li {
  margin-top: 0.4em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-ink);
}

.eyebrow::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--green));
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease-out);
}

.skip-link:focus-visible {
  transform: none;
  color: var(--bg);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s var(--ease-out);
}

.btn:focus-visible {
  border-radius: 999px;
}

.btn--primary {
  background: var(--button-bg);
  color: var(--button-text);
  box-shadow: 0 8px 24px -10px rgb(4 120 87 / 0.6);
}

.btn--primary:hover {
  background: var(--button-bg-hover);
  color: var(--button-text);
}

.btn--light {
  background: #FFFFFF;
  color: #0F1B2D;
  box-shadow: 0 10px 30px -12px rgb(15 27 45 / 0.45);
}

.btn--light:hover {
  background: #F1F5F3;
  color: #0F1B2D;
}

.btn--light:focus-visible {
  outline-color: #fff;
}

.btn--small {
  min-height: 42px;
  padding: 10px 20px;
  font-size: 0.9375rem;
}

@media (prefers-reduced-motion: no-preference) {
  .btn:hover {
    transform: translateY(-1px);
  }
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.link-arrow svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s var(--ease-out);
}

.link-arrow:hover {
  color: var(--green-ink);
}

.link-arrow:hover svg {
  transform: translateX(3px);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(var(--bg-rgb) / 0.78);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

.site-header__logo {
  flex: none;
  border-radius: 6px;
}

.site-header__logo img {
  width: 150px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.site-nav__links {
  display: flex;
  gap: 4px;
}

.site-nav__links a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.site-nav__links a:hover {
  background: var(--line);
  color: var(--ink);
}

.site-nav__links a:focus-visible {
  border-radius: 999px;
}

@media (max-width: 760px) {
  :root {
    --header-h: 64px;
  }

  .site-header__logo img {
    width: 128px;
  }

  .site-nav__links {
    display: none;
  }
}

/* Footer */

.site-footer {
  padding-block: 40px 48px;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 0.9375rem;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
}

.site-footer__links a {
  display: inline-block;
  padding-block: 6px;
  color: var(--ink-muted);
  text-decoration: none;
}

.site-footer__links a:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* Cards */

.card {
  position: relative;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.card h3 + p {
  margin-top: 10px;
  color: var(--ink-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.card__mark {
  position: relative;
  display: block;
  width: 40px;
  height: 40px;
  margin-bottom: 24px;
  overflow: hidden;
  border-radius: 58% 42% 55% 45% / 45% 55% 45% 55%;
  opacity: 0.9;
}

/* Oversized so any rotation still covers the pebble; stops are rescaled so at 0deg the visible 40px shows the full teal-to-navy ramp. */
.card__mark::before {
  content: "";
  position: absolute;
  inset: -25%;
  background: linear-gradient(135deg, var(--teal) 16.7%, var(--green) 53.3%, var(--navy) 83.3%);
  transform: rotate(var(--swirl, 0deg));
}

.card-grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 640px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .card-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .card-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.services-note {
  max-width: 62ch;
  margin-top: 32px;
  color: var(--ink-muted);
}

@media (max-width: 760px) {
  .card {
    padding: 26px 24px;
  }
}

/* Organic blobs */

.blob {
  position: absolute;
  z-index: -1;
  width: var(--blob-size, 520px);
  aspect-ratio: 1;
  border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
  filter: blur(70px);
  opacity: var(--blob-opacity, 0.16);
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .blob {
    will-change: transform;
  }
}

.blob--teal {
  background: var(--teal);
}

.blob--green {
  background: var(--green);
}

.blob--navy {
  background: var(--navy);
  --blob-opacity: 0.1;
}

/* Reveal on scroll (only hidden once site.js has run) */

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
  transition-delay: calc(var(--reveal-i, 0) * 80ms);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero__canvas {
    transition: none;
  }
}

@media print {
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Homepage: section blobs */

.blob--services {
  top: 8%;
  left: -12%;
}

.blob--ai {
  top: 4%;
  right: -14%;
}

.blob--clients {
  top: 30%;
  left: -16%;
  --blob-opacity: 0.1;
}

.blob--how {
  top: 0;
  right: -18%;
  --blob-opacity: 0.12;
}

/* Homepage: section heads */

.section-head {
  max-width: 62ch;
  margin-bottom: clamp(40px, 6vw, 64px);
}

/* Block-level, so it starts flush with the tray padding instead of sitting lower on the text strut. */
.section-head .eyebrow {
  display: flex;
  width: fit-content;
}

.section-head h2 {
  margin-top: 16px;
}

.section-head p:not(.eyebrow) {
  margin-top: 20px;
  color: var(--ink-muted);
  font-size: 1.1875rem;
}

@media (max-width: 760px) {
  .section-head p:not(.eyebrow) {
    font-size: 1.0625rem;
  }
}

/* Homepage: hero */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: min(calc(100svh - var(--header-h)), 860px);
  padding-block: clamp(72px, 10vw, 128px);
}

.hero__liquid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(38% 55% at 82% 40%, rgb(20 184 166 / 0.27), transparent 70%),
    radial-gradient(34% 48% at 72% 70%, rgb(5 150 105 / 0.22), transparent 70%),
    radial-gradient(30% 45% at 95% 78%, rgb(30 58 138 / 0.18), transparent 70%);
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.4s ease;
}

.hero__canvas.is-ready {
  opacity: 1;
}

.hero__liquid::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--bg) 0%, rgb(var(--bg-rgb) / 0.9) 32%, rgb(var(--bg-rgb) / 0.55) 48%, rgb(var(--bg-rgb) / 0) 64%);
}

.hero__inner {
  position: relative;
}

.hero__content {
  max-width: 700px;
}

.hero__title {
  margin-top: 22px;
  font-size: clamp(2.75rem, 6vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.hero__lead {
  max-width: 34em;
  margin-top: 28px;
  color: var(--ink-soft);
  font-size: clamp(1.125rem, 1.6vw, 1.3125rem);
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  margin-top: 40px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 44px;
}

.chips li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(var(--surface-rgb) / 0.72);
  color: var(--ink-soft);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.3;
}

.chips svg {
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--green-ink);
}

@media (max-width: 760px) {
  .hero {
    align-items: flex-start;
    min-height: 0;
    padding-block: 56px 200px;
  }

  .hero__liquid {
    background:
      radial-gradient(70% 30% at 70% 88%, rgb(20 184 166 / 0.27), transparent 70%),
      radial-gradient(60% 26% at 25% 95%, rgb(5 150 105 / 0.21), transparent 70%),
      radial-gradient(50% 24% at 95% 98%, rgb(30 58 138 / 0.17), transparent 70%);
  }

  .hero__liquid::after {
    background: linear-gradient(180deg, var(--bg) 0%, rgb(var(--bg-rgb) / 0.88) 55%, rgb(var(--bg-rgb) / 0) 78%);
  }

  .hero__actions .btn {
    width: 100%;
  }
}

/* Homepage: trays that stack over each other as the page scrolls */

.tray:not(.hero) {
  overflow: clip;
  background: var(--bg);
  box-shadow: var(--tray-shadow);
}

/* site.js adds one after each tray, sized to it; it leaves the viewport exactly when the tray is fully covered. */
.tray-sentinel {
  position: relative;
  height: var(--tray-h);
  margin-top: calc(-1 * var(--tray-h));
  pointer-events: none;
  /* The default inset adds scroll-padding, which would finish the timelines a header-height early. */
  view-timeline-inset: 0px;
}

.tray,
.tray-sentinel {
  /* Short trays stick under the header; tall ones only once their bottom reaches the viewport's. */
  --tray-top: min(var(--stack-offset), 100lvh - var(--tray-h));
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-padding-top: var(--stack-offset, calc(var(--header-h) + 16px));
  }

  .tray {
    position: sticky;
    top: var(--tray-top);
  }

  /* An opaque skirt below each tray hides the bottom of taller trays it only partly covers. */
  .tray:not(.hero) {
    box-shadow: var(--tray-shadow), 0 50lvh 0 50lvh var(--bg);
  }

  .tray-sentinel {
    top: calc(-1 * max(0px, var(--tray-top)));
  }

  /* Stuck trays end up against main's end; keep their shadows and skirts off the footer. */
  .site-footer {
    position: relative;
    background: var(--bg);
  }
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .tray:has(+ .tray-sentinel)::after {
      content: "";
      position: absolute;
      inset: 0;
      z-index: 1;
      background: #000;
      opacity: 0;
      pointer-events: none;
      animation: tray-dim linear both;
      animation-timeline: var(--dim-timeline);
      animation-range: entry-crossing 100% exit-crossing 100%;
    }
  }
}

@keyframes tray-dim {
  to {
    opacity: var(--tray-dim);
  }
}

/* Glass: a tray's background ramps to opaque as it covers the previous tray; site.js sets is-glass only during that slide. */
@supports (animation-timeline: view()) and ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  @media (prefers-reduced-motion: no-preference) {
    .tray:not(.hero) {
      background: transparent;
    }

    .tray:not(.hero)::before {
      content: "";
      position: absolute;
      inset: 0;
      z-index: -1;
      background: var(--bg);
      pointer-events: none;
      animation: tray-glass linear both;
      animation-timeline: var(--glass-timeline);
      animation-range: entry-crossing 100% exit-crossing 100%;
    }

    .tray.is-glass {
      -webkit-backdrop-filter: var(--glass-filter);
      backdrop-filter: var(--glass-filter);
    }
  }
}

@keyframes tray-glass {
  from {
    opacity: var(--glass-from);
  }

  50% {
    opacity: calc(var(--glass-from) + 0.1);
  }
}

@media (prefers-reduced-transparency: reduce) {
  .tray:not(.hero)::before {
    animation: none;
  }

  .tray.is-glass {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@media (min-width: 520px) {
  #services-title .line {
    display: block;
  }
}

/* Homepage: AI */

.ai-intro {
  display: grid;
  gap: 24px 64px;
  margin-bottom: clamp(40px, 6vw, 64px);
}

.ai-intro .section-head {
  margin-bottom: 0;
}

.ai-intro__body {
  max-width: 62ch;
  color: var(--ink-muted);
}

.ai-intro__body p + p {
  margin-top: 1.1em;
}

@media (min-width: 1000px) {
  .ai-intro {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  }
}

/* Homepage: security */

.security-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(32px, 6vw, 80px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.security-panel .blob {
  top: -30%;
  right: -12%;
  --blob-size: 560px;
  --blob-opacity: 0.12;
}

.security-panel .section-head {
  margin-bottom: 40px;
}

.checklist {
  display: grid;
  gap: 18px 48px;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-weight: 500;
  line-height: 1.45;
}

.checklist svg {
  flex: none;
  width: 26px;
  height: 26px;
  margin-top: -1px;
}

.check__bg {
  fill: var(--check-bg);
}

.check__mark {
  fill: none;
  stroke: var(--green-ink);
}

@media (min-width: 860px) {
  .checklist {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Homepage: clients */

.client-group + .client-group {
  margin-top: clamp(48px, 7vw, 80px);
}

.client-group__head {
  max-width: 62ch;
  margin-bottom: 24px;
}

.client-group__head h3 {
  font-size: 1.375rem;
}

.client-group__head p {
  margin-top: 8px;
  color: var(--ink-muted);
  font-size: 1rem;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

@media (min-width: 860px) {
  .logo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
}

.logo-tile {
  display: flex;
  flex-direction: column;
  padding: 20px 24px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.logo-tile__logo {
  width: 100%;
  max-width: 180px;
  margin: 0 auto 12px -10px;
  background: var(--surface);
}

.logo-tile__logo img {
  width: 100%;
  filter: var(--logo-filter);
  mix-blend-mode: var(--logo-blend);
  opacity: 0.8;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

.logo-tile:hover .logo-tile__logo img,
.logo-tile:focus-within .logo-tile__logo img {
  filter: var(--logo-filter-hover);
  opacity: 1;
}

.logo-tile__name {
  font-weight: 600;
  line-height: 1.3;
}

.logo-tile__line {
  margin-top: 4px;
  color: var(--ink-muted);
  font-size: 0.9375rem;
  line-height: 1.45;
}

@media (max-width: 760px) {
  .logo-tile {
    padding: 14px 16px 18px;
    border-radius: 22px;
  }

  .logo-tile__logo {
    margin-left: -6px;
  }

  .logo-tile__line {
    font-size: 0.875rem;
  }
}

@media (max-width: 519px) {
  .logo-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .logo-tile {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    grid-template-rows: 1fr auto auto 1fr;
    column-gap: 16px;
    padding: 12px 16px;
  }

  .logo-tile__logo {
    grid-row: 1 / -1;
    align-self: center;
    margin: 0;
  }

  .logo-tile__name {
    grid-row: 2;
  }

  .logo-tile__line {
    grid-row: 3;
  }
}

/* Homepage: how we work + founder */

.how-grid {
  display: grid;
  gap: 48px 72px;
}

@media (min-width: 1000px) {
  .how-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: start;
  }
}

.points {
  display: grid;
  gap: 32px 40px;
}

@media (min-width: 640px) {
  .points {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.points li {
  padding-top: 20px;
  border-top: 1px solid var(--line-strong);
}

.points p {
  margin-top: 8px;
  color: var(--ink-muted);
  font-size: 1rem;
}

.founder {
  padding: clamp(28px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.founder__photo {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 6px var(--bg), 0 0 0 7px var(--line);
}

.founder blockquote {
  margin-top: 28px;
  font-size: 1.1875rem;
  line-height: 1.55;
  letter-spacing: -0.005em;
}

.founder figcaption {
  margin-top: 20px;
  color: var(--ink-muted);
  font-size: 0.9375rem;
}

.founder figcaption a {
  font-weight: 600;
}

/* Homepage: testimonials */

.quote-grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 640px) {
  .quote-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .quote-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
}

.quote-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgb(var(--surface-rgb) / 0.6);
}

.quote-card blockquote {
  flex: 1;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.quote-card figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
  line-height: 1.35;
}

@media (min-width: 640px) {
  .quote-card figcaption {
    align-items: flex-start;
    min-height: calc(3 * 1.35em);
  }
}

.quote-card figcaption img {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.quote-card__name {
  display: block;
  font-weight: 600;
}

.quote-card__role {
  display: block;
  color: var(--ink-muted);
}

/* Homepage: contact */

.contact-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 7vw, 88px);
  isolation: isolate;
  border-radius: var(--radius-lg);
  color: #fff;
  background: linear-gradient(135deg, #065F46 0%, #0B5A55 45%, #1E3A8A 100%);
}

.contact-panel::before {
  content: "";
  position: absolute;
  inset: -25%;
  z-index: -1;
  background:
    radial-gradient(48% 70% at 12% 8%, rgb(20 184 166 / 0.3), transparent 70%),
    radial-gradient(42% 60% at 92% 96%, rgb(15 118 110 / 0.45), transparent 70%),
    radial-gradient(60% 80% at 78% 18%, rgb(30 58 138 / 0.9), transparent 72%);
  animation: contact-flow 24s ease-in-out infinite alternate;
}

@keyframes contact-flow {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(7%, 5%) scale(1.06);
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-panel::before {
    animation: none;
  }
}

.contact-panel h2 {
  max-width: 18ch;
}

.contact-panel p {
  max-width: 52ch;
  margin-top: 20px;
  font-size: 1.1875rem;
}

.contact-panel .btn {
  margin-top: 36px;
}

.contact-panel a:not(.btn) {
  color: #fff;
}

.contact-panel a:not(.btn):focus-visible {
  outline-color: #fff;
}

.contact-details {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid rgb(255 255 255 / 0.24);
  font-size: 1rem;
}

.contact-details li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.contact-details svg {
  flex: none;
  width: 18px;
  height: 18px;
}

@media (max-width: 760px) {
  .contact-panel {
    border-radius: var(--radius);
  }

  .contact-panel p {
    font-size: 1.0625rem;
  }

  .contact-panel .btn {
    width: 100%;
  }

  .contact-details {
    flex-direction: column;
  }
}

/* ==========================================================================
   Inner pages: legal documents, 404, rate card
   ========================================================================== */

/* Legal documents */

.doc {
  padding-top: clamp(48px, 8vw, 96px);
}

.doc__blob {
  top: -6%;
  right: -16%;
  --blob-opacity: 0.12;
}

.doc__head,
.doc__body {
  max-width: 68ch;
}

.doc__head {
  margin-bottom: clamp(28px, 5vw, 48px);
}

.doc__title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.doc__meta {
  margin-top: 16px;
  color: var(--ink-muted);
  font-size: 1rem;
}

.doc__meta strong {
  color: var(--ink);
  font-weight: 600;
}

.doc__body {
  overflow-wrap: break-word;
}

.doc__section {
  padding-block: 32px;
  border-top: 1px solid var(--line);
}

.doc__section h2 {
  font-size: 1.5rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.doc__section h2 + * {
  margin-top: 14px;
}

.doc__sub {
  margin-top: 36px;
}

.doc__sub h3 {
  font-size: 1.1875rem;
  color: var(--green-ink);
}

.doc__sub h3 + * {
  margin-top: 12px;
}

.doc__section p,
.doc__section li {
  color: var(--ink-soft);
}

.doc__section strong {
  color: var(--ink);
  font-weight: 600;
}

.doc__section p + p,
.doc__section p + ul,
.doc__section ul + p {
  margin-top: 1em;
}

.doc__section ul {
  padding-left: 1.25em;
}

.doc__section li + li {
  margin-top: 0.5em;
}

.doc__section li::marker {
  color: var(--green);
}

/* 404 */

.not-found {
  display: flex;
  align-items: center;
  min-height: max(60svh, 440px);
  text-align: center;
}

.not-found__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.not-found__blob {
  --blob-size: min(520px, 90vw);
  --blob-opacity: 0.2;
  top: calc(50% - var(--blob-size) / 2);
}

.not-found__blob--a {
  left: calc(50% - var(--blob-size) * 0.8);
}

.not-found__blob--b {
  left: calc(50% - var(--blob-size) * 0.2);
  --blob-opacity: 0.14;
}

.not-found__code {
  font-size: clamp(7rem, 24vw, 13rem);
  line-height: 0.9;
  background: linear-gradient(135deg, var(--teal), var(--green) 55%, var(--navy));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.not-found__title {
  margin-top: 16px;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.03em;
}

.not-found__lead {
  margin-top: 16px;
  margin-bottom: 36px;
  color: var(--ink-muted);
  font-size: 1.1875rem;
}

/* Rate card */

.rates {
  padding-top: clamp(48px, 8vw, 96px);
}

.rates__blob--a {
  top: 0;
  left: -14%;
}

.rates__blob--b {
  bottom: -10%;
  right: -14%;
  --blob-opacity: 0.1;
}

.rates__inner {
  max-width: calc(560px + 2 * var(--gutter));
}

.rates__title {
  margin-bottom: clamp(32px, 5vw, 48px);
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-align: center;
}

.rates__list {
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.rates__list li + li {
  border-top: 1px solid var(--line);
}

.switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 16px 20px;
  border-radius: 20px;
  font-size: clamp(1.5rem, 5vw, 1.875rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.switch:hover {
  background: rgb(var(--bg-rgb) / 0.7);
}

.switch__input {
  --switch-off: rgb(15 27 45 / 0.45);
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  flex: none;
  width: 64px;
  height: 36px;
  margin: 0;
  border-radius: 999px;
  background: var(--switch-off);
  cursor: pointer;
  transition: background-color 0.25s ease;
}

@media (prefers-color-scheme: dark) {
  .switch__input {
    --switch-off: rgb(232 237 245 / 0.3);
  }
}

.switch__input::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.3);
  transition: transform 0.3s var(--ease-out), width 0.2s var(--ease-out);
}

.switch__input:checked {
  background: var(--button-bg);
}

.switch__input:checked::after {
  transform: translateX(28px);
}

.switch__input:active::after {
  width: 36px;
}

.switch__input:checked:active::after {
  transform: translateX(20px);
}

.switch__input:focus-visible {
  border-radius: 999px;
}

@media (prefers-reduced-motion: reduce) {
  .switch__input,
  .switch__input::after {
    transition: none;
  }
}
