/* NextThink — shared site styles */
:root {
  --ink: #1a1b2e;
  --ink-80: #2a2b42;
  --ink-60: #5a5b72;
  --ink-40: #666776;
  --ink-20: #d4d5dc;
  --paper: #faf8f4;
  --white: #fff;
  --accent: #4f46e5;
  --rule: rgba(26, 27, 46, .1);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --shadow: 0 24px 70px rgba(26, 27, 46, .1);
  --radius: 20px;
  --ease: cubic-bezier(.23, 1, .32, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .18em; }
button { font: inherit; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 70%, white); outline-offset: 4px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--white); }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  transform: translateY(-160%);
  background: var(--ink);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 999px;
}
.skip-link:focus { transform: translateY(0); }

.wrap { width: min(100% - 80px, 1180px); margin-inline: auto; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-60);
  font: 600 11px/1.3 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 36px; height: 1px; background: currentColor; }
.eyebrow-light { color: rgba(255,255,255,.66); }
.display-serif { font-family: var(--serif); font-style: italic; font-weight: 400; }
.muted { color: var(--ink-60); }
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  background: rgba(250,248,244,.9);
  backdrop-filter: blur(14px) saturate(1.3);
}
.site-header.scrolled { border-bottom-color: var(--rule); }
.nav-shell {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand-link { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand-link img { width: 122px; height: 28px; object-fit: contain; }
.desktop-nav { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.desktop-nav a { color: var(--ink-60); font-size: 14px; font-weight: 600; text-decoration: none; }
.desktop-nav a:hover, .desktop-nav a[aria-current="page"] { color: var(--ink); }
.nav-cta, .button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 11px 20px;
  background: var(--ink);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms var(--ease), background 180ms ease, color 180ms ease;
}
.button:hover, .nav-cta:hover { transform: translateY(-2px); background: var(--ink-80); }
.button-secondary { background: transparent; color: var(--ink); }
.button-secondary:hover { background: var(--ink); color: var(--white); }
.button-light { background: var(--white); color: var(--ink); border-color: var(--white); }
.button-light:hover { background: #efeff4; }
.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.mobile-toggle-lines { display: grid; gap: 5px; }
.mobile-toggle-lines span { width: 24px; height: 2px; background: currentColor; transition: transform 180ms ease, opacity 180ms ease; }
.mobile-toggle[aria-expanded="true"] .mobile-toggle-lines span:first-child { transform: translateY(7px) rotate(45deg); }
.mobile-toggle[aria-expanded="true"] .mobile-toggle-lines span:nth-child(2) { opacity: 0; }
.mobile-toggle[aria-expanded="true"] .mobile-toggle-lines span:last-child { transform: translateY(-7px) rotate(-45deg); }
.mobile-panel { display: none; }

.hero {
  position: relative;
  min-height: calc(100svh - 76px);
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 86px 0 96px;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 4% auto auto -14%;
  width: min(58vw, 720px);
  aspect-ratio: 1;
  z-index: -2;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79,70,229,.2), rgba(79,70,229,0) 68%);
}
.hero-mark {
  position: absolute;
  right: max(-50px, calc((100vw - 1340px)/2));
  top: 50%;
  z-index: -1;
  width: min(37vw, 520px);
  aspect-ratio: 1;
  opacity: .055;
  transform: translateY(-50%);
}
.hero-mark img { width: 100%; height: 100%; object-fit: contain; }
.hero-copy { max-width: 1020px; }
.hero h1 {
  max-width: 1050px;
  margin: 36px 0 34px;
  font-size: clamp(56px, 8.4vw, 124px);
  font-weight: 420;
  line-height: .92;
  letter-spacing: -.055em;
}
.hero-lead { max-width: 690px; color: var(--ink-60); font-size: clamp(18px, 2vw, 22px); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 34px; color: var(--ink-60); font: 500 12px/1.4 var(--mono); }
.hero-proof span { display: inline-flex; align-items: center; gap: 8px; }
.hero-proof span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.logo-band { border-block: 1px solid var(--rule); padding: 34px 0; }
.logo-band-label { margin-bottom: 25px; color: var(--ink-40); text-align: center; font: 600 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.logo-grid { display: grid; grid-template-columns: repeat(5, minmax(100px, 1fr)); align-items: center; gap: 34px; }
.logo-grid img { width: auto; max-width: 155px; max-height: 42px; margin: auto; filter: grayscale(1) contrast(1.02); opacity: .58; }

.section { padding: 120px 0; }
.section-tight { padding: 84px 0; }
.section-dark { background: var(--ink); color: var(--white); }
.section-head { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, .7fr); align-items: end; gap: 60px; margin-bottom: 64px; }
.section-title { margin-top: 24px; font-size: clamp(42px, 5.5vw, 76px); font-weight: 430; line-height: 1; letter-spacing: -.045em; }
.section-intro { color: var(--ink-60); font-size: 18px; line-height: 1.65; }
.section-dark .section-intro { color: rgba(255,255,255,.68); }
.text-link { display: inline-flex; gap: 8px; margin-top: 22px; color: var(--ink); font-weight: 700; }
.section-dark .text-link { color: var(--white); }

.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--rule); }
.card {
  min-height: 390px;
  display: flex;
  flex-direction: column;
  padding: 42px 34px 34px;
  border-right: 1px solid var(--rule);
  background: var(--paper);
}
.card:last-child { border-right: 0; }
.card-index { color: var(--ink-40); font: 600 11px var(--mono); letter-spacing: .08em; }
.card h2, .card h3 { margin: 54px 0 18px; font-size: 27px; line-height: 1.18; letter-spacing: -.025em; }
.card p { color: var(--ink-60); font-size: 15px; line-height: 1.65; }
.card .text-link { margin-top: auto; padding-top: 28px; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 22px; }
.tag { padding: 5px 9px; border: 1px solid var(--ink-20); border-radius: 999px; color: var(--ink-60); font: 500 11px var(--mono); }

.process-list { border-top: 1px solid rgba(255,255,255,.15); }
.process-item { display: grid; grid-template-columns: 70px .9fr 1.25fr; gap: 30px; align-items: baseline; padding: 38px 0; border-bottom: 1px solid rgba(255,255,255,.15); }
.process-num { color: rgba(255,255,255,.48); font: 500 12px var(--mono); }
.process-item h3 { font-size: 30px; font-weight: 500; letter-spacing: -.03em; }
.process-item p { max-width: 570px; color: rgba(255,255,255,.68); }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--rule); }
.stat { padding: 42px 24px; border-right: 1px solid var(--rule); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; margin-bottom: 12px; font-size: clamp(48px, 5vw, 70px); font-weight: 440; line-height: 1; letter-spacing: -.05em; }
.stat span { color: var(--ink-60); font-size: 13px; line-height: 1.5; }
.data-note { margin-top: 18px; color: var(--ink-40); font-size: 12px; }

.case-feature { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: start; }
.case-label { color: var(--ink-60); font: 600 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.case-feature blockquote { font-size: clamp(30px, 4vw, 52px); line-height: 1.18; letter-spacing: -.03em; }
.case-attribution { margin-top: 30px; color: var(--ink-60); font: 500 12px var(--mono); }

.cta-section { position: relative; overflow: hidden; padding: 130px 0; text-align: center; }
.cta-section::before { content: ""; position: absolute; width: 560px; aspect-ratio: 1; left: 50%; top: 50%; transform: translate(-50%,-50%); border-radius: 50%; background: radial-gradient(circle, rgba(79,70,229,.2), transparent 70%); pointer-events: none; }
.cta-section .wrap { position: relative; }
.cta-section h2 { font-size: clamp(48px, 8vw, 104px); font-weight: 430; line-height: .95; letter-spacing: -.055em; }
.cta-section p { max-width: 620px; margin: 28px auto 0; color: var(--ink-60); font-size: 18px; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }

.page-hero { padding: 92px 0 80px; border-bottom: 1px solid var(--rule); }
.breadcrumbs { margin-bottom: 42px; color: var(--ink-60); font-size: 13px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 8px; color: var(--ink-40); }
.breadcrumbs a { text-decoration: none; }
.page-hero h1 { max-width: 1000px; font-size: clamp(48px, 7vw, 94px); font-weight: 430; line-height: .98; letter-spacing: -.05em; }
.page-hero-lead { max-width: 760px; margin-top: 30px; color: var(--ink-60); font-size: clamp(18px, 2.2vw, 23px); line-height: 1.55; }
.page-hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }

.split { display: grid; grid-template-columns: minmax(240px,.7fr) minmax(0,1.3fr); gap: 80px; }
.split-aside h2 { position: sticky; top: 110px; font-size: clamp(32px,4vw,52px); font-weight: 450; line-height: 1.05; letter-spacing: -.035em; }
.prose { max-width: 760px; }
.prose > * + * { margin-top: 22px; }
.prose h2 { margin-top: 52px; font-size: 34px; line-height: 1.15; letter-spacing: -.03em; }
.prose h3 { margin-top: 38px; font-size: 23px; line-height: 1.25; }
.prose p, .prose li { color: var(--ink-60); font-size: 17px; line-height: 1.72; }
.prose strong { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose blockquote { padding: 26px 0 26px 28px; border-left: 3px solid var(--accent); color: var(--ink); font: italic 25px/1.45 var(--serif); }
.section-dark .prose p,
.section-dark .prose li { color: rgba(255,255,255,.76); }
.section-dark .prose h2,
.section-dark .prose h3,
.section-dark .prose strong,
.section-dark .prose a { color: var(--white); }

.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.feature { background: var(--paper); color: var(--ink); padding: 34px; }
.feature h2, .feature h3 { margin-bottom: 12px; font-size: 23px; letter-spacing: -.02em; }
.feature p { color: var(--ink-60); line-height: 1.65; }

.deliverables { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.deliverable { padding: 28px; border: 1px solid var(--rule); border-radius: var(--radius); background: rgba(255,255,255,.45); }
.deliverable h3 { margin-bottom: 10px; font-size: 20px; }
.deliverable p { color: var(--ink-60); }

.faq-list { border-top: 1px solid var(--rule); }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-item summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 24px; padding: 25px 0; font-size: 19px; font-weight: 700; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex: 0 0 auto; color: var(--accent); font-size: 24px; font-weight: 400; }
.faq-item[open] summary::after { content: "−"; }
.faq-answer { max-width: 760px; padding: 0 0 26px; color: var(--ink-60); line-height: 1.7; }

.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.contact-card { min-height: 260px; display: flex; flex-direction: column; padding: 34px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.contact-card-label { color: var(--ink-40); font: 600 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.contact-card h2, .contact-card h3 { margin: 28px 0 12px; font-size: 30px; }
.contact-card p { color: var(--ink-60); }
.contact-card .text-link { margin-top: auto; }

.site-footer { border-top: 1px solid var(--rule); padding: 64px 0 34px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 50px; padding-bottom: 48px; }
.footer-brand img { width: 148px; height: 34px; object-fit: contain; margin-bottom: 18px; }
.footer-brand p { max-width: 310px; color: var(--ink-60); font-size: 14px; }
.footer-col h2 { margin-bottom: 16px; color: var(--ink-40); font: 600 11px var(--mono); letter-spacing: .13em; text-transform: uppercase; }
.footer-col ul { display: grid; gap: 10px; list-style: none; }
.footer-col a { font-size: 14px; text-decoration: none; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; padding-top: 28px; border-top: 1px solid var(--rule); color: var(--ink-40); font: 500 11px var(--mono); letter-spacing: .05em; text-transform: uppercase; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 18px; }

@media (max-width: 900px) {
  .wrap { width: min(100% - 48px, 1180px); }
  .desktop-nav, .nav-cta { display: none; }
  .mobile-panel {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 22px;
    padding: 12px 24px;
    border-block: 1px solid var(--rule);
    background: var(--paper);
  }
  .mobile-panel a { font-size: 14px; font-weight: 700; text-decoration: none; }
  .mobile-panel .button { min-height: auto; padding: 0; border: 0; background: transparent; color: var(--ink); }
  .js .mobile-toggle { display: inline-flex; }
  .js .mobile-panel {
    position: fixed;
    inset: 76px 0 auto;
    display: grid;
    gap: 0;
    padding: 18px 24px 28px;
    border: 0;
    border-bottom: 1px solid var(--rule);
    background: var(--paper);
    box-shadow: var(--shadow);
    transform: translateY(-140%);
    visibility: hidden;
    transition: transform 220ms var(--ease), visibility 220ms;
  }
  .js .mobile-panel.open { transform: translateY(0); visibility: visible; }
  .js .mobile-panel a { padding: 15px 0; border-bottom: 1px solid var(--rule); font-size: 22px; font-weight: 600; }
  .js .mobile-panel .button { min-height: 46px; margin-top: 20px; padding: 11px 20px; border: 1px solid var(--ink); background: var(--ink); color: var(--white); font-size: 15px; }
  .hero { min-height: auto; padding: 95px 0; }
  .hero-mark { right: -110px; width: 420px; }
  .section, .cta-section { padding: 90px 0; }
  .section-head { grid-template-columns: 1fr; gap: 24px; }
  .card-grid { grid-template-columns: 1fr; }
  .card { min-height: 0; border-right: 0; border-bottom: 1px solid var(--rule); }
  .card:last-child { border-bottom: 0; }
  .process-item { grid-template-columns: 50px 1fr; }
  .process-item p { grid-column: 2; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
  .case-feature, .split { grid-template-columns: 1fr; gap: 38px; }
  .split-aside h2 { position: static; }
  .footer-grid { grid-template-columns: repeat(3,1fr); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .wrap { width: min(100% - 32px, 1180px); }
  .nav-shell { min-height: 68px; }
  .mobile-panel { inset-block-start: 68px; }
  .hero { padding: 72px 0 76px; }
  .hero h1 { margin-block: 28px; font-size: clamp(50px, 15vw, 72px); }
  .hero-lead { font-size: 18px; }
  .hero-actions .button { width: 100%; }
  .hero-mark { display: none; }
  .logo-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .logo-grid > :last-child { grid-column: 1 / -1; }
  .section, .section-tight { padding: 72px 0; }
  .section-title { font-size: 44px; }
  .process-item { grid-template-columns: 1fr; gap: 8px; }
  .process-item p { grid-column: 1; }
  .stats-grid, .feature-grid, .deliverables, .contact-grid { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--rule); }
  .stat:last-child { border-bottom: 0; }
  .case-feature blockquote { font-size: 30px; }
  .page-hero { padding: 62px 0 58px; }
  .breadcrumbs { margin-bottom: 30px; }
  .page-hero h1 { font-size: 48px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
}

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

@media print {
  .site-header, .site-footer, .cta-section, .button { display: none !important; }
  body { background: white; color: black; }
  .section, .page-hero { padding: 30px 0; }
}
