:root {
  --ink: #14141a;
  --muted: #5d6070;
  --blue: #3158f5;
  --indigo: #5f5ff4;
  --lavender: #c8c5ff;
  --line: rgba(40, 48, 91, 0.12);
  --surface: rgba(255, 255, 255, 0.68);
  --shadow: 0 28px 80px rgba(54, 45, 115, 0.10);
  font-family: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
  color: var(--ink);
  background: #fbfaf8;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; background: linear-gradient(180deg, #fdfbf9 0%, #faf9ff 48%, #f8f8fb 100%); }
a { color: inherit; text-decoration: none; }

.ambient { position: fixed; z-index: -1; border-radius: 50%; filter: blur(10px); pointer-events: none; }
.ambient-one { width: 620px; height: 620px; right: -170px; top: -120px; background: radial-gradient(circle, rgba(165, 157, 255, 0.36), rgba(220, 215, 255, 0)); }
.ambient-two { width: 500px; height: 500px; left: -240px; top: 520px; background: radial-gradient(circle, rgba(108, 151, 255, 0.16), rgba(220, 215, 255, 0)); }

.section-shell { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.site-header { position: sticky; top: 16px; z-index: 10; width: min(1180px, calc(100% - 48px)); margin: 16px auto 0; padding: 12px 14px 12px 18px; display: flex; justify-content: space-between; align-items: center; border: 1px solid rgba(255,255,255,.75); border-radius: 22px; background: rgba(250, 249, 248, 0.72); box-shadow: 0 12px 40px rgba(56, 53, 99, .08); backdrop-filter: blur(24px); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 750; letter-spacing: -.02em; }
.brand-mark { display: flex; width: 28px; }
.brand-mark i { display: block; width: 18px; height: 18px; border-radius: 50%; background: var(--blue); box-shadow: 0 5px 14px rgba(49,88,245,.28); }
.brand-mark i:last-child { margin-left: -8px; background: rgba(115,103,248,.58); backdrop-filter: blur(8px); }
nav { display: flex; align-items: center; gap: 6px; }
nav a { padding: 10px 13px; color: #4d4f5e; font-size: 14px; font-weight: 620; border-radius: 14px; }
nav a:hover { background: rgba(77, 92, 180, .07); color: var(--ink); }
nav .nav-cta { background: var(--ink); color: white; padding-inline: 17px; }
nav .nav-cta:hover { background: var(--blue); color: white; }

.hero { min-height: 760px; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 30px; padding: 84px 0 70px; }
.eyebrow { margin: 0 0 13px; color: var(--blue); font-size: 13px; font-weight: 760; letter-spacing: .11em; text-transform: uppercase; }
h1, h2, h3, p { text-wrap: pretty; }
h1 { max-width: 720px; margin: 0; font-size: clamp(62px, 7.2vw, 104px); line-height: .94; letter-spacing: -.065em; }
h1 span { color: var(--blue); }
.hero-lede { max-width: 680px; margin: 28px 0 0; color: #505361; font-size: 21px; line-height: 1.48; letter-spacing: -.012em; }
.hero-actions { display: flex; gap: 12px; margin-top: 32px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border-radius: 16px; font-size: 14px; font-weight: 720; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button.primary { color: white; background: var(--blue); box-shadow: 0 14px 28px rgba(49, 88, 245, .24); }
.button.quiet { border: 1px solid var(--line); background: rgba(255,255,255,.66); }

.portrait-composition { position: relative; width: min(86%, 410px); aspect-ratio: .9; justify-self: end; isolation: isolate; }
.portrait-halo { position: absolute; inset: 6% 4% 4% 10%; border-radius: 48% 48% 42% 42%; background: linear-gradient(145deg, rgba(215,213,255,.88), rgba(235,232,255,.4)); box-shadow: 0 38px 100px rgba(74,68,170,.17); transform: rotate(3deg); }
.portrait-frame { position: absolute; z-index: 2; inset: 8% 8% 4%; margin: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.86); border-radius: 44% 44% 32px 32px; background: #eee; box-shadow: 0 34px 86px rgba(43,40,92,.18); }
.portrait-frame img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center 30%; }
.portrait-note { position: absolute; z-index: 3; min-width: 118px; padding: 13px 15px; border: 1px solid rgba(255,255,255,.88); border-radius: 18px; background: rgba(255,255,255,.78); box-shadow: 0 16px 42px rgba(64,60,136,.13); backdrop-filter: blur(20px); }
.portrait-note b, .portrait-note span { display: block; }
.portrait-note b { font-size: 14px; }
.portrait-note span { margin-top: 3px; color: var(--muted); font-size: 12px; }
.note-signal { left: -2%; top: 18%; }
.note-evidence { right: -2%; top: 26%; }
.note-value { right: 8%; bottom: 2%; }

.approach, .work, .career, .principles { padding: 108px 0; }
.section-intro { max-width: 760px; }
.section-intro h2, .closing h2 { margin: 0; font-size: clamp(39px, 5vw, 64px); line-height: 1.02; letter-spacing: -.052em; }
.section-intro > p:last-child { margin: 18px 0 0; max-width: 630px; color: var(--muted); font-size: 18px; line-height: 1.52; }
.section-intro.split { max-width: none; display: grid; grid-template-columns: 1.4fr .6fr; gap: 60px; align-items: end; }
.section-intro.split > p { margin: 0 0 5px; }

.decision-flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; margin-top: 50px; overflow: hidden; border: 1px solid var(--line); border-radius: 26px; background: var(--line); box-shadow: var(--shadow); }
.decision-flow article { position: relative; min-height: 268px; padding: 28px 24px; background: rgba(255,255,255,.72); }
.decision-flow article > span { color: #a0a3b1; font-size: 12px; font-weight: 760; }
.decision-flow h3 { margin: 28px 0 8px; font-size: 22px; letter-spacing: -.03em; }
.decision-flow p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.46; }
.flow-icon { display: block; width: 42px; height: 42px; margin-top: 24px; border-radius: 13px; background: linear-gradient(145deg, #ebedff, #d4d5ff); box-shadow: inset 0 0 0 1px rgba(65,81,218,.1); }
.flow-icon:after { content: ""; display: block; width: 14px; height: 14px; margin: 14px; border: 2px solid var(--blue); border-radius: 50%; }
.test-icon:after { border-radius: 4px 4px 8px 8px; transform: rotate(45deg); }
.translate-icon:after { border-radius: 3px; box-shadow: 6px 6px 0 -3px var(--blue); }
.decide-icon:after { width: 16px; height: 8px; margin: 14px 12px; border-width: 0 0 2px 2px; border-radius: 0; transform: rotate(-45deg); }

.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 50px; }
.project-card { display: grid; grid-template-columns: 43% 57%; min-height: 360px; overflow: hidden; border: 1px solid rgba(55,58,87,.1); border-radius: 28px; background: rgba(255,255,255,.76); box-shadow: 0 20px 60px rgba(44,45,92,.07); transition: transform .3s ease, box-shadow .3s ease; }
.project-card:hover { transform: translateY(-4px); box-shadow: 0 28px 70px rgba(44,45,92,.12); }
.project-card.featured, .project-card.wide { grid-column: 1 / -1; grid-template-columns: 50% 50%; min-height: 390px; }
.project-visual { position: relative; min-height: 250px; overflow: hidden; background: linear-gradient(145deg, #f2f2ff, #e9e8ff 58%, #d9dcff); }
.project-copy { align-self: center; padding: 34px; }
.project-number { margin: 0 0 16px; color: var(--blue); font-size: 12px; font-weight: 780; letter-spacing: .08em; text-transform: uppercase; }
.project-copy h3 { margin: 0; font-size: clamp(25px, 2.8vw, 38px); line-height: 1.06; letter-spacing: -.045em; }
.project-copy > p:not(.project-number) { margin: 17px 0 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.project-copy ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.project-copy li, .tag-row span { padding: 8px 10px; border: 1px solid rgba(62, 70, 146, .1); border-radius: 10px; background: rgba(245,245,255,.8); color: #4a4e64; font-size: 12px; font-weight: 650; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }

.geo { position: absolute; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff, #8a91ff 28%, #405bf5 72%); box-shadow: 0 18px 30px rgba(49,88,245,.22); }
.geo-one { width: 72px; height: 72px; left: 18%; top: 22%; }
.geo-two { width: 42px; height: 42px; left: 47%; top: 58%; opacity: .62; }
.geo-three { width: 98px; height: 98px; right: 13%; top: 31%; }
.geo-visual:after { content: ""; position: absolute; left: 15%; right: 12%; top: 48%; height: 1px; background: rgba(58,72,200,.25); transform: rotate(9deg); }
.test-label { position: absolute; left: 14%; bottom: 15%; padding: 7px 9px; border-radius: 9px; background: rgba(255,255,255,.75); color: #61657b; font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.test-label.treatment { left: auto; right: 13%; color: var(--blue); }

.return-visual svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.return-visual path { fill: none; stroke: rgba(49,88,245,.55); stroke-width: 3; }
.person { position: absolute; z-index: 2; width: 38px; height: 38px; border: 7px solid rgba(255,255,255,.72); border-radius: 50%; background: #aaaee2; box-shadow: 0 10px 22px rgba(57,61,126,.16); }
.p1 { left: 12%; bottom: 19%; }.p2 { left: 31%; top: 23%; }.p3 { right: 29%; top: 20%; }.p4 { right: 10%; bottom: 26%; }
.person.active { width: 50px; height: 50px; background: var(--blue); box-shadow: 0 14px 28px rgba(49,88,245,.32); }

.ranking-visual { padding: 52px 28px; }
.rank-row { display: grid; grid-template-columns: 30px 1fr 78px; gap: 12px; align-items: center; margin-bottom: 12px; padding: 14px; border-radius: 15px; background: rgba(255,255,255,.76); box-shadow: 0 12px 24px rgba(59,57,130,.08); }
.rank-row span { color: var(--blue); font-size: 11px; font-weight: 800; }
.rank-row i { display: block; height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--blue), #8d91ff); }
.rank-row b { font-size: 12px; }
.rank-row.muted { opacity: .5; }

.value-visual { display: flex; align-items: center; justify-content: center; }
.value-circle { position: relative; z-index: 2; width: 112px; height: 112px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.86); border-radius: 50%; background: rgba(255,255,255,.65); box-shadow: 0 16px 40px rgba(57,56,130,.13); }
.value-circle.right { background: rgba(90,99,244,.82); color: white; }
.value-circle span { font-size: 26px; font-weight: 820; letter-spacing: -.04em; }
.value-circle small { margin-top: 5px; opacity: .66; }
.value-line { width: 60px; height: 2px; background: linear-gradient(90deg, #7c82e9, #4c60ef); }

.agent-visual { display: flex; align-items: center; justify-content: center; gap: 55px; }
.data-stack span { display: block; width: 110px; height: 28px; margin: -3px 0; border-radius: 50%; background: linear-gradient(180deg, #7c86ff, #445cec); border: 3px solid #dfe1ff; }
.agent-route { position: relative; width: 75px; }
.agent-route:before { content: ""; position: absolute; left: 0; top: 50%; width: 75px; height: 2px; background: var(--blue); }
.agent-route i { position: absolute; right: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--blue); }
.agent-route i:first-child { top: -35px; }.agent-route i:nth-child(2) { top: -4px; }.agent-route i:last-child { top: 27px; }
.owner-stack { display: grid; gap: 10px; }
.owner-stack b { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: rgba(255,255,255,.72); color: var(--blue); box-shadow: 0 12px 24px rgba(59,57,130,.1); }

.timeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 58px; }
.timeline:before { content: ""; position: absolute; left: 0; right: 0; top: 17px; height: 1px; background: linear-gradient(90deg, rgba(49,88,245,.18), rgba(49,88,245,.65), rgba(49,88,245,.18)); }
.timeline article { position: relative; padding-top: 55px; }
.timeline article > span { position: absolute; z-index: 2; top: 0; width: 35px; height: 35px; display: grid; place-items: center; border: 7px solid #f8f8fc; border-radius: 50%; background: var(--blue); color: white; font-size: 0; box-shadow: 0 0 0 1px rgba(49,88,245,.2); }
.timeline h3 { margin: 0; font-size: 23px; letter-spacing: -.035em; }
.timeline p { margin: 10px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }

.principle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.principle-grid article { padding: 28px; border: 1px solid var(--line); border-radius: 24px; background: rgba(255,255,255,.64); }
.principle-grid span { color: var(--blue); font-size: 12px; font-weight: 780; text-transform: uppercase; letter-spacing: .08em; }
.principle-grid h3 { margin: 24px 0 9px; font-size: 24px; letter-spacing: -.035em; }
.principle-grid p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }

.closing { margin-top: 40px; margin-bottom: 32px; padding: 58px; display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; border: 1px solid rgba(255,255,255,.7); border-radius: 32px; background: linear-gradient(120deg, rgba(238,238,255,.88), rgba(212,215,255,.7)); box-shadow: var(--shadow); }
.closing h2 { max-width: 820px; font-size: clamp(35px, 4.6vw, 58px); }
.closing .button { flex: 0 0 auto; }
footer { display: flex; justify-content: space-between; padding: 18px 0 36px; color: #747785; font-size: 12px; }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .75s ease, transform .75s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .reveal { opacity: 1; transform: none; transition: none; } * { animation: none !important; } }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 90px; }
  .portrait-composition { max-width: 420px; margin: 24px auto 0; justify-self: center; }
  .decision-flow { grid-template-columns: repeat(2, 1fr); }
  .decision-flow article:last-child { grid-column: 1 / -1; }
  .project-card, .project-card.featured, .project-card.wide { grid-template-columns: 1fr; }
  .section-intro.split { grid-template-columns: 1fr; gap: 20px; }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .timeline:before { display: none; }
  .principle-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .section-shell, .site-header { width: min(100% - 28px, 1180px); }
  .site-header { top: 8px; }
  nav a:not(.nav-cta) { display: none; }
  h1 { font-size: 58px; }
  .hero-lede { font-size: 18px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .portrait-composition { width: min(88%, 340px); margin-top: 20px; }
  .portrait-note { min-width: 96px; padding: 10px 12px; }
  .note-signal { left: 0; top: 15%; }
  .note-evidence { right: 0; top: 24%; }
  .note-value { right: 4%; bottom: 0; }
  .approach, .work, .career, .principles { padding: 78px 0; }
  .decision-flow { grid-template-columns: 1fr; }
  .decision-flow article:last-child { grid-column: auto; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card.featured, .project-card.wide { grid-column: auto; }
  .project-copy { padding: 28px; }
  .timeline { grid-template-columns: 1fr; }
  .closing { padding: 32px; flex-direction: column; align-items: stretch; }
  footer { gap: 18px; flex-direction: column; }
}
