/* Hylton Labs — site styles */

:root {
  --paper: #fafafa;
  --paper-2: #f2f2f2;
  --ink: #000;
  --ink-2: #111;
  --ink-soft: #505050;
  --muted: #6b6b6b;
  --line: #e4e4e4;
  --line-dark: #bdbdbd;
  --panel: #eeeeee;
  /* Monochrome: emphasis is black. Kept as aliases so older markup still resolves. */
  --accent: var(--ink);
  --accent-ink: var(--ink);

  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --header-h: 72px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -0.025em; line-height: 1.12; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }

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

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

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 12px 16px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Small text label (sentence case, no decoration) ---------- */
.label, .eyebrow {
  display: block;
  margin-bottom: 14px;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: 0;
  color: var(--muted);
}

/* ---------- Buttons and links ---------- */
.btn {
  --bg: var(--ink); --fg: var(--paper);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 14px 24px;
  background: var(--bg); color: var(--fg);
  font: 500 15px/1.2 var(--font);
  text-decoration: none; border: 0; border-radius: 2px; cursor: pointer;
  transition: background-color .15s ease;
}
.btn:hover { --bg: #333; }
.btn--accent { --bg: var(--ink); --fg: var(--paper); }
.btn--accent:hover { --bg: #333; }
.btn--ghost {
  --bg: transparent; --fg: var(--ink);
  padding-inline: 4px;
  text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px;
}
.btn--ghost:hover { --bg: transparent; text-decoration-thickness: 2px; }
.btn .arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(2px); }

.link {
  display: inline-flex; align-items: center; min-height: 44px;
  font-weight: 500; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px;
}
.link:hover { text-decoration-thickness: 2px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color .15s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand img { height: 24px; width: auto; }

.nav { display: flex; align-items: center; gap: 32px; }
.nav a {
  padding-block: 14px;
  font-size: 13px; line-height: 1; letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; color: var(--ink);
}
.nav a:not(.btn):hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.nav .btn { color: var(--paper); min-height: 44px; padding: 12px 18px; font-size: 13px; letter-spacing: .06em; }

.menu-btn {
  display: none; background: none; border: 0; padding: 12px; margin-right: -12px; cursor: pointer;
}
.menu-btn span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .15s ease, opacity .15s ease; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Home: hero ---------- */
.hero { padding-block: clamp(56px, 7.5vw, 104px) clamp(56px, 6vw, 88px); }
.hero-copy { text-align: center; }
.hero h1 {
  max-width: 17.5em; margin-inline: auto;
  font-size: clamp(34px, 4.4vw, 62px);
  letter-spacing: -0.04em;
  line-height: 1.04;
  text-wrap: balance;
}
.hero .lede { max-width: 36em; margin: 22px auto 0; font-size: clamp(17px, 1.45vw, 19px); color: var(--ink-soft); text-wrap: balance; }

/* The three services as quiet text links, separated by thin dots */
.hero-services { display: flex; flex-wrap: wrap; justify-content: center; margin-top: 18px; font-size: 15px; }
.hero-services a {
  display: inline-flex; align-items: center; min-height: 40px;
  color: var(--ink); text-decoration: none;
}
.hero-services a::before {
  content: ""; width: 3px; height: 3px; margin-inline: 14px; border-radius: 50%; background: var(--line-dark);
}
.hero-services a:first-child::before { display: none; }
.hero-services a:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }

.hero .actions .link { font-size: 15px; }
.hero .actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 24px; margin-top: 24px; }
.btn--sm { position: relative; min-height: 40px; padding: 10px 18px; font-size: 14px; }
.btn--sm::after { content: ""; position: absolute; inset: -4px 0; } /* 48px hit area without the visual bulk */

/* Proof row: our product logos, details on hover, focus, or tap */
.hero-proof { margin: clamp(56px, 6vw, 80px) auto 0; max-width: 760px; }
.rule-label { display: flex; align-items: center; gap: 20px; font-size: 13px; color: var(--muted); }
.rule-label::before, .rule-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.logo-row {
  position: relative;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 12px clamp(18px, 6vw, 72px);
  margin-top: 28px;
}
.logo-item { position: relative; }
.logo-btn {
  display: block; margin: -10px -8px; padding: 10px 8px;
  background: none; border: 0; border-radius: 2px; cursor: pointer;
}
.logo-btn img {
  height: clamp(18px, 6vw, 30px); width: auto;
  filter: grayscale(1); opacity: .5;
  transition: filter .2s ease, opacity .2s ease;
}
.logo-item.is-open .logo-btn img,
.logo-btn:hover img, .logo-btn:focus-visible img { filter: none; opacity: 1; }

.logo-pop {
  position: absolute; z-index: 20; top: calc(100% + 18px); left: 50%;
  width: 290px; padding: 20px 22px 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 4px;
  text-align: left; font-size: 15px; line-height: 1.5; color: var(--ink-soft);
  opacity: 0; visibility: hidden; transform: translate(-50%, 6px);
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
}
.logo-pop::before { content: ""; position: absolute; left: 0; right: 0; top: -20px; height: 20px; } /* hover bridge */
html:not(.js) .logo-item:hover .logo-pop,
html:not(.js) .logo-item:focus-within .logo-pop,
.logo-item.is-open .logo-pop {
  opacity: 1; visibility: visible; transform: translate(-50%, 0);
  transition: opacity .18s ease, transform .18s ease, visibility 0s;
}
.logo-pop-title { color: var(--ink); font-weight: 500; font-size: 16px; }
.logo-pop p + p { margin-top: 6px; }
.logo-pop .logo-pop-meta { color: var(--muted); font-size: 13px; }
.logo-pop-links { display: flex; gap: 20px; margin-top: 4px; }
.logo-pop-links a {
  display: inline-flex; align-items: center; min-height: 40px;
  color: var(--ink); font-weight: 500; font-size: 14px;
  text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px;
}
.logo-pop-links a:hover { text-decoration-thickness: 2px; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(72px, 8vw, 112px); }
.section--tint, .section--dark { background: none; color: inherit; }
.section-head { display: grid; grid-template-columns: 1fr 1.4fr; gap: 20px 64px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head h2 { font-size: clamp(28px, 3.2vw, 42px); }
.section-head p { color: var(--ink-soft); font-size: 18px; max-width: 52ch; }

/* Heading column on the left, content on the right */
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 40px clamp(48px, 8vw, 120px); align-items: start; }
.split-head { position: sticky; top: calc(var(--header-h) + 40px); }
.split-head h2 { font-size: clamp(28px, 3.2vw, 42px); }
.split-head p { margin-top: 20px; max-width: 32em; color: var(--ink-soft); }

/* Home: how AI fits. A drawn diagram: the step labels are real list text,
   positioned on the same grid as the SVG connectors (1000x340 wide, 340x640 stacked). */
.flow { position: relative; aspect-ratio: 1000 / 340; margin-top: clamp(8px, 2vw, 24px); }
.flow-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.flow-lines--v { display: none; }
.flow-line { fill: none; stroke: #d6d6d6; stroke-width: 1; vector-effect: non-scaling-stroke; }
.flow-trace { fill: none; stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.flow-dot { fill: none; stroke: var(--ink); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 0 2; opacity: 0; }
.flow-steps, .flow-steps ul { margin: 0; padding: 0; list-style: none; }
.flow-node, .flow-cap { position: absolute; transform: translate(-50%, -50%); }
.flow-node {
  display: flex; align-items: center; justify-content: center;
  padding-inline: 22px; text-align: center;
  background: #fff; border: 1px solid #d6d6d6; border-radius: 2px;
  font-size: 14px; line-height: 1.25; color: var(--ink);
}
.flow-node--main { font-size: 15px; font-weight: 500; }
.flow-node::after { content: ""; position: absolute; inset: -1px; border: 1px solid var(--ink); border-radius: 2px; opacity: 0; transition: opacity .3s ease; }
.flow-node.is-on::after { opacity: 1; }
.flow-tick { position: absolute; right: 10px; top: 50%; margin-top: -6px; width: 12px; height: 12px; fill: none; stroke: var(--ink); stroke-width: 1.6; opacity: 0; transform: scale(.6); transition: opacity .3s ease, transform .3s ease; }
.flow-node.is-done .flow-tick { opacity: 1; transform: none; }
.flow-cap { white-space: nowrap; font-size: 13px; color: var(--muted); }

/* External coordinate rules keep the diagram compatible with the strict CSP,
   which intentionally blocks inline style attributes. */
.flow [data-cap="cap0"] { left: 10%; top: 94.7059%; }
.flow [data-cap="cap1"] { left: 37%; top: 94.7059%; }
.flow [data-cap="cap2"] { left: 63%; top: 94.7059%; }
.flow [data-cap="cap3"] { left: 90%; top: 94.7059%; }
.flow [data-node="in0"] { left: 10%; top: 26.4706%; }
.flow [data-node="in1"] { left: 10%; top: 50%; }
.flow [data-node="in2"] { left: 10%; top: 73.5294%; }
.flow [data-node="ai"] { left: 37%; top: 50%; }
.flow [data-node="ok"] { left: 63%; top: 50%; }
.flow [data-node="out0"] { left: 90%; top: 26.4706%; }
.flow [data-node="out1"] { left: 90%; top: 50%; }
.flow [data-node="out2"] { left: 90%; top: 73.5294%; }
.flow [data-node^="in"], .flow [data-node^="out"] { width: 15%; height: 12.9412%; }
.flow [data-node="ai"], .flow [data-node="ok"] { width: 18%; height: 16.4706%; }
.flow-links { display: flex; flex-wrap: wrap; gap: 0 28px; margin-top: clamp(24px, 3vw, 40px); }

/* Flow tabs: cycle through business scenarios */
.flow-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); margin-bottom: clamp(16px, 2vw, 24px); }
.flow-tab {
  background: none; border: 0; border-bottom: 2px solid transparent;
  padding: 14px 20px; font: 500 14px/1 var(--font); letter-spacing: .02em;
  color: var(--muted); cursor: pointer; transition: color .15s ease, border-color .15s ease;
}
.flow-tab:hover { color: var(--ink); }
.flow-tab.is-active { color: var(--ink); border-bottom-color: var(--ink); }
.flow-swapping .flow-node, .flow-swapping .flow-cap { transition: opacity .15s ease; opacity: .3; }

/* Offer grid: what we do section */
.offer-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px clamp(48px, 6vw, 80px); border-top: 1px solid var(--ink);
}
.offer-col { padding-top: clamp(24px, 3vw, 36px); }
.offer-col h3 { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.15; }
.offer-col p { margin-top: 14px; color: var(--ink-soft); max-width: 40ch; }
.offer-col .link { margin-top: 18px; }

/* Stacked: same diagram drawn top to bottom */
@media (max-width: 860px) {
  .flow { aspect-ratio: 340 / 590; max-width: 420px; margin-inline: auto; }
  .flow-lines--h { display: none; }
  .flow-lines--v { display: block; }
  .flow [data-cap="cap0"] { left: 50%; top: 2.3729%; }
  .flow [data-cap="cap1"] { left: 50%; top: 25.4237%; }
  .flow [data-cap="cap2"] { left: 50%; top: 48.4746%; }
  .flow [data-cap="cap3"] { left: 50%; top: 93.5593%; }
  .flow [data-node="in0"] { left: 17.0588%; top: 9.4915%; }
  .flow [data-node="in1"] { left: 50%; top: 9.4915%; }
  .flow [data-node="in2"] { left: 82.9412%; top: 9.4915%; }
  .flow [data-node="ai"] { left: 50%; top: 35.5932%; }
  .flow [data-node="ok"] { left: 50%; top: 58.6441%; }
  .flow [data-node="out0"] { left: 17.0588%; top: 84.7458%; }
  .flow [data-node="out1"] { left: 50%; top: 84.7458%; }
  .flow [data-node="out2"] { left: 82.9412%; top: 84.7458%; }
  .flow [data-node^="in"], .flow [data-node^="out"] { width: 28.2353%; height: 7.4576%; }
  .flow [data-node="ai"], .flow [data-node="ok"] { width: 64.7059%; height: 9.4915%; }
  .flow-cap--mid { width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } /* still read aloud */
}

/* Home: what we have built. One quiet row per product. */
.section-head--solo { display: block; margin-bottom: clamp(32px, 4vw, 48px); }
.section-head--solo p { margin-top: 14px; max-width: 46ch; color: var(--ink-soft); font-size: 18px; }
.products { border-top: 1px solid var(--ink); }
.product-row {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) minmax(0, 3fr);
  gap: 20px clamp(32px, 5vw, 72px); align-items: start;
  padding-block: clamp(28px, 3.5vw, 40px);
  border-bottom: 1px solid var(--line);
}
.product-mark { width: auto; height: 28px; margin-bottom: 18px; border-radius: 5px; }
.product-id h3 { font-size: clamp(24px, 2.4vw, 30px); }
.product-kind { margin-top: 4px; color: var(--ink-soft); font-size: 15px; }
.product-desc { color: var(--ink-soft); max-width: 46ch; padding-top: 46px; }
.product-links { display: flex; flex-direction: column; align-items: flex-start; padding-top: 36px; }
.row-links { display: flex; flex-wrap: wrap; gap: 0 28px; }
.link--quiet { font-weight: 400; color: var(--ink-soft); }

/* ---------- Process ---------- */
.process-list { counter-reset: process; border-top: 1px solid var(--ink); }
.process-list li { counter-increment: process; display: grid; grid-template-columns: 80px minmax(180px, .7fr) minmax(0, 1.3fr); gap: 24px; padding-block: 28px; border-bottom: 1px solid var(--line); }
.process-list li::before { content: "0" counter(process); color: var(--muted); font-size: 14px; line-height: 1.8; font-variant-numeric: tabular-nums; }
.process-list h3 { font-size: 22px; line-height: 1.2; }
.process-list p { color: var(--ink-soft); }

.process-list--cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 32px; border-bottom: 0; }
.process-list--cols li { display: block; padding-block: 24px 0; border-bottom: 0; }
.process-list--cols li::before { display: block; margin-bottom: 40px; }
.process-list--cols h3 { font-size: 20px; }
.process-list--cols p { margin-top: 12px; font-size: 15px; }

/* Inline process line for CTA section */
.process-line {
  display: flex; flex-wrap: wrap; gap: 8px 0; margin-bottom: 28px;
  counter-reset: pline; font-size: 15px; color: var(--ink-soft);
}
.process-line li {
  counter-increment: pline;
  display: flex; align-items: center; gap: 6px;
}
.process-line li::before {
  content: counter(pline);
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border: 1px solid var(--line-dark); border-radius: 50%;
  font-size: 12px; font-variant-numeric: tabular-nums; color: var(--muted); flex-shrink: 0;
}
.process-line li:not(:last-child)::after {
  content: "\2192"; margin-left: 12px; margin-right: 12px;
  color: var(--line-dark); font-size: 14px;
}

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 48px 22px 0; min-height: 64px; font-size: 19px; font-weight: 500; line-height: 1.3; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font: 400 26px/1 var(--font); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { max-width: 62ch; padding: 0 48px 24px 0; color: var(--ink-soft); }

/* ---------- Closing CTA ---------- */
.cta { border-top: 1px solid var(--line); }
.cta .wrap { padding-block: clamp(72px, 9vw, 120px); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px clamp(48px, 8vw, 120px); align-items: start; }
.cta h2 { font-size: clamp(30px, 4vw, 52px); letter-spacing: -0.035em; max-width: 14ch; }
.cta p { color: var(--ink-soft); font-size: 18px; margin-bottom: 28px; }
.cta-steps { margin: 0 0 32px; border-top: 1px solid var(--line); }
.cta-steps li { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.cta .response-note { margin: 16px 0 0; color: var(--muted); font-size: 14px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); color: var(--ink-soft); }
.site-footer .wrap { padding-block: 56px 48px; display: grid; grid-template-columns: 1fr auto; gap: 32px 48px; align-items: start; }
.site-footer img { height: 22px; width: auto; }
.site-footer img[src$="logo-white.png"] { filter: invert(1); }
.site-footer .loc { margin-top: 16px; font-size: 14px; color: var(--muted); }
.site-footer .loc a { text-decoration: underline; text-underline-offset: 3px; }
.site-footer .loc a:hover { color: var(--ink); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0 32px; }
.site-footer nav a {
  padding-block: 13px;
  font-size: 13px; line-height: 1; letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; color: var(--ink);
}
.site-footer nav a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.site-footer .footer-products, .site-footer .footer-services { grid-column: 1 / -1; }
.site-footer .footer-products { padding-top: 12px; border-top: 1px solid var(--line); }
.site-footer .footer-services { margin-top: -20px; }
.site-footer .legal { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* ---------- Contact page ---------- */
.contact { padding-block: clamp(56px, 9vw, 110px) clamp(80px, 10vw, 130px); }
.contact h1 { font-size: clamp(34px, 4.6vw, 60px); letter-spacing: -0.035em; line-height: 1.08; }
.contact .intro { margin-top: 20px; font-size: 19px; color: var(--ink-soft); max-width: 46ch; }

.email-link {
  display: inline-block; margin-top: 48px;
  font-size: clamp(24px, 3.6vw, 40px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.1;
  text-decoration: none; word-break: break-word;
  border-bottom: 1px solid var(--ink); padding-bottom: 4px;
}
.email-link:hover { border-bottom-width: 2px; }

.email-notes { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); color: var(--ink-soft); }
.email-notes p + ul, .email-notes ul + p { margin-top: 12px; }
.email-notes ul { display: grid; gap: 6px; }
.email-notes li { padding-left: 20px; position: relative; color: var(--ink); }
.email-notes li::before { content: ""; position: absolute; left: 0; top: .85em; width: 8px; height: 1px; background: var(--ink); }
.email-notes ul + p { margin-top: 24px; }

/* ---------- Shared commercial pages ---------- */
.page-hero { padding-block: clamp(64px, 9vw, 120px); border-bottom: 1px solid var(--line); }
.page-hero + .section { padding-top: clamp(48px, 6vw, 80px); }
.page-hero .wrap { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 48px 80px; align-items: end; }
.page-hero h1 { max-width: 16ch; font-size: clamp(34px, 5vw, 64px); letter-spacing: -.035em; line-height: 1.06; }
.page-hero .intro { margin-top: 24px; max-width: 56ch; color: var(--ink-soft); font-size: clamp(18px, 1.6vw, 20px); }
.page-hero .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; margin-top: 32px; }
.proof-grid, .related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 32px; }
.proof-card, .related-card { padding-top: 24px; border-top: 1px solid var(--ink); }
.proof-card h3, .related-card h3 { font-size: 22px; line-height: 1.2; }
.proof-card p, .related-card p { margin-top: 12px; color: var(--ink-soft); font-size: 16px; }
.proof-card a, .related-card a { display: inline-block; margin-top: 18px; font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }

.content-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px 80px; align-items: start; }
.content-grid h2 { font-size: clamp(28px, 3.2vw, 42px); }
.prose { max-width: 68ch; }
.prose h2 { margin-top: 52px; font-size: clamp(26px, 2.8vw, 36px); }
.prose h3 { margin-top: 34px; font-size: 22px; line-height: 1.2; }
.prose p, .prose ul { margin-top: 18px; color: var(--ink-soft); }
.prose ul { display: grid; gap: 10px; }
.prose li { position: relative; padding-left: 22px; }
.prose li::before { content: ""; position: absolute; left: 0; top: .85em; width: 8px; height: 1px; background: var(--ink); }
.prose strong { color: var(--ink); font-weight: 500; }
.side-card { position: sticky; top: calc(var(--header-h) + 32px); padding: 30px; background: var(--ink); color: var(--paper); border-radius: 2px; }
.side-card h2 { font-size: 24px; line-height: 1.15; }
.side-card p { margin-top: 15px; color: #c8c8c8; font-size: 15px; }
.side-card .btn { margin-top: 24px; --bg: var(--paper); --fg: var(--ink); }
.side-card .btn:hover { --bg: #e4e4e4; }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); }
.facts div { padding: 26px 26px 26px 0; }
.facts div + div { padding-left: 26px; border-left: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: 14px; line-height: 1.4; }
.facts dd { margin: 6px 0 0; font-size: 17px; font-weight: 500; }

.industries { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.industry { padding-top: 20px; border-top: 1px solid var(--ink); }
.industry h3 { font-size: 20px; letter-spacing: -0.015em; line-height: 1.2; margin: 0 0 12px; }
.industry p { color: var(--ink-soft); font-size: 15px; }

.breadcrumbs { padding-block: 14px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 14px; line-height: 1.4; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin-block: 0; padding-block: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line-dark); }
.breadcrumbs a { text-underline-offset: 3px; }

/* ---------- Assessment form ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: 56px 88px; align-items: start; }
.contact-grid > *, .form-grid > * { min-width: 0; }
.contact-copy { position: sticky; top: calc(var(--header-h) + 32px); }
.contact-copy .email-link { font-size: clamp(20px, 2.6vw, 30px); }
.assessment-form { padding: clamp(24px, 4vw, 44px); border: 1px solid var(--line); border-radius: 2px; background: #fff; }
.assessment-form h2 { font-size: clamp(26px, 2.8vw, 36px); }
.assessment-form .form-intro { margin-top: 12px; color: var(--ink-soft); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 18px; margin-top: 30px; }
.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 500; }
.field .hint { color: var(--muted); font-size: 13px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; border: 1px solid var(--line-dark); border-radius: 2px;
  background: #fff; color: var(--ink); padding: 12px 13px; font: 400 16px/1.4 var(--font);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--ink); outline-offset: 2px; border-color: var(--ink); }
.form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; margin-top: 28px; }
.form-actions .btn:disabled { cursor: wait; opacity: .55; }
.form-status { flex: 1 1 280px; min-height: 1.5em; color: var(--ink-soft); font-size: 14px; }
.form-status.is-success { color: #1d6a35; }
.form-status.is-error { color: #b0291a; }
.form-status a { font-weight: 500; }
.form-consent { margin-top: 18px; color: var(--muted); font-size: 13px; }
.hp-field { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; }

/* ---------- Case studies ---------- */
.case-outcomes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 28px; }
.case-outcomes li { padding: 22px; border: 1px solid var(--line); border-radius: 2px; }
.case-outcomes strong { display: block; margin-bottom: 6px; font-weight: 500; }

[hidden] { display: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .js .menu-btn { display: block; }
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 0 var(--gutter) 24px;
  }
  .js .nav { display: none; }
  .js .nav.is-open { display: flex; }
  html:not(.js) .site-header .wrap { height: auto; min-height: var(--header-h); flex-wrap: wrap; padding-block: 16px; }
  html:not(.js) .nav { position: static; flex: 1 0 100%; padding-inline: 0; }
  .nav a { padding: 18px 0; font-size: 14px; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 20px; font-size: 14px; padding: 16px; border: 0; }
}

@media (max-width: 960px) {
  .process-list--cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
  .process-list--cols li { padding-bottom: 32px; }
  .process-list--cols li::before { margin-bottom: 20px; }
  .industries { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .product-row { grid-template-columns: 1fr; gap: 12px; }
  .product-desc, .product-links { padding-top: 0; }
  .product-links { flex-direction: row; flex-wrap: wrap; gap: 0 24px; }
  .section-head, .split, .cta .wrap, .page-hero .wrap, .content-grid, .contact-grid { grid-template-columns: 1fr; }
  .split-head, .side-card, .contact-copy { position: static; }
  .proof-grid, .related-grid { grid-template-columns: 1fr 1fr; }
  .process-list li { grid-template-columns: 56px 1fr; }
  .process-list li p { grid-column: 2; }
  .process-list--cols li { grid-template-columns: none; }
  .process-list--cols li p { grid-column: auto; }
  .site-footer .wrap { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { padding-top: 40px; }
  .hero-copy { text-align: left; }
  .hero h1, .hero .lede { margin-inline: 0; }
  .hero .actions, .hero-services { justify-content: flex-start; }
  /* Wrapped service links: every link carries its dot, and the dot that starts a line is clipped off */
  .hero-services { margin-left: -17px; clip-path: inset(-8px -8px -8px 17px); font-size: 14px; }
  .hero-services a::before, .hero-services a:first-child::before { display: block; margin-inline: 7px; }
  .hero-proof { margin-top: 48px; }
  .logo-row { flex-wrap: nowrap; justify-content: space-between; gap: 12px; margin-top: 24px; }
  .logo-btn img { height: clamp(18px, 6.2vw, 26px); }
  .logo-item { position: static; }
  .logo-pop { left: 0; right: 0; width: auto; transform: translateY(6px); }
  html:not(.js) .logo-item:hover .logo-pop,
  html:not(.js) .logo-item:focus-within .logo-pop,
  .logo-item.is-open .logo-pop { transform: none; }
  .examples, .industries { grid-template-columns: 1fr; }
  .process-list--cols { grid-template-columns: 1fr; }
  .offer-grid { grid-template-columns: 1fr; gap: 32px; }
  .flow-tab { padding: 12px 14px; font-size: 13px; }
  .process-line { flex-direction: column; gap: 10px; }
  .process-line li:not(:last-child)::after { display: none; }
  .process-list--cols li { display: grid; grid-template-columns: 42px 1fr; gap: 0 12px; padding-block: 18px; border-bottom: 1px solid var(--line); }
  .process-list--cols li::before { margin: 0; grid-row: span 2; }
  .process-list--cols p { margin-top: 4px; }
  .proof-grid, .related-grid, .facts, .form-grid, .case-outcomes { grid-template-columns: 1fr; }
  .facts div, .facts div + div { padding: 20px 0; border-left: 0; }
  .facts div + div { border-top: 1px solid var(--line); }
  .process-list li { grid-template-columns: 42px 1fr; gap: 14px; }
  .process-list--cols li { grid-template-columns: none; }
  .field--full { grid-column: auto; }
  .faq summary { font-size: 17px; }
  .site-footer nav { flex-direction: column; }
  .site-footer .footer-products, .site-footer .footer-services { flex-direction: row; flex-wrap: wrap; gap: 0 24px; }
}

@media (max-width: 339px) {
  .logo-row { flex-wrap: wrap; justify-content: center; gap: 12px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* Case study screenshot gallery: same frame for every image so rows line up */
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; align-items: start; }
.gallery h2 { grid-column: 1 / -1; }
.gallery .case-visual { margin-top: 0; min-width: 0; }
.gallery .case-visual img {
  width: 100%; aspect-ratio: 4 / 3; height: auto;
  padding: clamp(16px, 2.4vw, 28px); box-sizing: border-box;
  object-fit: contain; object-position: center;
  background: var(--panel); border: 0; border-radius: 2px;
}
.gallery .case-visual .label { margin: 12px 0 0; font-size: 14px; }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr; } }

/* ---------- Inner pages: prose template ---------- */
.page-hero--solo .wrap { display: block; }
.page-hero--solo h1 { max-width: 17ch; }
.page-hero--solo .intro { max-width: 52ch; }

.case-logo { display: block; height: 40px; width: auto; margin-bottom: 36px; }

.fact-line { display: flex; flex-wrap: wrap; gap: 16px 56px; margin: 56px 0 0; padding-top: 20px; border-top: 1px solid var(--line); }
.fact-line dt { color: var(--muted); font-size: 13px; line-height: 1.4; }
.fact-line dd { margin: 4px 0 0; font-size: 15px; }

.case-lead { margin: 0; padding: clamp(16px, 5vw, 64px); background: var(--panel); border-radius: 2px; }
.case-lead img { width: 100%; height: auto; border: 1px solid rgba(0, 0, 0, .08); border-radius: 2px; }

.article-body { max-width: 700px; }
.article-body > h2 {
  margin-top: clamp(56px, 7vw, 88px); padding-top: 28px; border-top: 1px solid var(--line);
  font-size: clamp(26px, 2.8vw, 34px); line-height: 1.15;
}
.article-body > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.section--lead { padding-bottom: 0; }
.article-body > p { margin-top: 20px; font-size: 18px; line-height: 1.7; color: var(--ink-soft); }
.article-body > p a { color: var(--ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.article-body > p a:hover { text-decoration-thickness: 2px; }
.article-body > ul { margin-top: 24px; border-top: 1px solid var(--line); }
.article-body > ul li { padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink-soft); font-size: 17px; line-height: 1.55; }
.article-body > ul strong { color: var(--ink); font-weight: 500; }
.article-body > .faq { margin-top: 32px; }

.proof-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 48px; margin-top: 32px; }
.proof-logos a { display: inline-flex; align-items: center; min-height: 44px; }
.proof-logos img { height: 26px; width: auto; filter: grayscale(1); opacity: .6; transition: opacity .2s ease, filter .2s ease; }
.proof-logos a:hover img, .proof-logos a:focus-visible img { filter: none; opacity: 1; }

.related-links { display: flex; flex-wrap: wrap; gap: 0 32px; margin-top: 16px; }
.related-links .link { display: inline-flex; align-items: center; min-height: 44px; }
.section--related { padding-top: 0; }

@media (max-width: 560px) {
  .case-logo { height: 32px; margin-bottom: 28px; }
  .fact-line { flex-direction: column; gap: 14px; margin-top: 40px; }
  .article-body > p { font-size: 17px; }
}

/* ---------- Investors ---------- */
.investor-section + .investor-section { border-top: 1px solid var(--line); }
.investor-products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; max-width: 1040px; margin: 40px 0 0; padding: 0; list-style: none; }
.investor-products a { display: inline-flex; align-items: center; min-height: 44px; }
.investor-products img { height: 36px; width: auto; filter: grayscale(1); opacity: .85; transition: filter .2s ease, opacity .2s ease; }
.investor-products a:hover img, .investor-products a:focus-visible img { filter: none; opacity: 1; }
.investor-products h3 { margin-top: 20px; font-size: 20px; line-height: 1.25; }
.investor-products p { margin-top: 12px; color: var(--ink-soft); font-size: 16px; line-height: 1.6; max-width: 34ch; }
.investor-products .investor-product-platform { margin-top: 8px; color: var(--muted); font-size: 14px; }
.investor-services { margin-top: clamp(48px, 6vw, 72px); padding-top: 28px; border-top: 1px solid var(--line); }
.investor-services > p:first-child { margin-top: 0; }
.investor-model { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px clamp(48px, 7vw, 88px); max-width: 1040px; margin-top: 40px; }
.investor-model article { padding-top: 28px; border-top: 1px solid var(--ink); }
.investor-model h3 { font-size: clamp(22px, 2.3vw, 28px); }
.investor-model p { max-width: 44ch; margin-top: 16px; color: var(--ink-soft); font-size: 17px; line-height: 1.65; }
.investor-model-close { max-width: 700px; margin-top: clamp(40px, 5vw, 64px); color: var(--ink-soft); font-size: 18px; line-height: 1.7; }
.investor-inquiry h2 { max-width: 16ch; }
.investor-inquiry p + p { margin-top: -12px; }
@media (max-width: 760px) {
  .investor-products { grid-template-columns: 1fr; gap: 28px; }
  .investor-products img { height: 30px; }
  .investor-model { grid-template-columns: 1fr; gap: 32px; }
}
