/* Deep Intellect AI — shared styles. Type does the work; rules and numbers are the only ornaments. */

:root {
  /* dark only (owner's decision 2026-11-21) */
  --bg: #111110;
  --ink: #ecebe5;
  --muted: #a3a097;
  --rule: rgba(236, 235, 229, 0.15);
  --rule-strong: rgba(236, 235, 229, 0.34);
  --accent: #ff7a2e;

  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Geist", "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --gutter: clamp(1rem, 4vw, 3rem);
  --measure: 36rem;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: clamp(1.3rem, 1.1rem + 0.8vw, 1.6rem);
  --step-2: clamp(1.6rem, 1.25rem + 1.5vw, 2.4rem);
  --step-3: clamp(2rem, 1.4rem + 2.6vw, 3.4rem);
  --step-4: clamp(2.6rem, 1.4rem + 5.6vw, 6.25rem);

  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.65;
  font-feature-settings: "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}

h1, h2, h3, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--rule-strong);
  text-underline-offset: 0.22em;
  transition: text-decoration-color 0.2s ease, color 0.2s ease;
}
a:hover { text-decoration-color: currentColor; }

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

::selection { background: var(--accent); color: var(--bg); }

[id] { scroll-margin-top: 2rem; }

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

/* ---------- Header ---------- */

.site-header { padding-block: 1.5rem; }

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 2rem;
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
}

.site-nav a {
  font-size: var(--step--1);
  color: var(--muted);
  text-decoration: none;
}
.site-nav a:hover { color: var(--ink); }

/* ---------- Hero ---------- */

.hero {
  padding-top: clamp(4.5rem, 14vh, 10rem);
  padding-bottom: clamp(3.5rem, 9vh, 6rem);
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--step-4);
  line-height: 1.02;
  letter-spacing: -0.025em;
  max-width: 15ch;
  font-variation-settings: "opsz" 72;
  text-wrap: balance;
}

.hero h1 .turn {
  display: block;
  font-style: italic;
  color: var(--accent);
}

.hero .intro {
  margin-top: clamp(2rem, 5vh, 3rem);
  max-width: var(--measure);
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--ink);
  text-wrap: pretty;
}

/* ---------- Figures (numbers line) ---------- */

.figures {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule);
}

.figures .fig {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.5rem;
  padding: 1.5rem 1rem 1.5rem 0;
}

.figures .n {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.6rem, 1.2rem + 3.4vw, 4.25rem);
  white-space: nowrap;
  line-height: 0.9;
  letter-spacing: -0.03em;
  font-variant-numeric: lining-nums tabular-nums;
  font-variation-settings: "opsz" 72;
}

.figures .n.word {
  font-style: italic;
  font-size: clamp(1.6rem, 1.1rem + 2.2vw, 2.5rem);
  line-height: 1;
  letter-spacing: -0.015em;
}

.figures .l {
  font-size: var(--step--1);
  line-height: 1.35;
  color: var(--muted);
  max-width: 16ch;
}

.figures .sep {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (max-width: 719px) {
  .figures .fig:nth-of-type(even) { padding-left: 1rem; padding-right: 0; border-left: 1px solid var(--rule); }
  .figures .fig:nth-of-type(n + 3) { border-top: 1px solid var(--rule); }
}

@media (min-width: 720px) {
  .figures { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .figures .fig { padding: 2rem 1.5rem 2rem 0; }
  .figures .fig:nth-of-type(n + 2) { padding-left: 1.5rem; border-left: 1px solid var(--rule); }
  .figures .fig:last-of-type { padding-right: 0; }
}

.depth {
  padding-top: clamp(3rem, 8vh, 5rem);
}

.depth p {
  max-width: var(--measure);
  margin-left: auto;
  margin-right: 0;
  font-family: var(--serif);
  font-size: var(--step-1);
  line-height: 1.55;
  text-wrap: pretty;
}

@media (max-width: 899px) {
  .depth p { margin-left: 0; }
}

/* ---------- Sections ---------- */

.section {
  padding-block: clamp(3rem, 1rem + 8vw, 8rem);
}

.section > .wrap {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .section > .wrap {
    grid-template-columns: 13rem minmax(0, 1fr);
    column-gap: clamp(2rem, 5vw, 5rem);
  }
}

.section-head {
  border-top: 1px solid var(--rule-strong);
  padding-top: 1rem;
  align-self: start;
}

@media (min-width: 900px) {
  .section-head { position: sticky; top: 2rem; }
}

.section-head h2 {
  font-family: var(--sans);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.4;
}

.section-body { min-width: 0; }

.prose p {
  max-width: var(--measure);
  text-wrap: pretty;
}
.prose p + p { margin-top: 1.25rem; }

/* The team */

.statement {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--step-3);
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 20ch;
  margin-bottom: clamp(2.25rem, 6vh, 3.5rem);
  font-variation-settings: "opsz" 60;
  text-wrap: balance;
}
.statement em {
  font-style: italic;
  color: var(--accent);
}

.functions {
  margin-block: clamp(2rem, 5vh, 3rem);
  padding-block: 1.5rem;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  font-family: var(--serif);
  font-size: var(--step-2);
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.functions li {
  display: inline;
  margin-right: 0.45em;
}
.functions li:last-child { margin-right: 0; }

.functions .dot { color: var(--accent); }

.closing {
  margin-top: clamp(2rem, 5vh, 3rem);
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--step-1);
  line-height: 1.45;
  max-width: 28ch;
}

/* What we have built */

.capabilities { counter-reset: cap; }

.capabilities li {
  counter-increment: cap;
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  column-gap: 1rem;
  padding-block: clamp(1.75rem, 4vh, 2.5rem);
  border-top: 1px solid var(--rule);
}
.capabilities li:first-child { border-top-color: var(--rule-strong); padding-top: 1rem; }
.capabilities li:last-child { border-bottom: 1px solid var(--rule); }

.capabilities li::before {
  content: counter(cap, decimal-leading-zero);
  grid-row: 1 / span 2;
  font-family: var(--mono);
  font-size: var(--step--1);
  color: var(--accent);
  padding-top: 0.55em;
  font-variant-numeric: tabular-nums;
}

.capabilities h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--step-2);
  line-height: 1.15;
  letter-spacing: -0.015em;
  max-width: 26ch;
  text-wrap: balance;
}

.capabilities p {
  margin-top: 0.85rem;
  max-width: var(--measure);
  color: var(--muted);
  text-wrap: pretty;
}

@media (min-width: 900px) {
  .capabilities li { grid-template-columns: 4rem minmax(0, 1fr); }
}

/* What we take on */

.contact {
  margin-top: clamp(2.5rem, 7vh, 4rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}

.contact .email {
  display: inline-block;
  font-family: var(--serif);
  font-size: var(--step-2);
  letter-spacing: -0.015em;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.contact .signature {
  margin-top: 1.25rem;
  font-size: var(--step--1);
  color: var(--muted);
}

/* ---------- Footer ---------- */

.site-footer {
  padding-block: 2rem 3rem;
  font-size: var(--step--1);
  color: var(--muted);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  border-top: 1px solid var(--rule);
  padding-top: 1.5rem;
}

.site-footer .wrap { padding-inline: 0; margin-inline: var(--gutter); width: auto; }
@media (min-width: 80rem) {
  .site-footer .wrap { margin-inline: auto; max-width: calc(80rem - 2 * var(--gutter)); }
}

.site-footer a { color: var(--ink); }
.site-footer .copy { margin-left: auto; }
@media (max-width: 559px) {
  .site-footer .copy { margin-left: 0; flex-basis: 100%; }
}

/* ---------- Legal page ---------- */

.legal-hero {
  padding-top: clamp(3.5rem, 10vh, 7rem);
  padding-bottom: clamp(2rem, 5vh, 3rem);
}

.legal-hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--step-3);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.toc ul {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.5rem;
  font-size: var(--step--1);
}
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--ink); }

.legal .section { padding-block: clamp(2.5rem, 7vh, 4.5rem); }

.legal .lead {
  font-family: var(--serif);
  font-size: var(--step-1);
  line-height: 1.5;
  max-width: var(--measure);
  text-wrap: pretty;
}

.terms {
  margin-top: 2rem;
  border-top: 1px solid var(--rule);
}

.terms > div {
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--rule);
}

.terms h3 {
  font-family: var(--sans);
  font-size: var(--step-0);
  font-weight: 500;
  line-height: 1.4;
}

.terms p, .terms ul { margin-top: 0.5rem; max-width: var(--measure); color: var(--muted); }
.terms strong { color: var(--ink); font-weight: 500; }

.plan .price {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.75rem;
}
.plan .amount {
  font-family: var(--serif);
  font-size: var(--step-2);
  line-height: 1.1;
  color: var(--ink);
  font-variant-numeric: lining-nums;
}
.plan .unit { color: var(--muted); font-size: var(--step--1); }
.plan .tag {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}
.plan ul li { padding-left: 1rem; position: relative; }
.plan ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 0.45rem;
  border-top: 1px solid var(--rule-strong);
}
.plan .plan-link { display: inline-block; margin-top: 0.75rem; font-size: var(--step--1); }

.legal .note { margin-top: 1.5rem; max-width: var(--measure); }

.contact-lines p { max-width: var(--measure); }
.contact-lines strong { font-weight: 500; }

/* ---------- Motion: a quiet rise on scroll, only when allowed ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.45s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
  }
  .js .reveal.in {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .site-nav, .toc { display: none; }
  body { background: #fff; color: #000; }
}

/* ---------- Line under the figures ---------- */
.figures-note {
  margin-top: 1.25rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  color: var(--muted);
}

/* ---------- First screen: headline, intro and figures fit one view on any device ---------- */

.home { --header-h: 5.5rem; }
@media (min-width: 720px) { .home { --header-h: 4.75rem; } }

.home .site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 2; }

@media (max-width: 719px) {
  .home .site-header { padding-block: 0.85rem 0; }
  .home .site-header .wrap { gap: 0.15rem 1rem; }
  .home .wordmark { font-size: 1.1rem; line-height: 1.3; }
  .home .site-nav ul { gap: 0 1rem; }
  .home .site-nav a { display: inline-block; padding-block: 0.4rem; font-size: 0.8rem; }
}

.fold {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: var(--header-h);
}

.fold .hero {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(0.75rem, 2.5svh, 3rem);
}

.fold .hero h1 {
  max-width: none;
  font-size: clamp(1.9rem, min(9vw, 5.6svh), 3rem);
  line-height: 1.04;
}

.fold .hero .intro {
  margin-top: clamp(0.75rem, 2.2svh, 2rem);
  font-size: clamp(1rem, min(4.4vw, 2.9svh), 1.3rem);
  line-height: 1.45;
}

.fold-figures { padding-bottom: clamp(0.75rem, 2svh, 2rem); }

.fold .figures .fig { padding-block: clamp(0.65rem, 1.9svh, 2rem); gap: 0.35rem; }
.fold .figures .n { font-size: clamp(1.9rem, min(1.2rem + 3.4vw, 6.4svh), 4.25rem); }
.fold .figures .l { max-width: 26ch; font-size: 0.8rem; line-height: 1.3; text-wrap: balance; }

.fold .figures-note {
  margin-top: clamp(0.6rem, 1.6svh, 1.25rem);
  font-size: clamp(1.05rem, min(1rem + 0.6vw, 3svh), 1.5rem);
  line-height: 1.3;
}

@media (min-width: 720px) {
  .fold .hero h1 { font-size: clamp(2.75rem, min(7.6vw, 9svh), 5rem); }
  .fold .hero .intro { font-size: clamp(1.1rem, min(1rem + 0.6vw, 3svh), 1.5rem); line-height: 1.5; }
  .fold .figures .n { font-size: clamp(2.1rem, min(1.2rem + 3.4vw, 8svh), 4.25rem); }
  .fold .figures .l { font-size: var(--step--1); line-height: 1.35; }
}

@media (min-width: 900px) {
  .fold .hero h1 { font-size: clamp(2.75rem, min(6.2vw, 11svh), 5rem); }
}

@media (min-width: 1200px) {
  .fold .hero .intro { max-width: 44rem; }
}

/* ---------- Balance: even line breaks on headings and short statements ---------- */

h2, h3, .statement, .closing, .figures-note { text-wrap: balance; }
.prose p, .capabilities p, .legal p { text-wrap: pretty; }

/* Small phones: capability text uses the full width under its number and title */
@media (max-width: 599px) {
  .capabilities li { grid-template-columns: 2.25rem minmax(0, 1fr); column-gap: 0.75rem; }
  .capabilities li::before { grid-row: 1; }
  .capabilities p { grid-column: 1 / -1; }
}

/* The line under the figures: three phrases, three tones from the same palette */
.figures-note span { white-space: nowrap; }
.figures-note .a { color: var(--ink); }
.figures-note .b { color: var(--accent); }
.figures-note .c { color: var(--muted); }

/* ================= Balance pass, 2026-11-18 ================= */

/* Body text was too small beside the display type on laptops */
:root { --step-0: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem); }

/* One rhythm between sections (was up to 16rem of empty space between two sections) */
.section { padding-block: clamp(2.75rem, 1rem + 5vw, 5.5rem); }

/* First screen: equal air above the headline and below the last line */
.fold .hero { padding-block: clamp(0.5rem, 2svh, 2.5rem); }
.fold-figures { padding-bottom: clamp(1rem, 3.5svh, 3rem); }
@media (min-width: 720px) {
  .fold .figures .l { font-size: 0.9375rem; }
}

/* The depth statement sits on the same column as every section body */
.depth { padding-top: clamp(2.5rem, 6vw, 5rem); padding-bottom: clamp(0.5rem, 2vw, 2rem); }
.depth p {
  margin-left: 0;
  max-width: 40ch;
  font-size: clamp(1.3rem, 1.05rem + 1.1vw, 2rem);
  line-height: 1.38;
  letter-spacing: -0.01em;
}
@media (min-width: 900px) {
  .depth-wrap {
    display: grid;
    grid-template-columns: 13rem minmax(0, 1fr);
    column-gap: clamp(2rem, 5vw, 5rem);
  }
  .depth { grid-column: 2; }
}

/* The seven functions never break in the middle of a name */
.functions { display: flex; flex-wrap: wrap; gap: 0.15em 0.55em; }
.functions li { display: block; margin-right: 0; white-space: nowrap; }

/* Wide screens: number, title and text share one row, so the page uses its width */
@media (min-width: 1280px) {
  .capabilities li {
    grid-template-columns: 4rem minmax(0, 5fr) minmax(0, 6fr);
    column-gap: clamp(1.5rem, 2.5vw, 2.5rem);
    align-items: start;
  }
  .capabilities li::before { grid-row: 1; }
  .capabilities h3 { max-width: none; font-size: clamp(1.6rem, 1.1rem + 1.1vw, 2.1rem); }
  .capabilities p { margin-top: 0.4rem; max-width: none; }
}

/* Closing section: the statement leads, the address is the largest thing after it */
.contact .email { font-size: clamp(1.35rem, 5.6vw, 3rem); }
.contact .signature { font-size: var(--step-0); }
#take-on .statement { margin-bottom: clamp(1.5rem, 4vh, 2.5rem); }

@media (min-width: 1280px) {
  .section > .wrap, .depth-wrap { grid-template-columns: 12rem minmax(0, 1fr); column-gap: 4rem; }
}

/* A statement's second sentence always starts on its own line */
.statement em { display: block; }

/* Figures: the same air above each number as below its label; every label one line */
.fold .figures .fig { padding-block: clamp(0.85rem, 2.8svh, 2.25rem) clamp(0.7rem, 2.3svh, 1.9rem); gap: 0.1rem; }
.fold .figures .l { max-width: none; }
