/* Kai Zang — kaizang.dev
   Pure HTML/CSS/JS. No framework or external font required. */

:root {
  --ink: #09090b;
  --paper: #f5f5f7;
  --white: #fff;
  --muted: #6e6e73;
  --line: rgba(12, 12, 14, 0.13);
  --blue: #087dff;
  --violet: #7755ff;
  --pink: #ee4f9a;
  --lime: #b9ff66;
  --radius: 34px;
  --pad: max(6vw, 24px);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.loading { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
::selection { color: white; background: #146ef5; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.skip-link { position: fixed; z-index: 1000; top: 10px; left: 10px; transform: translateY(-150%); padding: 10px 14px; border-radius: 10px; background: #fff; }
.skip-link:focus { transform: translateY(0); }

.noise {
  position: fixed; z-index: 900; inset: 0; opacity: 0.018; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.loader { position: fixed; z-index: 999; inset: 0; display: grid; place-items: center; background: #050506; color: white; transition: opacity .65s var(--ease), visibility .65s; }
.loader.done { opacity: 0; visibility: hidden; }
.loader-mark { font-size: 22px; font-weight: 750; letter-spacing: -.08em; }
.loader-line { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: #222; }
.loader-line span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--blue), var(--violet), var(--pink)); animation: load 1.1s var(--ease) forwards; }
@keyframes load { to { width: 100%; } }

.scroll-progress { position: fixed; z-index: 220; top: 0; left: 0; width: 100%; height: 2px; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg, var(--blue), var(--violet), var(--pink)); }

.cursor { position: fixed; z-index: 950; top: 0; left: 0; width: 76px; height: 76px; display: grid; place-items: center; border-radius: 50%; opacity: 0; pointer-events: none; transform: translate(-50%, -50%) scale(.25); color: #fff; background: rgba(5,5,6,.86); backdrop-filter: blur(10px); transition: opacity .2s, transform .35s var(--ease); }
.cursor.active { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.cursor span { font-size: 11px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }

.site-header { position: fixed; z-index: 200; top: 16px; left: 0; right: 0; pointer-events: none; }
.nav-shell { width: min(920px, calc(100% - 30px)); height: 58px; margin: auto; padding: 7px 9px 7px 18px; display: flex; align-items: center; justify-content: space-between; border: 1px solid rgba(255,255,255,.75); border-radius: 20px; background: rgba(250,250,252,.72); box-shadow: 0 12px 40px rgba(0,0,0,.07); backdrop-filter: blur(24px) saturate(180%); pointer-events: auto; transition: background .3s, border .3s, color .3s, box-shadow .3s; }
.site-header.on-dark .nav-shell { color: #fff; background: rgba(18,18,20,.67); border-color: rgba(255,255,255,.12); box-shadow: 0 12px 40px rgba(0,0,0,.2); }
.brand { font-size: 18px; font-weight: 800; letter-spacing: -.08em; }
.brand span { color: var(--blue); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { position: relative; font-size: 12px; font-weight: 520; color: #4d4d52; transition: color .2s; }
.on-dark .nav-links a { color: #b6b6bb; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -5px; height: 1px; background: currentColor; transition: right .25s var(--ease); }
.nav-links a:hover { color: var(--ink); }
.on-dark .nav-links a:hover { color: #fff; }
.nav-links a:hover::after { right: 0; }
.nav-cta, .button-dark { padding: 13px 17px; border-radius: 13px; color: white; background: #111114; font-size: 12px; font-weight: 650; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.on-dark .nav-cta { color: #111; background: #fff; }
.nav-cta span { margin-left: 8px; }
.menu-toggle { display: none; width: 42px; height: 42px; padding: 0; border: 0; background: transparent; }
.menu-toggle i { display: block; width: 18px; height: 1px; margin: 5px auto; background: currentColor; transition: transform .25s, opacity .25s; }

.hero { position: relative; isolation: isolate; min-height: 100svh; padding: 170px var(--pad) 70px; display: grid; place-items: center; overflow: hidden; text-align: center; background: radial-gradient(circle at 50% 55%, #fff 0%, #f7f7f9 48%, #ededf1 100%); }
.hero-inner { position: relative; z-index: 5; display: flex; align-items: center; flex-direction: column; }
.availability { display: flex; align-items: center; gap: 9px; margin: 0 0 44px; color: #68686d; font-size: 11px; font-weight: 620; letter-spacing: .08em; text-transform: uppercase; }
.availability i { width: 7px; height: 7px; border-radius: 50%; background: #2db66c; box-shadow: 0 0 0 6px rgba(45,182,108,.1); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 10px rgba(45,182,108,0); } }
.hero-title { max-width: 1320px; margin: 0; font-size: clamp(57px, 9.4vw, 144px); font-weight: 710; line-height: .87; letter-spacing: -.083em; }
.hero-title .line { display: block; overflow: hidden; padding: 0 .08em .08em 0; }
.hero-title .line > span { display: block; transform: translateY(115%); animation: title-in 1.05s .55s var(--ease) forwards; }
.hero-title .line:nth-child(2) > span { animation-delay: .68s; }
.hero-title .gradient-line span { padding-right: .12em; color: transparent; background: linear-gradient(105deg, #087dfc 5%, #7463ff 43%, #ef57a2 77%, #f78b51); background-size: 180% 100%; background-clip: text; -webkit-background-clip: text; animation-name: title-in, gradient-shift; animation-duration: 1.05s, 7s; animation-delay: .68s, 1.7s; animation-timing-function: var(--ease), ease-in-out; animation-fill-mode: forwards, both; animation-iteration-count: 1, infinite; }
@keyframes title-in { to { transform: translateY(0); } }
@keyframes gradient-shift { 50% { background-position: 100% 0; } }
.hero-copy { max-width: 735px; margin: 36px 0 0; color: #646469; font-size: clamp(17px, 1.65vw, 22px); line-height: 1.55; letter-spacing: -.015em; }
.hero-copy strong { color: #242428; font-weight: 620; }
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 40px; }
.button { display: inline-flex; align-items: center; gap: 18px; }
.button-dark { padding: 16px 21px; font-size: 13px; transition: box-shadow .25s, transform .25s; }
.button-dark:hover { box-shadow: 0 13px 32px rgba(0,0,0,.19); transform: translateY(-2px); }
.text-link, .inline-link { font-size: 13px; font-weight: 650; }
.text-link span, .inline-link span { display: inline-block; margin-left: 6px; transition: transform .25s var(--ease); }
.text-link:hover span, .inline-link:hover span { transform: translate(3px, -3px); }
.hero-reveal { opacity: 0; transform: translateY(20px); animation: fade-up .85s 1s var(--ease) forwards; }
.hero-copy.hero-reveal { animation-delay: .92s; }
.hero-actions.hero-reveal { animation-delay: 1.05s; }
@keyframes fade-up { to { opacity: 1; transform: translateY(0); } }
.hero-glow { position: absolute; z-index: -1; width: 430px; height: 430px; border-radius: 50%; filter: blur(100px); opacity: .24; will-change: transform; }
.glow-one { left: -210px; top: 25%; background: #6ab7ff; }
.glow-two { right: -240px; top: 48%; background: #d48dff; }
.hero-orbit { position: absolute; z-index: 1; top: 50%; left: 50%; width: min(76vw, 1030px); aspect-ratio: 1; transform: translate(-50%, -50%); pointer-events: none; opacity: .23; }
.orbit-ring { position: absolute; inset: 0; border: 1px solid rgba(85,88,98,.2); border-radius: 50%; animation: rotate 28s linear infinite; }
.orbit-ring::before, .orbit-ring::after { content: ""; position: absolute; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 18px var(--blue); }
.orbit-ring::before { left: -4px; }.orbit-ring::after { right: -4px; background: var(--pink); box-shadow: 0 0 18px var(--pink); }
.ring-b { inset: 15%; animation-duration: 18s; animation-direction: reverse; border-style: dashed; }
.ring-b::before { background: var(--violet); box-shadow: 0 0 16px var(--violet); }
.orbit-core { position: absolute; inset: 45%; border-radius: 50%; background: rgba(255,255,255,.55); box-shadow: 0 0 60px rgba(50,110,255,.22); backdrop-filter: blur(8px); }
.orbit-core span { position: absolute; inset: 34%; border-radius: 50%; background: linear-gradient(145deg, var(--blue), var(--violet)); animation: core-pulse 3s ease-in-out infinite; }
.orbit-label { position: absolute; padding: 6px 9px; border: 1px solid rgba(0,0,0,.1); border-radius: 999px; color: #777; background: rgba(255,255,255,.6); font-size: 9px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; backdrop-filter: blur(8px); }
.label-query { left: 8%; top: 42%; }.label-context { right: 17%; top: 19%; }.label-answer { right: 6%; bottom: 28%; }
@keyframes rotate { to { transform: rotate(360deg); } }
@keyframes core-pulse { 50% { transform: scale(1.3); box-shadow: 0 0 30px var(--blue); } }
.scroll-cue { position: absolute; z-index: 5; bottom: 23px; display: grid; gap: 10px; color: #8c8c91; font-size: 9px; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; }
.scroll-cue i { width: 1px; height: 28px; margin: auto; overflow: hidden; background: #bbb; }
.scroll-cue i::after { content: ""; display: block; width: 100%; height: 45%; background: #222; animation: scroll-line 1.8s ease-in-out infinite; }
@keyframes scroll-line { from { transform: translateY(-150%); } to { transform: translateY(250%); } }

.section-pad { padding: 140px var(--pad); }
.section-label { display: flex; align-items: center; gap: 12px; margin-bottom: 42px; color: #7d7d82; font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.section-label span { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 50%; color: #333; letter-spacing: 0; }
.section-label.light { color: #7f7f86; }.section-label.light span { border-color: #33343a; color: #aaa; }
.display-heading { margin: 0; font-size: clamp(48px, 7vw, 104px); font-weight: 650; line-height: .96; letter-spacing: -.07em; }
.reveal { opacity: 0; transform: translateY(42px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in-view { opacity: 1; transform: translateY(0); }

.thesis { color: #fff; background: #09090b; }
.thesis-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 10vw; align-items: end; }
.thesis .display-heading { max-width: 980px; }
.thesis-copy { border-top: 1px solid #33343a; padding-top: 26px; }
.thesis-copy p:first-child { margin: 0 0 20px; color: #fff; font-size: 20px; font-weight: 600; }
.thesis-copy p:last-child { margin: 0; color: #929298; font-size: 16px; line-height: 1.65; }

.agent-section { position: relative; color: white; background: #09090b; }
.agent-sticky { overflow: clip; }
.agent-intro { min-height: 82svh; padding: 135px var(--pad) 70px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.agent-intro .section-label { align-self: flex-start; }
.agent-kicker { margin: auto 0 22px; color: #9b9ba2; font-size: 12px; font-weight: 650; letter-spacing: .15em; text-transform: uppercase; }
.agent-title { max-width: 1080px; margin: 0; font-size: clamp(55px, 8vw, 122px); font-weight: 670; line-height: .91; letter-spacing: -.075em; }
.agent-title em { color: transparent; font-style: normal; background: linear-gradient(100deg, #71aaff, #9a78ff 55%, #f369ad); background-clip: text; -webkit-background-clip: text; }
.agent-lead { max-width: 650px; margin: 34px 0 auto; color: #929298; font-size: 18px; line-height: 1.6; }
.rag-stage { position: relative; padding: 0 var(--pad) 110px; }
.rag-stage::before { content: ""; position: absolute; z-index: 0; left: 50%; top: 35%; width: 65vw; height: 45vw; transform: translate(-50%, -50%); border-radius: 50%; background: rgba(66,87,255,.2); filter: blur(150px); }
.rag-window { position: relative; z-index: 1; width: min(1120px, 100%); margin: auto; overflow: hidden; border: 1px solid #34343a; border-radius: 28px; background: linear-gradient(150deg, rgba(26,26,30,.95), rgba(12,12,14,.98)); box-shadow: 0 50px 130px rgba(0,0,0,.6), inset 0 1px rgba(255,255,255,.05); }
.rag-topbar { height: 56px; padding: 0 19px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #303036; color: #85858c; font: 10px ui-monospace, SFMono-Regular, Menlo, monospace; }
.rag-topbar b { padding: 5px 8px; border: 1px solid rgba(80,220,140,.25); border-radius: 999px; color: #60d792; background: rgba(80,220,140,.07); font-size: 9px; text-transform: uppercase; }
.traffic { display: flex; gap: 7px; }.traffic i { width: 8px; height: 8px; border-radius: 50%; background: #3c3c42; }
.rag-query { width: calc(100% - 48px); margin: 24px; padding: 18px 20px; display: flex; align-items: center; gap: 15px; border: 1px solid #323238; border-radius: 16px; background: rgba(255,255,255,.035); }
.rag-query .avatar { display: grid; place-items: center; flex: 0 0 30px; height: 30px; border-radius: 50%; color: #15151a; background: #ececf2; font-size: 11px; font-weight: 750; }
.rag-query p { margin: 0; color: #d5d5da; font-size: 14px; }
.pipeline { position: relative; padding: 8px 24px 24px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 11px; }
.pipeline-line { position: absolute; z-index: 0; top: 64px; left: 12%; right: 12%; height: 1px; overflow: hidden; background: #34343a; }
.pipeline-line span { display: block; width: 24%; height: 100%; background: linear-gradient(90deg, transparent, #806cff, #59a8ff, transparent); box-shadow: 0 0 13px #806cff; animation: data-flow 4.5s ease-in-out infinite; }
@keyframes data-flow { from { transform: translateX(-120%); } to { transform: translateX(520%); } }
.pipeline-node { position: relative; z-index: 1; min-height: 130px; padding: 18px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid #303036; border-radius: 17px; background: #141417; transition: border-color .3s, transform .3s, background .3s; animation: node-focus 8s ease-in-out infinite; }
.pipeline-node:nth-of-type(3) { animation-delay: 1.5s; }.pipeline-node:nth-of-type(4) { animation-delay: 3s; }.pipeline-node:nth-of-type(5) { animation-delay: 4.5s; }
.pipeline-node:hover { transform: translateY(-5px); border-color: #6c60c8; background: #18181d; }
.pipeline-node > span { color: #686870; font: 9px ui-monospace, SFMono-Regular, Menlo, monospace; }
.pipeline-node div { display: grid; gap: 7px; }.pipeline-node b { font-size: 14px; }.pipeline-node small { color: #777780; font-size: 10px; line-height: 1.45; }
.pipeline-node > i { position: absolute; top: 50%; right: -16px; width: 7px; height: 7px; border-radius: 50%; background: #7767ff; box-shadow: 0 0 14px #7767ff; }
.pipeline-node:last-child > i { display: none; }
@keyframes node-focus { 8%, 20% { border-color: #7463d7; box-shadow: inset 0 0 24px rgba(96,78,255,.08); } 28% { border-color: #303036; box-shadow: none; } }
.rag-answer { margin: 0 24px 24px; padding: 24px; display: flex; gap: 18px; border: 1px solid rgba(129,111,255,.3); border-radius: 18px; background: linear-gradient(120deg, rgba(73,63,170,.16), rgba(51,116,190,.08)); }
.answer-spark { display: grid; place-items: center; flex: 0 0 37px; height: 37px; border: 1px solid rgba(255,255,255,.13); border-radius: 11px; color: #a995ff; background: rgba(255,255,255,.04); }
.rag-answer small { color: #8175d8; font-size: 9px; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
.rag-answer p { max-width: 720px; margin: 9px 0 17px; color: #c7c7ce; font-size: 13px; line-height: 1.6; }
.sources { display: flex; gap: 8px; }.sources span { padding: 5px 8px; border-radius: 999px; color: #7dca9c; background: rgba(72,180,116,.09); font-size: 9px; }
.agent-outcome { padding-top: 80px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.agent-principle { min-height: 250px; padding: 30px 7% 30px 0; border-top: 1px solid #2f2f34; }
.agent-principle + .agent-principle { padding-left: 7%; border-left: 1px solid #2f2f34; }
.principle-number { color: #696970; font: 10px ui-monospace, SFMono-Regular, Menlo, monospace; }
.agent-principle h3 { margin: 55px 0 15px; font-size: 25px; letter-spacing: -.035em; }
.agent-principle p { max-width: 330px; margin: 0; color: #898990; font-size: 14px; line-height: 1.65; }
.agent-link { grid-column: 1 / -1; margin-top: 55px; padding: 28px 0; display: flex; align-items: center; border-top: 1px solid #2f2f34; border-bottom: 1px solid #2f2f34; transition: padding .3s var(--ease), color .3s; }
.agent-link > span { font-size: 24px; font-weight: 600; letter-spacing: -.03em; }.agent-link i { margin-left: 14px; color: #777; font-size: 12px; font-style: normal; }.agent-link b { margin-left: auto; font-size: 25px; font-weight: 400; }
.agent-link:hover { padding-left: 12px; color: #9e92ff; }

.work-section { background: #fff; }
.section-heading-row { display: flex; align-items: end; justify-content: space-between; gap: 8vw; margin-bottom: 80px; }
.section-aside { max-width: 360px; margin: 0 0 8px; color: var(--muted); font-size: 15px; line-height: 1.65; }
.project-card { position: relative; overflow: hidden; margin-top: 24px; border-radius: var(--radius); transform-style: preserve-3d; transition: transform .2s ease-out; }
.travel-card { min-height: 720px; padding: clamp(34px, 5vw, 75px); display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; background: radial-gradient(circle at 76% 34%, #fff 0 8%, transparent 40%), linear-gradient(135deg, #e9f4ff, #ede9ff 58%, #ffeaf1); }
.project-copy { position: relative; z-index: 4; }
.project-meta { margin: 0 0 52px; color: #74747a; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.project-copy h3 { max-width: 700px; margin: 0; font-size: clamp(49px, 6vw, 88px); font-weight: 670; line-height: .93; letter-spacing: -.068em; }
.project-subtitle { margin: 22px 0; font-size: 20px; font-weight: 620; letter-spacing: -.025em; }
.project-description { max-width: 520px; margin: 22px 0 0; color: #5f626a; font-size: 15px; line-height: 1.7; }
.tag-list { display: flex; flex-wrap: wrap; gap: 7px; margin: 30px 0; }.tag-list span, .course-list span { padding: 7px 10px; border: 1px solid rgba(0,0,0,.12); border-radius: 999px; color: #525258; font-size: 9px; font-weight: 680; letter-spacing: .04em; text-transform: uppercase; }
.travel-visual { position: relative; min-height: 600px; transform: translateZ(35px); }
.travel-halo { position: absolute; width: 480px; height: 480px; top: 50%; left: 55%; transform: translate(-50%,-50%); border-radius: 50%; background: rgba(255,255,255,.6); box-shadow: 0 40px 100px rgba(82,80,160,.16); }
.phone { position: absolute; width: min(255px, 24vw); aspect-ratio: .5; padding: 7px; border: 1px solid rgba(255,255,255,.5); border-radius: 42px; background: #111216; box-shadow: 0 35px 70px rgba(43,39,80,.24); }
.phone-screen { position: relative; height: 100%; overflow: hidden; border-radius: 35px; background: #f7f7f8; }
.phone-back { top: 11%; left: 10%; transform: rotate(-9deg) translateZ(10px); opacity: .75; }
.phone-front { z-index: 2; top: 4%; right: 5%; transform: rotate(7deg) translateZ(60px); }
.phone-island { position: absolute; z-index: 5; top: 15px; left: 50%; width: 72px; height: 19px; transform: translateX(-50%); border-radius: 999px; background: #0a0a0b; }
.media-slot img { position: relative; z-index: 2; opacity: 0; transition: opacity .4s; }
.media-slot.has-media img { opacity: 1; }
.media-slot.has-media .media-fallback, .media-slot.has-media .research-fallback { display: none; }
.media-fallback { position: absolute; inset: 0; padding: 34px 24px; display: grid; place-content: center; text-align: center; color: #999; background: linear-gradient(150deg,#f5f7fb,#e6e8ef); }
.media-fallback span { font-size: 70px; font-weight: 700; letter-spacing: -.08em; opacity: .15; }.media-fallback p { font-size: 12px; line-height: 1.5; }
.travel-fallback { display: block; padding: 75px 22px 25px; text-align: left; color: #101115; background: linear-gradient(170deg,#fff,#dcecff 50%,#c8bfff); }
.travel-fallback small { color: #666; font-size: 9px; text-transform: uppercase; letter-spacing: .12em; }.travel-fallback strong { display: block; margin: 18px 0 40px; font-size: 28px; line-height: .95; letter-spacing: -.055em; }
.fake-destination { height: 220px; padding: 14px; display: flex; align-items: end; gap: 10px; border-radius: 23px; color: #fff; background: linear-gradient(150deg,#252940,#7a7da4); box-shadow: 0 15px 35px rgba(0,0,0,.2); }.fake-destination i { width: 30px; height: 30px; border-radius: 50%; background: #fff3; }.fake-destination span { margin: 0 0 2px; font-size: 8px; font-weight: 600; letter-spacing: .02em; opacity: .75; }
.gomoku-card { min-height: 620px; padding: clamp(34px, 5vw, 75px); display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; color: white; background: #101012; }
.gomoku-card .project-copy { padding-left: 7%; }.gomoku-card .project-description { color: #9999a0; }.gomoku-card .tag-list span { color: #aaa; border-color: #3b3b42; }
.gomoku-visual { display: grid; place-items: center; transform: translateZ(35px); }
.board { position: relative; width: min(440px, 37vw); aspect-ratio: 1; border: 1px solid #38383e; border-radius: 28px; background-color: #18181b; background-image: linear-gradient(#303036 1px, transparent 1px),linear-gradient(90deg,#303036 1px,transparent 1px); background-size: 10% 10%; box-shadow: 0 35px 80px #000; transform: perspective(900px) rotateX(57deg) rotateZ(-20deg); }
.stone { position: absolute; width: 7%; aspect-ratio: 1; border-radius: 50%; box-shadow: 4px 8px 12px rgba(0,0,0,.4); }.stone.black { background: linear-gradient(145deg,#45454c,#050505); }.stone.white { background: linear-gradient(145deg,#fff,#9b9ba4); }
.s1{left:46.5%;top:46.5%}.s2{left:56.5%;top:46.5%}.s3{left:36.5%;top:36.5%}.s4{left:46.5%;top:36.5%}.s5{left:26.5%;top:26.5%}.s6{left:56.5%;top:36.5%}.s7{left:16.5%;top:16.5%}.s8{left:66.5%;top:36.5%}
.thinking-ring { position: absolute; left: 15%; top: 15%; width: 10%; aspect-ratio: 1; border: 2px solid #7088ff; border-radius: 50%; box-shadow: 0 0 25px #536dff; animation: think 1.6s ease-out infinite; }
@keyframes think { to { transform: scale(1.65); opacity: 0; } }

.research-section { min-height: 850px; display: grid; grid-template-columns: 1fr 1fr; color: white; background: #0a0a0c; }
.research-image { position: relative; min-height: 700px; overflow: hidden; background: #121217; }
.research-image::after { content:""; position:absolute; inset:0; z-index:3; background:linear-gradient(90deg,transparent 70%,#0a0a0c),linear-gradient(0deg,rgba(0,0,0,.38),transparent 45%); pointer-events:none; }
.research-fallback { position: absolute; inset: 0; padding: 8%; color: #6eebbd; background: radial-gradient(circle at 53% 42%,rgba(39,185,157,.2),transparent 24%),linear-gradient(145deg,#12171a,#07090a); }
.research-fallback > span { font: 10px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing:.15em; text-transform:uppercase; }
.research-fallback > p { position: absolute; left: 8%; bottom: 7%; margin:0; color:#646a6d; font:10px ui-monospace, SFMono-Regular, Menlo, monospace; }
.vision-frame { position:absolute; top:50%; left:50%; width:42%; aspect-ratio:1; transform:translate(-50%,-50%); border:1px solid #48dcb044; }
.vision-frame i { position:absolute; width:20px; height:20px; border-color:#59e4b9; }.vision-frame i:nth-child(1){left:-1px;top:-1px;border-left:2px solid;border-top:2px solid}.vision-frame i:nth-child(2){right:-1px;top:-1px;border-right:2px solid;border-top:2px solid}.vision-frame i:nth-child(3){left:-1px;bottom:-1px;border-left:2px solid;border-bottom:2px solid}.vision-frame i:nth-child(4){right:-1px;bottom:-1px;border-right:2px solid;border-bottom:2px solid}.vision-frame b { position:absolute; left:0; bottom:-26px; color:#59e4b9; font:9px ui-monospace, SFMono-Regular, Menlo, monospace; }
.research-copy { display: flex; flex-direction: column; justify-content: center; }
.research-place { margin: 0 0 20px; color: #818188; font-size: 11px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.research-copy h2 { max-width: 650px; margin: 0; font-size: clamp(50px, 6vw, 88px); line-height: .95; letter-spacing: -.066em; }
.research-copy h2 em { color: #6ce1ba; font-style: normal; }
.research-lead { max-width: 610px; margin: 35px 0; color: #929298; font-size: 16px; line-height: 1.7; }
.research-facts { display: grid; grid-template-columns: 1fr 1fr; margin: 15px 0 40px; border-top: 1px solid #303036; border-bottom: 1px solid #303036; }
.research-facts div { padding: 22px 0; display: grid; gap: 9px; }.research-facts div + div { padding-left: 24px; border-left: 1px solid #303036; }.research-facts span { color: #6f6f76; font-size: 9px; font-weight:700; letter-spacing:.13em; text-transform:uppercase; }.research-facts strong { font-size: 12px; font-weight:550; }
.certificate-link { padding: 18px 20px; display:flex; justify-content:space-between; border:1px solid #36363c; border-radius:14px; color:#ddd; font-size:12px; font-weight:620; transition:background .25s,border .25s; }.certificate-link:hover { background:#16161a; border-color:#575760; }.certificate-link b { font-weight:400; }

.resume-section { background:#f2f2f4; }
.resume-head .display-heading span { color:#9a9a9f; }.resume-intro { max-width:360px; }.resume-intro p { margin:0 0 25px; color:var(--muted); font-size:15px; line-height:1.65; }
.resume-grid { display:grid; grid-template-columns:1fr 1fr; gap:22px; }
.resume-block { position:relative; min-height:620px; padding:clamp(28px,4vw,58px); border:1px solid rgba(255,255,255,.8); border-radius:var(--radius); background:rgba(255,255,255,.72); box-shadow:0 18px 60px rgba(0,0,0,.04); }
.block-label { margin:0 0 65px; color:#7d7d82; font-size:10px; font-weight:700; letter-spacing:.15em; text-transform:uppercase; }
.resume-date { color:#777; font-size:11px; font-weight:620; }
.education-block h3 { margin:24px 0 12px; font-size:clamp(40px,4vw,61px); line-height:.95; letter-spacing:-.06em; }.education-block h3 span { color:#8d8d93; }.education-block h4 { margin:26px 0 12px; font-size:18px; }.education-block > p:not(.block-label) { max-width:480px; color:var(--muted); font-size:14px; line-height:1.6; }
.course-list { display:flex; flex-wrap:wrap; gap:6px; margin-top:25px; }.resume-stat { position:absolute; right:45px; bottom:42px; display:grid; }.resume-stat strong { font-size:43px; letter-spacing:-.06em; }.resume-stat strong span { color:#999; font-size:19px; }.resume-stat small { color:#999; font-size:9px; letter-spacing:.1em; text-transform:uppercase; }
.timeline-item { position:relative; padding:27px 0 28px 30px; border-top:1px solid var(--line); }.timeline-item::before { content:""; position:absolute; left:0; top:34px; width:7px; height:7px; border-radius:50%; background:#111; box-shadow:0 0 0 6px #eee; }.timeline-item > span { color:#999; font-size:9px; font-weight:700; letter-spacing:.13em; text-transform:uppercase; }.timeline-item h3 { margin:10px 0 8px; font-size:23px; letter-spacing:-.03em; }.timeline-item p { max-width:480px; margin:0; color:var(--muted); font-size:13px; line-height:1.55; }
.skills-panel { margin-top:22px; padding:clamp(30px,4vw,58px); border-radius:var(--radius); color:#fff; background:#0b0b0d; }.skills-panel .block-label { color:#777; margin-bottom:45px; }.skills-grid { display:grid; grid-template-columns:repeat(3,1fr); border-top:1px solid #303036; }.skills-grid > div { min-height:180px; padding:25px 24px 25px 0; border-bottom:1px solid #303036; }.skills-grid > div:nth-child(3n+2),.skills-grid > div:nth-child(3n+3) { padding-left:24px; border-left:1px solid #303036; }.skills-grid span { color:#616168; font:9px ui-monospace,SFMono-Regular,Menlo,monospace; }.skills-grid h3 { margin:35px 0 9px; font-size:20px; letter-spacing:-.03em; }.skills-grid p { margin:0; color:#8b8b92; font-size:12px; line-height:1.55; }

.marquee { padding:48px 0; overflow:hidden; color:#111; background:linear-gradient(100deg,#dcecff,#ece5ff 45%,#ffe4ef); }.marquee-track { width:max-content; display:flex; align-items:center; gap:30px; animation:marquee 26s linear infinite; }.marquee span { font-size:clamp(39px,5.5vw,82px); font-weight:650; letter-spacing:-.055em; white-space:nowrap; }.marquee i { width:9px; height:9px; flex:0 0 9px; border-radius:50%; background:#111; }
@keyframes marquee { to { transform:translateX(-50%); } }

.footer { position:relative; overflow:hidden; min-height:92svh; padding-bottom:35px; color:#fff; background:#08080a; }.footer-glow { position:absolute; top:10%; right:-15%; width:60vw; height:60vw; border-radius:50%; background:radial-gradient(circle,rgba(97,90,255,.3),transparent 65%); filter:blur(20px); }.footer-kicker { position:relative; margin:0 0 45px; color:#8e8e95; font-size:12px; font-weight:650; letter-spacing:.13em; text-transform:uppercase; }.footer h2 { position:relative; max-width:1200px; margin:0; font-size:clamp(62px,9vw,138px); font-weight:660; line-height:.9; letter-spacing:-.08em; }.footer h2 a { color:#73737b; transition:color .35s; }.footer h2 a:hover { color:#9a8cff; }.footer h2 span { font-size:.55em; }.footer-links { position:relative; margin-top:90px; display:flex; gap:22px; }.footer-links a { padding:10px 0; border-bottom:1px solid #4a4a50; color:#aaa; font-size:12px; }.footer-links a:hover { color:#fff; border-color:#fff; }.footer-bottom { position:relative; margin-top:90px; padding-top:24px; display:flex; justify-content:space-between; border-top:1px solid #303036; color:#777; font-size:10px; text-transform:uppercase; letter-spacing:.08em; }.footer-bottom b { font-weight:inherit; }

.toast { position:fixed; z-index:980; left:50%; bottom:25px; width:min(430px,calc(100% - 30px)); padding:13px 13px 13px 18px; display:flex; align-items:center; gap:15px; transform:translate(-50%,140%); border:1px solid rgba(255,255,255,.14); border-radius:15px; color:#fff; background:rgba(18,18,21,.92); box-shadow:0 20px 50px rgba(0,0,0,.25); backdrop-filter:blur(18px); transition:transform .4s var(--ease); }.toast.show { transform:translate(-50%,0); }.toast span { flex:1; font-size:12px; line-height:1.4; }.toast button { width:30px; height:30px; border:0; border-radius:9px; color:#aaa; background:#2c2c31; cursor:pointer; }

@media (max-width: 900px) {
  .cursor { display:none; }
  .nav-shell { height:55px; }.nav-links { gap:18px; }.nav-cta { display:none; }
  .hero { padding-top:150px; }.hero-orbit { width:110vw; opacity:.18; }
  .thesis-grid { grid-template-columns:1fr; }.thesis-copy { max-width:550px; margin-left:auto; }
  .agent-outcome { grid-template-columns:1fr; }.agent-principle,.agent-principle+.agent-principle { min-height:auto; padding:30px 0 50px; border-left:0; }.agent-principle h3 { margin-top:35px; }
  .travel-card { grid-template-columns:1fr; }.travel-visual { min-height:550px; }.phone { width:230px; }.phone-back{left:20%}.phone-front{right:18%}
  .gomoku-card { grid-template-columns:1fr; }.gomoku-card .project-copy { padding:60px 0 0; }.board { width:min(450px,70vw); }
  .research-section { grid-template-columns:1fr; }.research-image { min-height:600px; }.research-image::after { background:linear-gradient(0deg,#0a0a0c,transparent 30%); }.research-copy { padding-top:70px; }
  .resume-grid { grid-template-columns:1fr; }.skills-grid { grid-template-columns:repeat(2,1fr); }.skills-grid > div:nth-child(3n+2),.skills-grid > div:nth-child(3n+3){padding-left:0;border-left:0}.skills-grid > div:nth-child(even){padding-left:24px;border-left:1px solid #303036}
}

@media (max-width: 650px) {
  :root { --radius:25px; }
  .section-pad { padding-top:95px; padding-bottom:95px; }
  .site-header { top:9px; }.nav-shell { width:calc(100% - 18px); border-radius:17px; }
  .menu-toggle { display:block; order:3; }.menu-toggle.active i:first-of-type { transform:translateY(3px) rotate(45deg); }.menu-toggle.active i:last-of-type { transform:translateY(-3px) rotate(-45deg); }
  .nav-links { position:absolute; top:62px; left:0; right:0; padding:14px; display:grid; gap:0; border:1px solid rgba(255,255,255,.7); border-radius:17px; background:rgba(250,250,252,.94); box-shadow:0 20px 40px rgba(0,0,0,.1); backdrop-filter:blur(20px); opacity:0; visibility:hidden; transform:translateY(-8px); transition:.25s var(--ease); }.on-dark .nav-links { background:rgba(18,18,20,.95); border-color:#333; }.nav-links.open { opacity:1; visibility:visible; transform:translateY(0); }.nav-links a { padding:13px 8px; font-size:13px; border-bottom:1px solid rgba(0,0,0,.07); }.on-dark .nav-links a{border-color:#333}
  .hero { min-height:100svh; padding:125px 20px 65px; }.availability { margin-bottom:30px; font-size:9px; }.hero-title { font-size:clamp(51px,15.8vw,76px); line-height:.91; }.hero-copy { margin-top:27px; font-size:16px; }.hero-actions { flex-direction:column; gap:21px; margin-top:30px; }.hero-orbit { width:145vw; }.orbit-label { display:none; }.scroll-cue { display:none; }
  .section-label { margin-bottom:30px; }.display-heading { font-size:48px; }
  .thesis-grid { gap:45px; }.thesis-copy { margin:0; }
  .agent-intro { min-height:auto; padding:100px 22px 70px; }.agent-intro .section-label { align-self:center; }.agent-kicker { margin:15px 0 20px; }.agent-title { font-size:53px; }.agent-lead { font-size:16px; }
  .rag-stage { padding:0 12px 50px; }.rag-window { border-radius:21px; }.rag-topbar>span { display:none; }.rag-query { width:calc(100% - 24px); margin:12px; padding:14px; }.rag-query p { font-size:11px; }.pipeline { padding:5px 12px 15px; grid-template-columns:1fr 1fr; }.pipeline-line{display:none}.pipeline-node { min-height:120px; padding:14px; }.pipeline-node>i{display:none}.rag-answer { margin:0 12px 12px; padding:17px; }.rag-answer p{font-size:11px}.sources span:last-child{display:none}.agent-outcome { padding-top:45px; }.agent-link>span { font-size:20px; }
  .section-heading-row { display:block; margin-bottom:50px; }.section-aside,.resume-intro { margin-top:25px; }
  .travel-card { min-height:900px; padding:31px 22px; align-content:start; }.project-meta { margin-bottom:30px; }.project-copy h3 { font-size:53px; }.project-description { font-size:14px; }.travel-visual { min-height:480px; margin-top:25px; }.travel-halo { width:330px;height:330px}.phone { width:176px;border-radius:31px}.phone-screen{border-radius:25px}.phone-front{right:1%;top:4%}.phone-back{left:1%;top:14%}.phone-island{top:12px;width:55px;height:15px}.travel-fallback{padding:60px 17px 20px}.travel-fallback strong{font-size:22px}.fake-destination{height:165px}.gomoku-card { padding:40px 22px; }.board { width:78vw; }.gomoku-card .project-copy { padding-top:45px; }
  .research-image { min-height:500px; }.research-copy h2 { font-size:51px; }.research-facts { grid-template-columns:1fr; }.research-facts div+div { padding-left:0; border-left:0; border-top:1px solid #303036; }
  .resume-block { min-height:auto; padding:30px 24px 100px; }.block-label { margin-bottom:45px; }.education-block h3 { font-size:42px; }.resume-stat { right:25px;bottom:25px}.experience-block { padding-bottom:30px; }.skills-panel { padding:30px 22px; }.skills-grid { grid-template-columns:1fr; }.skills-grid>div,.skills-grid>div:nth-child(even){min-height:auto;padding:24px 0;border-left:0}.skills-grid h3{margin-top:20px}
  .footer { min-height:85svh; }.footer h2 { font-size:56px; }.footer-links { margin-top:65px; flex-wrap:wrap; }.footer-bottom { margin-top:65px; gap:16px; flex-wrap:wrap; }.footer-bottom span:nth-child(2){display:none}
}

@media (hover: none), (pointer: coarse) { .cursor { display:none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior:auto; }
  *, *::before, *::after { animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; }
  .reveal { opacity:1; transform:none; }
}
