:root {
  --ink: #10110f;
  --paper: #f7f7f2;
  --white: #fff;
  --line: #deded6;
  --muted: #666a61;
  --lime: #b8ff3d;
  --coral: #ff6b50;
  --blue: #245bff;
  --mint: #32d9a0;
  --violet: #7657ff;
  --mono: "DM Mono", monospace;
  --sans: "Manrope", sans-serif;
}

html { color-scheme: light; }
html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f4f3ed;
  --paper: #10110f;
  --white: #191a17;
  --line: #3c3d37;
  --muted: #a8aaa2;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.55;
  letter-spacing: 0;
}
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
img { display: block; max-width: 100%; }
main, section, article, div { min-width: 0; }
.skip-link {
  position: fixed;
  z-index: 100;
  top: -60px;
  left: 20px;
  padding: 12px 18px;
  background: var(--lime);
}
.skip-link:focus { top: 12px; }
.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  height: 76px;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 64px);
  border-bottom: 1px solid rgba(203, 201, 192, .7);
  background: rgba(244, 243, 237, .9);
  backdrop-filter: blur(16px);
}
.brand { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 700; }
.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 12px;
}
.nav { display: flex; align-items: center; gap: clamp(22px, 3vw, 48px); font-size: 13px; font-weight: 600; }
.nav a:not(.nav-contact):hover { text-decoration: underline; text-underline-offset: 5px; }
.nav-contact { padding: 10px 16px; border: 1px solid var(--ink); }
.nav-contact:hover { background: var(--ink); color: var(--paper); }
.utility-controls { display: flex; align-items: center; gap: 10px; }
.language-switch { display: flex; height: 34px; border: 1px solid var(--line); }
.language-switch a { display: grid; min-width: 34px; place-items: center; font-family: var(--mono); font-size: 9px; }
.language-switch a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.theme-toggle { position: relative; display: grid; width: 36px; height: 36px; padding: 0; place-items: center; border: 1px solid var(--line); background: transparent; cursor: pointer; }
.theme-toggle span { position: absolute; font-size: 17px; line-height: 1; }
.theme-dark, html[data-theme="dark"] .theme-light { opacity: 0; transform: scale(.7); }
html[data-theme="dark"] .theme-dark { opacity: 1; transform: scale(1); }
.theme-toggle span { transition: opacity .2s, transform .2s; }
.menu-button { display: none; border: 0; background: none; }

.hero {
  display: grid;
  min-height: 740px;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(40px, 7vw, 110px);
  align-items: center;
  padding: 130px clamp(20px, 7vw, 112px) 64px;
  border-bottom: 1px solid var(--line);
}
.eyebrow {
  margin: 0 0 24px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hero .eyebrow { display: flex; align-items: center; gap: 10px; }
.hero .eyebrow span { width: 7px; height: 7px; border-radius: 50%; background: #43a047; }
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 780px;
  margin-bottom: 28px;
  font-size: clamp(46px, 5.8vw, 88px);
  font-weight: 500;
  line-height: 1.01;
}
h1 em { font-family: Georgia, serif; font-weight: 400; }
.hero-text { max-width: 620px; color: #484944; font-size: clamp(16px, 1.4vw, 20px); }
.hero-actions { display: flex; gap: 30px; align-items: center; margin-top: 38px; }
.button { display: inline-flex; gap: 24px; align-items: center; padding: 15px 20px; font-size: 13px; font-weight: 700; }
.button-primary { background: var(--ink); color: var(--white); }
.button-primary:hover { background: var(--blue); }
.text-link { font-size: 13px; font-weight: 700; border-bottom: 1px solid var(--ink); }
.hero-visual { position: relative; justify-self: end; width: min(100%, 530px); }
.portrait-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #d7d6cf;
}
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); }
.portrait-label {
  position: absolute;
  right: 0;
  bottom: 0;
  padding: 15px 18px;
  background: var(--lime);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.4;
  text-transform: uppercase;
}
.code-note {
  position: absolute;
  bottom: 36px;
  left: -44px;
  display: flex;
  gap: 25px;
  padding: 14px 18px;
  background: var(--white);
  box-shadow: 0 12px 35px rgba(16, 17, 15, .12);
  font-family: var(--mono);
  font-size: 10px;
}
.code-note span { color: var(--muted); }
.section { padding: clamp(80px, 10vw, 150px) clamp(20px, 7vw, 112px); }
.section-heading { display: grid; grid-template-columns: 1.5fr 1fr; gap: 10vw; margin-bottom: 80px; }
.section-heading h2, .about h2 {
  margin: 0;
  font-size: clamp(38px, 4.5vw, 66px);
  font-weight: 500;
  line-height: 1.08;
}
.section-heading > p { max-width: 460px; align-self: end; color: var(--muted); font-size: 15px; }
.projects { background: var(--white); }
.project {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(290px, .75fr);
  gap: clamp(40px, 6vw, 90px);
  padding: 64px 0;
  border-top: 1px solid var(--line);
}
.project-preview { display: grid; overflow: hidden; min-height: 480px; place-items: center; }
.preview-access { padding: 7%; background: #dff0ee; }
.browser-bar { display: flex; width: 100%; height: 38px; align-items: center; gap: 6px; padding: 0 12px; background: #fff; }
.browser-bar i { width: 7px; height: 7px; border-radius: 50%; background: #b8bbb8; }
.browser-bar span { margin-left: 10px; color: #92958f; font-family: var(--mono); font-size: 8px; }
.access-ui { display: grid; width: 100%; min-height: 330px; grid-template-columns: 1.2fr .8fr; background: #f9faf7; }
.access-map { position: relative; overflow: hidden; background: #d4ded4; }
.map-road { position: absolute; width: 140%; height: 25px; background: #f5f3e9; transform: rotate(-24deg); }
.road-one { top: 30%; left: -20%; }
.road-two { top: 65%; left: -10%; transform: rotate(18deg); }
.map-pin { position: absolute; display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50% 50% 50% 0; background: #197c6a; color: white; font-size: 10px; transform: rotate(-45deg); }
.map-pin::first-letter { transform: rotate(45deg); }
.pin-one { top: 24%; left: 45%; }
.pin-two { right: 18%; bottom: 20%; }
.access-panel { display: flex; flex-direction: column; justify-content: center; padding: 28px; }
.access-panel small { color: #197c6a; font-family: var(--mono); font-size: 8px; }
.access-panel strong { margin: 10px 0; font-size: clamp(18px, 2vw, 30px); line-height: 1.1; }
.access-panel p { color: var(--muted); font-size: 10px; }
.fake-button { align-self: flex-start; margin-top: 10px; padding: 9px 12px; background: #197c6a; color: white; font-size: 8px; }
.project-info { align-self: center; }
.project-number { margin-bottom: 50px; color: var(--muted); font-family: var(--mono); font-size: 10px; }
.project-kind { color: var(--muted); font-family: var(--mono); font-size: 10px; text-transform: uppercase; }
.project-info h3 { margin-bottom: 18px; font-size: clamp(30px, 3vw, 44px); font-weight: 500; line-height: 1.1; }
.project-info > p:not(.project-kind) { color: var(--muted); font-size: 14px; }
.project-points { display: grid; gap: 10px; padding: 0; margin: 22px 0 0; list-style: none; }
.project-points li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
}
.project-points li::before {
  position: absolute;
  top: .72em;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--blue);
  content: "";
}
.tags { display: flex; flex-wrap: wrap; gap: 7px; padding: 0; margin: 25px 0 32px; list-style: none; }
.tags li { padding: 6px 9px; border: 1px solid var(--line); font-family: var(--mono); font-size: 9px; text-transform: uppercase; }
.project-link { padding-bottom: 4px; border-bottom: 1px solid var(--ink); font-size: 12px; font-weight: 700; }
.preview-portfolio { padding: 7%; background: #d9e8ff; }
.deploy-window { width: 100%; background: #f9faf7; box-shadow: 18px 18px 0 rgba(16, 17, 15, .12); }
.deploy-grid { display: grid; min-height: 360px; grid-template-columns: 1.1fr .9fr; }
.deploy-page { display: flex; flex-direction: column; justify-content: center; padding: clamp(24px, 4vw, 48px); border-right: 1px solid #d8d8ce; }
.deploy-page span { width: 52px; height: 8px; margin-bottom: 30px; background: var(--lime); }
.deploy-page strong { font-size: clamp(28px, 3.5vw, 52px); font-weight: 600; line-height: .95; }
.deploy-page p { max-width: 260px; margin: 22px 0 0; color: #666961; font-size: 12px; }
.deploy-pipeline { display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: clamp(22px, 3vw, 36px); background: #10110f; color: #f4f3ed; }
.deploy-pipeline small { color: #aeb3a8; font-family: var(--mono); font-size: 8px; text-transform: uppercase; }
.deploy-pipeline b { padding: 12px 14px; border: 1px solid #42443d; font-family: var(--mono); font-size: 10px; font-weight: 500; }
.preview-taocupado { padding: 7%; background: #dfe8d5; }
.ops-board {
  width: min(100%, 560px);
  padding: clamp(26px, 5vw, 56px);
  background: #10110f;
  box-shadow: 18px 18px 0 rgba(25, 124, 106, .22);
  color: #f4f3ed;
}
.ops-board small { color: var(--lime); font-family: var(--mono); font-size: 9px; text-transform: uppercase; }
.ops-board strong { display: block; margin: 18px 0 32px; font-size: clamp(34px, 4vw, 64px); font-weight: 500; line-height: .95; }
.ops-row { display: grid; grid-template-columns: 10px .7fr 1fr; gap: 14px; align-items: center; padding: 16px 0; border-top: 1px solid #383a34; }
.ops-row:last-child { border-bottom: 1px solid #383a34; }
.ops-row span { width: 9px; height: 9px; background: #43a047; }
.ops-row b { font-family: var(--mono); font-size: 10px; font-weight: 500; text-transform: uppercase; }
.ops-row em { color: #b7bab0; font-size: 12px; font-style: normal; text-align: right; }
.preview-store { position: relative; grid-template-columns: .8fr 1.2fr; padding: 7%; background: #f2b9a6; }
.store-copy { z-index: 1; }
.store-copy small { font-family: var(--mono); font-size: 8px; }
.store-copy strong { display: block; margin: 25px 0; font-family: Georgia, serif; font-size: clamp(30px, 4vw, 56px); font-weight: 400; line-height: 1; }
.store-copy span { font-size: 10px; font-weight: 700; }
.store-shape { position: relative; width: 85%; aspect-ratio: 3 / 4; background: #24211e; transform: rotate(3deg); }
.store-shape::after { position: absolute; inset: 9%; border: 1px solid #f2b9a6; content: ""; }
.store-shape span { position: absolute; z-index: 2; right: -20px; bottom: 18%; width: 80px; height: 80px; border-radius: 50%; background: var(--lime); }
.preview-code { padding: 8%; background: #bed2ff; }
.editor { width: 90%; min-height: 340px; background: #171917; box-shadow: 20px 20px 0 rgba(40, 120, 255, .25); color: #d9ddd6; }
.editor-top { display: flex; height: 40px; align-items: center; justify-content: space-between; padding: 0 18px; border-bottom: 1px solid #333630; font-family: var(--mono); font-size: 9px; }
.editor-top i { width: 7px; height: 7px; border-radius: 50%; background: var(--coral); }
.editor pre { margin: 0; padding: 30px; font-family: var(--mono); font-size: clamp(10px, 1.1vw, 14px); line-height: 1.7; white-space: pre-wrap; }
.editor b { color: #8ab4ff; font-weight: 400; }
.editor mark { background: none; color: var(--lime); }
.editor em { color: #ff9c89; font-style: normal; }
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px 10vw;
  background: var(--ink);
  color: var(--paper);
}
.about-body { max-width: 580px; }
.about-body p { color: #a9aaa4; }
.about-body .about-lead { color: var(--paper); font-size: clamp(22px, 2vw, 30px); line-height: 1.35; }
.skills { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 10vw; padding-top: 60px; border-top: 1px solid #373833; }
.skills-title { color: #8e9089; font-family: var(--mono); font-size: 10px; text-transform: uppercase; }
.skills ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0 45px; margin: 0; padding: 0; list-style: none; }
.skills li { padding: 16px 0; border-bottom: 1px solid #373833; font-size: 15px; }
.skills li span { margin-right: 20px; color: #686a64; font-family: var(--mono); font-size: 9px; }
.timeline { background: var(--paper); }
.timeline-item { display: grid; grid-template-columns: .4fr 1fr .65fr; gap: 30px; align-items: center; padding: 34px 0; border-top: 1px solid var(--line); }
.timeline-item:last-child { border-bottom: 1px solid var(--line); }
.timeline-item time { font-family: var(--mono); font-size: 10px; text-transform: uppercase; }
.timeline-item h3 { margin-bottom: 6px; font-size: 20px; font-weight: 600; }
.timeline-item p, .timeline-item > span { margin: 0; color: var(--muted); font-size: 12px; }
.resume { display: grid; grid-template-columns: .85fr 1.15fr; gap: 10vw; align-items: center; background: var(--blue); color: var(--white); }
.resume-copy h2 { max-width: 650px; margin-bottom: 24px; font-size: clamp(38px, 4.5vw, 66px); font-weight: 500; line-height: 1.08; }
.resume-copy > p:not(.eyebrow) { max-width: 540px; color: #d8e4ff; }
.resume-actions { display: flex; flex-wrap: wrap; gap: 25px; align-items: center; margin-top: 38px; }
.resume .button-primary { background: var(--white); color: var(--ink); }
.resume .button-primary:hover { background: var(--lime); }
.resume-download { padding-bottom: 4px; border-bottom: 1px solid var(--white); font-size: 13px; font-weight: 700; }
.resume-sheet { display: block; min-height: 540px; padding: clamp(28px, 4vw, 58px); background: var(--paper); box-shadow: 22px 22px 0 rgba(16, 17, 15, .2); color: var(--ink); transition: transform .25s ease; }
.resume-sheet:hover { transform: translateY(-6px); }
.resume-sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.resume-sheet-head > span { font-size: clamp(34px, 4vw, 58px); font-weight: 600; line-height: .95; }
.resume-sheet-head small { font-family: var(--mono); font-size: 9px; text-align: right; text-transform: uppercase; }
.resume-sheet-line { height: 8px; margin: 38px 0; background: var(--lime); }
.resume-sheet-grid { display: grid; gap: 24px; }
.resume-sheet-grid > div { display: grid; grid-template-columns: .45fr 1fr; gap: 6px 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.resume-sheet-grid small { grid-row: 1 / 3; font-family: var(--mono); font-size: 8px; }
.resume-sheet-grid b { font-size: 13px; }
.resume-sheet-grid span { color: var(--muted); font-size: 11px; }
.resume-sheet-open { display: block; margin-top: 38px; font-size: 11px; text-align: right; }
.contact { padding-bottom: 40px; background: var(--lime); }
.contact-main { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; padding-bottom: 90px; }
.contact-main h2 { max-width: 820px; margin: 0; font-size: clamp(50px, 7vw, 108px); font-weight: 500; line-height: .95; }
.contact-main > a { flex: 0 0 auto; padding-bottom: 7px; border-bottom: 2px solid var(--ink); font-size: 14px; font-weight: 700; }
.contact-footer { display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; padding-top: 30px; border-top: 1px solid rgba(16,17,15,.35); font-size: 12px; }
.contact-footer p { margin: 0; font-weight: 700; }
.contact-footer p span { color: #4d5d24; font-weight: 400; }
.contact-footer > div { display: flex; gap: 25px; }
.back-to-top { width: 40px; height: 40px; border: 1px solid var(--ink); background: none; cursor: pointer; }
.back-to-top:hover { background: var(--ink); color: var(--lime); }
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
html[data-theme="dark"] .about { background: #080906; color: #f4f3ed; }
html[data-theme="dark"] .site-header { background: rgba(16, 17, 15, .92); }
html[data-theme="dark"] .hero-text { color: #b7b9b1; }
html[data-theme="dark"] .about-body .about-lead { color: #f4f3ed; }
html[data-theme="dark"] .about-body p { color: #adafa8; }
html[data-theme="dark"] .contact { color: #10110f; }
html[data-theme="dark"] .contact .back-to-top { border-color: #10110f; color: #10110f; }
html[data-theme="dark"] .contact .back-to-top:hover { background: #10110f; color: var(--lime); }
html[data-theme="dark"] .contact-footer { border-color: rgba(16,17,15,.35); }

@media (max-width: 900px) {
  .site-header { height: 68px; }
  .menu-button { display: flex; width: 42px; height: 42px; flex-direction: column; gap: 7px; align-items: center; justify-content: center; cursor: pointer; }
  .menu-button span { width: 20px; height: 1px; background: var(--ink); transition: transform .2s; }
  .menu-button.open span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-button.open span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav { position: fixed; top: 68px; right: 0; left: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 15px 20px 25px; border-bottom: 1px solid var(--line); background: var(--paper); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; }
  .nav-contact { margin-top: 10px; padding: 12px 14px !important; }
  .utility-controls { margin-left: auto; margin-right: 8px; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding-top: 115px; }
  .hero-visual { justify-self: stretch; width: 80%; margin-left: auto; }
  .project { grid-template-columns: 1fr; }
  .project-preview { min-height: 390px; }
  .project-info { max-width: 650px; }
  .project-number { margin-bottom: 24px; }
  .deploy-grid { grid-template-columns: 1fr; }
  .deploy-page { border-right: 0; border-bottom: 1px solid #d8d8ce; }
  .resume { grid-template-columns: 1fr; }
  .resume-sheet { width: min(100%, 620px); }
}

@media (max-width: 620px) {
  .brand span:last-child { display: none; }
  .hero { padding-bottom: 40px; }
  .hero-actions { flex-wrap: wrap; gap: 20px 26px; }
  h1 {
    max-width: 100%;
    font-size: 44px;
    overflow-wrap: anywhere;
  }
  .hero-copy, .hero-text { max-width: 100%; }
  .hero-visual { width: 92%; }
  .code-note { bottom: 25px; left: -20px; }
  .section-heading, .about, .skills { grid-template-columns: 1fr; }
  .section-heading { gap: 30px; margin-bottom: 48px; }
  .project { padding: 42px 0; }
  .project-preview { min-height: 320px; }
  .deploy-grid { min-height: auto; }
  .deploy-pipeline { gap: 10px; }
  .ops-board { padding: 24px; }
  .ops-row { grid-template-columns: 10px 1fr; gap: 8px 12px; }
  .ops-row em { grid-column: 2; text-align: left; }
  .access-ui { min-height: 240px; }
  .access-panel { padding: 15px; }
  .access-panel p { display: none; }
  .preview-store { grid-template-columns: 1fr 1fr; }
  .editor { width: 100%; min-height: 260px; }
  .editor pre { padding: 20px; }
  .about { gap: 40px; }
  .skills { grid-column: auto; gap: 20px; }
  .skills ul { grid-template-columns: 1fr; }
  .timeline-item { grid-template-columns: 1fr; gap: 8px; padding: 28px 0; }
  .resume-sheet { min-height: 440px; padding: 26px; }
  .resume-sheet-grid > div { grid-template-columns: 1fr; }
  .resume-sheet-grid small { grid-row: auto; }
  .contact-main { align-items: flex-start; flex-direction: column; padding-bottom: 70px; }
  .contact-footer { grid-template-columns: 1fr auto; gap: 25px; }
  .contact-footer > div { grid-column: 1 / -1; grid-row: 2; }
  .back-to-top { grid-column: 2; grid-row: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Cleaner portfolio pass */
body {
  background:
    linear-gradient(90deg, rgba(16, 17, 15, .045) 1px, transparent 1px),
    linear-gradient(rgba(16, 17, 15, .045) 1px, transparent 1px),
    var(--paper);
  background-size: 72px 72px;
}
.site-header {
  height: 68px;
  border-bottom-color: rgba(16, 17, 15, .08);
  background: rgba(247, 247, 242, .82);
}
.brand-mark, .nav-contact, .button, .language-switch, .theme-toggle, .back-to-top {
  border-radius: 999px;
}
.nav-contact {
  background: var(--ink);
  color: var(--paper);
}
.hero {
  min-height: 700px;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .72fr);
  padding-top: 116px;
  border-bottom: 0;
}
h1 {
  max-width: 720px;
  margin-bottom: 22px;
  font-size: clamp(52px, 7vw, 104px);
  letter-spacing: 0;
}
.hero-text {
  max-width: 650px;
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 21px);
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
}
.hero-meta span {
  padding: 8px 11px;
  border: 1px solid rgba(16, 17, 15, .14);
  border-radius: 999px;
  background: rgba(255, 255, 255, .52);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
}
.button {
  transition: transform .22s ease, background .22s ease, color .22s ease;
}
.button:hover {
  transform: translateY(-2px);
}
.text-link {
  transition: color .2s ease;
}
.text-link:hover {
  color: var(--blue);
}
.hero-visual {
  width: min(100%, 470px);
}
.portrait-frame {
  border-radius: 24px;
  background: #d8ddd4;
  box-shadow: 0 28px 70px rgba(16, 17, 15, .16);
  transform: perspective(900px) rotate(1deg) rotateX(var(--tilt-x, 0)) rotateY(var(--tilt-y, 0));
  transition: transform .22s ease;
}
.portrait-frame img {
  filter: grayscale(100%) contrast(1.05);
  transform: scale(1.02);
}
.portrait-label {
  right: 18px;
  bottom: 18px;
  border-radius: 999px;
  background: var(--lime);
}
.code-note {
  bottom: 42px;
  left: -60px;
  border: 1px solid rgba(16, 17, 15, .08);
  border-radius: 999px;
  box-shadow: 0 18px 50px rgba(16, 17, 15, .16);
  animation: float-note 5s ease-in-out infinite;
}
.signal-panel {
  position: absolute;
  top: 28px;
  right: -18px;
  display: grid;
  width: 96px;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(16, 17, 15, .08);
  border-radius: 18px;
  background: rgba(255, 255, 255, .76);
  box-shadow: 0 18px 60px rgba(16, 17, 15, .12);
}
.signal-panel span {
  height: 8px;
  border-radius: 999px;
  background: var(--ink);
  transform-origin: left;
  animation: signal 2.4s ease-in-out infinite;
}
.signal-panel span:nth-child(2) { width: 78%; animation-delay: .16s; background: var(--blue); }
.signal-panel span:nth-child(3) { width: 54%; animation-delay: .32s; background: var(--mint); }
.signal-panel span:nth-child(4) { width: 86%; animation-delay: .48s; background: var(--coral); }
.section {
  padding-top: clamp(72px, 8vw, 120px);
  padding-bottom: clamp(72px, 8vw, 120px);
}
.section-heading {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  margin-bottom: 48px;
}
.section-heading h2, .about h2, .resume-copy h2 {
  font-size: clamp(36px, 5vw, 72px);
}
.projects {
  background: transparent;
}
.project-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.project {
  position: relative;
  display: flex;
  min-height: 0;
  flex-direction: column;
  gap: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(16, 17, 15, .1);
  border-radius: 28px;
  background: rgba(255, 255, 255, .68);
  box-shadow: 0 16px 42px rgba(16, 17, 15, .06);
  transform: perspective(900px) rotateX(var(--tilt-x, 0)) rotateY(var(--tilt-y, 0));
  transform-style: preserve-3d;
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}
.project:hover {
  border-color: rgba(36, 91, 255, .38);
  box-shadow: 0 24px 70px rgba(16, 17, 15, .12);
  transform: perspective(900px) translateY(-6px) rotateX(var(--tilt-x, 0)) rotateY(var(--tilt-y, 0));
}
.project-preview {
  min-height: 250px;
  padding: 24px;
  border-bottom: 1px solid rgba(16, 17, 15, .08);
}
.project-info {
  display: grid;
  gap: 12px;
  padding: 28px;
}
.project-number {
  margin: 0;
  color: var(--blue);
}
.project-kind {
  margin: 0;
  color: var(--muted);
}
.project-info h3 {
  margin: 0;
  font-size: clamp(26px, 3vw, 42px);
}
.project-info > p:not(.project-kind) {
  max-width: 620px;
  color: var(--muted);
  font-size: 15px;
}
.project-points {
  display: none;
}
.tags {
  margin: 4px 0 8px;
}
.tags li {
  border-radius: 999px;
  background: rgba(255, 255, 255, .74);
}
.project-link {
  justify-self: start;
  border-bottom: 0;
  color: var(--ink);
}
.project-link:hover {
  color: var(--blue);
}
.preview-portfolio {
  background:
    linear-gradient(135deg, rgba(36, 91, 255, .16), rgba(50, 217, 160, .18)),
    #f7f7f2;
}
.deploy-window, .ops-board, .editor {
  border-radius: 18px;
  box-shadow: none;
}
.deploy-grid {
  min-height: 210px;
}
.deploy-page span {
  animation: scan-line 2.8s ease-in-out infinite;
}
.deploy-pipeline b {
  border-radius: 999px;
  transform: translateX(0);
  animation: pipeline 3.2s ease-in-out infinite;
}
.deploy-pipeline b:nth-child(3) { animation-delay: .2s; }
.deploy-pipeline b:nth-child(4) { animation-delay: .4s; }
.preview-taocupado {
  background:
    linear-gradient(135deg, rgba(184, 255, 61, .2), rgba(255, 107, 80, .14)),
    #f7f7f2;
}
.ops-board {
  width: 100%;
  padding: 28px;
}
.ops-row span {
  border-radius: 50%;
  animation: pulse-dot 1.8s ease-in-out infinite;
}
.access-ui, .editor {
  min-height: 210px;
}
.editor {
  width: 100%;
  min-height: 230px;
}
.about {
  border-radius: 34px 34px 0 0;
}
.resume {
  background:
    linear-gradient(135deg, var(--blue), #11120f 72%);
}
html[data-theme="dark"] body {
  background:
    linear-gradient(90deg, rgba(244, 243, 237, .055) 1px, transparent 1px),
    linear-gradient(rgba(244, 243, 237, .055) 1px, transparent 1px),
    var(--paper);
}
html[data-theme="dark"] .site-header {
  background: rgba(16, 17, 15, .82);
}
html[data-theme="dark"] .hero-meta span,
html[data-theme="dark"] .project,
html[data-theme="dark"] .signal-panel {
  border-color: rgba(244, 243, 237, .1);
  background: rgba(25, 26, 23, .72);
}
html[data-theme="dark"] .tags li {
  background: rgba(244, 243, 237, .05);
}
.reveal {
  transform: translateY(28px) scale(.98);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.visible {
  transform: none;
}
@keyframes float-note {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes signal {
  0%, 100% { transform: scaleX(.45); opacity: .48; }
  50% { transform: scaleX(1); opacity: 1; }
}
@keyframes scan-line {
  0%, 100% { width: 32px; }
  50% { width: 92px; }
}
@keyframes pipeline {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(8px); }
}
@keyframes pulse-dot {
  0%, 100% { transform: scale(.78); opacity: .55; }
  50% { transform: scale(1.25); opacity: 1; }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .project-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .hero {
    padding-top: 100px;
  }
  h1 {
    font-size: 46px;
  }
  .hero-meta span {
    font-size: 9px;
  }
  .hero-visual {
    width: 100%;
  }
  .code-note {
    left: 12px;
  }
  .signal-panel {
    right: 10px;
  }
  .project {
    border-radius: 22px;
  }
  .project-preview {
    min-height: 210px;
    padding: 18px;
  }
  .project-info {
    padding: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .code-note, .signal-panel span, .deploy-page span, .deploy-pipeline b, .ops-row span {
    animation: none;
  }
  .project, .button {
    transition: none;
  }
}
