/* Ternion Vergence: monochrome, editorial. Libre Baskerville for display, Almarai for text. */
@font-face { font-family: "Libre Baskerville"; font-weight: 400 700; font-style: normal; font-display: swap; src: url(fonts/LibreBaskerville-400.woff2) format("woff2"); }
@font-face { font-family: "Libre Baskerville"; font-weight: 400; font-style: italic; font-display: swap; src: url(fonts/LibreBaskerville-400i.woff2) format("woff2"); }
@font-face { font-family: "Almarai"; font-weight: 300; font-display: swap; src: url(fonts/Almarai-300.woff2) format("woff2"); }
@font-face { font-family: "Almarai"; font-weight: 400; font-display: swap; src: url(fonts/Almarai-400.woff2) format("woff2"); }
@font-face { font-family: "Almarai"; font-weight: 700; font-display: swap; src: url(fonts/Almarai-700.woff2) format("woff2"); }

:root {
  --ink: #0b0b0c;
  --ink-2: #1a1a1d;
  --paper: #f5f3ef;
  --white: #ffffff;
  --muted: #5d5b57;
  --muted-on-dark: #a8a6a1;
  --line: #dcd8d0;
  --line-on-dark: #2c2c30;
  --serif: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --sans: "Almarai", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
  --pad: clamp(20px, 5vw, 48px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.7; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; letter-spacing: -0.01em; margin: 0; }
p { margin: 0 0 1.1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.eyebrow { font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin: 0 0 20px; }
.on-dark .eyebrow { color: var(--muted-on-dark); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--white); padding: 8px 14px; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(11, 11, 12, 0.92); backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px); color: var(--white); border-bottom: 1px solid var(--line-on-dark); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand svg { width: 34px; height: auto; }
.brand span { font-family: var(--serif); font-size: 19px; letter-spacing: 0.01em; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 36px); font-size: 15px; }
.nav a { text-decoration: none; color: var(--muted-on-dark); transition: color .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--white); }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border: 1px solid currentColor; border-radius: 999px; font-family: var(--sans); font-size: 15px; font-weight: 700; letter-spacing: 0.02em; text-decoration: none; transition: background .2s, color .2s; }
.btn-light { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn-light:hover { background: transparent; color: var(--white); }
.btn-ghost { color: var(--white); border-color: var(--line-on-dark); }
.btn-ghost:hover { border-color: var(--white); }
.btn-dark { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn-dark:hover { background: transparent; color: var(--ink); }
.nav .btn { padding: 9px 18px; color: var(--ink); font-size: 14px; }
.nav .btn:hover { color: var(--white); }
.arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* Hero */
.hero { position: relative; background: var(--ink); color: var(--white); overflow: hidden; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; min-height: min(calc(100vh - 72px), 720px); padding-top: 48px; padding-bottom: 72px; }
.hero h1 { font-size: clamp(40px, 6.2vw, 80px); margin-bottom: 28px; }
.hero h1 em { font-style: italic; color: var(--muted-on-dark); }
.hero .lede { font-size: clamp(17px, 1.6vw, 20px); font-weight: 300; line-height: 1.65; color: #d6d4cf; max-width: 560px; margin-bottom: 40px; }
.hero .actions, .cta .actions { display: flex; flex-wrap: wrap; gap: 14px; }
.convergence { width: 100%; max-width: 460px; justify-self: end; color: var(--white); }
.convergence .ray { stroke: currentColor; stroke-width: 1; fill: none; opacity: .28; }
.convergence .ray.main { opacity: .9; stroke-width: 1.4; stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 2.2s cubic-bezier(.6,.1,.2,1) forwards; }
.convergence .ray.main:nth-of-type(2) { animation-delay: .25s; }
.convergence .ray.main:nth-of-type(3) { animation-delay: .5s; }
.convergence .node { fill: var(--ink); stroke: currentColor; stroke-width: 1.4; }
.convergence .label { font-family: var(--sans); font-size: 11px; letter-spacing: .16em; fill: var(--muted-on-dark); text-transform: uppercase; }
.convergence .mark { opacity: 0; animation: fade 1s 1.9s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .convergence .ray.main { animation: none; stroke-dashoffset: 0; } .convergence .mark { animation: none; opacity: 1; } html { scroll-behavior: auto; } }

/* Sections */
section { padding: clamp(72px, 10vw, 128px) 0; }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 64px; }
.section-head h2 { font-size: clamp(32px, 4.2vw, 52px); }
.section-head p { color: var(--muted); font-size: 18px; margin: 0; max-width: 520px; }

.forces { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.force { padding: 40px 36px 44px 0; border-right: 1px solid var(--line); }
.force + .force { padding-left: 36px; }
.force:last-child { border-right: 0; padding-right: 0; }
.force .num { font-family: var(--serif); font-style: italic; color: var(--muted); font-size: 15px; margin-bottom: 36px; }
.force h3 { font-size: 26px; margin-bottom: 16px; }
.force p { color: var(--muted); }
.force ul { list-style: none; padding: 0; margin: 24px 0 0; font-size: 15px; }
.force li { padding: 10px 0; border-top: 1px solid var(--line); }

.dark { background: var(--ink); color: var(--white); }
.dark .section-head p { color: var(--muted-on-dark); }
.needs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-on-dark); border: 1px solid var(--line-on-dark); }
.need { background: var(--ink); padding: 40px 36px; }
.need h3 { font-size: 22px; margin-bottom: 14px; }
.need p { color: var(--muted-on-dark); margin: 0; font-size: 16px; }

.approach { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 7vw, 96px); }
.approach blockquote { margin: 0; font-family: var(--serif); font-size: clamp(24px, 2.8vw, 34px); line-height: 1.35; }
.approach blockquote footer { margin-top: 24px; font-family: var(--sans); font-size: 14px; color: var(--muted); }
.principles { counter-reset: p; list-style: none; margin: 0; padding: 0; }
.principles li { counter-increment: p; display: grid; grid-template-columns: 56px 1fr; gap: 8px; padding: 28px 0; border-top: 1px solid var(--line); }
.principles li:last-child { border-bottom: 1px solid var(--line); }
.principles li::before { content: counter(p, decimal-leading-zero); font-family: var(--serif); font-style: italic; color: var(--muted); padding-top: 3px; }
.principles h3 { font-size: 21px; margin-bottom: 8px; }
.principles p { color: var(--muted); margin: 0; }

.people { background: var(--white); }
.people .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 96px); align-items: center; }
.people h2 { font-size: clamp(32px, 4.2vw, 52px); }
.roles { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.roles span { border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: 14px; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); margin-top: 8px; }
.values div { padding: 22px 0 0; }
.values strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 22px; margin-bottom: 6px; }
.values span { font-size: 14px; color: var(--muted); }

.cta { text-align: center; }
.cta .mark { width: 56px; margin: 0 auto 36px; }
.cta h2 { font-size: clamp(32px, 5vw, 60px); max-width: 900px; margin: 0 auto 24px; }
.cta p { color: var(--muted-on-dark); max-width: 560px; margin: 0 auto 40px; }

/* About page */
.page-hero { background: var(--ink); color: var(--white); padding: clamp(72px, 10vw, 120px) 0 clamp(56px, 8vw, 96px); }
.page-hero h1 { font-size: clamp(36px, 5.4vw, 68px); max-width: 980px; }
.page-hero h1 em { font-style: italic; color: var(--muted-on-dark); }
.prose-grid { display: grid; grid-template-columns: 260px 1fr; gap: clamp(32px, 6vw, 80px); }
.prose-grid aside { position: sticky; top: 112px; align-self: start; font-size: 14px; color: var(--muted); }
.prose-grid aside a { display: block; text-decoration: none; padding: 8px 0; border-top: 1px solid var(--line); }
.prose-grid aside a:hover { color: var(--ink); }
.prose { max-width: 720px; }
.prose .lead { font-family: var(--serif); font-size: clamp(21px, 2.2vw, 26px); line-height: 1.5; margin-bottom: 1.4em; }
.prose h2 { font-size: 28px; margin: 2.2em 0 .7em; scroll-margin-top: 100px; }
.prose p { font-size: 18px; color: #2b2a28; }
.prose .closing { font-family: var(--serif); font-style: italic; font-size: 24px; color: var(--ink); margin-top: 1.6em; }

/* Products */
.product-feature { display: grid; grid-template-columns: 1fr 1fr; background: var(--ink); color: var(--white); border-radius: 4px; overflow: hidden; text-decoration: none; }
.product-feature .copy { padding: clamp(32px, 5vw, 56px); display: flex; flex-direction: column; }
.product-feature .copy p { color: var(--muted-on-dark); }
.product-feature h3 { font-size: clamp(30px, 3.4vw, 42px); margin: 18px 0 8px; }
.product-feature .tag { font-family: var(--serif); font-style: italic; color: var(--white); font-size: 19px; margin-bottom: 18px; }
.product-feature .link { margin-top: auto; padding-top: 24px; font-weight: 700; font-size: 15px; }
.product-feature .visual { background: var(--ink-2); display: flex; align-items: center; justify-content: center; padding: 32px; border-left: 1px solid var(--line-on-dark); }
.product-feature:hover .arrow { transform: translateX(3px); }
.product-id { display: flex; align-items: center; gap: 14px; }
.product-id img { width: 44px; height: 44px; }
.badge { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; border: 1px solid var(--line-on-dark); color: var(--muted-on-dark); border-radius: 999px; padding: 5px 12px; }
.badge.light { border-color: var(--line); color: var(--muted); }
.fan { width: 100%; max-width: 440px; }
.fan .grid { stroke: #2f2f34; stroke-width: 1; }
.fan .hist { fill: #4a4a50; }
.fan .band-outer { fill: rgba(255,255,255,.08); }
.fan .band-inner { fill: rgba(255,255,255,.16); }
.fan .p70 { stroke: var(--white); stroke-width: 2; fill: none; }
.fan .now { stroke: var(--muted-on-dark); stroke-dasharray: 3 4; }
.fan text { font-family: var(--sans); font-size: 11px; fill: var(--muted-on-dark); letter-spacing: .06em; }
.product-list { display: grid; gap: 24px; }
.product-next { border: 1px dashed var(--line); border-radius: 4px; padding: clamp(28px, 4vw, 44px); display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.product-next h3 { font-size: 26px; margin: 12px 0 8px; }
.product-next p { color: var(--muted); margin: 0; max-width: 640px; }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.cards3 > div { background: var(--paper); padding: 36px 32px; }
.cards3 h3 { font-size: 22px; margin-bottom: 12px; }
.cards3 p { color: var(--muted); margin: 0; font-size: 16px; }
.white { background: var(--white); }
.white .cards3 > div { background: var(--white); }
.dark .cards3 { background: var(--line-on-dark); border-color: var(--line-on-dark); }
.dark .cards3 > div { background: var(--ink); }
.dark .cards3 p { color: var(--muted-on-dark); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: s; }
.steps li { counter-increment: s; border-top: 1px solid var(--ink); padding-top: 22px; }
.steps li::before { content: "Step " counter(s); display: block; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.steps h3 { font-size: 21px; margin-bottom: 10px; }
.steps p { color: var(--muted); margin: 0; font-size: 16px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-on-dark); }
.stats div { padding: 28px 28px 0 0; }
.stats strong { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 5vw, 60px); line-height: 1; margin-bottom: 12px; }
.stats span { color: var(--muted-on-dark); font-size: 15px; }
.note { font-size: 14px; color: var(--muted-on-dark); margin-top: 32px; max-width: 760px; }
.page-hero .lede { font-size: clamp(17px, 1.6vw, 20px); font-weight: 300; color: #d6d4cf; max-width: 640px; margin: 24px 0 36px; }
.page-hero .actions { display: flex; flex-wrap: wrap; gap: 14px; }
.page-hero .product-id { margin-bottom: 24px; }
.hero-split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
@media (max-width: 960px) {
  .product-feature, .hero-split { grid-template-columns: 1fr; }
  .product-feature .visual { border-left: 0; border-top: 1px solid var(--line-on-dark); }
  .cards3, .steps, .stats { grid-template-columns: 1fr; }
  .product-next { grid-template-columns: 1fr; }
}
@media (min-width: 601px) and (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } }

/* Lines of business */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.pillar { display: flex; flex-direction: column; padding: 36px 28px 40px 0; border-right: 1px solid var(--line); text-decoration: none; }
.pillar + .pillar { padding-left: 28px; }
.pillar:last-child { border-right: 0; padding-right: 0; }
.pillar .num { font-family: var(--serif); font-style: italic; color: var(--muted); font-size: 15px; margin-bottom: 28px; }
.pillar h3 { font-size: 26px; margin-bottom: 12px; }
.pillar p { color: var(--muted); font-size: 16px; }
.pillar .link { margin-top: auto; font-weight: 700; font-size: 14px; padding-top: 12px; }
.pillar:hover h3 { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.pillar:hover .arrow { transform: translateX(3px); }

/* Product cards */
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.product-card { display: flex; flex-direction: column; background: var(--ink); color: var(--white); border-radius: 4px; padding: clamp(28px, 4vw, 44px); text-decoration: none; min-height: 360px; }
.product-card h3 { font-size: clamp(28px, 3vw, 36px); margin: 22px 0 6px; }
.product-card .tag { font-family: var(--serif); font-style: italic; font-size: 18px; margin-bottom: 16px; }
.product-card p { color: var(--muted-on-dark); }
.product-card .for { font-size: 14px; }
.product-card .link { margin-top: auto; padding-top: 16px; font-weight: 700; font-size: 15px; }
.product-card:hover .arrow { transform: translateX(3px); }
.product-card.alt { background: var(--ink-2); }

/* Comparison */
.compare { width: 100%; border-collapse: collapse; font-size: 16px; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 18px 20px 18px 0; border-top: 1px solid var(--line); }
.compare thead th { border-top: 1px solid var(--ink); font-family: var(--serif); font-weight: 400; font-size: 22px; }
.compare tbody th { font-weight: 700; font-size: 14px; letter-spacing: .04em; color: var(--muted); width: 22%; }
.compare td { color: #2b2a28; }
.compare a { font-weight: 700; }

/* Simple lists */
.ticks { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 48px; }
.ticks li { break-inside: avoid; padding: 14px 0 14px 28px; border-top: 1px solid var(--line); position: relative; }
.ticks li::before { content: "—"; position: absolute; left: 0; color: var(--muted); }
.coming { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-on-dark); }
.coming::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--white); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }

/* Footer columns */
.footer-cols { display: flex; gap: clamp(32px, 6vw, 80px); }
.footer-cols nav { display: flex; flex-direction: column; gap: 10px; }
.footer-cols strong { color: var(--white); font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 4px; }
.footer-cols a { text-decoration: none; }
.footer-cols a:hover { color: var(--white); }

@media (max-width: 1100px) { .pillars { grid-template-columns: 1fr 1fr; } .pillar:nth-child(2) { border-right: 0; } .pillar:nth-child(3) { padding-left: 0; } .pillar:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
@media (max-width: 960px) {
  .product-grid { grid-template-columns: 1fr; }
  .ticks { columns: 1; }
  .compare thead { display: none; }
  .compare tr { display: block; border-top: 1px solid var(--line); padding: 14px 0; }
  .compare th, .compare td { display: block; border: 0; padding: 4px 0; width: auto; }
  .compare td::before { content: attr(data-label) ": "; font-weight: 700; }
}
@media (max-width: 900px) {
  .site-header .wrap { position: relative; height: auto; flex-wrap: wrap; padding-top: 14px; padding-bottom: 0; gap: 8px; }
  .nav { width: 100%; overflow-x: auto; gap: 22px; padding: 8px 0 12px; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav .btn { position: absolute; top: 10px; right: var(--pad); }
}
@media (max-width: 600px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar, .pillar + .pillar { padding: 28px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .footer-cols { flex-direction: column; }
}

/* Footer */
.site-footer { background: var(--ink); color: var(--muted-on-dark); border-top: 1px solid var(--line-on-dark); padding: 56px 0 40px; font-size: 14px; }
.site-footer .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; padding-bottom: 40px; border-bottom: 1px solid var(--line-on-dark); }
.site-footer .brand { color: var(--white); }
.site-footer .tagline { font-family: var(--serif); font-style: italic; color: var(--white); font-size: 18px; margin: 18px 0 0; }
.site-footer .bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; }

/* Responsive */
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; min-height: 0; padding-top: 56px; }
  .convergence { justify-self: center; max-width: 300px; }
  .section-head, .approach, .people .wrap, .prose-grid { grid-template-columns: 1fr; }
  .section-head { gap: 20px; margin-bottom: 44px; }
  .forces, .needs { grid-template-columns: 1fr; }
  .force, .force + .force { padding: 32px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .force:last-child { border-bottom: 0; }
  .prose-grid aside { position: static; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .brand span { font-size: 17px; }
  .nav { gap: 18px; font-size: 14px; }
  .values { grid-template-columns: 1fr; }
  .values div { padding: 16px 0; border-bottom: 1px solid var(--line); }
}
