:root {
  --ink: #07111f;
  --ink-2: #0b192a;
  --panel: #102238;
  --cyan: #3be4c5;
  --blue: #4ea7ff;
  --paper: #eef6fb;
  --muted: #91a6b9;
  --line: rgba(191, 221, 240, .16);
  --max: 1220px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--paper);
  background: var(--ink);
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.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; left: 1rem; top: -5rem; z-index: 100; padding: .8rem 1rem; background: var(--cyan); color: var(--ink); font-weight: 800; }
.skip-link:focus { top: 1rem; }
.noise { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .035; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

.site-header, .hero, .section-shell, footer { width: min(calc(100% - 3rem), var(--max)); margin-inline: auto; }
.site-header { height: 96px; display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 50; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: .8rem; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--cyan); color: var(--cyan); font: 500 .86rem "DM Mono", monospace; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.2; }
.brand-copy strong { font-size: .9rem; letter-spacing: .02em; }
.brand-copy small { margin-top: .18rem; color: var(--muted); font: .68rem "DM Mono", monospace; text-transform: uppercase; letter-spacing: .12em; }
.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav a { color: #bdd0dd; font-size: .83rem; font-weight: 600; transition: color .2s; }
.site-nav a:hover, .site-nav a.active { color: var(--cyan); }
.site-nav .nav-cta { padding: .68rem 1rem; border: 1px solid var(--line); color: var(--paper); }
.site-nav .nav-cta:hover { border-color: var(--cyan); }
.menu-toggle { display: none; border: 0; color: var(--paper); background: transparent; width: 44px; height: 44px; padding: 10px; }
.menu-toggle > span:not(.sr-only) { display: block; height: 1px; width: 24px; margin: 5px 0; background: currentColor; transition: .25s; }

.hero { min-height: calc(100vh - 96px); display: grid; grid-template-columns: 1.12fr .88fr; gap: 7vw; align-items: center; padding-block: 5rem 6rem; }
.hero-copy { position: relative; z-index: 2; }
.eyebrow, .section-index, .project-type, .project-year, .timeline-date { font-family: "DM Mono", monospace; text-transform: uppercase; letter-spacing: .12em; }
.eyebrow { display: flex; align-items: center; gap: .65rem; width: fit-content; margin-bottom: 2rem; color: #a8becd; font-size: .72rem; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 5px rgba(59,228,197,.1), 0 0 18px var(--cyan); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .55; box-shadow: 0 0 0 8px rgba(59,228,197,0); } }
h1, h2, h3, p { margin-top: 0; }
.hero h1 { margin-bottom: 1.8rem; font-size: clamp(3.8rem, 8vw, 7.2rem); line-height: .87; letter-spacing: -.075em; font-weight: 700; }
.hero h1 em { color: var(--cyan); font-style: normal; }
.hero-intro { max-width: 620px; margin-bottom: 2rem; color: #b3c4d0; font-size: clamp(1.05rem, 1.5vw, 1.28rem); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 2rem; padding: .92rem 1.1rem; border: 1px solid var(--line); font-size: .84rem; font-weight: 700; transition: transform .2s, background .2s, border-color .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--cyan); border-color: var(--cyan); color: var(--ink); }
.button-primary:hover { background: #70efd8; }
.button-secondary:hover { border-color: var(--cyan); color: var(--cyan); }
.quick-facts { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 3.8rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.quick-facts div { padding-right: 1rem; }
.quick-facts span { display: block; color: var(--muted); font: .64rem "DM Mono", monospace; text-transform: uppercase; letter-spacing: .1em; }
.quick-facts strong { display: block; margin-top: .4rem; font-size: .78rem; font-weight: 600; }

.hero-visual { position: relative; align-self: stretch; min-height: 630px; display: flex; align-items: center; }
.hero-visual::before { content: ""; position: absolute; inset: 6% -20% 8% 14%; border: 1px solid var(--line); background: linear-gradient(145deg, rgba(78,167,255,.09), rgba(59,228,197,.02)); transform: skewY(-3deg); }
.portrait-frame { position: relative; width: 85%; margin-left: auto; aspect-ratio: .73; overflow: hidden; border: 1px solid rgba(59,228,197,.3); background: var(--panel); box-shadow: 0 36px 80px rgba(0,0,0,.35); }
.portrait-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 54%, rgba(7,17,31,.82)); pointer-events: none; }
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 53% 28%; filter: saturate(.73) contrast(1.06); }
.scan-line { position: absolute; left: 0; right: 0; top: 20%; height: 1px; z-index: 2; background: linear-gradient(90deg, transparent, var(--cyan), transparent); box-shadow: 0 0 18px var(--cyan); opacity: .65; animation: scan 6s ease-in-out infinite; }
@keyframes scan { 50% { top: 75%; } }
.portrait-label { position: absolute; z-index: 3; left: 1.2rem; right: 1.2rem; bottom: 1.15rem; display: flex; justify-content: space-between; align-items: end; }
.portrait-label span { color: var(--cyan); font: .62rem "DM Mono", monospace; text-transform: uppercase; letter-spacing: .12em; }
.portrait-label strong { font: .72rem "DM Mono", monospace; }
.signal-card { position: absolute; z-index: 4; display: flex; flex-direction: column; padding: .8rem 1rem; min-width: 130px; border: 1px solid var(--line); background: rgba(7,17,31,.9); backdrop-filter: blur(12px); }
.signal-card span { color: var(--muted); font: .58rem "DM Mono", monospace; text-transform: uppercase; letter-spacing: .12em; }
.signal-card b { margin-top: .25rem; color: var(--cyan); font-size: .86rem; }
.signal-card-a { left: 0; top: 20%; }
.signal-card-b { right: -4%; bottom: 18%; }

.section-shell { padding-block: 8rem; }
.section-index { color: var(--cyan); font-size: .69rem; }
.statement { display: grid; grid-template-columns: .42fr 1.2fr .48fr; gap: 4rem; align-items: start; border-top: 1px solid var(--line); }
.statement h2, .section-heading h2, .contact h2 { margin: 0; font-size: clamp(2.6rem, 5vw, 5.1rem); line-height: .98; letter-spacing: -.055em; }
.statement h2 span, .section-heading h2 span, .contact h2 span { color: #6e879b; font-weight: 500; }
.statement-copy > p { max-width: 760px; margin: 2rem 0 0; color: #aebfcb; font-size: 1.08rem; }
.traits { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.traits span { padding: .8rem 0; border-bottom: 1px solid var(--line); color: #c8d7e1; font-size: .8rem; }

.experience { display: grid; grid-template-columns: .7fr 1.3fr; gap: 8vw; }
.section-heading { position: sticky; top: 5rem; height: fit-content; }
.timeline { border-top: 1px solid var(--line); }
.timeline-item { display: grid; grid-template-columns: 150px 32px 1fr; padding: 2.5rem 0; border-bottom: 1px solid var(--line); }
.timeline-date { color: var(--muted); font-size: .64rem; }
.timeline-marker { position: relative; display: flex; justify-content: center; }
.timeline-marker::after { content: ""; position: absolute; top: 16px; bottom: -3rem; width: 1px; background: var(--line); }
.timeline-item:last-child .timeline-marker::after { display: none; }
.timeline-marker span { position: relative; z-index: 1; width: 8px; height: 8px; margin-top: 4px; border: 2px solid var(--cyan); background: var(--ink); transform: rotate(45deg); }
.company { margin-bottom: .55rem; color: var(--cyan); font: .67rem "DM Mono", monospace; letter-spacing: .1em; }
.timeline h3 { margin-bottom: .7rem; font-size: 1.65rem; }
.timeline-content > p { color: #9fb1be; }
.timeline ul { display: grid; gap: .4rem; margin: 1.4rem 0 0; padding: 0; list-style: none; color: #d6e2e9; font-size: .9rem; }
.timeline li::before { content: "+"; margin-right: .7rem; color: var(--cyan); font-family: "DM Mono", monospace; }

.projects-section { position: relative; background: #dce9ef; color: var(--ink); }
.projects-section .section-index { color: #0c766b; }
.projects-section .section-heading { position: static; display: flex; align-items: end; justify-content: space-between; margin-bottom: 4rem; }
.projects-section .section-heading h2 span { color: #6b7c88; }
.projects-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 1px; background: rgba(7,17,31,.18); border: 1px solid rgba(7,17,31,.18); }
.project-card { min-height: 360px; display: flex; flex-direction: column; justify-content: space-between; padding: 2rem; background: #edf5f8; transition: background .25s, transform .25s; }
.project-card:hover { background: #fff; transform: translateY(-4px); }
.project-featured { grid-row: span 2; min-height: 720px; background: var(--ink-2); color: var(--paper); }
.project-featured:hover { background: #112840; }
.project-top { display: flex; justify-content: space-between; }
.project-number { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid currentColor; font: .72rem "DM Mono", monospace; }
.project-year { color: #6a7e8a; font-size: .62rem; }
.project-featured .project-year { color: var(--muted); }
.project-icon { align-self: center; color: var(--cyan); font: 8rem "DM Mono", monospace; transform: rotate(-12deg); text-shadow: 0 0 40px rgba(59,228,197,.3); }
.project-type { margin-bottom: .7rem; color: #137d71; font-size: .61rem; }
.project-featured .project-type { color: var(--cyan); }
.project-card h3 { margin-bottom: .8rem; font-size: 2.15rem; letter-spacing: -.04em; }
.project-card p:not(.project-type) { max-width: 650px; color: #5d6c76; font-size: .92rem; }
.project-featured p:not(.project-type) { color: #aebfcb; }
.tag-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.tag-row span { padding: .35rem .55rem; border: 1px solid rgba(7,17,31,.16); font: .59rem "DM Mono", monospace; text-transform: uppercase; letter-spacing: .06em; }
.project-featured .tag-row span { border-color: var(--line); color: #b8cbd7; }

.expertise { display: grid; grid-template-columns: .7fr 1.3fr; gap: 8vw; }
.skill-groups { border-top: 1px solid var(--line); }
.skill-group { padding: 2rem 0 2.4rem; border-bottom: 1px solid var(--line); }
.skill-header { display: flex; align-items: baseline; gap: 1.2rem; margin-bottom: 1.4rem; }
.skill-header > span { color: var(--cyan); font: .66rem "DM Mono", monospace; }
.skill-header h3 { margin: 0; font-size: 1.55rem; }
.skill-list { display: flex; flex-wrap: wrap; gap: .55rem; }
.skill-list span { padding: .45rem .7rem; background: rgba(133,172,197,.08); border: 1px solid var(--line); color: #c4d4de; font-size: .75rem; }

.credentials-section { background: var(--ink-2); border-block: 1px solid var(--line); }
.credential-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8vw; }
.credential-grid h2 { font-size: 2.5rem; letter-spacing: -.04em; }
.education article { position: relative; padding: 1.5rem 0 1.5rem 1.4rem; border-left: 1px solid var(--line); }
.education article::before { content: ""; position: absolute; left: -4px; top: 2rem; width: 7px; height: 7px; background: var(--cyan); transform: rotate(45deg); }
.education article span, .cert-list article span { color: var(--muted); font: .62rem "DM Mono", monospace; }
.education article h3 { margin: .4rem 0 .2rem; font-size: 1.05rem; }
.education article p, .cert-list article p { margin: 0; color: var(--muted); font-size: .78rem; }
.cert-list { border-top: 1px solid var(--line); }
.cert-list article { display: flex; justify-content: space-between; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.cert-list article h3 { margin: .2rem 0 0; font-size: 1rem; }
.cert-list article b { color: rgba(59,228,197,.22); font: 2rem "DM Mono", monospace; }

.contact { padding-block: 9rem; }
.contact-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 8vw; margin-top: 3rem; align-items: end; }
.contact-grid > div > p { max-width: 650px; margin-top: 2rem; color: #9fb1be; }
.email-link { position: relative; display: flex; flex-direction: column; padding: 1.2rem 3rem 1.2rem 0; border-block: 1px solid var(--line); transition: border-color .2s; }
.email-link:hover { border-color: var(--cyan); }
.email-link span { color: var(--muted); font: .64rem "DM Mono", monospace; text-transform: uppercase; letter-spacing: .1em; }
.email-link strong { margin-top: .5rem; overflow-wrap: anywhere; font-size: .92rem; }
.email-link i { position: absolute; right: 0; top: 50%; translate: 0 -50%; color: var(--cyan); font-style: normal; font-size: 1.4rem; }
.contact-meta { display: flex; flex-wrap: wrap; gap: .6rem 1rem; margin-top: 1.5rem; color: var(--muted); font: .62rem "DM Mono", monospace; text-transform: uppercase; }
footer { display: flex; align-items: center; justify-content: space-between; padding-block: 2rem; border-top: 1px solid var(--line); color: var(--muted); font: .65rem "DM Mono", monospace; }
footer p { margin: 0; }
footer .brand-mark { width: 34px; height: 34px; }

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

@media (max-width: 900px) {
  .site-header, .hero, .section-shell, footer { width: min(calc(100% - 2rem), var(--max)); }
  .site-header { height: 78px; }
  .menu-toggle { display: block; z-index: 2; cursor: pointer; }
  .menu-open .menu-toggle > span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .menu-open .menu-toggle > span:nth-child(2) { opacity: 0; }
  .menu-open .menu-toggle > span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .site-nav { position: fixed; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 2rem; background: rgba(7,17,31,.98); opacity: 0; visibility: hidden; transform: translateY(-12px); transition: .25s; }
  .site-nav a { width: 100%; padding: .7rem 0; font-size: 1.5rem; }
  .site-nav .nav-cta { margin-top: 1rem; padding: .8rem 1rem; width: auto; }
  .menu-open .site-nav { opacity: 1; visibility: visible; transform: none; }
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 3rem; padding-block: 4rem 5rem; }
  .hero h1 { font-size: clamp(3.6rem, 15vw, 6.2rem); }
  .hero-visual { min-height: 650px; }
  .portrait-frame { width: 82%; margin-inline: auto; }
  .signal-card-a { left: 1%; }
  .signal-card-b { right: 1%; }
  .statement, .experience, .expertise { grid-template-columns: 1fr; gap: 3rem; }
  .statement { grid-template-columns: 1fr; }
  .traits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; border: 0; }
  .section-heading { position: static; }
  .credential-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .brand-copy { display: none; }
  .hero { padding-top: 3rem; }
  .hero h1 { font-size: clamp(3.15rem, 16vw, 4.8rem); }
  .hero-actions { flex-direction: column; }
  .button { width: 100%; }
  .quick-facts { grid-template-columns: 1fr; gap: 1rem; }
  .quick-facts div { display: grid; grid-template-columns: 120px 1fr; align-items: center; }
  .quick-facts strong { margin-top: 0; }
  .hero-visual { min-height: 490px; }
  .portrait-frame { width: 88%; }
  .signal-card { min-width: 108px; padding: .65rem .75rem; }
  .section-shell { padding-block: 5.5rem; }
  .statement h2, .section-heading h2, .contact h2 { font-size: clamp(2.45rem, 12vw, 3.8rem); }
  .traits { grid-template-columns: 1fr; gap: 0; }
  .timeline-item { grid-template-columns: 1fr; gap: .8rem; }
  .timeline-marker { display: none; }
  .projects-section .section-heading { display: block; }
  .projects-section .section-heading h2 { margin-top: 1rem; }
  .projects-grid { grid-template-columns: 1fr; }
  .project-featured { grid-row: auto; min-height: 540px; }
  .project-card { min-height: 330px; }
  .project-icon { font-size: 5rem; }
  .contact { padding-block: 6rem; }
  footer { flex-wrap: wrap; gap: 1rem; }
}


/* Brand assets */
.org-lockup { display: flex; align-items: center; gap: .75rem; margin-bottom: .55rem; }
.org-lockup .company { margin: 0; }
.experience-logo { width: 42px; height: 42px; padding: 6px; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.vegedis-logo { background: #132a21; }
.ceresia-logo { width: 76px; padding: 4px 8px; }
.cert-logo { width: 54px; height: 42px; padding: 5px; object-fit: contain; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.cert-logo-secops { width: 68px; background: #07121c; }
.cert-logo-cisco { width: 58px; }
@media (max-width: 600px) { .experience-logo { width: 38px; height: 38px; } .cert-logo { width: 48px; } .cert-logo-secops { width: 60px; } }


/* Institutional identity */
.vegedis-logo { width: 92px; height: 62px; padding: 0; border-color: #2d2d2d; background: #000; }
.issuer { display: flex; align-items: center; gap: .45rem; }
.issuer-logo { width: 18px; height: 18px; object-fit: contain; border-radius: 3px; }
@media (max-width: 600px) { .vegedis-logo { width: 76px; height: 54px; } }


/* Enigma project identity */
.project-logo-wrap { display: flex; justify-content: center; align-items: center; min-height: 116px; margin: .75rem 0; }
.project-logo { width: 108px; height: 116px; object-fit: contain; border-radius: 10px; box-shadow: 0 12px 24px rgba(7, 17, 31, .10); }
@media (max-width: 600px) { .project-logo-wrap { min-height: 96px; } .project-logo { width: 88px; height: 96px; } }


/* Certification issuers */
.issuer-logo-large { width: 25px; height: 25px; }
