:root {
  color-scheme: dark;
  --bg: #0b0e12;
  --panel: #12171e;
  --text: #edf1f7;
  --muted: #a7b2c2;
  --quiet: #8e9bab;
  --line: #2a3441;
  --accent: #9bb8d8;
  --body: 'DM Sans', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --max: 1260px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; font: 1rem/1.7 var(--body); background: var(--bg); color: var(--text); }
h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2, h3, h4 { text-wrap: balance; }
h1, h2, h3 { line-height: 1.12; font-weight: 500; letter-spacing: -.04em; }
a { color: inherit; text-decoration: none; text-underline-offset: 5px; }
button { font: inherit; }
a, button, summary { -webkit-tap-highlight-color: transparent; }
button, summary { cursor: pointer; }
button { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; border-radius: 2px; }
::selection { color: white; background: #365779; }
.accent, .slash { color: var(--accent); }
.skip-link { position: fixed; z-index: 100; top: 10px; left: 12px; padding: 10px 16px; background: var(--text); color: var(--bg); transform: translateY(-170%); }
.skip-link:focus { transform: none; }
.site-header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 32px; min-height: 86px; padding: 12px max(24px, calc((100% - var(--max)) / 2)); border-bottom: 1px solid var(--line); background: rgba(11,14,18,.9); }
.brand { margin-right: auto; padding: 0 10px 0 0; line-height: 1; }
.brand-mark { font-size: 1.7rem; letter-spacing: -.07em; font-weight: 700; }
.brand-mark span { color: var(--accent); }
.top-nav, .header-actions { display: flex; align-items: center; gap: 26px; }
.top-nav a, .header-cv { font-size: .875rem; min-height: 44px; display: inline-flex; align-items: center; }
.top-nav a { color: var(--muted); }
.top-nav a:hover { color: var(--text); }
.header-actions { gap: 22px; }
.language-switch { display: flex; gap: 0; }
.language-switch button { min-width: 42px; min-height: 44px; padding: 5px; border: 0; background: none; color: var(--quiet); font: .8rem var(--mono); }
.language-switch button[aria-pressed=true] { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 7px; }
.header-cv { gap: 12px; border: 1px solid #3c4a5c; padding: 0 16px; border-radius: 12px; }
.header-cv:hover { border-color: var(--accent); }
.hero { max-width: var(--max); margin: 0 auto; padding: 54px 24px 0; }
.hero-topline { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.eyebrow, .availability, .index-caption, .section-label { font: .75rem/1.5 var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.eyebrow { color: var(--quiet); }
.slash { margin: 0 10px; }
.availability { display: flex; align-items: center; gap: 10px; color: #b8c4d3; text-transform: none; letter-spacing: 0; }
.status-dot { width: 6px; height: 6px; flex: 0 0 auto; background: #90aeac; border-radius: 50%; }
.hero h1 { font-size: clamp(3.3rem, 12.7vw, 10rem); letter-spacing: -.065em; line-height: 1.05; margin: 48px 0 38px; }
.hero-bottom { display: grid; grid-template-columns: 1.2fr 1fr; gap: 72px; padding-bottom: 46px; }
.hero-role { font-size: clamp(1.5rem, 2.7vw, 2.5rem); line-height: 1.25; letter-spacing: -.035em; }
.hero-location { margin-top: 22px; font: .75rem/1.7 var(--mono); color: var(--quiet); }
.hero-location > span { margin: 0 7px; }
.hero-statement p { max-width: 475px; color: var(--muted); font-size: 1.06rem; line-height: 1.7; }
.button { display: inline-flex; justify-content: space-between; align-items: center; gap: 34px; min-height: 50px; padding: 10px 17px; border: 1px solid var(--accent); font-size: .875rem; border-radius: 14px; transition: background .2s, transform .2s, box-shadow .2s; }
.button.primary { background: linear-gradient(135deg,#c4d2e2,#8ca9ca); color: #101a28; margin-top: 22px; font-weight: 600; }
.button:hover { background: #c0d1e7; transform: translateY(-2px); }
.hero-proof { display: grid; grid-template-columns: 1fr 1fr 1.2fr; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hero-proof > div { display: flex; gap: 14px; align-items: center; padding: 24px 26px; border-right: 1px solid var(--line); }
.hero-proof > div:first-child { padding-left: 0; }
.hero-proof > div:last-child { border-right: 0; }
.hero-proof strong { font-size: 1.15rem; font-weight: 500; white-space: nowrap; }
.hero-proof span { font-size: .8125rem; color: var(--quiet); line-height: 1.45; }
.portfolio-layout { max-width: var(--max); margin: 0 auto; padding: 100px 24px 80px; display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 92px; align-items: start; }
.page-index { position: sticky; top: 130px; }
.index-caption { color: var(--quiet); margin-bottom: 20px; }
.page-index nav { display: flex; flex-direction: column; }
.page-index nav a { display: flex; align-items: center; gap: 12px; min-height: 48px; color: var(--quiet); font-size: .875rem; transition: color .2s; }
.nav-line { width: 13px; height: 1px; background: #54657a; transition: width .2s, background .2s; flex: 0 0 auto; }
.page-index nav a:hover, .page-index nav a[aria-current] { color: var(--text); }
.page-index nav a:hover .nav-line, .page-index nav a[aria-current] .nav-line { width: 26px; background: var(--accent); }
.nav-number { font: .75rem var(--mono); margin-left: auto; color: var(--quiet); }
.index-bottom { margin-top: 62px; padding-top: 24px; border-top: 1px solid var(--line); }
.index-bottom p { margin: 8px 0 18px; line-height: 1.5; }
.index-bottom a { display: inline-flex; align-items: center; min-height: 44px; font-size: .875rem; margin-right: 16px; color: var(--muted); }
.index-bottom a:hover { color: var(--accent); }
.portfolio-content { min-width: 0; }
.section { padding: 0 0 82px; margin-bottom: 82px; border-bottom: 1px solid var(--line); }
.section:last-child { margin-bottom: 0; border-bottom: 0; padding-bottom: 0; }
.section-label { display: flex; gap: 14px; align-items: center; margin-bottom: 28px; color: var(--quiet); }
.section-label > span:first-child { color: var(--accent); }
.section h2 { font-size: clamp(2rem, 3.35vw, 3rem); margin-bottom: 24px; }
.section-heading-row { margin-bottom: 40px; }
.section-heading-row > p, .section > p { color: var(--muted); max-width: 660px; }
.project-list { display: grid; gap: 34px; }
.project-card { min-width: 0; padding: 32px 32px 0; background: var(--panel); border: 1px solid var(--line); border-radius: 26px; transition: border-color .25s, box-shadow .3s, transform .25s; }
.project-card:hover { border-color: #60738b; }
.project-meta { display: flex; justify-content: space-between; align-items: center; gap: 18px; font: .75rem/1.6 var(--mono); color: var(--quiet); margin-bottom: 24px; }
.project-status { border-radius: 100px; color: #c0cbd4; border: 1px solid #425569; padding: 2px 8px; white-space: nowrap; }
.project-card h3 { max-width: 620px; font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 14px; }
.project-card > p { color: var(--muted); }
.tag-list { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 22px 0 25px; padding: 0; }
.tag-list > li, .tag-list > span { font: .75rem/1.5 var(--mono); padding: 5px 9px; background: #202c3b; color: #b6c5d7; border-radius: 8px; }
.case-study { border-top: 1px solid #2c3949; }
summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 64px; padding: 17px 0; font-size: .875rem; color: #b0c8e5; }
summary::-webkit-details-marker { display: none; }
.summary-icon { display: inline-flex; flex: 0 0 auto; justify-content: center; align-items: center; width: 28px; height: 28px; border: 1px solid #485e77; border-radius: 50%; font-size: 1.1rem; transition: transform .2s; }
details[open] > summary .summary-icon { transform: rotate(45deg); }
summary:hover { color: #d9e8fb; }
.case-content { padding: 12px 0 30px; }
.case-section + .case-section { margin-top: 24px; }
.case-section h4 { font-size: 1rem; line-height: 1.5; color: var(--text); margin-bottom: 8px; }
.case-section p { color: var(--muted); }
.about-copy p { color: var(--muted); margin-bottom: 22px; }
.about-languages { display: flex; gap: 65px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.about-languages > div { display: flex; flex-direction: column; }
.about-languages strong { font-weight: 500; }
.about-languages span { color: var(--quiet); font-size: .875rem; }
.timeline { border-top: 1px solid var(--line); }
.timeline-item { display: grid; grid-template-columns: 142px minmax(0,1fr); gap: 24px; padding: 29px 0; border-bottom: 1px solid var(--line); }
.timeline-item:last-child { padding-bottom: 0; border-bottom: 0; }
.timeline-date { color: var(--quiet); font: .75rem/1.7 var(--mono); }
.timeline-company { color: #9eb9d9; font-size: .875rem; margin-bottom: 9px; }
.timeline-item h3 { margin-bottom: 12px; font-size: 1.1875rem; letter-spacing: -.025em; line-height: 1.35; }
.timeline-item div:last-child > p:last-child { color: var(--muted); font-size: 1rem; }
.expertise-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 32px; }
.expertise-card { padding: 24px 0 6px; border-top: 1px solid var(--line); }
.card-index { display: block; font: .75rem var(--mono); color: var(--quiet); margin-bottom: 22px; }
.expertise-card h3 { font-size: 1.1875rem; margin-bottom: 14px; line-height: 1.3; }
.expertise-card p { color: var(--muted); font-size: 1rem; }
.practice-list { margin-top: 30px; border-top: 1px solid var(--line); }
.practice-note { border-bottom: 1px solid var(--line); }
.practice-note summary { padding: 24px 0; color: var(--text); }
.practice-note strong { display: block; font-size: 1.05rem; font-weight: 500; }
.note-meta { display: block; color: var(--quiet); font-size: .8125rem; margin-top: 7px; }
.practice-note > div { padding: 0 40px 26px 0; color: var(--muted); }
.credentials-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
.credentials h2 { font-size: 1.5rem; }
.education-panel article { border-top: 1px solid var(--line); padding: 24px 0; }
.education-panel article:last-child { padding-bottom: 0; }
.education-panel article > span { color: var(--quiet); font: .75rem var(--mono); }
.education-panel h3 { font-size: 1.15rem; line-height: 1.4; margin: 10px 0 7px; }
.education-panel p { color: var(--muted); }
.cert-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 26px; }
.cert-list span { padding: 15px 0; border-top: 1px solid var(--line); font-size: .875rem; color: var(--muted); }
.contact { background: #101721; border-top: 1px solid #2b3a4d; border-bottom: 1px solid #2b3a4d; }
.contact-inner { max-width: var(--max); margin: 0 auto; padding: 85px 24px; }
.contact h2 { font-size: clamp(3.5rem, 7vw, 6rem); margin: 24px 0; }
.contact-email { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 18px; color: #b6cce5; font-size: clamp(1.3rem, 3vw, 2.4rem); letter-spacing: -.035em; line-height: 1.5; border-bottom: 1px solid #526f90; }
.contact-email:hover { color: #e1eeff; }
.contact p:not(.eyebrow) { max-width: 580px; color: var(--muted); margin: 26px 0; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 32px; }
.contact-actions a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: .875rem; }
.contact-actions a:hover { color: var(--accent); }
.site-footer { max-width: var(--max); margin: 0 auto; padding: 28px 24px; display: flex; justify-content: space-between; gap: 20px; color: var(--quiet); font-size: .8125rem; }
.site-footer a { padding: 5px 0; }
@media (min-width: 1550px) { .hero h1 { font-size: 10.1rem; } }
@media (max-width: 1100px) {
  .portfolio-layout { grid-template-columns: 180px minmax(0,1fr); gap: 44px; }
  .hero-bottom { gap: 40px; }
  .hero-proof > div { flex-direction: column; align-items: flex-start; gap: 5px; }
}
@media (max-width: 850px) {
  .portfolio-layout { display: block; padding-top: 48px; }
  .page-index { position: static; margin-bottom: 56px; }
  .page-index > .index-caption, .index-bottom { display: none; }
  .page-index nav { flex-direction: row; gap: 24px; overflow-x: auto; padding: 5px 4px 12px; border-bottom: 1px solid var(--line); }
  .page-index nav a { white-space: nowrap; min-height: 44px; }
  .nav-line, .nav-number { display: none; }
  .page-index nav a[aria-current] { color: var(--accent); }
  .section h2 { font-size: 2.4rem; }
  .project-card h3 { font-size: 1.8rem; }
  .section { margin-bottom: 62px; padding-bottom: 62px; }
}
@media (max-width: 600px) {
  html { scroll-padding-top: 145px; }
  .site-header { flex-wrap: wrap; gap: 0 14px; padding: 10px 18px 0; min-height: 110px; }
  .brand { order: 0; }
  .header-actions { order: 1; gap: 12px; }
  .header-cv { min-height: 40px; padding: 0 10px; }
  .top-nav { order: 2; width: 100%; justify-content: space-between; gap: 20px; }
  .top-nav a { min-height: 42px; }
  .hero { padding: 34px 18px 0; }
  .hero-topline { align-items: flex-start; flex-direction: column; gap: 12px; }
  .hero h1 { margin: 30px 0 27px; font-size: clamp(2.75rem, 12vw, 4.5rem); letter-spacing: -.055em; }
  .hero-bottom { grid-template-columns: 1fr; gap: 24px; padding-bottom: 35px; }
  .hero-role { font-size: 1.6rem; }
  .hero-location { margin-top: 16px; }
  .hero-location > span { margin: 0 3px; }
  .hero-statement p { font-size: 1rem; }
  .hero-proof { grid-template-columns: 1fr; }
  .hero-proof > div, .hero-proof > div:first-child { flex-direction: row; align-items: center; padding: 16px 0; border-right: 0; gap: 18px; }
  .hero-proof > div + div { border-top: 1px solid var(--line); }
  .hero-proof strong { flex: 0 0 128px; font-size: 1rem; }
  .portfolio-layout { padding: 32px 18px 56px; }
  .page-index { margin-bottom: 44px; }
  .section h2 { font-size: 2rem; }
  .section-label { margin-bottom: 23px; }
  .section-heading-row { margin-bottom: 28px; }
  .project-card { padding: 23px 20px 0; }
  .project-card h3 { font-size: 1.5rem; }
  .project-meta { align-items: flex-start; gap: 12px; }
  .project-meta > span:first-child { max-width: 70%; }
  .timeline-item { grid-template-columns: 1fr; gap: 10px; }
  .expertise-grid, .cert-list { grid-template-columns: 1fr; }
  .about-languages { gap: 25px; }
  .contact-inner { padding: 58px 18px; }
  .contact h2 { font-size: clamp(2.8rem, 13vw, 4.2rem); }
  .contact-email { font-size: clamp(1.125rem, 5.8vw, 1.75rem); }
  .contact-actions { gap: 24px; }
  .site-footer { padding: 23px 18px; flex-wrap: wrap; font-size: .75rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Spatial diagrams and motion use the same steel and graphite surfaces. */
body { background-image: radial-gradient(ellipse at 76% 0%,rgba(81,115,155,.1),transparent 37%); }
.scroll-progress { position: fixed; z-index: 40; top: 0; left: 0; width: 100%; height: 2px; background: linear-gradient(90deg,#4c6686,#c7d9ee); transform: scaleX(var(--page-progress,0)); transform-origin: left; pointer-events: none; }
.site-header { transition: background .35s, box-shadow .35s; backdrop-filter: blur(18px); }
.site-header.is-scrolled { background: rgba(11,14,18,.96); box-shadow: 0 15px 35px rgba(0,0,0,.16); }
.motion-toggle .play-icon { display: none; }
.motion-toggle[aria-pressed=true] .play-icon { display: block; }
.motion-toggle[aria-pressed=true] .pause-icon { display: none; }
.motion-toggle:disabled { opacity: .6; cursor: default; }
.hero { position: relative; }
.hero h1 { font-weight: 600; color: #f2f5fa; }
.name-word { display: inline-block; }
.motion-ready:not(.motion-paused) .name-word { animation: word-enter .9s cubic-bezier(.16,1,.3,1) both; }
.motion-ready:not(.motion-paused) .name-word:nth-child(2) { animation-delay: .11s; }
.motion-ready:not(.motion-paused) .hero-bottom { animation: content-enter .9s .16s both; }
.button.primary { box-shadow: inset 0 1px 0 rgba(255,255,255,.4),0 9px 28px rgba(97,136,181,.12); border-color: #acbfd7; }
.button.primary:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.5),0 12px 36px rgba(97,136,181,.24); }
.button > span:last-child[aria-hidden] { transition: transform .25s; }
.button:hover > span:last-child[aria-hidden] { transform: translate(3px,3px); }
.hero-proof { margin-top: 10px; border-radius: 20px; background: linear-gradient(120deg,rgba(35,48,65,.43),rgba(20,27,37,.35)); border: 1px solid var(--line); overflow: hidden; }
.hero-proof > div:first-child { padding-left: 24px; }
.project-card { --card-x:0deg; --card-y:0deg; position: relative; isolation: isolate; background: linear-gradient(145deg,#171e28,#11161e 65%); box-shadow: inset 0 1px 0 rgba(209,224,246,.055),0 20px 50px rgba(0,0,0,.17); transform: perspective(1600px) rotateX(var(--card-x)) rotateY(var(--card-y)); }
.project-card:hover { box-shadow: inset 0 1px 0 rgba(209,224,246,.1),0 26px 60px rgba(0,0,0,.25); }
.project-card h3 { line-height: 1.18; }
.project-diagram { position: relative; margin-top: 30px; border: 1px solid #2d3d50; border-radius: 22px; background: radial-gradient(ellipse at 47% 35%,#24344a 0%,#131d2a 55%,#101823 100%); overflow: hidden; box-shadow: inset 0 1px 0 rgba(190,215,245,.09),inset 0 -24px 55px rgba(4,9,15,.24); }
.diagram-content { position: relative; height: 335px; perspective: 1000px; overflow: hidden; }
.scene-floor { position: absolute; left: 10%; right: 10%; top: 46%; height: 52%; border: 1px solid rgba(154,184,218,.08); background: radial-gradient(ellipse,rgba(142,172,210,.09),transparent 70%); border-radius: 50%; transform: rotateX(63deg); box-shadow: 0 0 0 28px rgba(134,164,201,.025),0 0 0 55px rgba(134,164,201,.018); pointer-events: none; }
.scene-rotator { position: absolute; inset: 0; transform: rotateX(var(--scene-x,-4deg)) rotateY(var(--scene-y,-4deg)); transform-style: preserve-3d; transition: transform .6s cubic-bezier(.2,.7,.3,1); }
.scene-world { position: absolute; left: 0; top: 0; width: 100%; height: 100%; transform-style: preserve-3d; }
.scene-wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; transform: translateZ(-9px); pointer-events: none; }
.wire { fill: none; stroke: #6682a2; stroke-width: 1; opacity: .5; }
.wire-pulse { fill: none; stroke: #c5d9f0; stroke-width: 1.8; stroke-dasharray: 8 420; stroke-dashoffset: 430; opacity: .8; animation: wire-flow 9s linear infinite; animation-delay: var(--wire-delay,0s); animation-play-state: paused; }
.spatial-node { position: absolute; display: flex; align-items: center; gap: 11px; min-height: 71px; width: 34%; padding: 14px; border: 1px solid #738eac; border-bottom-color: #4a6481; border-radius: 22px; color: #e7effa; background: linear-gradient(145deg,rgba(71,96,127,.97),rgba(35,53,75,.99)); transform-style: preserve-3d; box-shadow: inset 0 1px 1px rgba(229,241,255,.27),inset -1px -1px 0 rgba(16,30,48,.5),3px 8px 0 -1px #1b3049,3px 9px 0 0 #526c8c,7px 24px 25px -8px rgba(1,5,13,.57); animation: node-float 8s ease-in-out infinite; animation-delay: var(--float-delay,0s); animation-play-state: paused; }
.spatial-node::before { content: ''; position: absolute; inset: 4px 9px auto; height: 1px; background: linear-gradient(90deg,transparent,rgba(226,240,255,.25),transparent); pointer-events: none; }
.node-icon { display: grid; place-items: center; width: 34px; height: 36px; flex: 0 0 auto; color: #d6e6fa; }
.node-icon svg { width: 26px; height: 26px; }
.node-copy { min-width: 0; display: flex; flex-direction: column; }
.node-copy strong { font-size: .875rem; line-height: 1.35; font-weight: 500; }
.node-subtitle { font-size: .75rem; line-height: 1.45; margin-top: 4px; color: #bdcfe4; }
.node-core { left: 34%; top: 38%; width: 36%; z-index: 3; transform: translateZ(35px); background: linear-gradient(135deg,#809bb9,#4a6b90); border-color: #a7c0dc; --float-delay:-2s; }
.node-core .node-copy strong { color: #f8fbff; }
.node-core .node-icon { color: #f1f7ff; }
.node-upper-left { left: 5%; top: 15%; width: 33%; --float-delay:-4s; }
.node-upper-right { right: 6%; top: 14%; width: 30%; --float-delay:-6s; }
.node-lower { left: 19%; bottom: 11%; width: 44%; --float-delay:-1s; }
.project-diagram figcaption { position: relative; display: flex; align-items: center; gap: 9px; padding: 13px 18px; min-height: 49px; color: #a5b6cc; background: rgba(6,13,24,.32); border-top: 1px solid #304359; font: .75rem/1.5 var(--mono); }
.caption-indicator { width: 5px; height: 5px; flex: 0 0 auto; background: #8eaccd; border-radius: 50%; }
.scene-inventory { background: radial-gradient(ellipse at 55% 35%,#263a4d,#121f2d 60%,#101823); }
.security-deck { position: absolute; inset: 0; transform-style: preserve-3d; }
.deck-layer { width: 56%; min-height: 80px; transform: rotateX(10deg) rotateZ(-4deg); padding: 17px 24px; border-radius: 25px; }
.deck-base { left: 15%; top: 59%; background: linear-gradient(145deg,#354a61,#1f3044); --float-delay:-1s; z-index:1; }
.deck-middle { left: 20%; top: 34%; z-index:2; background: linear-gradient(145deg,#506b89,#2a425f); --float-delay:-3s; }
.deck-top { left: 26%; top: 13%; z-index:3; background: linear-gradient(145deg,#8aa3bd,#506f91); border-color: #c0d1e6; --float-delay:-5s; }
.deck-top .node-subtitle { color: #d8e5f4; }
.deck-shadow { position: absolute; top: 73%; left: 20%; width: 62%; height: 50px; background: #02070f; filter: blur(22px); opacity: .6; border-radius: 50%; transform: rotateZ(-7deg); }
.scene-infrastructure { background: radial-gradient(ellipse at 50% 52%,#27374c,#131e2c 65%); }
.infra-cloud { width: 42%; left: 28%; top: 5%; min-height: 63px; --float-delay:-2s; }
.infra-core { width: 43%; left: 29%; top: 38%; background: linear-gradient(145deg,#617f9e,#2f4a68); z-index:3; --float-delay:-4s; }
.infra-app { width: 34%; left: 4%; top: 71%; --float-delay:-1s; }
.infra-data { width: 34%; right: 3%; top: 72%; --float-delay:-6s; }
.scene-help { background: radial-gradient(ellipse at 50% 45%,#2a3543,#161d28 65%); }
.help-core { width: 40%; left: 30%; top: 54%; background: linear-gradient(145deg,#7b8fa7,#41566f); z-index:3; --float-delay:-2s; }
.help-directory { width: 37%; left: 5%; top: 18%; --float-delay:-4s; }
.help-notes { width: 38%; right: 5%; top: 20%; --float-delay:-6s; }
[data-depth-scene][data-active=true] .spatial-node, [data-depth-scene][data-active=true] .wire-pulse { animation-play-state: running; }
.expertise-card { padding: 28px; border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(145deg,#141c27,#101720); box-shadow: inset 0 1px 0 rgba(193,213,239,.05); transition: transform .25s,border-color .25s,box-shadow .25s; }
.expertise-grid { gap: 18px; }
.expertise-card:hover { transform: translateY(-5px); border-color: #607893; box-shadow: 0 15px 35px rgba(0,0,0,.2); }
.education-panel, .cert-panel { border: 1px solid var(--line); border-radius: 22px; padding: 28px; background: linear-gradient(140deg,#141b25,#111720); }
.education-panel article { padding-bottom: 8px; }
.contact { background: radial-gradient(ellipse at 80% 100%,rgba(65,92,127,.22),transparent 60%),#101720; }
.summary-icon { transition: transform .25s,background .25s; }
summary:hover .summary-icon { background: #2d4058; }
.details-animating { overflow: hidden; }
.motion-ready .reveal { transition: opacity .7s ease,translate .8s cubic-bezier(.18,.7,.25,1),transform .25s,border-color .25s,box-shadow .3s; }
.motion-ready .reveal:not(.is-visible) { opacity: 0; translate: 0 26px; }
.motion-ready .reveal.is-visible { opacity: 1; translate: 0 0; }
@keyframes word-enter { from { opacity:0; transform:translateY(25px) rotateX(-12deg); filter:blur(4px); } to { opacity:1; transform:none; filter:blur(0); } }
@keyframes content-enter { from { opacity:0; transform:translateY(18px); } to { opacity:1; transform:none; } }
@keyframes node-float { 0%,100% { translate:0 0; } 50% { translate:0 -7px; } }
@keyframes wire-flow { to { stroke-dashoffset:0; } }
@media (max-width:1100px) {
  .hero-proof > div:first-child { padding-left:24px; }
  .spatial-node { gap:8px; padding:12px; }
  .node-icon { width:26px; }
  .node-icon svg { width:24px; height:24px; }
  .deck-layer { padding:14px 18px; }
}
@media (max-width:850px) {
  .diagram-content { height:340px; }
  .project-card { transform:none; }
}
@media (max-width:600px) {
  .header-actions { gap:7px; }
  .hero-proof > div, .hero-proof > div:first-child { padding:18px; }
  .hero-proof strong { flex-basis:113px; }
  .project-card { border-radius:22px; padding:22px 18px 0; }
  .project-diagram { border-radius:19px; margin-top:24px; }
  .diagram-content { height:345px; perspective:900px; }
  .scene-rotator { transform:rotateX(-3deg) rotateY(-3deg); }
  .spatial-node { flex-direction:column; justify-content:center; align-items:center; gap:6px; min-height:88px; padding:11px 8px; border-radius:18px; text-align:center; box-shadow:inset 0 1px 1px rgba(229,241,255,.27),2px 6px 0 -1px #1b3049,2px 7px 0 #526c8c,3px 18px 20px -8px rgba(1,5,13,.55); }
  .node-icon { height:25px; width:25px; }
  .node-icon svg { width:22px; height:22px; }
  .node-copy strong { font-size:.8125rem; }
  .node-subtitle { font-size:.75rem; margin-top:3px; }
  .node-upper-left { top:8%; left:5%; width:40%; }
  .node-upper-right { top:7%; right:4%; width:39%; }
  .node-core { top:41%; left:27%; width:49%; }
  .node-lower { bottom:7%; left:9%; width:57%; min-height:68px; flex-direction:row; text-align:left; }
  .deck-layer { flex-direction:row; text-align:left; justify-content:flex-start; padding:12px 15px; width:76%; min-height:80px; }
  .deck-top { left:17%; top:9%; }
  .deck-middle { left:12%; top:37%; }
  .deck-base { left:6%; top:65%; }
  .infra-cloud { left:22%; top:5%; width:58%; flex-direction:row; min-height:62px; }
  .infra-core { left:27%; top:35%; width:49%; }
  .infra-app { left:4%; top:70%; width:42%; }
  .infra-data { right:4%; top:70%; width:42%; }
  .help-core { width:62%; left:20%; top:50%; }
  .help-directory { width:43%; left:4%; top:12%; }
  .help-notes { width:43%; right:4%; top:12%; }
  .expertise-card,.education-panel,.cert-panel { padding:23px; }
  .project-diagram figcaption { padding:12px 13px; }
}
.motion-paused { scroll-behavior:auto; }
.motion-paused .spatial-node,.motion-paused .wire-pulse { animation-play-state:paused !important; }
.motion-paused .name-word,.motion-paused .hero-bottom { animation:none !important; }
.motion-paused .reveal { opacity:1 !important; translate:none !important; transition:none !important; }
.motion-paused .project-card,.motion-paused .scene-rotator { transform:none !important; }
.motion-paused .expertise-card:hover,.motion-paused .button:hover { transform:none; }
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto; }
  *,*::before,*::after { animation:none !important; transition:none !important; }
  .motion-ready .reveal:not(.is-visible) { opacity:1; translate:none; }
  .project-card,.scene-rotator { transform:none; }
  .expertise-card:hover,.button:hover { transform:none; }
}

/* Certificaciones: nombre, emisor y nota en una tarjeta compacta */
.cert-list span { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 15px 70px 15px 0; }
.cert-list strong { color: var(--text); font-weight: 500; font-size: .9375rem; line-height: 1.4; }
.cert-list small { color: var(--quiet); font: .75rem/1.5 var(--mono); }
.cert-score { position: absolute; right: 0; top: 16px; font: normal .75rem/1.5 var(--mono); color: #b6cce5; padding: 2px 8px; border: 1px solid #3a4d63; border-radius: 100px; white-space: nowrap; }

/* Retrasos de los cables animados como clases (antes eran estilos inline,
   que una Content Security Policy estricta bloquea) */
.wire-pulse.delay-0 { --wire-delay: 0s; }
.wire-pulse.delay-1 { --wire-delay: 1.3s; }
.wire-pulse.delay-2 { --wire-delay: 2.6s; }

/* ===== Controles de efectos (pausa y espada): botones pequeños y discretos ===== */
.fx-controls { display: flex; align-items: center; gap: 6px; }
.fx-toggle { display: inline-grid; place-items: center; flex: 0 0 auto; width: 32px; height: 32px; padding: 0; border: 1px solid #2c3948; border-radius: 9px; background: transparent; color: var(--muted); transition: color .2s, border-color .2s, background .2s, box-shadow .25s; }
.fx-toggle svg { width: 16px; height: 16px; }
.fx-toggle:hover { color: var(--text); border-color: #5d7590; background: #151d28; }
.fx-toggle[hidden] { display: none; }
.saber-toggle[aria-pressed=true] { color: #bfe6ff; border-color: #5fb6e8; background: #10202e; box-shadow: 0 0 14px rgba(95,182,232,.35); }

/* ===== Campo de estrellas detrás de la portada ===== */
main { position: relative; }
.hero { z-index: 1; }
.hero-backdrop { position: absolute; top: 0; left: 0; right: 0; height: 900px; overflow: hidden; pointer-events: none; z-index: 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%); mask-image: linear-gradient(to bottom, #000 55%, transparent 100%); }
.hero-backdrop canvas { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity 1.4s ease; }
.hero-backdrop.is-ready canvas { opacity: 1; }
.portfolio-layout { position: relative; z-index: 1; }

/* ===== Salto al hiperespacio (capa temporal a pantalla completa) ===== */
.warp-overlay { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 90; pointer-events: none; transition: opacity .45s ease; }
.warp-overlay.is-leaving { opacity: 0; }

/* ===== Espada de luz ===== */
.saber-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 95; pointer-events: none; }
html.saber-on, html.saber-on * { cursor: none !important; }

/* Pista discreta del código Konami en el pie de página */
.konami-hint { font: .7rem/1 var(--mono); letter-spacing: .18em; color: #3d4a5a; user-select: none; transition: color .3s; }
.konami-hint:hover { color: var(--quiet); }
@media (max-width: 600px) { .konami-hint { display: none; } }
