:root {
  --bg: #07090d;
  --bg-soft: #0b0f16;
  --panel: rgba(16, 21, 30, 0.82);
  --panel-solid: #10151e;
  --text: #f4f7fb;
  --muted: #9aa5b5;
  --faint: #657083;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.22);
  --accent: #4f8cff;
  --accent-2: #85aaff;
  --green: #42d27a;
  --radius: 24px;
  --wrap: min(1440px, calc(100vw - 64px));
  --header-h: 82px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 84% 10%, rgba(79, 140, 255, .12), transparent 28rem),
    var(--bg);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.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; z-index: 9999; left: 1rem; top: -5rem; background: #fff; color: #000; padding: .8rem 1rem; border-radius: .5rem; }
.skip-link:focus { top: 1rem; }
.wrap { width: var(--wrap); margin-inline: auto; }
.section { position: relative; padding: 150px 0; border-top: 1px solid var(--line); }
.noise { pointer-events: none; position: fixed; z-index: 50; inset: 0; opacity: .024; mix-blend-mode: screen; 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='.95' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E"); }
.cursor-orb { position: fixed; z-index: 60; width: 280px; height: 280px; border-radius: 50%; pointer-events: none; opacity: .1; background: radial-gradient(circle, rgba(79,140,255,.52), transparent 65%); transform: translate(-50%,-50%); transition: opacity .3s; }

.site-header {
  position: fixed; z-index: 100; top: 0; left: 0; right: 0;
  height: var(--header-h); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding-inline: max(32px, calc((100vw - 1440px)/2));
  border-bottom: 1px solid transparent;
  transition: background .35s, border-color .35s, backdrop-filter .35s;
}
.site-header.is-scrolled { background: rgba(7,9,13,.74); backdrop-filter: blur(24px); border-color: var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; width: fit-content; font-weight: 650; letter-spacing: -.02em; }
.brand-mark { font-family: Georgia, serif; font-weight: 400; font-size: 1.34rem; letter-spacing: -.08em; }
.brand-name { font-size: .96rem; }
.brand-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 16px var(--accent); }
.desktop-nav { display: flex; gap: 34px; font-size: .83rem; color: #cad1dc; }
.desktop-nav a { transition: color .25s; }
.desktop-nav a:hover { color: #fff; }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 14px; }
.availability { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 999px; padding: 10px 15px; font-size: .76rem; color: #dce2eb; background: rgba(9,12,17,.34); backdrop-filter: blur(12px); }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 15px var(--green); }
.menu-button { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: #fff; align-items: center; justify-content: center; flex-direction: column; gap: 6px; }
.menu-button span:not(.sr-only) { display: block; width: 16px; height: 1px; background: currentColor; transition: transform .25s; }
.menu-button[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-button[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }
.mobile-menu { position: fixed; z-index: 95; inset: 0; padding: calc(var(--header-h) + 40px) 28px 40px; background: rgba(7,9,13,.97); backdrop-filter: blur(30px); }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu a { display: flex; justify-content: space-between; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: clamp(2rem, 10vw, 4rem); letter-spacing: -.05em; }
.mobile-menu a span { color: var(--faint); font-size: .8rem; letter-spacing: 0; padding-top: .8rem; }

.hero { min-height: 100svh; position: relative; display: flex; align-items: flex-end; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 53% 43%; filter: none; transform: scale(1.005); }
.hero-shade { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(5,8,12,.97) 0%, rgba(5,8,12,.88) 34%, rgba(5,8,12,.38) 58%, rgba(5,8,12,.12) 82%),
  linear-gradient(0deg, rgba(5,8,12,.88) 0%, transparent 38%, rgba(5,8,12,.28) 100%);
}
.hero-content { position: relative; z-index: 2; padding-top: 150px; padding-bottom: 80px; }
.hero-kicker { display: flex; justify-content: space-between; align-items: center; margin-bottom: clamp(42px, 7vh, 90px); font-size: .72rem; text-transform: uppercase; letter-spacing: .16em; color: #b8c2d0; }
.hero-kicker span:last-child { text-transform: none; letter-spacing: .02em; color: #d4dae3; }
.hero-title { max-width: 1060px; margin: 0; font-size: clamp(3.8rem, 7.2vw, 8rem); line-height: .94; letter-spacing: -.066em; font-weight: 620; }
.hero-title em { color: var(--accent-2); font-style: normal; }
.hero-bottom { margin-top: 48px; display: grid; grid-template-columns: minmax(300px, 590px) 1fr; gap: 70px; align-items: end; }
.hero-bottom p { margin: 0; font-size: clamp(1rem, 1.4vw, 1.28rem); color: #c2cad6; max-width: 660px; }
.hero-actions { display: flex; gap: 12px; justify-content: flex-end; }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 18px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent; font-size: .87rem; transition: transform .25s var(--ease), background .25s, border-color .25s; }
.button:hover { transform: translateY(-3px); }
.button svg { width: 19px; height: 19px; }
.button-primary { background: var(--accent); color: white; box-shadow: 0 10px 34px rgba(79,140,255,.24); }
.button-primary:hover { background: #6a9cff; }
.button-ghost { border-color: var(--line-strong); background: rgba(10,14,20,.35); backdrop-filter: blur(12px); }
.button-ghost:hover { border-color: rgba(255,255,255,.45); }
.hero-metrics { margin-top: 66px; display: grid; grid-template-columns: repeat(4, 1fr); max-width: 850px; border-top: 1px solid var(--line); }
.hero-metrics div { padding: 22px 24px 4px 0; border-right: 1px solid var(--line); }
.hero-metrics div:last-child { border-right: 0; padding-left: 24px; }
.hero-metrics div:not(:first-child) { padding-left: 24px; }
.hero-metrics strong { display: block; font-size: clamp(1.5rem, 2.4vw, 2.5rem); letter-spacing: -.05em; }
.hero-metrics span { display: block; color: var(--muted); font-size: .76rem; margin-top: 3px; }
.scroll-cue { position: absolute; z-index: 3; right: 30px; bottom: 34px; display: flex; align-items: center; gap: 10px; writing-mode: vertical-rl; text-transform: uppercase; letter-spacing: .2em; font-size: .58rem; color: var(--muted); }
.scroll-cue span { width: 1px; height: 60px; background: linear-gradient(#fff, transparent); }

.eyebrow { margin: 0 0 18px; color: var(--accent-2); text-transform: uppercase; letter-spacing: .18em; font-size: .69rem; font-weight: 650; }
.section-heading { display: grid; grid-template-columns: 1fr minmax(280px, 470px); gap: 60px; align-items: end; margin-bottom: 82px; }
.section-heading h2, .architecture h2, .experience h2, .graph h2, .about h2, .ai-section h2, .contact h2 { margin: 0; font-size: clamp(2.7rem, 5vw, 5.6rem); line-height: .98; letter-spacing: -.058em; font-weight: 580; }
.section-heading > p, .architecture-copy > p, .experience-intro > p, .graph-copy > p, .about-copy > p, .ai-copy > p { margin: 0; color: var(--muted); font-size: 1rem; }

.statement { min-height: 92vh; display: grid; align-items: center; background: linear-gradient(180deg, #07090d, #090d14); }
.statement-grid { display: grid; grid-template-columns: 250px 1fr; gap: 70px; }
.statement-copy { grid-column: 2; font-size: clamp(3rem, 7.2vw, 8.6rem); line-height: .94; letter-spacing: -.07em; font-weight: 560; }
.statement-copy p { margin: 0 0 6px; overflow: hidden; }
.statement-copy span { display: inline-block; }
.statement-copy p:nth-child(2) { color: var(--accent-2); }
.statement-copy p:nth-child(3) { color: #6f7886; }
.statement-note { grid-column: 2; max-width: 580px; margin: 28px 0 0 auto; color: var(--muted); font-size: 1.1rem; }

.work { background: #080b11; }
.case-study { position: relative; display: grid; grid-template-columns: 90px 1.5fr .8fr 70px; gap: 30px; align-items: center; min-height: 260px; padding: 38px 0; border-top: 1px solid var(--line); transition: background .3s, padding .3s; }
.case-study:last-child { border-bottom: 1px solid var(--line); }
.case-study:hover { background: linear-gradient(90deg, rgba(79,140,255,.08), transparent 75%); padding-inline: 22px; }
.case-index { align-self: start; color: var(--faint); font-size: .72rem; }
.case-org { margin: 0 0 12px; color: var(--accent-2); text-transform: uppercase; letter-spacing: .12em; font-size: .63rem; }
.case-main h3 { margin: 0 0 16px; font-size: clamp(2.4rem, 4vw, 5rem); line-height: .96; letter-spacing: -.052em; font-weight: 560; }
.case-main > p { max-width: 720px; margin: 0; color: var(--muted); font-size: .95rem; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.tag-list li { border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; color: #c8cfda; font-size: .65rem; }
.case-impact { align-self: end; padding-bottom: 8px; }
.case-impact span { display: block; color: var(--faint); text-transform: uppercase; letter-spacing: .15em; font-size: .62rem; margin-bottom: 8px; }
.case-impact strong { display: block; color: #d7dde6; font-size: .92rem; font-weight: 500; }
.case-open { width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--line-strong); color: #fff; background: transparent; display: grid; place-items: center; cursor: pointer; transition: background .25s, transform .25s; }
.case-open:hover { background: var(--accent); transform: rotate(-35deg); }
.case-open svg { width: 20px; }

.architecture { background: radial-gradient(circle at 80% 40%, rgba(79,140,255,.13), transparent 33rem), #07090d; }
.architecture-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: 90px; align-items: center; }
.architecture-copy h2 { margin-bottom: 28px; }
.architecture-copy > p { max-width: 520px; line-height: 1.75; }
.text-link { margin-top: 32px; display: inline-flex; align-items: center; gap: 16px; padding: 0 0 7px; border: 0; border-bottom: 1px solid var(--line-strong); background: transparent; color: #fff; cursor: pointer; font-size: .85rem; }
.text-link svg { width: 20px; transition: transform .25s; }
.text-link:hover svg { transform: translateX(6px); }
.system-map { border: 1px solid var(--line); border-radius: 32px; padding: 30px; background: rgba(11,15,22,.72); backdrop-filter: blur(14px); box-shadow: 0 40px 120px rgba(0,0,0,.4); }
.system-map svg { width: 100%; height: auto; overflow: visible; }
.map-lines path { stroke: #647087; stroke-width: 2; }
.map-lines .dash { stroke-dasharray: 7 8; }
.map-node rect { fill: rgba(18,25,36,.95); stroke: rgba(255,255,255,.16); }
.map-node text { fill: #dce3ee; stroke: none; text-anchor: middle; font-size: 14px; }
.map-node text + text { fill: #7f8b9f; font-size: 10px; }
.map-node.gateway rect, .map-node.event rect { stroke: rgba(79,140,255,.7); filter: url(#glow); }
.map-cluster > rect { fill: rgba(79,140,255,.03); stroke: rgba(79,140,255,.22); }
.map-cluster > text, .map-caption { fill: #7f8b9f; stroke: none; text-anchor: middle; font-size: 11px; letter-spacing: 1px; }

.capabilities { background: #f0f2f5; color: #10131a; }
.capabilities .eyebrow { color: #285fda; }
.capabilities .section-heading > p { color: #626b78; }
.capability-list { border-top: 1px solid rgba(16,19,26,.22); }
.capability-row { width: 100%; display: grid; grid-template-columns: 64px 1.4fr 1fr .55fr 40px; gap: 24px; align-items: center; min-height: 126px; border: 0; border-bottom: 1px solid rgba(16,19,26,.18); background: transparent; color: inherit; text-align: left; cursor: pointer; }
.cap-number { color: #717a88; font-size: .7rem; }
.cap-name { font-size: clamp(1.8rem, 3.2vw, 3.7rem); letter-spacing: -.05em; font-weight: 560; }
.cap-meta, .cap-count { color: #68717e; font-size: .82rem; }
.cap-arrow { justify-self: end; font-size: 1.5rem; transform: rotate(0); transition: transform .3s; }
.capability-row.is-active .cap-arrow { transform: rotate(45deg); }
.capability-detail { max-height: 0; overflow: hidden; opacity: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 50px; transition: max-height .55s var(--ease), opacity .35s, padding .45s; border-bottom: 0 solid rgba(16,19,26,.15); }
.capability-detail.is-active { max-height: 280px; opacity: 1; padding: 34px 64px 44px; border-bottom-width: 1px; }
.capability-detail p { margin: 0; max-width: 660px; color: #454d59; font-size: 1rem; line-height: 1.7; }
.capability-detail div { display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start; }
.capability-detail span { border: 1px solid rgba(16,19,26,.2); border-radius: 999px; padding: 8px 12px; font-size: .72rem; }

.experience { background: #080b11; }
.experience-layout { display: grid; grid-template-columns: .7fr 1.3fr; gap: 90px; }
.experience-intro { position: sticky; top: 130px; align-self: start; }
.experience-intro h2 { margin-bottom: 26px; }
.experience-intro > p { max-width: 460px; line-height: 1.7; }
.timeline { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.timeline li { display: grid; grid-template-columns: 130px 1fr 120px; gap: 24px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.timeline-period, .timeline li > span { color: var(--faint); font-size: .7rem; }
.timeline li > span { text-align: right; }
.timeline h3 { margin: 0 0 6px; font-size: 1.25rem; font-weight: 550; }
.timeline p { margin: 0; color: var(--muted); font-size: .83rem; }
.education-row { margin-top: 50px; }

.graph { background: linear-gradient(180deg, #0a0f18, #07090d); overflow: hidden; }
.graph-layout { display: grid; grid-template-columns: .6fr 1.4fr; gap: 80px; align-items: center; }
.graph-copy h2 { margin-bottom: 24px; }
.graph-copy > p { max-width: 450px; }
.graph-summary { margin-top: 42px; padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); }
.graph-summary span { display: block; color: var(--accent-2); text-transform: uppercase; letter-spacing: .15em; font-size: .6rem; }
.graph-summary strong { display: block; margin-top: 9px; font-size: 1.3rem; }
.graph-summary p { margin: 10px 0 0; color: var(--muted); font-size: .82rem; }
.knowledge-graph { min-height: 620px; }
.knowledge-graph svg { width: 100%; height: auto; overflow: visible; }
.kg-lines line { stroke: rgba(152,167,190,.28); stroke-width: 1.4; transition: stroke .25s, opacity .25s; }
.kg-node { cursor: pointer; outline: none; }
.kg-node circle { fill: rgba(14,20,29,.96); stroke: rgba(255,255,255,.18); stroke-width: 1.5; transition: fill .3s, stroke .3s, transform .3s; }
.kg-node text { fill: #cfd7e4; stroke: none; text-anchor: middle; dominant-baseline: middle; font-size: 11px; pointer-events: none; }
.kg-node.root text:first-of-type { font-size: 19px; font-weight: 650; }
.kg-node.root text:last-of-type { font-size: 9px; fill: #8190a5; }
.kg-node.project text { font-size: 10px; }
.kg-node.skill text { font-size: 8px; }
.kg-node:hover circle, .kg-node.is-selected circle { fill: rgba(79,140,255,.18); stroke: var(--accent); }
.kg-node:hover circle { transform: scale(1.05); }
.kg-lines line.is-active { stroke: var(--accent); opacity: 1; }
.kg-lines line.is-muted { opacity: .08; }
.kg-node.is-muted { opacity: .25; }

.beyond { padding-bottom: 110px; overflow: hidden; }
.photo-rail { width: max-content; display: flex; gap: 16px; padding: 0 max(32px, calc((100vw - 1440px)/2)); }
.photo-card { position: relative; width: clamp(240px, 23vw, 370px); height: clamp(360px, 45vw, 620px); margin: 0; overflow: hidden; border-radius: 24px; background: #111; }
.photo-card-wide { width: clamp(340px, 34vw, 540px); }
.photo-card img { width: 100%; height: 100%; object-fit: cover; filter: none; transition: transform .8s var(--ease); }
.photo-card:hover img { transform: scale(1.03); }
.photo-card figcaption { position: absolute; inset: auto 0 0; display: flex; justify-content: space-between; align-items: end; padding: 70px 20px 18px; background: linear-gradient(transparent, rgba(0,0,0,.7)); }
.photo-card figcaption span { font-size: .95rem; }
.photo-card figcaption small { color: #c3cad4; font-size: .65rem; text-transform: uppercase; letter-spacing: .12em; }

.about { background: #f0f2f5; color: #10131a; }
.about-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 90px; align-items: center; }
.about-photo { height: min(72vw, 760px); max-height: 760px; overflow: hidden; border-radius: 28px; background: #d7d9dc; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; filter: none; }
.about-copy .eyebrow { color: #285fda; }
.about-copy h2 { margin-bottom: 34px; }
.about-copy > p { max-width: 720px; color: #555e6b; line-height: 1.78; margin-bottom: 20px; }
.about-links { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 34px; }
.about-links a { border-bottom: 1px solid rgba(16,19,26,.26); padding-bottom: 5px; font-size: .85rem; }

.ai-section { background: #090d14; }
.ai-shell { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; padding: 70px; border: 1px solid var(--line); border-radius: 34px; background: radial-gradient(circle at 95% 5%, rgba(79,140,255,.2), transparent 20rem), rgba(12,17,25,.78); }
.ai-copy h2 { margin-bottom: 24px; }
.ai-copy > p { max-width: 510px; }
.ai-suggestions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.ai-suggestions button { border: 1px solid var(--line); border-radius: 999px; background: transparent; color: #cfd6e0; padding: 9px 12px; cursor: pointer; font-size: .7rem; }
.ai-suggestions button:hover { border-color: var(--accent); }
.ai-chat { display: flex; flex-direction: column; min-height: 390px; border: 1px solid var(--line); border-radius: 24px; background: rgba(5,8,12,.62); overflow: hidden; }
.chat-log { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 22px; overflow-y: auto; max-height: 330px; }
.chat-message { max-width: 86%; padding: 12px 14px; border-radius: 16px; font-size: .78rem; line-height: 1.55; }
.chat-message.assistant { align-self: flex-start; color: #d7dee9; background: rgba(255,255,255,.07); }
.chat-message.user { align-self: flex-end; background: var(--accent); color: #fff; }
.chat-form { display: grid; grid-template-columns: 1fr 50px; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chat-form input { width: 100%; border: 0; outline: 0; border-radius: 999px; background: rgba(255,255,255,.06); color: #fff; padding: 0 18px; }
.chat-form input::placeholder { color: #6f7a8d; }
.chat-form button { width: 50px; height: 50px; border-radius: 50%; border: 0; background: var(--accent); color: white; display: grid; place-items: center; cursor: pointer; }
.chat-form button svg { width: 20px; }

.contact { background: #07090d; padding-bottom: 90px; }
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.contact-heading h2 { max-width: 720px; }
.contact-grid { border-top: 1px solid var(--line); }
.contact-grid a { display: grid; grid-template-columns: 120px 1fr 30px; gap: 16px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--line); transition: padding .25s, color .25s; }
.contact-grid a:hover { padding-left: 12px; color: var(--accent-2); }
.contact-grid span { color: var(--faint); font-size: .68rem; text-transform: uppercase; letter-spacing: .13em; }
.contact-grid strong { font-size: .95rem; font-weight: 500; }
.contact-grid em { justify-self: end; font-style: normal; }

.site-footer { padding: 28px 0; border-top: 1px solid var(--line); color: var(--faint); font-size: .7rem; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 30px; align-items: center; }
.footer-grid p { margin: 0; }
.footer-grid p:nth-child(2) { text-align: center; }
.footer-grid div { display: flex; gap: 16px; justify-content: flex-end; }
.footer-grid a:hover { color: #fff; }

.project-dialog { width: min(900px, calc(100vw - 32px)); max-height: calc(100svh - 32px); padding: 0; border: 1px solid var(--line-strong); border-radius: 28px; color: var(--text); background: #0b0f16; box-shadow: 0 50px 160px rgba(0,0,0,.75); }
.project-dialog::backdrop { background: rgba(2,4,7,.78); backdrop-filter: blur(12px); }
.dialog-close { position: sticky; z-index: 3; top: 18px; float: right; margin: 18px 18px 0 0; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: rgba(10,14,20,.72); color: #fff; cursor: pointer; font-size: 1.4rem; }
.dialog-content { padding: 70px clamp(24px, 6vw, 80px) 80px; }
.dialog-content .eyebrow { margin-bottom: 14px; }
.dialog-content h2 { margin: 0 0 24px; font-size: clamp(2.8rem, 7vw, 5.8rem); letter-spacing: -.06em; line-height: .94; }
.dialog-content .dialog-lead { color: #c3cbd7; font-size: 1.12rem; max-width: 700px; }
.dialog-stats { margin-top: 42px; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 18px; }
.dialog-stats div { padding: 22px; border-right: 1px solid var(--line); }
.dialog-stats div:last-child { border-right: 0; }
.dialog-stats strong { display: block; font-size: 1.5rem; }
.dialog-stats span { color: var(--muted); font-size: .7rem; }
.dialog-columns { margin-top: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.dialog-columns h3 { margin: 0 0 12px; font-size: 1rem; }
.dialog-columns p, .dialog-columns li { color: var(--muted); font-size: .83rem; line-height: 1.7; }
.dialog-columns ul { margin: 0; padding-left: 18px; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .85s var(--ease), transform .85s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1100px) {
  :root { --wrap: min(100% - 40px, 1000px); }
  .desktop-nav { display: none; }
  .menu-button { display: flex; }
  .site-header { grid-template-columns: 1fr 1fr; padding-inline: 20px; }
  .hero-bottom { grid-template-columns: 1fr; gap: 28px; }
  .hero-actions { justify-content: flex-start; }
  .architecture-grid, .experience-layout, .graph-layout, .about-layout, .contact-layout { grid-template-columns: 1fr; }
  .experience-intro { position: static; }
  .knowledge-graph { max-width: 800px; margin-inline: auto; }
  .case-study { grid-template-columns: 60px 1fr 230px 60px; }
  .ai-shell { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  :root { --wrap: min(100% - 28px, 680px); --header-h: 70px; }
  .cursor-orb, .scroll-cue { display: none; }
  .section { padding: 96px 0; }
  .brand-name { display: none; }
  .availability { font-size: .66rem; padding: 8px 10px; }
  .hero { min-height: 940px; align-items: stretch; }
  .hero-media { height: 100%; }
  .hero-media img { object-position: 50% 32%; }
  .hero-shade { background:
    linear-gradient(0deg, rgba(5,8,12,.98) 2%, rgba(5,8,12,.9) 43%, rgba(5,8,12,.34) 72%, rgba(5,8,12,.22) 100%),
    linear-gradient(90deg, rgba(5,8,12,.55), rgba(5,8,12,.08));
  }
  .hero-content { padding-top: 118px; padding-bottom: 38px; display: flex; flex-direction: column; justify-content: flex-end; }
  .hero-kicker { align-items: flex-start; gap: 14px; flex-direction: column; margin-bottom: auto; padding-top: 14px; }
  .hero-kicker span:last-child { max-width: 240px; line-height: 1.5; }
  .hero-title { font-size: clamp(3.2rem, 14vw, 5.2rem); }
  .hero-bottom { margin-top: 28px; }
  .hero-bottom p { font-size: .93rem; max-width: 470px; }
  .hero-actions { flex-wrap: wrap; }
  .button { min-height: 48px; padding-inline: 18px; }
  .hero-metrics { margin-top: 32px; grid-template-columns: repeat(2, 1fr); }
  .hero-metrics div { padding: 14px 12px 12px 0; }
  .hero-metrics div:nth-child(even) { border-right: 0; }
  .hero-metrics div:nth-child(3), .hero-metrics div:nth-child(4) { border-top: 1px solid var(--line); }
  .hero-metrics div:not(:first-child) { padding-left: 12px; }
  .hero-metrics div:nth-child(3) { padding-left: 0; }
  .section-heading { grid-template-columns: 1fr; gap: 24px; margin-bottom: 52px; }
  .section-heading h2, .architecture h2, .experience h2, .graph h2, .about h2, .ai-section h2, .contact h2 { font-size: clamp(2.7rem, 12vw, 4.2rem); }
  .statement { min-height: 78vh; }
  .statement-grid { grid-template-columns: 1fr; gap: 32px; }
  .statement-copy, .statement-note { grid-column: 1; }
  .statement-copy { font-size: clamp(2.8rem, 13vw, 5.6rem); }
  .statement-note { margin-left: 0; }
  .case-study { grid-template-columns: 34px 1fr 50px; gap: 14px; min-height: 0; padding: 30px 0; }
  .case-impact { display: none; }
  .case-main h3 { font-size: clamp(2.4rem, 12vw, 4rem); }
  .case-open { width: 44px; height: 44px; }
  .architecture-grid { gap: 52px; }
  .system-map { padding: 10px; border-radius: 20px; overflow-x: auto; }
  .system-map svg { min-width: 690px; }
  .capability-row { grid-template-columns: 34px 1fr 28px; min-height: 102px; gap: 10px; }
  .cap-meta, .cap-count { display: none; }
  .cap-name { font-size: 1.8rem; }
  .capability-detail { grid-template-columns: 1fr; gap: 20px; }
  .capability-detail.is-active { padding: 24px 10px 34px; max-height: 380px; }
  .timeline li { grid-template-columns: 92px 1fr; }
  .timeline li > span { display: none; }
  .graph-layout { gap: 48px; }
  .knowledge-graph { min-height: auto; overflow-x: auto; }
  .knowledge-graph svg { min-width: 650px; }
  .photo-rail { padding-inline: 14px; gap: 10px; }
  .photo-card { width: 250px; height: 380px; border-radius: 18px; }
  .photo-card-wide { width: 320px; }
  .about-layout { gap: 46px; }
  .about-photo { height: 580px; }
  .ai-shell { padding: 28px 18px; border-radius: 24px; }
  .contact-grid a { grid-template-columns: 75px 1fr 20px; }
  .contact-grid strong { font-size: .75rem; word-break: break-word; }
  .footer-grid { grid-template-columns: 1fr; text-align: left; }
  .footer-grid p:nth-child(2) { text-align: left; }
  .footer-grid div { justify-content: flex-start; }
  .dialog-stats { grid-template-columns: 1fr; }
  .dialog-stats div { border-right: 0; border-bottom: 1px solid var(--line); }
  .dialog-stats div:last-child { border-bottom: 0; }
  .dialog-columns { grid-template-columns: 1fr; }
}

@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; }
}


/* v2 enhancements: certification, quantified experience, separate education, richer graph and chatbot */
.certification { background: linear-gradient(135deg, #0a1019, #07090d 65%); }
.certification-shell { display: grid; grid-template-columns: 120px 1fr auto; gap: 42px; align-items: center; padding: 54px; border: 1px solid var(--line); border-radius: 30px; background: radial-gradient(circle at 8% 20%, rgba(79,140,255,.18), transparent 18rem), rgba(14,19,28,.78); }
.certification-mark { width: 96px; height: 96px; border-radius: 28px; display: grid; place-items: center; color: var(--accent-2); border: 1px solid rgba(133,170,255,.34); background: rgba(79,140,255,.08); box-shadow: inset 0 0 34px rgba(79,140,255,.08); }
.certification-mark svg { width: 62px; height: 62px; stroke-width: 2.1; }
.certification-copy h2 { margin: 0 0 18px; font-size: clamp(2.8rem, 5vw, 5rem); letter-spacing: -.06em; line-height: .95; }
.certification-copy > p:last-child { margin: 0; max-width: 780px; color: var(--muted); line-height: 1.75; }
.certification-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; min-width: 190px; }

.timeline > li { grid-template-columns: 130px minmax(0,1fr) 120px; gap: 28px; padding: 44px 0; }
.timeline-content { min-width: 0; }
.timeline-role { color: #c5ceda !important; font-size: .88rem !important; }
.timeline-points { margin: 22px 0 0; padding: 0; display: grid; gap: 12px; list-style: none; }
.timeline-points li { display: grid; grid-template-columns: 68px 1fr; gap: 14px; align-items: start; padding: 0; border: 0; min-height: 0; }
.timeline-points strong { color: var(--accent-2); font-size: .88rem; line-height: 1.6; letter-spacing: -.02em; }
.timeline-points span { color: var(--muted); font-size: .78rem; line-height: 1.62; }
.timeline-points b { color: #dce3ec; font-weight: 560; }

.education { background: #0a0e15; }
.education-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 22px; }
.education-card { min-height: 380px; display: grid; grid-template-columns: 110px 1fr; gap: 28px; padding: 38px; border: 1px solid var(--line); border-radius: 26px; background: linear-gradient(145deg, rgba(255,255,255,.035), rgba(255,255,255,.012)); }
.education-year { color: var(--accent-2); font-size: .7rem; letter-spacing: .12em; padding-top: 6px; }
.education-location { margin: 0 0 18px; color: var(--faint); text-transform: uppercase; letter-spacing: .14em; font-size: .62rem; }
.education-card h3 { margin: 0 0 12px; font-size: clamp(1.6rem, 2.6vw, 2.35rem); line-height: 1.08; letter-spacing: -.04em; }
.education-degree { margin: 0; color: #cbd4e0; font-size: .92rem; line-height: 1.6; }
.education-courses { margin: 32px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.education-courses li { padding: 8px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .66rem; }

.graph-layout { grid-template-columns: .68fr 1.32fr; gap: 56px; align-items: start; }
.graph-copy { position: sticky; top: 125px; }
.graph-stats { margin-top: 28px; display: grid; grid-template-columns: repeat(3,1fr); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.graph-stats div { padding: 16px 14px; border-right: 1px solid var(--line); }
.graph-stats div:last-child { border-right: 0; }
.graph-stats strong { display: block; color: var(--accent-2); font-size: 1.45rem; line-height: 1; }
.graph-stats span { display: block; margin-top: 6px; color: var(--faint); font-size: .58rem; line-height: 1.4; text-transform: uppercase; letter-spacing: .08em; }
.graph-summary { margin-top: 24px; }
.graph-link-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.graph-link-tags span { display: inline-flex; color: #c8d3e3; text-transform: none; letter-spacing: 0; font-size: .62rem; border: 1px solid var(--line); border-radius: 999px; padding: 6px 8px; }
.knowledge-graph { min-height: 760px; position: relative; border: 1px solid rgba(255,255,255,.07); border-radius: 30px; padding: 18px; background: radial-gradient(circle at 50% 48%, rgba(79,140,255,.09), transparent 18rem), rgba(8,12,18,.34); }
.knowledge-graph svg { width: 100%; min-height: 720px; }
.graph-legend { position: absolute; z-index: 2; top: 18px; right: 20px; display: flex; gap: 14px; color: var(--faint); font-size: .58rem; text-transform: uppercase; letter-spacing: .09em; }
.graph-legend span { display: inline-flex; align-items: center; gap: 6px; }
.graph-legend i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.legend-root { background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.legend-project { background: #7f9bc9; }
.legend-skill { background: #3d495b; }
.kg-zone-labels text { fill: #4f5c70; stroke: none; font-size: 9px; letter-spacing: 2px; }
.kg-lines line { stroke: rgba(133,152,181,.22); stroke-width: 1.15; }
.kg-node circle { fill: rgba(11,17,26,.98); }
.kg-node.project circle { fill: rgba(26,37,54,.96); stroke: rgba(133,170,255,.34); }
.kg-node.skill circle { fill: rgba(15,22,32,.98); }
.kg-node text { font-size: 9px; }
.kg-node .node-label { font-size: 11px; font-weight: 620; }
.kg-node .node-type { font-size: 8px; fill: #8390a3; }
.kg-node.root .node-label { font-size: 20px; }
.kg-node.root .node-type { font-size: 9px; }
.kg-node.skill:hover circle, .kg-node.skill.is-selected circle { fill: rgba(79,140,255,.16); }

.about-photo { background: #0b0d11; }
.about-photo img { object-position: 50% 22%; }

.ai-shell { grid-template-columns: .9fr 1.1fr; }
.ai-coverage { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.ai-coverage span { padding: 7px 9px; border-radius: 999px; border: 1px solid rgba(133,170,255,.22); color: #9eb7e6; background: rgba(79,140,255,.06); font-size: .63rem; }
.ai-suggestions { margin-top: 22px; }
.ai-suggestions button { padding: 10px 13px; }
.ai-chat { min-height: 470px; }
.chat-log { max-height: 410px; }
.chat-message { font-size: .8rem; }
.chat-message.typing { opacity: .65; font-style: italic; }
.chat-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chat-links a { color: #b7ccff; border-bottom: 1px solid rgba(183,204,255,.35); font-size: .7rem; }

@media (max-width: 1100px) {
  .certification-shell { grid-template-columns: 100px 1fr; }
  .certification-actions { grid-column: 2; flex-direction: row; align-items: center; }
  .education-grid { grid-template-columns: 1fr; }
  .graph-copy { position: static; }
}

@media (max-width: 760px) {
  .certification-shell { grid-template-columns: 1fr; padding: 28px 20px; gap: 24px; }
  .certification-mark { width: 78px; height: 78px; border-radius: 22px; }
  .certification-mark svg { width: 48px; height: 48px; }
  .certification-actions { grid-column: 1; flex-direction: column; align-items: stretch; }
  .certification-actions .button { width: 100%; }
  .timeline > li { grid-template-columns: 80px 1fr; gap: 14px; }
  .timeline-points li { grid-template-columns: 54px 1fr; }
  .timeline-points strong { font-size: .78rem; }
  .education-card { grid-template-columns: 1fr; min-height: 0; padding: 28px 22px; }
  .education-year { margin-bottom: 4px; }
  .graph-stats { grid-template-columns: 1fr 1fr 1fr; }
  .knowledge-graph { overflow-x: auto; padding: 10px; }
  .knowledge-graph svg { min-width: 900px; min-height: 680px; }
  .graph-legend { position: sticky; left: 12px; width: max-content; }
  .ai-chat { min-height: 520px; }
}


/* v3 refinements: left-aligned experience copy, expanded stack index and native photo scroller */
.timeline-points li > span {
  text-align: left;
  padding-left: 0;
  margin-left: 0;
}
.timeline-points strong {
  min-width: 0;
  text-align: left;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.capability-detail.is-active {
  max-height: 440px;
}
.beyond-heading-copy {
  display: grid;
  gap: 14px;
  justify-items: start;
}
.beyond-heading-copy > p {
  margin: 0;
  color: var(--muted);
}
.scroll-hint {
  color: var(--accent-2);
  font-size: .66rem;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.photo-rail {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 max(32px, calc((100vw - 1440px)/2)) 24px;
  scroll-snap-type: x proximity;
  overscroll-behavior-x: contain;
  scrollbar-gutter: stable;
  scrollbar-width: auto;
  scrollbar-color: rgba(113,155,255,.9) rgba(255,255,255,.08);
  -webkit-overflow-scrolling: touch;
}
.photo-card {
  flex: 0 0 auto;
  scroll-snap-align: start;
}
.photo-rail:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
}
.photo-rail::-webkit-scrollbar {
  height: 12px;
}
.photo-rail::-webkit-scrollbar-track {
  margin-inline: max(32px, calc((100vw - 1440px)/2));
  border-radius: 999px;
  background: rgba(255,255,255,.07);
}
.photo-rail::-webkit-scrollbar-thumb {
  min-width: 100px;
  border: 3px solid transparent;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(79,140,255,.8), rgba(121,164,255,1)) padding-box;
}
.photo-rail::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(90deg, rgba(99,154,255,1), rgba(151,184,255,1)) padding-box;
}
@media (max-width: 760px) {
  .timeline-points li {
    grid-template-columns: 58px minmax(0,1fr);
    gap: 10px;
  }
  .capability-detail.is-active {
    max-height: 620px;
  }
  .photo-rail {
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 20px;
  }
  .photo-rail::-webkit-scrollbar-track {
    margin-inline: 20px;
  }
}

/* v5 mobile usability fixes: graph navigation, readable experience cards and full-width chat composer */
.graph-scroll-viewport {
  width: 100%;
  overflow: visible;
}
.graph-mobile-controls,
.graph-scrollbar {
  display: none;
}
.timeline-content,
.ai-copy,
.ai-chat {
  min-width: 0;
}
.chat-form {
  grid-template-columns: minmax(0, 1fr) 50px;
  align-items: end;
}
.chat-form textarea {
  width: 100%;
  min-width: 0;
  min-height: 50px;
  max-height: 140px;
  border: 0;
  outline: 0;
  resize: none;
  overflow-y: auto;
  border-radius: 18px;
  background: rgba(255,255,255,.06);
  color: #fff;
  padding: 14px 18px;
  font: inherit;
  line-height: 1.45;
}
.chat-form textarea::placeholder {
  color: #6f7a8d;
}
.chat-form button span {
  display: none;
}

@media (max-width: 760px) {
  /* Knowledge graph: explicit mobile viewport plus always-visible custom scrollbar. */
  .graph-layout {
    gap: 34px;
  }
  .knowledge-graph {
    min-height: 0;
    overflow: visible;
    padding: 12px;
    border-radius: 22px;
  }
  .graph-mobile-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: .68rem;
  }
  .graph-mobile-controls > div {
    display: flex;
    gap: 8px;
    flex: 0 0 auto;
  }
  .graph-mobile-controls button {
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(255,255,255,.045);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
  }
  .graph-mobile-controls button:active {
    background: rgba(79,140,255,.2);
    border-color: var(--accent);
  }
  .graph-legend {
    position: static;
    width: max-content;
    max-width: 100%;
    margin: 0 0 10px;
    overflow-x: auto;
  }
  .graph-scroll-viewport {
    display: block;
    width: 100%;
    height: 684px;
    min-height: 684px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-radius: 18px;
    touch-action: pan-x;
  }
  .graph-scroll-viewport::-webkit-scrollbar {
    display: none;
  }
  .graph-scroll-viewport svg,
  .knowledge-graph .graph-scroll-viewport svg {
    display: block;
    width: 900px;
    height: 684px;
    min-width: 900px;
    min-height: 684px;
    max-width: none;
  }
  .graph-scrollbar {
    display: block;
    position: relative;
    height: 8px;
    margin: 14px 4px 2px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255,255,255,.09);
  }
  .graph-scrollbar span {
    position: absolute;
    inset: 0 auto 0 0;
    width: 35%;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(79,140,255,.8), rgba(139,177,255,1));
    box-shadow: 0 0 14px rgba(79,140,255,.28);
    transform: translateX(0);
    will-change: transform, width;
  }

  /* Experience: stack each job vertically so the descriptive copy always has full width. */
  .timeline > li,
  .timeline li {
    min-width: 0;
  }
  .timeline > li {
    display: block;
    padding: 30px 0 34px;
  }
  .timeline-period {
    display: block;
    margin-bottom: 12px;
    color: var(--accent-2);
    font-size: .72rem;
    letter-spacing: .09em;
  }
  .timeline-content {
    width: 100%;
    min-width: 0;
  }
  .timeline h3 {
    font-size: 1.35rem;
    line-height: 1.2;
  }
  .timeline-role {
    display: block;
    margin-top: 7px !important;
    overflow-wrap: anywhere;
    word-break: normal;
    line-height: 1.55 !important;
  }
  .timeline-points {
    gap: 16px;
    margin-top: 24px;
  }
  .timeline-points li {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    width: 100%;
    padding: 0;
    border: 0;
  }
  .timeline-points strong {
    display: block;
    min-width: 0;
    font-size: .8rem;
    line-height: 1.55;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .timeline-points li > span {
    display: block !important;
    min-width: 0;
    width: 100%;
    color: #aeb8c7;
    font-size: .82rem;
    line-height: 1.65;
    overflow-wrap: anywhere;
    word-break: normal;
  }
  .timeline > li > span {
    display: none !important;
  }

  /* Chat: full-width composer with the send action beneath it. */
  .ai-shell {
    gap: 34px;
    padding: 26px 14px;
  }
  .ai-chat {
    width: 100%;
    min-width: 0;
    min-height: 560px;
    border-radius: 20px;
  }
  .chat-log {
    max-height: 410px;
    padding: 16px;
  }
  .chat-message {
    max-width: 94%;
    font-size: .8rem;
  }
  .chat-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
    padding: 10px;
  }
  .chat-form textarea {
    min-height: 76px;
    max-height: 150px;
    border-radius: 16px;
    padding: 14px 15px;
  }
  .chat-form button {
    width: 100%;
    height: 48px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
  }
  .chat-form button span {
    display: inline;
    font-size: .78rem;
    font-weight: 600;
  }
  .chat-form button svg {
    width: 18px;
  }
}

/* =========================================================
   v6 — Motion system: scroll choreography, 3D graph, kinetic type
   Images remain original assets; effects are CSS transforms/overlays only.
   ========================================================= */

:root {
  --motion-blue: #6f9cff;
  --motion-cyan: #79e7ff;
  --motion-violet: #8f79ff;
}

html { scroll-behavior: smooth; }
body { overflow-x: clip; }

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-content: center;
  gap: 18px;
  background: #05070a;
  color: #fff;
  text-align: center;
  transition: opacity .65s ease, visibility .65s ease;
  animation: loaderFailsafe .01s linear 3s forwards;
}
.page-loader.is-complete { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-mark { font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 720; letter-spacing: -.08em; }
.loader-line { width: min(260px, 64vw); height: 2px; overflow: hidden; background: rgba(255,255,255,.1); }
.loader-line span { display: block; width: 42%; height: 100%; background: linear-gradient(90deg,var(--motion-blue),var(--motion-cyan)); animation: loaderSweep 1.15s cubic-bezier(.65,0,.35,1) infinite; }
.page-loader p { margin: 0; color: #7e8998; font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; }
@keyframes loaderSweep { 0% { transform: translateX(-110%); } 100% { transform: translateX(340%); } }
@keyframes loaderFailsafe { to { opacity: 0; visibility: hidden; pointer-events: none; } }

.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: 2px;
  pointer-events: none;
  background: transparent;
}
.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg,var(--motion-blue),var(--motion-cyan),var(--motion-violet));
  box-shadow: 0 0 14px rgba(111,156,255,.5);
}

.hero { isolation: isolate; }
.hero-media { will-change: transform; }
.hero-media img { will-change: transform; transform-origin: 62% 42%; }
.hero-line { display: block; overflow: hidden; padding-bottom: .05em; }
.hero-line > span { display: block; will-change: transform; }
.hero-title em { position: relative; z-index: 1; }
.hero-title em::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -.06em;
  right: -.06em;
  bottom: .02em;
  height: .17em;
  border-radius: 999px;
  background: linear-gradient(90deg,rgba(79,140,255,.18),rgba(121,231,255,.55));
  transform: scaleX(0);
  transform-origin: left;
}
.motion-enhanced .hero-title em::after { animation: heroUnderline 1.1s cubic-bezier(.22,1,.36,1) .75s forwards; }
@keyframes heroUnderline { to { transform: scaleX(1); } }
.hero-metrics > div { will-change: transform, opacity; }
.hero-metrics .metric-special strong { font-size: clamp(1rem,2.1vw,1.8rem); letter-spacing: -.04em; }

.liquid-divider {
  position: relative;
  min-height: 38vh;
  overflow: hidden;
  display: grid;
  align-content: center;
  gap: clamp(18px,3vw,42px);
  background: radial-gradient(circle at 50% 50%,rgba(79,140,255,.11),transparent 45%),#07090d;
  border-block: 1px solid rgba(255,255,255,.05);
}
.liquid-track { display: flex; width: max-content; white-space: nowrap; font-weight: 750; line-height: .88; letter-spacing: -.055em; text-transform: uppercase; will-change: transform; }
.liquid-track span { padding-right: .3em; }
.liquid-track-a { font-size: clamp(3.2rem,9vw,9rem); color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.3); }
.liquid-track-b { font-size: clamp(1rem,2.8vw,2.5rem); color: rgba(140,178,255,.82); letter-spacing: .02em; }
.liquid-orb { position: absolute; width: 42vw; aspect-ratio: 1; border-radius: 42% 58% 64% 36% / 39% 43% 57% 61%; filter: blur(44px); opacity: .22; mix-blend-mode: screen; }
.liquid-orb-a { left: -14vw; top: -20vw; background: #365eff; animation: blobMorph 11s ease-in-out infinite alternate; }
.liquid-orb-b { right: -18vw; bottom: -24vw; background: #3ddcff; animation: blobMorph 13s ease-in-out -3s infinite alternate-reverse; }
@keyframes blobMorph { 50% { border-radius: 63% 37% 31% 69% / 44% 65% 35% 56%; transform: translate3d(5vw,3vw,0) rotate(18deg) scale(1.12); } }

/* Horizontal, pinned project storytelling on capable screens. */
.case-stage { position: relative; }
.case-progress { display: none; }
.motion-enhanced .case-stage { overflow: hidden; min-height: min(720px,76vh); margin-top: 30px; }
.motion-enhanced .case-track { display: flex; align-items: stretch; gap: clamp(22px,3vw,46px); width: max-content; padding: 2px 9vw 48px 0; }
.motion-enhanced .case-track .case-study {
  flex: 0 0 min(78vw,1080px);
  min-height: min(600px,68vh);
  margin: 0;
  padding: clamp(34px,5vw,74px);
  grid-template-columns: 70px minmax(0,1fr) minmax(180px,.34fr) 54px;
  align-content: center;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 34px;
  background:
    radial-gradient(circle at 85% 10%,rgba(79,140,255,.16),transparent 35%),
    linear-gradient(145deg,rgba(255,255,255,.055),rgba(255,255,255,.018));
  box-shadow: 0 30px 100px rgba(0,0,0,.28);
}
.motion-enhanced .case-track .case-study:nth-child(2) { background: radial-gradient(circle at 80% 15%,rgba(111,82,255,.16),transparent 36%),linear-gradient(145deg,rgba(255,255,255,.055),rgba(255,255,255,.018)); }
.motion-enhanced .case-track .case-study:nth-child(3) { background: radial-gradient(circle at 85% 15%,rgba(32,205,169,.13),transparent 36%),linear-gradient(145deg,rgba(255,255,255,.055),rgba(255,255,255,.018)); }
.motion-enhanced .case-track .case-study:nth-child(4) { background: radial-gradient(circle at 85% 15%,rgba(255,122,75,.12),transparent 36%),linear-gradient(145deg,rgba(255,255,255,.055),rgba(255,255,255,.018)); }
.motion-enhanced .case-track .case-main h3 { font-size: clamp(3.6rem,7vw,8rem); letter-spacing: -.075em; }
.motion-enhanced .case-track .case-main > p { max-width: 650px; font-size: clamp(1rem,1.35vw,1.32rem); }
.motion-enhanced .case-progress { display: block; position: absolute; left: 0; right: 0; bottom: 16px; height: 2px; background: rgba(255,255,255,.08); }
.motion-enhanced .case-progress span { display: block; width: 100%; height: 100%; transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg,var(--motion-blue),var(--motion-cyan)); }

.system-map { position: relative; overflow: hidden; }
.flow-status { position: absolute; z-index: 4; top: 18px; right: 18px; display: flex; align-items: center; gap: 8px; color: #a8b7ce; font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; }
.flow-status span { width: 7px; height: 7px; border-radius: 50%; background: #65f4bc; box-shadow: 0 0 0 0 rgba(101,244,188,.5); animation: statusPulse 1.9s ease-out infinite; }
@keyframes statusPulse { 70% { box-shadow: 0 0 0 10px rgba(101,244,188,0); } 100% { box-shadow: 0 0 0 0 rgba(101,244,188,0); } }
.arch-flow-particle { fill: #8be9ff; filter: drop-shadow(0 0 7px #5ba8ff); }
.map-lines path { will-change: stroke-dashoffset; }

.capability-marquee { overflow: hidden; margin: clamp(34px,6vw,78px) 0 clamp(30px,5vw,64px); padding-block: 10px; border-block: 1px solid rgba(255,255,255,.06); transform: rotate(-1deg) scale(1.02); }
.marquee-line { display: flex; width: max-content; white-space: nowrap; font-weight: 740; text-transform: uppercase; letter-spacing: -.045em; }
.marquee-line div { padding-right: .5em; }
.marquee-forward { font-size: clamp(2rem,5.8vw,6.5rem); color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.28); animation: marqueeForward 32s linear infinite; }
.marquee-reverse { margin-top: 8px; font-size: clamp(.82rem,1.55vw,1.45rem); color: #769be4; letter-spacing: .04em; animation: marqueeReverse 38s linear infinite; }
@keyframes marqueeForward { to { transform: translateX(-50%); } }
@keyframes marqueeReverse { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.capability-row { transition: padding-left .35s ease, background .35s ease, border-color .35s ease; }
.capability-row:hover { padding-left: 14px; background: linear-gradient(90deg,rgba(79,140,255,.07),transparent 65%); }
.capability-row .cap-name { transition: color .3s ease, letter-spacing .3s ease; }
.capability-row:hover .cap-name { color: #fff; letter-spacing: -.025em; }

/* Experience: animated spine and metric arrival. */
.experience-layout { position: relative; }
.timeline { position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg,var(--motion-blue),rgba(121,231,255,.45),rgba(255,255,255,.08));
  transform: scaleY(0);
  transform-origin: top;
}
.motion-enhanced .timeline::before { transform: scaleY(var(--timeline-progress,0)); }
.timeline > li::before { content: ""; position: absolute; left: -33px; top: 42px; width: 11px; height: 11px; border: 2px solid #0a0d12; border-radius: 50%; background: var(--motion-blue); box-shadow: 0 0 20px rgba(79,140,255,.5); }
.timeline > li { position: relative; }
.timeline-points strong { position: relative; }
.timeline-points strong::after { content: ""; position: absolute; left: 0; bottom: -.18em; width: 100%; height: 1px; background: rgba(111,156,255,.36); transform: scaleX(0); transform-origin: left; transition: transform .55s ease; }
.timeline-points li.is-inview strong::after { transform: scaleX(1); }

/* 3D knowledge graph — SVG remains the mobile/accessibility fallback. */
.graph-3d-shell { display: none; position: relative; min-height: 760px; border: 1px solid rgba(255,255,255,.08); border-radius: 34px; overflow: hidden; background: radial-gradient(circle at 50% 45%,rgba(35,75,145,.2),transparent 48%),linear-gradient(180deg,#080b11,#05070a); box-shadow: inset 0 0 120px rgba(25,65,135,.08),0 30px 100px rgba(0,0,0,.22); }
.motion-enhanced .graph-3d-shell { display: block; }
.motion-enhanced .graph-svg-fallback,
.motion-enhanced .graph-scrollbar { display: none; }
.graph-3d-shell canvas { display: block; width: 100%; height: 760px; cursor: grab; touch-action: none; }
.graph-3d-shell canvas:active { cursor: grabbing; }
.graph-3d-hud { position: absolute; left: 22px; bottom: 18px; right: 22px; display: flex; gap: 22px; flex-wrap: wrap; color: #768399; font-size: .62rem; letter-spacing: .06em; text-transform: uppercase; pointer-events: none; }
.graph-3d-hud span:first-child { color: #b3c4e0; }
.graph-3d-hud i { display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: #7de9ff; box-shadow: 0 0 12px #7de9ff; }
.graph-reset { position: absolute; top: 18px; right: 18px; z-index: 3; padding: 9px 13px; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; background: rgba(8,12,18,.68); backdrop-filter: blur(12px); color: #aebbd0; font: inherit; font-size: .62rem; cursor: pointer; }
.graph-reset:hover { color: #fff; border-color: rgba(111,156,255,.5); }

/* Momentum gallery uses original images and only runtime transforms. */
.photo-rail { cursor: grab; user-select: none; }
.photo-rail.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.photo-card { transform-origin: center; will-change: transform; }
.photo-card img { pointer-events: none; will-change: transform; transition: filter .45s ease; }
.photo-card:hover img { filter: brightness(1.05); }

.ai-copy { position: relative; }
.ai-orb { position: relative; width: 132px; height: 132px; margin-bottom: 28px; display: grid; place-items: center; perspective: 500px; }
.ai-orb-core { width: 54px; height: 54px; border-radius: 45% 55% 60% 40%; background: radial-gradient(circle at 35% 28%,#d9fbff 0 6%,#7ee9ff 10%,#5d78ff 38%,#261052 72%); box-shadow: 0 0 24px rgba(121,231,255,.8),0 0 70px rgba(92,92,255,.5); animation: orbMorph 5s ease-in-out infinite alternate; }
.ai-orb-ring { position: absolute; inset: 18px; border: 1px solid rgba(126,233,255,.28); border-radius: 50%; transform-style: preserve-3d; }
.ring-one { animation: ringSpin 8s linear infinite; }
.ring-two { inset: 4px; border-color: rgba(143,121,255,.2); animation: ringSpinReverse 11s linear infinite; }
.ai-orb-particles i { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #baf7ff; box-shadow: 0 0 9px #7ee9ff; }
.ai-orb-particles i:nth-child(1){ transform: translate(-53px,-28px); animation: particleFloat 3.4s ease-in-out infinite; }
.ai-orb-particles i:nth-child(2){ transform: translate(46px,-42px); animation: particleFloat 4.2s ease-in-out -.6s infinite; }
.ai-orb-particles i:nth-child(3){ transform: translate(58px,28px); animation: particleFloat 3.8s ease-in-out -1.2s infinite; }
.ai-orb-particles i:nth-child(4){ transform: translate(-43px,47px); animation: particleFloat 4.6s ease-in-out -1.7s infinite; }
.ai-orb-particles i:nth-child(5){ transform: translate(6px,63px); animation: particleFloat 3.6s ease-in-out -.9s infinite; }
@keyframes orbMorph { to { border-radius: 57% 43% 36% 64% / 46% 58% 42% 54%; transform: rotate(10deg) scale(1.1); } }
@keyframes ringSpin { to { transform: rotateX(72deg) rotateZ(360deg); } }
@keyframes ringSpinReverse { to { transform: rotateY(68deg) rotateZ(-360deg); } }
@keyframes particleFloat { 50% { margin-top: -9px; opacity: .45; } }

.liquid-transition { min-height: 33vh; display: grid; place-items: center; overflow: hidden; background: linear-gradient(135deg,#436fff,#6a3cff 55%,#22d3ee); clip-path: ellipse(78% 46% at 50% 50%); }
.liquid-transition span { color: #fff; font-size: clamp(2rem,7vw,7rem); font-weight: 760; letter-spacing: -.06em; white-space: nowrap; will-change: transform; }

@media (max-width: 1100px) {
  .motion-enhanced .case-track .case-study { flex-basis: 86vw; grid-template-columns: 56px minmax(0,1fr); align-content: start; }
  .motion-enhanced .case-track .case-impact, .motion-enhanced .case-track .case-open { grid-column: 2; }
  .graph-3d-shell, .graph-3d-shell canvas { min-height: 670px; height: 670px; }
}

@media (max-width: 760px) {
  .page-loader { display: none; }
  .hero-line { overflow: visible; }
  .hero-media img { transform-origin: 58% 40%; }
  .hero-metrics .metric-special strong { font-size: .92rem; }
  .liquid-divider { min-height: 28vh; }
  .liquid-track-a { font-size: 3.4rem; }
  .liquid-orb { filter: blur(34px); }

  /* Never pin/horizontalize core work content on phones. */
  .motion-enhanced .case-stage { min-height: 0; overflow: visible; }
  .motion-enhanced .case-track { display: block; width: auto; padding: 0; }
  .motion-enhanced .case-track .case-study { min-height: 0; width: auto; margin: 0; padding: 26px 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; grid-template-columns: 42px minmax(0,1fr); }
  .motion-enhanced .case-track .case-main h3 { font-size: clamp(2.1rem,11vw,3.4rem); }
  .motion-enhanced .case-progress { display: none; }
  .flow-status { top: 10px; right: 10px; font-size: .54rem; }
  .capability-marquee { margin-inline: -20px; }
  .marquee-forward { animation-duration: 24s; }
  .marquee-reverse { animation-duration: 29s; }

  .timeline::before { left: 2px; }
  .timeline > li { padding-left: 24px !important; }
  .timeline > li::before { left: -3px; top: 34px; }

  /* Keep the v5 horizontally scrollable SVG graph on mobile. */
  .motion-enhanced .graph-3d-shell { display: none; }
  .motion-enhanced .graph-svg-fallback { display: block; }
  .motion-enhanced .graph-scrollbar { display: block; }
  .graph-3d-hud { display: none; }

  .photo-card { transform: none !important; }
  .ai-orb { width: 104px; height: 104px; }
  .ai-orb-core { width: 46px; height: 46px; }
  .liquid-transition { min-height: 24vh; clip-path: ellipse(110% 44% at 50% 50%); }
  .liquid-transition span { font-size: 2.3rem; }
}

@media (prefers-reduced-motion: reduce) {
  .page-loader { display: none; }
  .liquid-track,.marquee-line,.liquid-orb,.ai-orb-core,.ai-orb-ring,.ai-orb-particles i,.flow-status span { animation: none !important; }
  .motion-enhanced .case-stage { min-height: 0; overflow: visible; }
  .motion-enhanced .case-track { display: block; width: auto; padding: 0; }
  .motion-enhanced .case-track .case-study { width: auto; min-height: 0; margin-bottom: 18px; }
  .motion-enhanced .case-progress { display: none; }
  .motion-enhanced .graph-3d-shell { display: none; }
  .motion-enhanced .graph-svg-fallback { display: block; }
  .motion-enhanced .graph-scrollbar { display: block; }
}


/* v7: dedicated personal projects and robust Experience rendering */
.personal-projects {
  position: relative;
  background:
    radial-gradient(circle at 82% 12%, rgba(62, 112, 255, .13), transparent 34%),
    radial-gradient(circle at 14% 90%, rgba(42, 211, 190, .08), transparent 30%),
    #070a0f;
}
.personal-project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 56px;
}
.personal-project-card {
  position: relative;
  min-width: 0;
  padding: clamp(28px, 4vw, 52px);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 30px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.018));
  box-shadow: 0 28px 90px rgba(0,0,0,.22);
}
.personal-project-card::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -110px;
  top: -130px;
  border-radius: 50%;
  background: rgba(79,140,255,.14);
  filter: blur(22px);
  pointer-events: none;
}
.personal-project-card.featured-project::before { background: rgba(44,211,185,.14); }
.personal-project-topline {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--accent-2);
  font-size: .64rem;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.personal-project-card h3 {
  margin: 42px 0 16px;
  max-width: 760px;
  font-size: clamp(2.35rem, 4vw, 5rem);
  line-height: .96;
  letter-spacing: -.06em;
  font-weight: 600;
}
.personal-project-lead {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(.93rem, 1.25vw, 1.12rem);
  line-height: 1.7;
}
.personal-project-card .tag-list { margin-top: 26px; }
.project-architecture {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 34px 0;
  padding: 18px;
  border: 1px solid rgba(133,170,255,.14);
  border-radius: 18px;
  background: rgba(5,9,15,.58);
  color: #afbdd1;
  font-size: .7rem;
  line-height: 1.5;
}
.project-architecture span {
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  background: rgba(255,255,255,.035);
}
.project-architecture i { color: var(--accent-2); font-style: normal; }
.personal-project-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 30px;
}
.personal-project-facts div {
  min-width: 0;
  padding: 16px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.personal-project-facts strong {
  display: block;
  margin-bottom: 7px;
  color: #e7efff;
  font-size: 1.2rem;
}
.personal-project-facts span {
  display: block;
  color: var(--faint);
  font-size: .68rem;
  line-height: 1.5;
}
.personal-project-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; }
.personal-project-actions .button { min-height: 48px; }

/* Experience remains readable even if GSAP/ScrollTrigger fails or is interrupted. */
.experience .experience-intro,
.experience [data-timeline-item] {
  opacity: 1 !important;
  visibility: visible !important;
}
.experience [data-timeline-item] { transform: none; }

@media (max-width: 980px) {
  .personal-project-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .personal-project-grid { margin-top: 34px; gap: 18px; }
  .personal-project-card { padding: 26px 20px; border-radius: 22px; }
  .personal-project-card h3 { margin-top: 30px; }
  .personal-project-topline { align-items: flex-start; flex-direction: column; gap: 6px; }
  .project-architecture { overflow-x: auto; flex-wrap: nowrap; white-space: nowrap; scrollbar-width: thin; }
  .personal-project-facts { grid-template-columns: 1fr; }
  .personal-project-facts div { padding-inline: 0; }
  .personal-project-actions { align-items: stretch; flex-direction: column; }
  .personal-project-actions .button, .personal-project-actions .text-link { width: 100%; justify-content: center; }
}


/* v8: keep the complete 3D network in frame and make peripheral skill nodes legible. */
.graph-view-controls {
  display: none;
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 4;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 999px;
  background: rgba(7,10,15,.74);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 38px rgba(0,0,0,.25);
}
.motion-enhanced .graph-view-controls { display: flex; }
.graph-view-controls button {
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #aebbd0;
  font: inherit;
  font-size: .72rem;
  cursor: pointer;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}
.graph-view-controls button:first-child,
.graph-view-controls button:last-child {
  width: 34px;
  padding: 0;
  font-size: 1.05rem;
}
.graph-view-controls button:hover,
.graph-view-controls button:focus-visible {
  color: #fff;
  background: rgba(91,137,255,.18);
  outline: none;
}
.graph-view-controls button:active { transform: scale(.94); }
.graph-3d-shell::after {
  content: "All nodes are fitted to the frame · use Fit all after rotating";
  position: absolute;
  top: 70px;
  left: 22px;
  z-index: 2;
  color: rgba(168,183,208,.58);
  font-size: .58rem;
  letter-spacing: .055em;
  text-transform: uppercase;
  pointer-events: none;
}

@media (max-width: 760px) {
  .graph-view-controls { display: none !important; }
  .graph-3d-shell::after { display: none; }
  .graph-mobile-controls > span::after {
    content: " — edge nodes are available by swiping";
  }
}


/* v10 SEO knowledge hub */
.seo-deep-link{display:inline-flex;margin-top:18px;color:#dce6f7;font-size:.75rem;border-bottom:1px solid var(--line);padding-bottom:5px}.knowledge-hub{background:radial-gradient(circle at 20% 20%,rgba(79,140,255,.10),transparent 28rem),#080b11}.knowledge-card-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}.knowledge-card{min-height:285px;border:1px solid var(--line);border-radius:28px;padding:30px;background:linear-gradient(145deg,rgba(17,24,36,.9),rgba(9,13,20,.9));transition:transform .3s var(--ease),border-color .3s}.knowledge-card:hover{transform:translateY(-6px);border-color:rgba(79,140,255,.65)}.knowledge-card>span{color:var(--accent-2);font-size:.65rem;text-transform:uppercase;letter-spacing:.16em}.knowledge-card h3{font-size:clamp(2rem,3vw,3.5rem);letter-spacing:-.05em;line-height:1;margin:25px 0 15px}.knowledge-card p{max-width:540px;color:var(--muted)}.knowledge-card em{display:inline-block;margin-top:20px;font-style:normal;font-size:.78rem;border-bottom:1px solid var(--line);padding-bottom:5px}.portfolio-faq{background:#07090d}.faq-layout{display:grid;grid-template-columns:.75fr 1.25fr;gap:85px}.faq-layout h2{margin:0;font-size:clamp(2.5rem,5vw,5.2rem);letter-spacing:-.055em;line-height:.98;font-weight:580}.faq-list{border-top:1px solid var(--line)}.faq-list details{border-bottom:1px solid var(--line);padding:24px 0}.faq-list summary{cursor:pointer;font-size:1.05rem;list-style:none;display:flex;justify-content:space-between;gap:20px}.faq-list summary::-webkit-details-marker{display:none}.faq-list summary::after{content:'+';color:var(--accent-2);font-size:1.4rem}.faq-list details[open] summary::after{content:'−'}.faq-list p{color:var(--muted);max-width:720px;margin:18px 0 0}.metric-special strong{font-size:clamp(.95rem,1.5vw,1.4rem)!important;letter-spacing:.02em!important;word-spacing:.3em}.desktop-nav{gap:24px}
@media(max-width:900px){.knowledge-card-grid,.faq-layout{grid-template-columns:1fr}.faq-layout{gap:45px}}
@media(max-width:560px){.knowledge-card-grid{grid-template-columns:1fr}.knowledge-card{min-height:240px;padding:23px}}

/* v12 mobile viewport and resilient-motion fixes */
html,
body {
  width: 100%;
  max-width: 100%;
}
main,
section,
.wrap,
.architecture-grid,
.architecture-visual,
.graph-layout,
.graph-copy,
.knowledge-graph {
  min-width: 0;
}

.architecture-visual {
  width: 100%;
  min-width: 0;
}
.architecture-mobile-controls,
.architecture-scrollbar {
  display: none;
}

/* Progressive enhancement: content is readable even if animation JavaScript fails. */
.motion-fallback .reveal,
.no-intersection-observer .reveal {
  opacity: 1 !important;
  transform: none !important;
}

@media (max-width: 1100px) {
  .architecture-grid,
  .graph-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100%;
  }
  .graph-copy,
  .knowledge-graph,
  .architecture-copy,
  .architecture-visual {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 760px) {
  :root {
    --wrap: calc(100vw - 32px);
  }

  body {
    overflow-x: clip;
  }

  .section,
  .graph,
  .architecture {
    max-width: 100vw;
    overflow-x: clip;
  }

  .architecture-grid,
  .graph-layout {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 34px;
  }

  /* Architecture: a true nested horizontal viewport instead of a clipped wide SVG. */
  .architecture-mobile-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 10px;
    color: var(--muted);
    font-size: .68rem;
  }
  .architecture-mobile-controls > span {
    min-width: 0;
    line-height: 1.45;
  }
  .architecture-mobile-controls > div {
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
  }
  .architecture-mobile-controls button {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(255,255,255,.045);
    color: #fff;
    cursor: pointer;
  }
  .architecture-mobile-controls button:active {
    background: rgba(79,140,255,.2);
    border-color: var(--accent);
  }
  .system-map,
  .architecture-visual .system-map {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 10px;
    overflow-x: scroll !important;
    overflow-y: hidden !important;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
    scrollbar-width: none;
    border-radius: 20px;
  }
  .system-map::-webkit-scrollbar {
    display: none;
  }
  .system-map svg,
  .architecture-visual .system-map svg {
    display: block;
    width: 900px !important;
    min-width: 900px !important;
    max-width: none !important;
    height: 520px;
  }
  .flow-status {
    position: sticky;
    left: 12px;
    width: max-content;
    z-index: 4;
  }
  .architecture-scrollbar {
    display: block;
    position: relative;
    height: 8px;
    margin: 14px 4px 2px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255,255,255,.09);
    cursor: pointer;
  }
  .architecture-scrollbar span {
    position: absolute;
    inset: 0 auto 0 0;
    width: 35%;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(79,140,255,.8), rgba(139,177,255,1));
    box-shadow: 0 0 14px rgba(79,140,255,.28);
    transform: translateX(0);
    will-change: transform, width;
  }

  /* Graph: stack copy above the graph and contain all wide content in its own scroller. */
  .graph-copy {
    position: static !important;
  }
  .knowledge-graph {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 10px;
    overflow: hidden !important;
  }
  .graph-mobile-controls {
    width: 100%;
  }
  .graph-scroll-viewport,
  .motion-enhanced .graph-scroll-viewport,
  .knowledge-graph .graph-scroll-viewport {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: 684px;
    min-height: 684px;
    overflow-x: scroll !important;
    overflow-y: hidden !important;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
    scrollbar-width: none;
    border-radius: 18px;
  }
  .graph-scroll-viewport::-webkit-scrollbar {
    display: none;
  }
  .graph-scroll-viewport svg,
  .knowledge-graph .graph-scroll-viewport svg,
  .motion-enhanced .graph-scroll-viewport svg {
    display: block !important;
    width: 1000px !important;
    min-width: 1000px !important;
    max-width: none !important;
    height: 684px !important;
    min-height: 684px !important;
  }
  .graph-legend {
    position: static !important;
    max-width: 100%;
    overflow-x: auto;
    margin-bottom: 10px;
  }
  .graph-scrollbar,
  .motion-enhanced .graph-scrollbar {
    display: block !important;
    cursor: pointer;
  }

  /* Keep mobile motion lightweight but visible. */
  .mobile-motion .reveal.is-visible {
    animation: mobileReveal .58s cubic-bezier(.2,.7,.2,1) both;
  }
  .mobile-motion .arch-flow-particle:nth-of-type(n+5) {
    display: none;
  }
}

@media (max-width: 430px) {
  .architecture-mobile-controls,
  .graph-mobile-controls {
    font-size: .64rem;
  }
  .system-map svg,
  .architecture-visual .system-map svg {
    width: 820px !important;
    min-width: 820px !important;
  }
  .graph-scroll-viewport svg,
  .knowledge-graph .graph-scroll-viewport svg,
  .motion-enhanced .graph-scroll-viewport svg {
    width: 920px !important;
    min-width: 920px !important;
  }
}

@keyframes mobileReveal {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

/* =========================================================
   v13 — Chat layout fix
   Stack the full chat panel below "Ask my professional profile"
   on tablets and phones, mirroring the mobile graph layout.
   ========================================================= */
@media (max-width: 1100px) {
  .ai-shell {
    grid-template-columns: minmax(0, 1fr) !important;
    align-items: stretch;
  }

  .ai-copy,
  .ai-chat {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
  }

  .ai-copy > p {
    max-width: 760px;
  }

  .ai-chat {
    margin-top: 6px;
  }
}

@media (max-width: 760px) {
  .ai-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 28px;
    overflow: hidden;
  }

  .ai-copy,
  .ai-chat,
  .chat-log,
  .chat-form,
  .chat-form textarea {
    max-width: 100%;
    box-sizing: border-box;
  }

  .ai-chat {
    min-height: 540px;
    margin-top: 0;
  }
}

@media (max-width: 480px) {
  .ai-shell {
    padding: 24px 12px;
    gap: 24px;
  }

  .ai-chat {
    min-height: 500px;
    border-radius: 18px;
  }

  .chat-log {
    max-height: 350px;
    padding: 14px;
  }
}
