/* Maik.es portfolio v3 - archivo versionado para evitar estilos antiguos en caché */
:root {
  --bg: #07111d;
  --bg-deep: #040a12;
  --bg-soft: #0b1725;
  --panel: #0e1c2c;
  --panel-light: #122235;
  --text: #f3f7fb;
  --muted: #91a3b6;
  --muted-2: #667b91;
  --line: rgba(147, 178, 207, .16);
  --line-strong: rgba(147, 178, 207, .28);
  --accent: #6ee7d2;
  --accent-2: #5ca7ff;
  --accent-dark: #184d59;
  --success: #49d991;
  --max: 1180px;
  --radius: 22px;
  --shadow: 0 28px 80px rgba(0,0,0,.28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; overflow-x: hidden; color: var(--text); background: var(--bg); font-family: Inter, system-ui, sans-serif; line-height: 1.65; -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: Manrope, Inter, sans-serif; }
::selection { color: #04100e; background: var(--accent); }
.container { width: min(var(--max), calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: fixed; top: -80px; left: 20px; z-index: 999; padding: 11px 16px; border-radius: 9px; color: var(--bg); background: #fff; font-weight: 800; }
.skip-link:focus { top: 18px; }
:focus-visible { outline: 3px solid rgba(110,231,210,.55); outline-offset: 3px; }
.page-noise { position: fixed; inset: 0; z-index: 200; opacity: .024; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitchTiles'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* Header */
.site-header { position: fixed; top: 14px; right: 0; left: 0; z-index: 100; transition: top .25s; }
.header-inner { min-height: 68px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; padding: 0 18px; border: 1px solid var(--line); border-radius: 17px; background: rgba(5,13,23,.78); box-shadow: 0 18px 50px rgba(0,0,0,.2); backdrop-filter: blur(18px); transition: background .25s, border-color .25s; }
.site-header.scrolled { top: 8px; }.site-header.scrolled .header-inner { background: rgba(5,13,23,.93); border-color: rgba(147,178,207,.24); }
.brand { display: inline-flex; align-items: center; gap: 11px; justify-self: start; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(110,231,210,.35); border-radius: 11px; color: var(--accent); background: rgba(110,231,210,.07); font: 800 11px/1 Manrope, sans-serif; letter-spacing: -.02em; }
.brand > span:last-child { line-height: 1.1; }.brand strong, .brand small { display: block; }.brand strong { font: 800 13px/1 Manrope, sans-serif; letter-spacing: -.02em; }.brand small { margin-top: 5px; color: var(--muted-2); font-size: 8px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: 25px; }.main-nav a { color: var(--muted); font-size: 12px; font-weight: 600; transition: color .2s; }.main-nav a:hover, .main-nav a.active { color: #fff; }
.header-cv { justify-self: end; color: #fff; font-size: 12px; font-weight: 800; }.header-cv span { margin-left: 5px; color: var(--accent); }
.menu-toggle { display: none; width: 42px; height: 42px; padding: 9px; border: 1px solid var(--line); border-radius: 10px; color: #fff; background: transparent; cursor: pointer; }.menu-toggle span { display: block; width: 100%; height: 2px; margin: 5px 0; background: currentColor; transition: .25s; }

/* Hero */
.hero { position: relative; min-height: 920px; overflow: hidden; padding: 155px 0 0; background: radial-gradient(circle at 76% 18%, rgba(55,115,179,.17), transparent 31%), radial-gradient(circle at 22% 30%, rgba(36,139,124,.08), transparent 25%), linear-gradient(180deg, #07111d, #081522 80%, #091522); }
.hero::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(110,231,210,.35), transparent); }
.hero-grid { position: absolute; inset: 0; opacity: .44; background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px); background-size: 52px 52px; mask-image: linear-gradient(to bottom, #000 10%, transparent 90%); }
.hero-glow { position: absolute; width: 560px; height: 560px; right: -270px; top: 40px; border: 1px solid rgba(92,167,255,.1); border-radius: 50%; box-shadow: 0 0 0 80px rgba(92,167,255,.025), 0 0 0 160px rgba(92,167,255,.015); }
.hero-layout { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(330px, .8fr); align-items: center; gap: 74px; }
.hero-copy { padding-bottom: 35px; }
.availability { width: max-content; max-width: 100%; display: flex; align-items: center; gap: 10px; margin-bottom: 36px; padding: 7px 11px; border: 1px solid rgba(73,217,145,.18); border-radius: 99px; color: #a9d9c0; background: rgba(73,217,145,.05); font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.availability span, .current-dot { width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 5px rgba(73,217,145,.08), 0 0 14px rgba(73,217,145,.4); }
.hero-kicker, .section-index { margin-bottom: 18px; color: var(--accent); font: 700 11px/1.3 Manrope, sans-serif; letter-spacing: .15em; text-transform: uppercase; }
.hero h1 { max-width: 760px; margin-bottom: 26px; color: #f4f8fb; font-size: clamp(48px, 6vw, 76px); line-height: 1.02; letter-spacing: -.06em; }.hero h1 em { color: var(--accent); font-style: normal; }
.hero-lead { max-width: 680px; margin-bottom: 12px; color: #d5e0ea; font-size: 20px; line-height: 1.55; }.hero-lead strong { color: #fff; }.hero-detail { max-width: 680px; margin-bottom: 0; color: var(--muted); font-size: 15px; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 11px; padding: 0 20px; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; font-weight: 800; transition: transform .2s, border-color .2s, background .2s, box-shadow .2s; }.button:hover { transform: translateY(-2px); }.button-primary { color: #05100f; border-color: var(--accent); background: var(--accent); box-shadow: 0 15px 35px rgba(110,231,210,.14); }.button-primary:hover { box-shadow: 0 20px 42px rgba(110,231,210,.22); }.button-secondary { color: #eaf2f8; background: rgba(255,255,255,.025); }.button-secondary:hover { border-color: rgba(110,231,210,.4); background: rgba(255,255,255,.045); }.button-large { min-height: 57px; padding-inline: 25px; }
.hero-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 40px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }.hero-meta > div { min-width: 0; padding: 18px 17px; border-right: 1px solid var(--line); }.hero-meta > div:first-child { padding-left: 0; }.hero-meta > div:last-child { border-right: 0; }.hero-meta span, .hero-meta strong { display: block; }.hero-meta span { margin-bottom: 4px; color: var(--muted-2); font-size: 8px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }.hero-meta strong { color: #c6d3df; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Profile card */
.profile-card { position: relative; max-width: 420px; justify-self: end; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 27px; background: linear-gradient(145deg, rgba(18,37,57,.94), rgba(7,17,29,.92)); box-shadow: var(--shadow); transform: rotate(1deg); }
.profile-image-wrap { position: relative; height: 390px; overflow: hidden; margin: 12px 12px 0; border-radius: 19px; background: #e4edf0; }.profile-image-wrap::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(5,14,24,.35), transparent 35%); }.profile-image-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: center 16%; filter: saturate(.86) contrast(1.02); }.profile-code { position: absolute; right: 14px; bottom: 13px; z-index: 2; padding: 6px 9px; border: 1px solid rgba(255,255,255,.25); border-radius: 7px; color: #fff; background: rgba(5,14,24,.45); backdrop-filter: blur(8px); font: 700 8px/1 Manrope, sans-serif; letter-spacing: .12em; }
.profile-summary { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; padding: 21px 22px 18px; }.profile-summary > div:first-child span, .profile-summary strong, .profile-summary small { display: block; }.profile-summary > div:first-child span { margin-bottom: 6px; color: var(--accent); font-size: 8px; font-weight: 800; letter-spacing: .13em; }.profile-summary strong { color: #f0f6fb; font-size: 14px; }.profile-summary small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.profile-status { flex: 0 0 auto; display: flex; align-items: center; gap: 7px; color: #93b5a4; font-size: 8px; text-transform: uppercase; letter-spacing: .07em; }.profile-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--success); }
.profile-stack { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }.profile-stack span { min-width: 0; padding: 13px 7px; border-right: 1px solid var(--line); color: #8195a9; font-size: 7px; font-weight: 800; text-align: center; letter-spacing: .04em; }.profile-stack span:last-child { border-right: 0; }
.stack-marquee { position: relative; z-index: 2; min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 80px; border-top: 1px solid var(--line); color: #6f8296; font: 700 9px/1.3 Manrope, sans-serif; letter-spacing: .1em; }.stack-marquee i { width: 3px; height: 3px; flex: 0 0 auto; border-radius: 50%; background: var(--accent); }

/* Shared sections */
.section { padding: 118px 0; }
.section-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: start; }
.section-intro h2, .section-head h2, .credentials-copy h2, .contact-copy h2 { margin: 0; color: #f2f7fb; font-size: clamp(40px, 5vw, 64px); line-height: 1.03; letter-spacing: -.055em; }.section-intro h2 span, .section-head h2 span, .credentials-copy h2 span, .contact-copy h2 span { color: #71869a; }
.section-copy { padding-top: 29px; }.section-copy p { margin-bottom: 19px; color: #b7c5d1; font-size: 17px; line-height: 1.8; }.section-copy p:last-child { color: var(--muted); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 50px; margin-bottom: 60px; }.section-sidecopy { max-width: 390px; margin: 0 0 6px; color: var(--muted); font-size: 14px; }.inline-link { flex: 0 0 auto; padding-bottom: 3px; border-bottom: 1px solid rgba(110,231,210,.3); color: var(--accent); font-size: 12px; font-weight: 700; }.inline-link span { display: inline-block; margin-left: 5px; transition: transform .2s; }.inline-link:hover span { transform: translateX(4px); }

/* Profile values */
.profile-section { background: linear-gradient(180deg, #091522, #0a1725); }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 68px; }.value-card { position: relative; overflow: hidden; padding: 30px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.016); }.value-card::after { content: ""; position: absolute; width: 110px; height: 110px; right: -55px; top: -55px; border: 1px solid rgba(110,231,210,.09); border-radius: 50%; }.value-card > span { color: var(--accent); font-size: 10px; font-weight: 800; }.value-card h3 { margin: 45px 0 13px; font-size: 20px; letter-spacing: -.025em; }.value-card p { margin: 0; color: var(--muted); font-size: 13px; }

/* Experience */
.experience-section { background: var(--bg-deep); }
.experience-list { border-top: 1px solid var(--line); }
.experience-item { display: grid; grid-template-columns: 135px minmax(0, 1fr) 230px; gap: 42px; padding: 44px 0; border-bottom: 1px solid var(--line); transition: padding .25s, background .25s; }.experience-item:hover { padding-right: 18px; padding-left: 18px; background: rgba(255,255,255,.018); }
.experience-date span, .experience-date strong { display: block; }.experience-date span { color: var(--accent); font: 700 10px/1.3 Manrope, sans-serif; }.experience-date strong { margin-top: 4px; color: var(--muted-2); font-size: 10px; }.company-line { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; color: var(--muted); font-size: 11px; font-weight: 600; }.experience-main h3 { margin-bottom: 12px; font-size: 28px; letter-spacing: -.035em; }.experience-main > p { max-width: 680px; margin-bottom: 18px; color: var(--muted); font-size: 14px; }.experience-main ul { columns: 2; gap: 32px; padding: 0; margin: 20px 0 0; list-style: none; }.experience-main li { position: relative; break-inside: avoid; padding: 5px 0 5px 16px; color: #aebdca; font-size: 11px; }.experience-main li::before { content: "+"; position: absolute; left: 0; color: var(--accent); }
.experience-tags { display: flex; align-content: flex-start; justify-content: flex-end; flex-wrap: wrap; gap: 7px; }.experience-tags span { padding: 6px 9px; border: 1px solid var(--line); border-radius: 99px; color: #7e91a4; font-size: 7px; font-weight: 800; letter-spacing: .08em; }

/* Capabilities */
.capabilities-section { background: radial-gradient(circle at 90% 30%, rgba(65,120,178,.08), transparent 30%), #091522; }
.capabilities-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; }.capability-card { position: relative; min-height: 360px; overflow: hidden; padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(18,34,53,.86), rgba(9,21,35,.9)); }.capability-card:hover { border-color: rgba(110,231,210,.28); }.capability-featured { grid-row: span 2; min-height: 738px; }.capability-top { display: flex; align-items: center; justify-content: space-between; }.capability-top span { color: var(--accent); font-size: 10px; font-weight: 800; }.capability-top small { color: var(--muted-2); font-size: 8px; font-weight: 800; letter-spacing: .11em; }.capability-card h3 { margin: 80px 0 15px; font-size: 30px; letter-spacing: -.04em; }.capability-featured h3 { margin-top: 120px; font-size: 40px; }.capability-card > p { max-width: 520px; color: var(--muted); font-size: 14px; }.skill-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 25px; }.skill-list span { padding: 7px 9px; border: 1px solid var(--line); border-radius: 7px; color: #aebdca; background: rgba(255,255,255,.015); font-size: 9px; font-weight: 600; }
.capability-card:nth-child(4) { grid-column: 1 / -1; min-height: 315px; }.capability-card:nth-child(4) h3 { margin-top: 65px; }
.capability-visual { position: absolute; right: 30px; bottom: 34px; left: 30px; height: 235px; overflow: hidden; border: 1px solid rgba(110,231,210,.14); border-radius: 18px; background: radial-gradient(circle, rgba(110,231,210,.1), transparent 50%), #081421; }.system-visual { display: grid; place-items: center; }.system-visual::before, .system-visual::after { content: ""; position: absolute; border: 1px solid rgba(110,231,210,.16); border-radius: 50%; }.system-visual::before { width: 170px; height: 170px; }.system-visual::after { width: 115px; height: 115px; border-style: dashed; }.system-visual i { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 15px rgba(110,231,210,.6); }.system-visual i:nth-child(1) { top: 36px; left: 28%; }.system-visual i:nth-child(2) { right: 24%; bottom: 48px; }.system-visual i:nth-child(3) { left: 17%; bottom: 70px; }.system-visual span { position: relative; z-index: 2; color: #d6f5ef; font: 800 13px/1.5 Manrope, sans-serif; text-align: center; letter-spacing: .09em; }

/* Credentials */
.credentials-section { background: var(--bg-deep); }
.credentials-layout { display: grid; grid-template-columns: .68fr 1.32fr; gap: 80px; align-items: start; }.credentials-copy { position: sticky; top: 120px; }.credentials-copy > p:not(.section-index) { max-width: 420px; margin: 25px 0 28px; color: var(--muted); }.credentials-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 45px; padding: 40px; border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(145deg, rgba(16,32,50,.9), rgba(8,18,31,.9)); box-shadow: var(--shadow); }.credentials-column h3 { margin-bottom: 23px; color: var(--accent); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }.credentials-column ul { padding: 0; margin: 0; list-style: none; }.credentials-column li { padding: 15px 0; border-bottom: 1px solid var(--line); }.credentials-column strong, .credentials-column span { display: block; }.credentials-column strong { font-size: 13px; }.credentials-column span { margin-top: 4px; color: var(--muted); font-size: 10px; }.languages-title { margin-top: 35px; }

/* Projects */
.projects-section { background: #091522; }
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }.project-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.015); transition: transform .25s, border-color .25s; }.project-card:hover { transform: translateY(-6px); border-color: rgba(110,231,210,.3); }.project-visual { position: relative; height: 260px; overflow: hidden; border-bottom: 1px solid var(--line); background: #08131f; }.project-info { padding: 28px; }.project-info > span { color: var(--accent); font-size: 8px; font-weight: 800; letter-spacing: .12em; }.project-info h3 { margin: 22px 0 11px; font-size: 24px; letter-spacing: -.035em; }.project-info p { min-height: 68px; margin-bottom: 20px; color: var(--muted); font-size: 12px; }.project-info > div { display: flex; flex-wrap: wrap; gap: 7px; }.project-info small { padding: 5px 8px; border: 1px solid var(--line); border-radius: 99px; color: #7e91a4; font-size: 8px; }
.network-map { background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px); background-size: 28px 28px; }.map-node { position: absolute; z-index: 2; width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(110,231,210,.35); border-radius: 50%; color: var(--accent); background: #0d2130; font-size: 8px; font-weight: 800; box-shadow: 0 0 25px rgba(110,231,210,.1); }.node-main { width: 62px; height: 62px; left: calc(50% - 31px); top: calc(50% - 31px); }.node-a { left: 15%; top: 17%; }.node-b { right: 13%; top: 20%; }.node-c { right: 18%; bottom: 13%; }.map-line { position: absolute; z-index: 1; height: 1px; background: rgba(110,231,210,.28); transform-origin: left center; }.line-a { width: 36%; left: 24%; top: 33%; transform: rotate(20deg); }.line-b { width: 34%; left: 53%; top: 47%; transform: rotate(-31deg); }.line-c { width: 32%; left: 55%; top: 55%; transform: rotate(35deg); }
.terminal-window { padding: 23px; }.terminal-bar { display: flex; align-items: center; gap: 6px; padding-bottom: 15px; border-bottom: 1px solid var(--line); }.terminal-bar i { width: 7px; height: 7px; border-radius: 50%; background: #263b4e; }.terminal-bar span { margin-left: auto; color: #4f667b; font-size: 8px; }.terminal-window code { display: block; padding-top: 31px; color: #cde8e3; font: 11px/2 ui-monospace, monospace; }.terminal-window em { color: #66879a; font-style: normal; }
.service-rack { display: grid; align-content: center; gap: 10px; padding: 35px; }.rack-unit { height: 40px; display: flex; align-items: center; gap: 6px; padding: 0 12px; border: 1px solid #1d3448; border-radius: 6px; background: #0d1d2c; }.rack-unit span { width: 70%; height: 3px; background: #20374b; }.rack-unit i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px rgba(110,231,210,.4); }.service-rack > small { margin-top: 8px; color: #6b9c8d; font-size: 7px; text-align: center; letter-spacing: .1em; }

/* Contact + footer */
.contact-section { position: relative; overflow: hidden; padding: 125px 0; background: radial-gradient(circle at 70% 50%, rgba(51,139,164,.14), transparent 38%), #06101a; }.contact-grid-bg { position: absolute; inset: 0; opacity: .3; background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(90deg, transparent, #000 50%, transparent); }.contact-layout { position: relative; display: grid; grid-template-columns: 1fr 350px; gap: 90px; align-items: center; }.contact-copy > p:not(.section-index) { max-width: 650px; margin: 27px 0 0; color: var(--muted); }.contact-actions { display: grid; gap: 13px; }.contact-method { padding: 14px 0; border-bottom: 1px solid var(--line); }.contact-method span, .contact-method strong { display: block; }.contact-method span { color: var(--muted-2); font-size: 8px; text-transform: uppercase; letter-spacing: .11em; }.contact-method strong { margin-top: 3px; font-size: 15px; }
.site-footer { background: var(--bg-deep); }.footer-inner { min-height: 140px; display: flex; align-items: center; justify-content: space-between; gap: 35px; }.brand-footer .brand-mark { border-color: var(--line); color: var(--muted); background: transparent; }.footer-note { display: flex; gap: 35px; color: var(--muted-2); font-size: 9px; }

/* Motion */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }.reveal-delay { transition-delay: .12s; }.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 1050px) {
  .main-nav { gap: 17px; }.brand small { display: none; }
  .hero-layout { gap: 40px; }.hero h1 { font-size: 55px; }.profile-image-wrap { height: 350px; }.hero-meta { grid-template-columns: 1fr 1fr; }.hero-meta > div:last-child { display: none; }.hero-meta > div:nth-child(2) { border-right: 0; }
  .experience-item { grid-template-columns: 110px 1fr; }.experience-tags { grid-column: 2; justify-content: flex-start; }
  .projects-grid { grid-template-columns: 1fr 1fr; }.project-card:last-child { grid-column: 1 / -1; }.project-card:last-child .project-visual { height: 210px; }
}

@media (max-width: 860px) {
  .container { width: min(var(--max), calc(100% - 34px)); }
  .header-inner { grid-template-columns: 1fr auto auto; min-height: 62px; }.menu-toggle { display: block; }.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .main-nav { position: fixed; top: 86px; right: 17px; left: 17px; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: rgba(5,13,23,.97); box-shadow: var(--shadow); }.main-nav.open { display: flex; }.main-nav a { padding: 13px 10px; border-bottom: 1px solid var(--line); font-size: 14px; }.main-nav a:last-child { border-bottom: 0; }
  .hero { padding-top: 130px; }.hero-layout { grid-template-columns: 1fr; }.hero-copy { padding-bottom: 0; }.profile-card { max-width: 570px; justify-self: start; transform: none; }.profile-image-wrap { height: 480px; }.stack-marquee { margin-top: 60px; overflow: hidden; justify-content: flex-start; }.stack-marquee span { flex: 0 0 auto; }
  .section { padding: 90px 0; }.section-intro, .credentials-layout, .contact-layout { grid-template-columns: 1fr; gap: 50px; }.credentials-copy { position: static; }
  .value-grid { grid-template-columns: 1fr; }.value-card h3 { margin-top: 25px; }
  .capabilities-grid { grid-template-columns: 1fr; }.capability-featured { grid-row: auto; min-height: 600px; }.capability-card { min-height: 340px; }.capability-card:nth-child(4) { grid-column: auto; }
  .credentials-panel { grid-template-columns: 1fr 1fr; }.contact-layout { gap: 55px; }.contact-actions { max-width: 440px; }
  .footer-inner { align-items: flex-start; flex-direction: column; justify-content: center; }.footer-note { flex-wrap: wrap; gap: 10px 25px; }
}

@media (max-width: 620px) {
  .container { width: min(var(--max), calc(100% - 28px)); }
  .site-header { top: 8px; }.header-inner { padding: 0 10px; }.brand-mark { width: 36px; height: 36px; }.header-cv { padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; }.header-cv span { display: none; }.main-nav { top: 78px; right: 14px; left: 14px; }
  .hero { min-height: auto; padding-top: 115px; }.hero h1 { font-size: 42px; }.hero-lead { font-size: 18px; }.hero-actions { flex-direction: column; }.hero-actions .button { width: 100%; }.hero-meta { grid-template-columns: 1fr; }.hero-meta > div, .hero-meta > div:first-child { padding-left: 0; border-right: 0; border-bottom: 1px solid var(--line); }.hero-meta > div:last-child { display: block; border-bottom: 0; }.profile-image-wrap { height: 385px; }.profile-summary { align-items: flex-start; flex-direction: column; }.profile-stack { grid-template-columns: 1fr 1fr; }.profile-stack span:nth-child(2) { border-right: 0; }.profile-stack span:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .section-intro h2, .section-head h2, .credentials-copy h2, .contact-copy h2 { font-size: 39px; }.section-head { align-items: flex-start; flex-direction: column; margin-bottom: 45px; }.section-copy { padding-top: 0; }.section-copy p { font-size: 15px; }
  .experience-item { grid-template-columns: 1fr; gap: 22px; padding: 35px 0; }.experience-tags { grid-column: 1; justify-content: flex-start; }.experience-main ul { columns: 1; }
  .capability-card, .capability-featured { min-height: auto; padding: 27px; }.capability-featured { padding-bottom: 295px; }.capability-card h3, .capability-featured h3 { margin-top: 60px; font-size: 29px; }.capability-visual { right: 20px; bottom: 20px; left: 20px; height: 235px; }
  .credentials-panel { grid-template-columns: 1fr; padding: 27px; }.projects-grid { grid-template-columns: 1fr; }.project-card:last-child { grid-column: auto; }.project-info p { min-height: auto; }
  .contact-section { padding: 90px 0; }.contact-actions, .contact-actions .button { width: 100%; }
}

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