:root {
  --night: #07161c;
  --night-2: #0c242e;
  --ink: #12242c;
  --muted: #5a6a70;
  --mist: #edf3f3;
  --paper: #f7f9f7;
  --white: #fff;
  --ice: #b9e8ff;
  --lime: #d8ff8f;
  --line: rgba(18, 36, 44, .16);
  --line-dark: rgba(255, 255, 255, .17);
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --spring: cubic-bezier(.16, 1, .3, 1);
  --rail: 248px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--night); }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 400 1rem/1.62 var(--body);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 2px solid #78ccef; outline-offset: 4px; }
button { font: inherit; }
.skip-link { position: fixed; left: 18px; top: -80px; z-index: 100; padding: 10px 14px; border-radius: 8px; background: var(--lime); color: var(--night); font-weight: 750; }
.skip-link:focus { top: 18px; }
.wrap { width: min(calc(100% - 64px), 1180px); margin: 0 auto; }

.rail {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  width: var(--rail);
  padding: 30px 24px 24px;
  color: #e9f5f7;
  background: var(--night);
  border-right: 1px solid var(--line-dark);
}
.rail-inner { min-height: 100%; display: flex; flex-direction: column; }
.brand { min-height: 48px; display: inline-flex; align-items: center; gap: 12px; font-size: .82rem; font-weight: 760; letter-spacing: .16em; text-transform: uppercase; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(185, 232, 255, .55); border-radius: 11px; color: var(--ice); font-size: .68rem; letter-spacing: 0; }
.rail-nav { margin-top: 74px; display: grid; gap: 5px; }
.rail-nav a { min-height: 42px; padding: 0 12px; display: flex; align-items: center; border-radius: 10px; color: #91a8b0; font-size: .86rem; transition: color .18s ease, background .18s ease, transform .2s var(--spring); }
.rail-nav a:hover { color: white; background: rgba(255, 255, 255, .06); transform: translateX(3px); }
.rail-nav a[aria-current="page"] { color: var(--night); background: var(--ice); font-weight: 720; }
.rail-foot { margin-top: auto; display: grid; gap: 14px; color: #78919a; font-size: .74rem; }
.rail-cta { min-height: 48px; padding: 0 15px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line-dark); border-radius: 13px; color: var(--ice); font-size: .82rem; font-weight: 720; transition: transform .22s var(--spring), color .18s ease, background .18s ease; }
.rail-cta:hover { color: var(--night); background: var(--lime); transform: translateY(-2px); }
.menu-toggle { display: none; }

.page { margin-left: var(--rail); overflow: hidden; }
.hero {
  position: relative;
  min-height: 72svh;
  padding: clamp(88px, 11vw, 150px) 0 92px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: white;
  background: var(--night-2);
}
.hero:before { content: ""; position: absolute; width: min(76vw, 960px); aspect-ratio: 1; right: -28%; top: -60%; border-radius: 50%; background: radial-gradient(circle, rgba(120, 204, 239, .28), rgba(120, 204, 239, .05) 43%, transparent 69%); }
.hero:after { content: ""; position: absolute; inset: 0; opacity: .32; background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px); background-size: 56px 56px; mask-image: linear-gradient(to bottom, black, transparent 92%); }
.hero-grid { position: relative; z-index: 1; width: 100%; display: grid; grid-template-columns: .45fr 1.55fr; gap: 70px; align-items: start; }
.eyebrow { margin: 8px 0 0; color: #47707f; font-size: .75rem; font-weight: 780; letter-spacing: .15em; text-transform: uppercase; }
.hero .eyebrow { color: var(--ice); }
h1 { max-width: 990px; margin: 0; font: 720 clamp(3.8rem, 7.4vw, 7.7rem)/.9 var(--sans); letter-spacing: -.064em; text-wrap: balance; }
.hero-lede { max-width: 790px; margin: 36px 0 0; color: #b6c9cf; font-size: clamp(1.05rem, 1.6vw, 1.22rem); line-height: 1.65; }
.hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.button { min-height: 49px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; border: 1px solid transparent; border-radius: 13px; font-size: .85rem; font-weight: 730; transition: transform .22s var(--spring), background .18s ease, color .18s ease, border-color .18s ease; }
.button:hover { transform: translateY(-2px); }
.button:active { transform: scale(.975); transition-duration: 90ms; }
.button-primary { color: var(--night); background: var(--lime); }
.button-secondary { color: white; border-color: var(--line-dark); }
.button-secondary:hover { color: var(--night); background: var(--ice); border-color: var(--ice); }
.button-dark { color: white; background: var(--night); }
.button-dark:hover { color: var(--night); background: var(--lime); }

.section { padding: clamp(86px, 10vw, 138px) 0; }
.section-mist { background: var(--mist); }
.section-dark { color: white; background: var(--night); }
.section-head { margin-bottom: 58px; display: grid; grid-template-columns: .45fr 1.55fr; gap: 70px; align-items: start; }
.section-head h2 { max-width: 900px; margin: 0; font: 690 clamp(2.65rem, 5vw, 5.2rem)/.98 var(--sans); letter-spacing: -.055em; text-wrap: balance; }
.section-head p:not(.eyebrow) { max-width: 740px; margin: 24px 0 0; color: var(--muted); }
.section-dark .section-head p:not(.eyebrow) { color: #9eb1b8; }
.section-dark .eyebrow { color: var(--ice); }
.section-copy { max-width: 800px; margin-left: calc((100% - 70px) * .225 + 70px); }
.section-copy p { margin: 0 0 24px; font-size: clamp(1.08rem, 1.5vw, 1.2rem); }
.section-copy p:last-child { margin-bottom: 0; }

.signal-grid, .card-grid, .offer-grid, .case-grid, .research-grid, .principle-grid { display: grid; gap: 14px; }
.signal-grid { grid-template-columns: repeat(3, 1fr); }
.signal { min-height: 230px; padding: 27px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 18px; background: white; }
.signal span, .card-kicker, .offer-meta, .case-meta, .research-meta { color: #52717d; font-size: .71rem; font-weight: 780; letter-spacing: .13em; text-transform: uppercase; }
.signal strong { margin-top: auto; font: 690 clamp(1.45rem, 2.4vw, 2.35rem)/1.08 var(--sans); letter-spacing: -.04em; }
.signal p { margin: 16px 0 0; color: var(--muted); font-size: .92rem; }

.card-grid { grid-template-columns: repeat(2, 1fr); }
.card { min-height: 340px; padding: 32px; display: flex; flex-direction: column; border-radius: 20px; background: white; box-shadow: inset 0 0 0 1px var(--line); transition: transform .28s var(--spring), box-shadow .28s var(--spring); }
.card:hover { transform: translateY(-5px); box-shadow: 0 20px 50px rgba(18, 36, 44, .11); }
.card:nth-child(4n+1) { color: white; background: var(--night-2); box-shadow: none; }
.card:nth-child(4n+2) { background: var(--ice); box-shadow: none; }
.card:nth-child(4n+1) .card-kicker, .card:nth-child(4n+1) p { color: #aac0c8; }
.card h3 { max-width: 580px; margin: auto 0 18px; font: 690 clamp(2rem, 3.4vw, 3.45rem)/1 var(--sans); letter-spacing: -.052em; }
.card p { max-width: 650px; margin: 0; color: var(--muted); }
.card-link { margin-top: 26px; display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 760; }

.offer-grid { grid-template-columns: repeat(2, 1fr); }
.offer { min-height: 380px; padding: 30px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 20px; background: white; }
.offer:nth-child(3n+1) { background: var(--mist); }
.offer:nth-child(4n+2) { background: var(--ice); border-color: transparent; }
.offer h3 { margin: 38px 0 16px; font: 690 clamp(1.85rem, 3vw, 3rem)/1 var(--sans); letter-spacing: -.048em; }
.offer > p { margin: 0; color: var(--muted); }
.offer ul { margin: auto 0 0; padding: 28px 0 0; list-style: none; border-top: 1px solid var(--line); }
.offer li { position: relative; padding: 7px 0 7px 18px; color: #43575f; font-size: .9rem; }
.offer li:before { content: ""; position: absolute; left: 0; top: 15px; width: 5px; height: 5px; border-radius: 50%; background: #4c7483; }

.step-list { border-top: 1px solid var(--line); }
.step { min-height: 180px; padding: 30px 0; display: grid; grid-template-columns: 90px .78fr 1.22fr; gap: 32px; align-items: start; border-bottom: 1px solid var(--line); }
.step-num { color: #64808a; font-size: .75rem; font-weight: 780; letter-spacing: .12em; }
.step h3 { margin: 0; font: 680 clamp(1.45rem, 2.4vw, 2.4rem)/1.06 var(--sans); letter-spacing: -.04em; }
.step p { max-width: 620px; margin: 0; color: var(--muted); }

.case-grid { grid-template-columns: repeat(12, 1fr); }
.case { min-height: 390px; padding: 30px; display: flex; flex-direction: column; border-radius: 20px; background: white; box-shadow: inset 0 0 0 1px var(--line); }
.case:nth-child(1), .case:nth-child(4) { grid-column: span 7; }
.case:nth-child(2), .case:nth-child(3) { grid-column: span 5; }
.case:nth-child(1) { color: white; background: var(--night-2); box-shadow: none; }
.case:nth-child(2) { background: var(--ice); box-shadow: none; }
.case:nth-child(1) .case-meta, .case:nth-child(1) p { color: #a9bec5; }
.case h3 { max-width: 650px; margin: auto 0 18px; font: 690 clamp(2rem, 3.6vw, 3.7rem)/.98 var(--sans); letter-spacing: -.052em; }
.case p { max-width: 680px; margin: 0; color: var(--muted); }
.case-stats { margin-top: 26px; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; border-top: 1px solid currentColor; border-color: rgba(90, 106, 112, .25); }
.case-stats span { padding: 7px 10px; border: 1px solid rgba(90, 106, 112, .28); border-radius: 999px; font-size: .76rem; font-weight: 700; }

.research-grid { grid-template-columns: 1.25fr .75fr; }
.research-feature, .research-item { padding: 32px; border-radius: 20px; background: white; box-shadow: inset 0 0 0 1px var(--line); }
.research-feature { min-height: 480px; display: flex; flex-direction: column; color: white; background: var(--night-2); box-shadow: none; }
.research-feature .research-meta, .research-feature p { color: #abc0c7; }
.research-feature h3 { max-width: 760px; margin: auto 0 20px; font: 700 clamp(2.8rem, 5.2vw, 5.4rem)/.93 var(--sans); letter-spacing: -.06em; }
.research-feature p { max-width: 700px; margin: 0; }
.research-stack { display: grid; gap: 14px; }
.research-item { min-height: 233px; display: flex; flex-direction: column; }
.research-item h3 { margin: auto 0 12px; font: 680 clamp(1.65rem, 2.5vw, 2.55rem)/1 var(--sans); letter-spacing: -.044em; }
.research-item p { margin: 0; color: var(--muted); font-size: .92rem; }

.principle-grid { grid-template-columns: repeat(3, 1fr); counter-reset: principles; }
.principle { min-height: 300px; padding: 28px; display: flex; flex-direction: column; border-top: 1px solid var(--line); counter-increment: principles; }
.principle:before { content: "0" counter(principles); color: #5f7c86; font-size: .73rem; font-weight: 780; letter-spacing: .13em; }
.principle h3 { margin: auto 0 16px; font: 680 clamp(1.7rem, 2.6vw, 2.7rem)/1 var(--sans); letter-spacing: -.045em; }
.principle p { margin: 0; color: var(--muted); }

.proof-band { padding: 42px 0; color: white; background: var(--night-2); }
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.proof-grid div { padding-right: 20px; border-right: 1px solid var(--line-dark); }
.proof-grid div:last-child { border: 0; }
.proof-grid strong { display: block; color: var(--ice); font: 700 clamp(1.55rem, 2.5vw, 2.6rem)/1 var(--sans); letter-spacing: -.045em; }
.proof-grid span { display: block; margin-top: 9px; color: #9bb0b7; font-size: .78rem; line-height: 1.45; }

.quote { max-width: 970px; margin: 0 auto; text-align: center; }
.quote blockquote { margin: 0; font: 670 clamp(2.3rem, 5vw, 5rem)/1.02 var(--sans); letter-spacing: -.054em; }
.quote figcaption { margin-top: 28px; color: #60808b; font-size: .82rem; }

.cta-section { padding: clamp(90px, 11vw, 150px) 0; color: white; background: var(--night-2); }
.cta-grid { display: grid; grid-template-columns: .45fr 1.55fr; gap: 70px; }
.cta-grid .eyebrow { color: var(--ice); }
.cta-grid h2 { max-width: 900px; margin: 0; font: 700 clamp(3rem, 6vw, 6.3rem)/.94 var(--sans); letter-spacing: -.06em; }
.cta-grid p { max-width: 690px; margin: 25px 0 0; color: #aabdc4; }
.cta-grid .button { margin-top: 30px; }

.contact-panel { display: grid; grid-template-columns: 1.1fr .9fr; gap: 14px; }
.contact-main, .contact-side { min-height: 420px; padding: 34px; border-radius: 20px; }
.contact-main { display: flex; flex-direction: column; color: white; background: var(--night-2); }
.contact-main h2 { margin: auto 0 18px; font: 700 clamp(2.8rem, 5vw, 5.1rem)/.95 var(--sans); letter-spacing: -.058em; }
.contact-main p { max-width: 630px; margin: 0; color: #abc0c7; }
.contact-main .button { align-self: flex-start; margin-top: 28px; }
.contact-side { background: var(--ice); }
.contact-side h3 { margin: 0 0 24px; font: 680 2rem/1 var(--sans); letter-spacing: -.04em; }
.contact-side ul { margin: 0; padding: 0; list-style: none; }
.contact-side li { padding: 17px 0; border-top: 1px solid rgba(18, 36, 44, .2); }

.site-footer { padding: 34px 0; color: #8ca1a9; background: var(--night); }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; font-size: .8rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 22px; }
.footer-links a:hover { color: white; }

[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .8s var(--spring); }
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .signal-grid, .principle-grid { grid-template-columns: repeat(2, 1fr); }
  .proof-grid { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .proof-grid div:nth-child(2) { border: 0; }
  .step { grid-template-columns: 60px 1fr; }
  .step p { grid-column: 2; }
}

@media (max-width: 820px) {
  html { background: var(--paper); }
  body { padding-top: 78px; }
  .rail { inset: 10px 15px auto; width: auto; height: 58px; padding: 0; border: 1px solid rgba(18, 36, 44, .13); border-radius: 17px; color: var(--night); background: rgba(247, 249, 247, .92); box-shadow: 0 12px 38px rgba(7, 22, 28, .12); backdrop-filter: blur(22px) saturate(150%); -webkit-backdrop-filter: blur(22px) saturate(150%); }
  .rail-inner { min-height: 0; height: 100%; padding: 0 8px 0 13px; flex-direction: row; align-items: center; justify-content: space-between; }
  .brand { min-height: 44px; }
  .brand-mark { width: 30px; height: 30px; border-color: rgba(7, 22, 28, .28); color: var(--night); }
  .menu-toggle { width: 44px; height: 44px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 11px; color: var(--night); background: transparent; cursor: pointer; }
  .menu-toggle span, .menu-toggle:before, .menu-toggle:after { content: ""; width: 20px; height: 1px; display: block; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
  .menu-toggle:before { transform: translateY(-5px); }
  .menu-toggle:after { transform: translateY(5px); }
  body.menu-open .menu-toggle span { opacity: 0; }
  body.menu-open .menu-toggle:before { transform: translateY(1px) rotate(45deg); }
  body.menu-open .menu-toggle:after { transform: translateY(-1px) rotate(-45deg); }
  .rail-nav { position: fixed; inset: 78px 15px auto; margin: 0; padding: 12px; display: none; border: 1px solid var(--line); border-radius: 17px; background: var(--paper); box-shadow: 0 20px 50px rgba(7, 22, 28, .17); }
  body.menu-open .rail-nav { display: grid; }
  .rail-nav a { color: var(--ink); }
  .rail-nav a[aria-current="page"] { background: var(--ice); }
  .rail-foot { display: none; }
  .page { margin-left: 0; }
  .wrap { width: min(calc(100% - 30px), 1180px); }
  .hero { min-height: auto; padding: 72px 0 70px; }
  .hero:before { width: 150vw; right: -84%; top: -42%; }
  .hero-grid, .section-head, .cta-grid { grid-template-columns: 1fr; gap: 23px; }
  h1 { font-size: clamp(3.2rem, 14vw, 5.5rem); line-height: .9; }
  .hero-lede { margin-top: 27px; font-size: 1rem; }
  .section { padding: 76px 0; }
  .section-head { margin-bottom: 42px; }
  .section-head h2 { font-size: clamp(2.5rem, 11vw, 4.2rem); }
  .section-copy { margin-left: 0; }
  .signal-grid, .card-grid, .offer-grid, .case-grid, .research-grid, .principle-grid, .contact-panel { grid-template-columns: 1fr; }
  .signal { min-height: 210px; }
  .card, .offer { min-height: 330px; }
  .case:nth-child(n) { grid-column: auto; min-height: 360px; }
  .research-feature { min-height: 440px; }
  .step { min-height: 0; grid-template-columns: 48px 1fr; gap: 17px; }
  .step p { grid-column: 2; }
  .proof-grid { grid-template-columns: 1fr 1fr; }
  .contact-main, .contact-side { min-height: 360px; padding: 28px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
}

@media (max-width: 520px) {
  .proof-grid { grid-template-columns: 1fr; }
  .proof-grid div { padding: 0 0 20px; border-right: 0; border-bottom: 1px solid var(--line-dark); }
  .principle-grid { grid-template-columns: 1fr; }
  .principle { min-height: 250px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *:before, *:after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

@media (prefers-reduced-transparency: reduce) {
  .rail { background: var(--paper); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

@media (prefers-contrast: more) {
  :root { --line: rgba(18, 36, 44, .48); --line-dark: rgba(255, 255, 255, .42); }
}
