:root {
  --paper: #f4f1ea;
  --paper-deep: #e8e3d8;
  --white: #fffef9;
  --ink: #102235;
  --ink-soft: #405166;
  --navy: #0c1c2d;
  --blue: #2d5bff;
  --blue-dark: #2347c7;
  --amber: #c98b2e;
  --rule: #cbd0d4;
  --rule-dark: rgba(255, 255, 255, 0.2);
  --sans: "Manrope", Arial, sans-serif;
  --serif: "Newsreader", Georgia, serif;
  --shell: min(1180px, calc(100vw - 48px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; }
body.menu-open { overflow: hidden; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
.shell { width: var(--shell); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; transform: translateY(-150%); background: var(--white); padding: 10px 14px; border: 2px solid var(--ink); border-radius: 8px; text-decoration: none; }
.skip-link:focus { transform: translateY(0); }

.site-header { position: absolute; inset: 0 0 auto; z-index: 30; border-bottom: 1px solid rgba(16, 34, 53, 0.18); transition: background 180ms ease, box-shadow 180ms ease; }
.site-header.is-sticky { position: fixed; background: rgba(244, 241, 234, 0.94); backdrop-filter: blur(18px); box-shadow: 0 8px 30px rgba(16, 34, 53, 0.08); }
.nav-shell { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.wordmark { font-size: 1.55rem; font-weight: 700; letter-spacing: -0.07em; text-decoration: none; }
.wordmark span { color: var(--blue); }
.site-nav { display: flex; align-items: center; gap: 25px; }
.site-nav > a { font-size: 0.82rem; font-weight: 600; text-decoration: none; }
.site-nav > a:not(.nav-cta) { padding-block: 10px; border-bottom: 1px solid transparent; }
.site-nav > a:not(.nav-cta):hover, .site-nav > a:not(.nav-cta):focus-visible { border-color: var(--ink); }
.nav-cta { background: var(--ink); color: var(--white); padding: 12px 17px; border-radius: 999px; }
.nav-cta:hover, .nav-cta:focus-visible { background: var(--blue); }
.menu-toggle { display: none; border: 0; background: transparent; width: 44px; height: 44px; padding: 10px; }
.menu-toggle span:not(.sr-only) { display: block; width: 23px; height: 2px; margin: 6px auto; background: var(--ink); transition: transform 160ms ease; }

.hero { position: relative; overflow: hidden; padding: 160px 0 92px; border-bottom: 1px solid var(--rule); }
.hero-grid { position: absolute; inset: 0; pointer-events: none; opacity: 0.44; background-image: linear-gradient(rgba(16, 34, 53, 0.055) 1px, transparent 1px), linear-gradient(90deg, rgba(16, 34, 53, 0.055) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(to right, transparent 0, black 45%, black 100%); }
.hero::after { content: ""; position: absolute; width: 520px; height: 520px; border: 1px solid rgba(45, 91, 255, 0.25); border-radius: 50%; right: -300px; top: 40px; box-shadow: 0 0 0 80px rgba(45, 91, 255, 0.025), 0 0 0 160px rgba(45, 91, 255, 0.02); }
.hero-shell { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 48px; align-items: center; }
.eyebrow { margin: 0 0 25px; display: flex; align-items: center; gap: 10px; color: var(--ink-soft); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.115em; text-transform: uppercase; }
.eyebrow > span:first-child { display: block; width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: var(--blue); }
.brand-name { font-weight: inherit; letter-spacing: inherit; white-space: nowrap; }
.brand-name > span { color: var(--blue); }
h1, h2, h3, p { text-wrap: pretty; }
h1 { margin: 0; max-width: 850px; font-family: var(--serif); font-size: clamp(3rem, 3.9vw, 3.55rem); font-weight: 500; line-height: 0.96; letter-spacing: -0.055em; }
.hero-title > span { display: block; white-space: nowrap; }
.hero-title-accent { color: var(--blue); font-weight: inherit; }
.hero-lede { max-width: 700px; margin: 34px 0 0; color: var(--ink-soft); font-size: clamp(1.05rem, 1.45vw, 1.25rem); line-height: 1.65; }
.hero-actions { margin-top: 34px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 20px; padding: 13px 19px; border-radius: 999px; font-weight: 700; text-decoration: none; transition: transform 160ms ease, background 160ms ease, color 160ms ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--ink); color: var(--white); }
.button-primary:hover, .button-primary:focus-visible { background: var(--blue); }
.text-link { font-size: 0.9rem; font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.text-link:hover, .text-link:focus-visible { color: var(--blue); }
.hero-note { margin: 16px 0 0; color: #657285; font-size: 0.8rem; }

.trace-card { position: relative; background: var(--white); border: 1px solid rgba(16, 34, 53, 0.22); border-radius: 18px; box-shadow: 16px 18px 0 rgba(16, 34, 53, 0.09); overflow: hidden; }
.trace-card::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(rgba(16, 34, 53, 0.12) 0.8px, transparent 0.8px); background-size: 14px 14px; opacity: 0.23; }
.trace-header { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px 17px; border-bottom: 1px solid var(--rule); }
.trace-header > div { display: flex; flex-direction: column; }
.kicker { color: #6a7480; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; }
.trace-header strong { font-family: var(--serif); font-size: 1.4rem; line-height: 1.2; }
.live-label { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-soft); font-size: 0.67rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; }
.live-label i { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px rgba(45, 91, 255, 0.12); }
.trace-tabs { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 8px; gap: 6px; border-bottom: 1px solid var(--rule); }
.trace-tabs button { cursor: pointer; border: 0; border-radius: 8px; background: transparent; color: var(--ink-soft); padding: 10px 12px; font-size: 0.74rem; font-weight: 700; }
.trace-tabs button[aria-selected="true"] { background: var(--ink); color: var(--white); }
.trace-panel { position: relative; padding: 21px 24px 15px; }
.trace-source, .trace-finding, .trace-output { display: grid; grid-template-columns: 30px 1fr; gap: 12px; padding: 13px; border: 1px solid rgba(16, 34, 53, 0.15); border-radius: 10px; background: rgba(255, 254, 249, 0.94); }
.trace-finding { border-color: rgba(201, 139, 46, 0.55); background: #fffaf0; }
.trace-output { border-color: rgba(45, 91, 255, 0.42); background: #f5f7ff; }
.trace-number { color: var(--blue); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.68rem; }
.trace-panel small { color: #66717d; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.trace-panel p { margin: 2px 0 0; font-size: 0.78rem; font-weight: 700; line-height: 1.45; }
.trace-panel mark { display: inline-block; margin-top: 7px; padding: 3px 6px; background: var(--paper-deep); color: var(--ink-soft); border-radius: 4px; font-size: 0.62rem; }
.trace-line { height: 30px; display: grid; grid-template-columns: 30px 1fr; gap: 12px; margin-left: 13px; align-items: center; }
.trace-line span { justify-self: center; width: 1px; height: 100%; background: var(--blue); position: relative; }
.trace-line span::after { content: ""; position: absolute; bottom: 0; left: -3px; width: 7px; height: 7px; border: solid var(--blue); border-width: 0 1px 1px 0; transform: rotate(45deg); }
.trace-line b { color: #7a8490; font-size: 0.57rem; letter-spacing: 0.1em; text-transform: uppercase; }
.illustration-note { position: relative; margin: 0; padding: 0 24px 18px; color: #717b87; font-size: 0.65rem; }

.proof-strip { background: var(--white); border-bottom: 1px solid var(--rule); }
.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.proof-grid > div { min-height: 140px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; padding: 30px 32px; border-left: 1px solid var(--rule); text-align: center; }
.proof-grid > div:last-child { border-right: 1px solid var(--rule); }
.proof-grid strong { font-family: var(--serif); font-size: clamp(1.55rem, 2.2vw, 2rem); font-weight: 600; line-height: 1.12; letter-spacing: -0.04em; white-space: nowrap; }
.proof-grid span { color: var(--ink-soft); font-size: 0.8rem; line-height: 1.45; }

.section { padding: 122px 0; }
.section-intro { display: grid; grid-template-columns: 0.7fr 1.35fr 0.8fr; gap: 40px; align-items: start; margin-bottom: 62px; }
.section-intro .eyebrow { margin-top: 10px; }
h2 { margin: 0; font-family: var(--serif); font-size: clamp(2.8rem, 5vw, 5rem); font-weight: 500; line-height: 0.98; letter-spacing: -0.045em; }
.section-intro > p:last-child { margin: 10px 0 0; color: var(--ink-soft); line-height: 1.75; }
.practice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.practice-card { scroll-margin-top: 100px; position: relative; padding: 34px 34px 38px; border: 1px solid var(--ink); border-radius: 16px; overflow: hidden; min-height: 580px; display: flex; flex-direction: column; }
.practice-card::after { content: ""; position: absolute; width: 250px; height: 250px; border-radius: 50%; right: -105px; bottom: -120px; border: 1px solid rgba(16, 34, 53, 0.2); box-shadow: 0 0 0 38px rgba(16, 34, 53, 0.02), 0 0 0 76px rgba(16, 34, 53, 0.02); }
.practice-finance { background: var(--ink); color: var(--white); }
.practice-finance::after { border-color: rgba(255,255,255,0.3); box-shadow: 0 0 0 38px rgba(255,255,255,0.02), 0 0 0 76px rgba(255,255,255,0.02); }
.practice-legal { background: var(--white); }
.practice-topline { display: flex; justify-content: space-between; align-items: center; padding-bottom: 22px; margin-bottom: 55px; border-bottom: 1px solid currentColor; }
.practice-topline span { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.7rem; }
.practice-topline p { margin: 0; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.practice-card h3 { max-width: 560px; margin: 0; font-family: var(--serif); font-size: clamp(2.2rem, 3.5vw, 3.75rem); font-weight: 500; line-height: 1.03; letter-spacing: -0.04em; }
.practice-card > p { margin: 25px 0 30px; max-width: 540px; color: inherit; opacity: 0.75; }
.practice-card ul { position: relative; z-index: 1; list-style: none; margin: auto 0 0; padding: 0; }
.practice-card li { padding: 11px 0; border-top: 1px solid currentColor; font-size: 0.86rem; font-weight: 600; }
.practice-card li::before { content: "↳"; margin-right: 12px; color: var(--blue); }
.practice-finance li::before { color: #7fa0ff; }

.workflow-section { background: var(--navy); color: var(--white); }
.workflow-shell { display: grid; grid-template-columns: 0.72fr 1.28fr; gap: 90px; align-items: start; }
.eyebrow-light { color: rgba(255,255,255,0.66); }
.workflow-copy > p:not(.eyebrow) { margin: 28px 0 0; color: rgba(255,255,255,0.65); line-height: 1.75; }
.workflow-selector { margin-top: 42px; display: inline-flex; gap: 6px; padding: 5px; border: 1px solid var(--rule-dark); border-radius: 999px; }
.workflow-selector button { cursor: pointer; border: 0; border-radius: 999px; padding: 10px 15px; background: transparent; color: rgba(255,255,255,0.66); font-size: 0.74rem; font-weight: 700; }
.workflow-selector button[aria-selected="true"] { background: var(--white); color: var(--ink); }
.workflow-board { border: 1px solid var(--rule-dark); border-radius: 16px; overflow: hidden; background: rgba(255,255,255,0.035); }
.workflow-detail { padding: 16px 30px; }
.board-row { min-height: 104px; display: grid; grid-template-columns: 128px 1fr; gap: 26px; align-items: center; border-bottom: 1px solid var(--rule-dark); }
.board-row:last-child { border: 0; }
.board-row span { color: rgba(255,255,255,0.48); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.board-row strong { font-family: var(--serif); font-size: 1.45rem; font-weight: 500; line-height: 1.3; }
.board-result strong { color: #8aa5ff; }
.board-footer { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--rule-dark); }
.board-footer span { padding: 15px; text-align: center; color: rgba(255,255,255,0.55); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; border-right: 1px solid var(--rule-dark); }
.board-footer span:last-child { border: 0; }

.approach-section { background: var(--white); }
.section-intro.compact { grid-template-columns: 0.55fr 1.45fr; }
.approach-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.approach-grid li { min-height: 310px; padding: 25px 26px 32px; border-right: 1px solid var(--ink); }
.approach-grid li:last-child { border: 0; }
.approach-grid span { color: var(--blue); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.7rem; }
.approach-grid h3 { margin: 68px 0 10px; font-family: var(--serif); font-size: 2.1rem; font-weight: 500; }
.approach-grid p { margin: 0; color: var(--ink-soft); font-size: 0.85rem; line-height: 1.7; }

.principles-section { border-bottom: 1px solid var(--rule); }
.principles-grid { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: 90px; }
.principles-list { border-top: 1px solid var(--ink); }
.principles-list article { display: grid; grid-template-columns: 48px 1fr; gap: 24px; padding: 29px 0; border-bottom: 1px solid var(--ink); }
.principles-list article > span { color: var(--blue); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.7rem; }
.principles-list h3 { margin: 0 0 7px; font-family: var(--serif); font-size: 1.6rem; font-weight: 500; }
.principles-list p { margin: 0; color: var(--ink-soft); font-size: 0.9rem; line-height: 1.7; }

.about-section { background: var(--paper-deep); }
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 100px; align-items: start; }
.about-heading .eyebrow { margin-bottom: 30px; }
.about-heading h2 { max-width: 580px; }
.about-copy { padding-top: 51px; }
.about-copy > p { max-width: 745px; margin: 0; color: var(--ink-soft); font-size: 1.04rem; line-height: 1.8; }
.profile-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; color: var(--ink); font-size: 0.9rem; font-weight: 700; text-underline-offset: 5px; }
.profile-link:hover, .profile-link:focus-visible { color: var(--blue); }

.closing-section { padding: 108px 0; background: var(--blue); color: var(--white); }
.closing-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 100px; align-items: end; }
.closing-action p { margin: 0 0 26px; color: rgba(255,255,255,0.75); line-height: 1.75; }
.button-light { background: var(--white); color: var(--ink); }
.button-light:hover, .button-light:focus-visible { background: var(--ink); color: var(--white); }

.site-footer { padding: 64px 0 25px; background: var(--navy); color: var(--white); }
.footer-main { display: flex; justify-content: space-between; align-items: end; gap: 40px; padding-bottom: 62px; }
.wordmark-light { font-size: 3rem; }
.footer-contact { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.footer-contact span { color: rgba(255,255,255,0.5); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.footer-contact .footer-location { margin-top: 7px; font-size: 0.8rem; font-weight: 500; letter-spacing: 0; text-transform: none; }
.footer-contact a { font-family: var(--serif); font-size: clamp(1.25rem, 2.8vw, 2.1rem); text-underline-offset: 5px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 50px; padding-top: 22px; border-top: 1px solid var(--rule-dark); }
.footer-bottom p { margin: 0; color: rgba(255,255,255,0.55); font-size: 0.68rem; }
.footer-bottom .brand-name > span { color: inherit; }
.footer-bottom p:last-child { max-width: 600px; text-align: right; }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
[hidden] { display: none !important; }

@media (max-width: 1040px) {
  .site-nav { gap: 16px; }
  .site-nav > a { font-size: 0.75rem; }
  .hero-shell { grid-template-columns: 1fr 390px; gap: 42px; }
  h1 { font-size: clamp(3.8rem, 7vw, 5.7rem); }
  .section-intro { grid-template-columns: 0.55fr 1.3fr; }
  .section-intro > p:last-child { grid-column: 2; }
  .workflow-shell, .principles-grid { gap: 55px; }
  .about-grid { gap: 60px; }
  .closing-grid { gap: 60px; }
}

@media (max-width: 820px) {
  :root { --shell: min(100% - 32px, 680px); }
  .site-header { position: fixed; background: rgba(244, 241, 234, 0.96); backdrop-filter: blur(18px); }
  .nav-shell { min-height: 68px; }
  .menu-toggle { display: block; cursor: pointer; z-index: 3; }
  .menu-toggle[aria-expanded="true"] span:nth-of-type(2) { transform: translateY(4px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-of-type(3) { transform: translateY(-4px) rotate(-45deg); }
  .site-nav { position: fixed; inset: 0; display: none; padding: 110px 24px 35px; background: var(--paper); flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav.is-open { display: flex; }
  .site-nav > a { padding: 15px 0; font-family: var(--serif); font-size: 1.65rem; border-bottom: 1px solid var(--rule) !important; }
  .site-nav .nav-cta { margin-top: auto; padding: 14px 18px; text-align: center; font-family: var(--sans); font-size: 0.9rem; border: 0 !important; }
  .hero { padding: 122px 0 72px; }
  .hero-shell { grid-template-columns: 1fr; gap: 55px; }
  h1 { font-size: clamp(3rem, 7vw, 3.75rem); }
  .trace-card { max-width: 560px; }
  .proof-grid { grid-template-columns: 1fr; }
  .proof-grid > div { min-height: auto; align-items: flex-start; padding: 24px 0; border-left: 0; border-right: 0 !important; border-bottom: 1px solid var(--rule); text-align: left; }
  .proof-grid > div:last-child { border-bottom: 0; }
  .section { padding: 88px 0; }
  .section-intro, .section-intro.compact { grid-template-columns: 1fr; gap: 12px; }
  .section-intro > p:last-child { grid-column: auto; max-width: 620px; }
  .practice-grid { grid-template-columns: 1fr; }
  .practice-card { min-height: 540px; }
  .workflow-shell, .principles-grid, .about-grid, .closing-grid { grid-template-columns: 1fr; gap: 55px; }
  .approach-grid { grid-template-columns: 1fr 1fr; }
  .approach-grid li:nth-child(2) { border-right: 0; }
  .approach-grid li:nth-child(-n+2) { border-bottom: 1px solid var(--ink); }
  .about-copy { padding-top: 0; }
  .footer-bottom { flex-direction: column; gap: 12px; }
  .footer-bottom p:last-child { text-align: left; }
}

@media (max-width: 520px) {
  :root { --shell: calc(100vw - 26px); }
  .hero { padding-top: 112px; }
  .eyebrow { font-size: 0.64rem; }
  h1 { font-size: clamp(2.35rem, 10.7vw, 3.45rem); }
  .hero-title > span { white-space: normal; }
  .hero-lede { font-size: 1rem; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .text-link { text-align: center; }
  .trace-header, .trace-panel { padding-inline: 16px; }
  .illustration-note { padding-inline: 16px; }
  .live-label { font-size: 0.55rem; }
  h2 { font-size: clamp(2.7rem, 13vw, 4rem); }
  .practice-card { min-height: 0; padding: 25px 22px 30px; }
  .practice-topline { margin-bottom: 38px; }
  .practice-card h3 { font-size: 2.35rem; }
  .workflow-detail { padding: 10px 18px; }
  .board-row { min-height: 118px; grid-template-columns: 1fr; gap: 5px; align-content: center; }
  .board-row strong { font-size: 1.25rem; }
  .board-footer { grid-template-columns: 1fr; }
  .board-footer span { border-right: 0; border-bottom: 1px solid var(--rule-dark); }
  .approach-grid { grid-template-columns: 1fr; }
  .approach-grid li { min-height: 255px; border-right: 0; border-bottom: 1px solid var(--ink) !important; }
  .approach-grid li:last-child { border-bottom: 0 !important; }
  .approach-grid h3 { margin-top: 42px; }
  .footer-main { align-items: flex-start; flex-direction: column; }
  .footer-contact { align-items: flex-start; }
}

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