/* =========================================================
   SOLVION — marketing site layer on top of /colors_and_type.css
   Only styles this page actually uses. Layout lives here, never
   in inline style attributes.

   SPECIFICITY NOTE
   colors_and_type.css sets element defaults as `.solvion p`,
   `.solvion .lede`, `.solvion h3` … — all (0,2,0) or (0,1,1),
   including `margin: 0` and `color`. A bare `.my-class { margin }`
   loses to those. Every rule below that sets margin or colour on a
   typographic element is therefore scoped under `.solvion` too.
   Do not "simplify" these selectors — the margins will silently
   collapse.

   BREAKPOINTS
   ≥1101  full desktop
    901   desktop floor — full screen (landscape) or 16:9 (portrait)
    701   tablet — sections return to natural padded flow
    541   large phone
    ≤540  phone
   ========================================================= */

html { scroll-behavior: smooth; }
html, body { background: var(--paper-850); }
body { margin: 0; font-family: var(--font-sans); color: var(--ink-950); -webkit-font-smoothing: antialiased; }
*, *::before, *::after { box-sizing: border-box; }

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

/* Skip link — visible only on keyboard focus */
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  display: inline-flex; align-items: center; height: 40px; padding: 0 18px;
  background: var(--ink-950); color: var(--paper-950);
  font-size: 14px; font-weight: 500; text-decoration: none; border-radius: 8px;
  transition: top var(--dur) var(--ease-out);
}
.solvion a.skip-link { color: var(--paper-950); text-decoration: none; }
.skip-link:focus-visible { top: 12px; }

/* =========================================================
   Layout primitives
   ========================================================= */
.site { min-height: 100vh; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.section { padding: 112px 0; border-top: 1px solid var(--line); }

/* =========================================================
   Type helpers
   ========================================================= */
.eyebrow, .solvion .eyebrow {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-600);
}
.solvion .eyebrow--block { display: block; margin: 0 0 32px; }
.editorial { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }

/* The vw floor matters: "infrastructure" is 14 characters and must fit a
   320px phone without widening the document. overflow-wrap is the net. */
.display-xl, .solvion .display-xl {
  font-size: clamp(38px, 9.2vw, 112px);
  line-height: 0.94; letter-spacing: -0.035em; font-weight: 500;
  margin: 0; text-wrap: balance; overflow-wrap: break-word;
}
.display, .solvion .display {
  font-size: clamp(32px, 5.6vw, 80px);
  line-height: 0.98; letter-spacing: -0.032em; font-weight: 500;
  margin: 0; text-wrap: balance; overflow-wrap: break-word;
}
.h3, .solvion .h3 { font-size: 24px; line-height: 1.15; letter-spacing: -0.018em; font-weight: 500; margin: 0; }
.lede, .solvion .lede { font-size: 21px; line-height: 1.5; letter-spacing: -0.005em; color: var(--ink-600); margin: 0; text-wrap: pretty; }
.body, .solvion .body { font-size: 18px; line-height: 1.6; color: var(--ink-600); margin: 0; text-wrap: pretty; }
.mono, .solvion .mono { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.02em; }
.tab-num { font-variant-numeric: tabular-nums; }

/* Accent rule — the only ornament on the page, and it carries the brand colour */
.rule-accent { width: 96px; height: 4px; background: var(--signal-700); border: 0; margin: 0; }

/* -------- Inverted surface --------
   Declared AFTER the type helpers on purpose: these override the
   colours set just above at equal specificity, so source order decides. */
.section--dark {
  background: var(--ink-950);
  color: var(--paper-950);
  border-top-color: var(--ink-950);
}
.solvion .section--dark .display,
.solvion .section--dark .h3 { color: var(--paper-950); }
.solvion .section--dark .lede,
.solvion .section--dark .body { color: var(--ink-300); }
.solvion .section--dark .eyebrow { color: var(--ink-400); }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: inherit; font-weight: 500; font-size: 15px; letter-spacing: -0.005em;
  height: 48px; padding: 0 22px; border-radius: 8px; border: 1px solid transparent;
  cursor: pointer; line-height: 1; text-decoration: none;
  transition: background var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.btn, .solvion a.btn { color: var(--ink-950); text-decoration: none; }
.solvion a.btn:hover { text-decoration: none; }
.btn svg { flex-shrink: 0; }
.btn--sm { height: 38px; padding: 0 16px; font-size: 14px; }

.solvion a.btn--primary, .btn--primary { background: var(--ink-950); color: var(--paper-950); border-color: var(--ink-950); }
.btn--primary:hover { background: var(--ink-800); border-color: var(--ink-800); }

.solvion a.btn--accent, .btn--accent { background: var(--signal-700); color: var(--paper-950); border-color: var(--signal-700); }
.btn--accent:hover { background: var(--signal-800); border-color: var(--signal-800); }

.solvion a.btn--secondary, .btn--secondary { background: transparent; color: var(--ink-950); border-color: var(--line-strong); }
.btn--secondary:hover { background: rgba(11,13,16,0.05); border-color: var(--ink-950); }

/* =========================================================
   Top nav
   ========================================================= */
.nav {
  position: sticky; top: 0; z-index: 50; height: 68px;
  backdrop-filter: blur(16px) saturate(140%);
  /* Near-opaque on purpose: at 82% the bar turned muddy grey where it
     crossed the inverted section. Blur still softens what scrolls under. */
  background: color-mix(in oklab, var(--paper-850) 95%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav__row { display: flex; align-items: center; gap: 24px; height: 100%; }
.nav__brand, .solvion a.nav__brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 500; letter-spacing: -0.025em; font-size: 17px;
  color: var(--ink-950); text-decoration: none;
}
.solvion a.nav__brand:hover { text-decoration: none; }
.nav__spacer { flex: 1; }
.nav__links { display: flex; gap: 24px; }
.solvion .nav__links a { font-size: 14px; color: var(--ink-950); text-decoration: none; }
.solvion .nav__links a:hover { text-decoration: underline; }
.nav__toggle {
  display: none; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: -12px;
  padding: 0; border: 0; background: none; color: var(--ink-950); cursor: pointer;
}
.nav__icon-close, .nav__toggle[aria-expanded="true"] .nav__icon-open { display: none; }
.nav__toggle[aria-expanded="true"] .nav__icon-close { display: inline; }
.section { scroll-margin-top: 67px; }

/* =========================================================
   Hero
   ========================================================= */
.hero { padding: 96px 0; }
.solvion .hero__heading { max-width: 14ch; margin: 0 0 48px; }
.hero .rule-accent { margin-bottom: 48px; }
.solvion .hero__lede { max-width: 36ch; font-size: 23px; margin: 0; }
.hero__ctas { margin-top: 48px; display: flex; gap: 12px; flex-wrap: wrap; }

/* =========================================================
   About — broadsheet two-column body under a full-width statement
   ========================================================= */
.solvion .about__heading { max-width: 17ch; margin: 0 0 44px; }
.solvion .about__lede { max-width: 56ch; margin: 0 0 56px; }
.about__cols { columns: 2; column-gap: 72px; max-width: 980px; }
.solvion .about__cols p { break-inside: avoid; margin: 0 0 20px; }
.solvion .about__cols p:last-child { margin-bottom: 0; }

/* =========================================================
   Products — steps reuse the values grid, three across
   ========================================================= */
.solvion .products__heading,
.solvion .values__heading { font-size: clamp(32px, 4.4vw, 60px); }
.solvion .products__heading { max-width: 22ch; margin: 0 0 24px; }
.solvion .products__lede { max-width: 68ch; margin: 0 0 40px; }
.products__steps { margin-bottom: 32px; }

/* =========================================================
   Leadership — photo beside the bio, so both founders fit one block
   ========================================================= */
.solvion .leadership__heading { margin: 0 0 48px; }
.leadership__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; }
.leadership__person { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: start; }
.leadership__photo { display: block; width: 100%; height: auto; border-radius: var(--r-md); }
.solvion .leadership__role { font-family: var(--font-mono); font-size: 13px; color: var(--signal-700); margin: 8px 0 16px; }
.solvion .leadership__person .body { font-size: 16px; line-height: 1.55; }
@media (max-width: 1100px) {
  .leadership__grid { gap: 40px; }
  .leadership__person { grid-template-columns: 170px minmax(0, 1fr); gap: 22px; }
}
@media (max-width: 900px) {
  .leadership__person { grid-template-columns: 1fr; }
}

/* =========================================================
   Values — inverted, oversized numerals in the accent
   ========================================================= */
.solvion .values__heading { max-width: 16ch; margin: 0 0 64px; }
.values__grid {
  --grid-line: var(--line-strong);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--grid-line);
  border-left: 1px solid var(--grid-line);
}
.values__item {
  padding: 40px 40px 44px;
  border-right: 1px solid var(--grid-line);
  border-bottom: 1px solid var(--grid-line);
}
.values__n {
  display: block; font-family: var(--font-mono); font-weight: 500;
  font-size: 40px; line-height: 1; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--signal-700); margin-bottom: 24px;
}
.section--dark .values__grid { --grid-line: rgba(255,255,255,0.14); }
.section--dark .values__n { color: var(--signal-500); }
.products__steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.solvion .values__item h3 { margin: 0 0 12px; }
.solvion .values__item p { max-width: 48ch; margin: 0; }

/* =========================================================
   Contact
   ========================================================= */
.contact { padding: 112px 0; }
.solvion .contact__heading { max-width: 15ch; margin: 0 0 36px; }
.solvion .contact__lede { max-width: 48ch; margin: 0 0 44px; }
.contact__ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 72px; }
.contact__details {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px;
  max-width: 760px; padding-top: 32px; border-top: 1px solid var(--line-strong);
}
.solvion .contact__label {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-600); margin: 0 0 12px;
}
.solvion .contact__value {
  font-size: 15px; line-height: 1.65; color: var(--ink-950); margin: 0; font-style: normal;
}

/* =========================================================
   Footer
   ========================================================= */
.footer { padding: 72px 0 40px; border-top: 1px solid var(--line); }
.footer__row { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.solvion .footer__tagline { font-family: var(--font-mono); font-size: 12px; color: var(--ink-600); margin: 0; }
.footer__legal {
  display: flex; flex-wrap: wrap; gap: 8px 24px;
  padding-top: 32px; margin-top: 48px; border-top: 1px solid var(--line);
}
.footer__legal span { font-family: var(--font-mono); font-size: 12px; color: var(--ink-600); }
.footer__legal-spacer { flex: 1; }

/* =========================================================
   Focus
   ========================================================= */
:focus-visible {
  outline: 2px solid var(--signal-700);
  outline-offset: 3px;
  border-radius: 4px;
}
.section--dark :focus-visible { outline-color: var(--signal-500); }

/* =========================================================
   Desktop blocks, content vertically centred.
   Landscape window: one screen below the 68px sticky nav.
   Portrait window: 16:9 of the width, so tall screens get no dead space.
   min-height (not height) so longer content grows instead of clipping.
   ========================================================= */
@media (min-width: 901px) {
  .section-full { min-height: 56.25vw; display: flex; align-items: center; padding-top: 60px; padding-bottom: 60px; }
  .section-full > .container { width: 100%; }
  .solvion .values__heading { margin-bottom: 44px; }
  .values__item { padding: 36px 36px 40px; }
}

@media (min-width: 901px) and (orientation: landscape) {
  .section-full { min-height: calc(100vh - 68px); }
}

/* Short desktop windows — trade some whitespace for legibility */
@media (min-width: 901px) and (max-height: 860px) {
  .section-full { padding-top: 60px; padding-bottom: 60px; }
  .solvion .hero__heading,
  .hero .rule-accent { margin-bottom: 36px; }
  .hero__ctas { margin-top: 36px; }
  .solvion .about__lede { margin-bottom: 40px; }
  .solvion .values__heading { margin-bottom: 44px; }
  .solvion .contact__lede { margin-bottom: 32px; }
  .contact__ctas { margin-bottom: 52px; }
  .values__item { padding: 32px 32px 36px; }
  .values__n { font-size: 34px; margin-bottom: 18px; }
}

/* =========================================================
   Tablet — natural padded flow again; full-height sections would
   leave far too much dead space at this aspect ratio.
   ========================================================= */
@media (max-width: 900px) {
  .container { padding: 0 28px; }
  .section { padding: 96px 0; }
  .hero { padding: 72px 0 88px; }
  .contact { padding: 96px 0; }
  .footer { padding: 56px 0 32px; }
  .solvion .hero__heading { max-width: 12ch; margin-bottom: 40px; }
  .hero .rule-accent { margin-bottom: 40px; }
  .solvion .hero__lede { max-width: 46ch; font-size: 21px; }
  .solvion .about__heading { max-width: 15ch; }
  .about__cols { columns: 1; }
  .solvion .about__cols p { max-width: 62ch; }
  .solvion .about__cols p:last-child { margin-bottom: 0; }
  .solvion .values__heading { max-width: 14ch; margin-bottom: 48px; }
  .values__item { padding: 32px 28px 36px; }
  .values__n { font-size: 34px; margin-bottom: 20px; }
  .solvion .values__item p { max-width: none; }
  .contact__ctas { margin-bottom: 56px; }
}

/* =========================================================
   Large phone
   ========================================================= */
@media (max-width: 700px) {
  .container { padding: 0 22px; }
  .section { padding: 72px 0; }
  .hero { padding: 56px 0 72px; }
  .contact { padding: 72px 0; }
  .solvion .eyebrow--block { margin-bottom: 24px; }
  .solvion .hero__heading { max-width: none; margin-bottom: 32px; }
  .hero .rule-accent { width: 72px; height: 3px; margin-bottom: 32px; }
  .solvion .hero__lede { max-width: none; font-size: 19px; }
  .hero__ctas { margin-top: 36px; gap: 10px; }
  .solvion .about__heading,
  .solvion .values__heading,
  .solvion .contact__heading { max-width: none; margin-bottom: 28px; }
  .solvion .about__lede { font-size: 19px; margin-bottom: 32px; }
  .solvion .contact__lede { max-width: none; font-size: 19px; margin-bottom: 32px; }
  .solvion .body, .body { font-size: 17px; }
  .values__grid, .products__steps { grid-template-columns: 1fr; }
  .leadership__grid { grid-template-columns: 1fr; }
  .solvion .leadership__heading { margin-bottom: 36px; }
  /* Links move into a panel under the bar, opened by the toggle */
  .nav__toggle { display: inline-flex; }
  .nav__links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 8px 22px 16px;
    background: var(--paper-850); border-bottom: 1px solid var(--line-strong);
  }
  .nav__links.is-open { display: flex; }
  .solvion .nav__links a { padding: 14px 0; font-size: 18px; }
  .solvion .nav__links a + a { border-top: 1px solid var(--line); }
  .values__item { padding: 28px 22px 32px; }
  .values__n { font-size: 30px; margin-bottom: 16px; }
  .h3, .solvion .h3 { font-size: 21px; }
  .contact__ctas { margin-bottom: 44px; }
  .contact__details { grid-template-columns: 1fr; gap: 28px; padding-top: 28px; }
  .btn { width: 100%; justify-content: center; }
  .nav .btn { width: auto; }
  .nav__row { gap: 16px; }
  .footer__legal { margin-top: 36px; padding-top: 24px; }
}

/* =========================================================
   Phone
   ========================================================= */
@media (max-width: 540px) {
  .container { padding: 0 20px; }
  .solvion .lede { font-size: 18px; }
  .footer__row { align-items: flex-start; flex-direction: column; gap: 16px; }
}

@media (max-width: 420px) {
  .nav__brand span { display: none; }
}
