/* ==========================================================
   Adriano Yasuda — estilos principais
   ========================================================== */

:root {
  --bg: #070b16;
  --bg-alt: #0b1122;
  --surface: #101a30;
  --surface-2: #17233f;
  --border: rgba(148, 180, 255, .1);
  --text: #e8eefc;
  --muted: #92a0bf;
  --accent: #3d68c9;
  --accent-2: #2c4f9e;
  --accent-soft: rgba(61, 104, 201, .14);
  --wa: #25d366;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, .6);
  --header-bg: rgba(7, 11, 22, .72);
  --logo-filter: none;
  --radius: 18px;
  --max: 1160px;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #ffffff;
  --bg-alt: #f4f7fc;
  --surface: #ffffff;
  --surface-2: #eef3fb;
  --border: rgba(15, 30, 70, .1);
  --text: #0d1730;
  --muted: #55617a;
  --accent: #2a4f9c;
  --accent-2: #1f3d7a;
  --accent-soft: rgba(42, 79, 156, .08);
  --shadow: 0 20px 45px -25px rgba(15, 30, 70, .3);
  --header-bg: rgba(255, 255, 255, .82);
  --logo-filter: brightness(.45);
  color-scheme: light;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #ffffff;
    --bg-alt: #f4f7fc;
    --surface: #ffffff;
    --surface-2: #eef3fb;
    --border: rgba(15, 30, 70, .1);
    --text: #0d1730;
    --muted: #55617a;
    --accent: #2a4f9c;
    --accent-2: #1f3d7a;
    --accent-soft: rgba(42, 79, 156, .08);
    --shadow: 0 20px 45px -25px rgba(15, 30, 70, .3);
    --header-bg: rgba(255, 255, 255, .82);
    --logo-filter: brightness(.45);
    color-scheme: light;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .3s, color .3s;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: -999px; top: 10px; z-index: 100;
  background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 8px;
}
.skip-link:focus { left: 10px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.accent { color: var(--accent); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .85em 1.5em; border-radius: 999px; font-weight: 600; font-size: .95rem;
  border: 1px solid transparent; cursor: pointer; font-family: inherit;
  transition: transform .2s, box-shadow .2s, background-color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; box-shadow: 0 10px 30px -10px var(--accent);
}
.btn-primary:hover { box-shadow: 0 14px 34px -10px var(--accent); }
.btn-ghost { border-color: var(--border); background: var(--surface); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-block { width: 100%; }

.icon-btn {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  cursor: pointer; font-size: 1rem; transition: border-color .2s;
}
.icon-btn:hover { border-color: var(--accent); }

/* ícone do tema */
.icon-light { display: none; }
:root[data-theme="light"] .icon-dark { display: none; }
:root[data-theme="light"] .icon-light { display: inline; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .icon-dark { display: none; }
  :root:not([data-theme="dark"]) .icon-light { display: inline; }
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background-color .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: var(--header-bg);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1.05rem; }
.brand img { width: 34px; height: 34px; filter: var(--logo-filter); }
.brand strong { color: var(--accent); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 14px; border-radius: 999px; font-size: .92rem; color: var(--muted);
  transition: color .2s, background-color .2s;
}
.nav a:hover, .nav a.active { color: var(--text); background: var(--surface); }
.nav a.nav-cta { color: #fff; background: var(--accent); margin-left: 6px; }
.nav a.nav-cta:hover { background: var(--accent-2); }

.nav-actions { display: flex; gap: 8px; }
.menu-btn { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  padding: 120px 0 80px; overflow: hidden; color: #e8eefc;
  background:
    linear-gradient(90deg, rgba(7, 11, 22, .94) 0%, rgba(7, 11, 22, .78) 50%, rgba(7, 11, 22, .55) 100%),
    linear-gradient(180deg, transparent 70%, #070b16 100%),
    url("../imgs/hero-tokyo.jpg") center / cover no-repeat #070b16;
}
/* o hero é sempre escuro (foto noturna), independente do tema */
.hero { --text: #e8eefc; --muted: #a3b0cc; --surface: rgba(16, 26, 48, .6); --border: rgba(148, 180, 255, .14);
  --header-bg: rgba(7, 11, 22, .7); --accent: #5a82d8; --accent-2: #2c4f9e; --accent-soft: rgba(61, 104, 201, .2); }
.site-header:not(.scrolled) .brand, .site-header:not(.scrolled) .nav a:not(.nav-cta) { color: #dbe4f7; }
.site-header:not(.scrolled) .brand img { filter: none; }
.site-header:not(.scrolled) .nav a:not(.nav-cta):hover,
.site-header:not(.scrolled) .nav a.active:not(.nav-cta) { background: rgba(255, 255, 255, .1); }
.site-header:not(.scrolled) .icon-btn { background: rgba(16, 26, 48, .6); color: #e8eefc; border-color: rgba(148, 180, 255, .2); }
.hero-kanji {
  position: absolute; right: -2vw; bottom: -6vw; z-index: 0;
  font-family: "Noto Serif JP", serif; font-size: clamp(10rem, 28vw, 26rem); font-weight: 700;
  line-height: 1; color: #fff; opacity: .04; pointer-events: none; user-select: none;
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: center;
}

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px; font-size: .82rem; color: var(--muted);
  background: var(--surface); border: 1px solid var(--border); margin-bottom: 22px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--wa); position: relative; }
.dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--wa);
  animation: ping 1.8s ease-out infinite;
}
@keyframes ping { to { transform: scale(2.6); opacity: 0; } }

.hero h1 { font-size: clamp(2.2rem, 5.2vw, 4rem); font-weight: 800; margin-bottom: .25em; }
.hero-role {
  font-size: clamp(1.2rem, 2.4vw, 1.6rem); font-weight: 600; color: var(--muted);
  min-height: 1.6em; margin-bottom: 1.1em;
}
.typed { color: var(--text); }
.caret {
  display: inline-block; width: 3px; height: 1.05em; margin-left: 4px; vertical-align: -.15em;
  background: var(--accent); animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-lead { color: var(--muted); font-size: 1.05rem; max-width: 560px; margin-bottom: 2em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 2.2em; }

.social { display: flex; gap: 10px; }
.social a {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border); color: var(--muted);
  transition: color .2s, border-color .2s, transform .2s;
}
.social a:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-3px); }
.social.small a { width: 38px; height: 38px; border-radius: 10px; }

.hero-photo { position: relative; justify-self: center; width: min(100%, 420px); }
.photo-frame {
  position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 1 / 1;
  box-shadow: var(--shadow); border: 1px solid var(--border);
}
.photo-frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 65%, rgba(5, 9, 20, .35));
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; filter: brightness(1.12) contrast(1.05); }
.hero-photo::before {
  content: ""; position: absolute; inset: -14px 14px 14px -14px; border-radius: 30px;
  border: 2px solid var(--accent-2); opacity: .55; z-index: -1;
}

.photo-badge {
  position: absolute; display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 16px; font-size: .8rem;
  background: var(--header-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border); box-shadow: var(--shadow);
  animation: float 6s ease-in-out infinite;
}
.photo-badge strong { display: block; font-size: .92rem; color: var(--text); }
.photo-badge span { color: var(--muted); }
.photo-badge > i, .photo-badge .jp {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent); font-size: 1rem;
}
.photo-badge .jp { font-family: "Noto Serif JP", serif; font-size: .7rem; font-weight: 700; color: var(--accent-2); }
.badge-top { top: 52%; left: -40px; }
.badge-bottom { bottom: 32px; right: -30px; animation-delay: -3s; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* ---------- Stats ---------- */
.stats { border-block: 1px solid var(--border); background: var(--bg-alt); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 34px 20px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--border); }
.stat strong { display: block; font-size: 2.3rem; font-weight: 800; color: var(--accent); line-height: 1.1; }
.stat > span { color: var(--muted); font-size: .9rem; }

/* ---------- Seções ---------- */
.section { padding: 110px 0; }
.section-alt { background: var(--bg-alt); }

.section-head { margin-bottom: 48px; }
.section-head.center { text-align: center; max-width: 640px; margin-inline: auto; }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; }
.section-sub { color: var(--muted); font-size: 1.02rem; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 12px;
}

/* Sobre */
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; }
.about-text p { color: var(--muted); font-size: 1.05rem; }
.about-text strong { color: var(--text); font-weight: 600; }
.highlights { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.highlights li {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--border); font-size: .92rem;
}
.highlights i { color: var(--accent); width: 20px; text-align: center; }

/* Cards */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.card {
  position: relative; display: flex; flex-direction: column;
  padding: 28px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--accent) 50%, transparent); box-shadow: var(--shadow); }
.card h3 { font-size: 1.15rem; font-weight: 700; }
.card p { color: var(--muted); font-size: .95rem; margin-bottom: 0; }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font-size: 1.3rem; margin-bottom: 20px;
}
.card-tag {
  align-self: flex-start; font-size: .74rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft); padding: 4px 10px; border-radius: 999px; margin-bottom: 16px;
}
.card-link p { flex: 1; margin-bottom: 20px; }
.card-more { font-size: .9rem; font-weight: 600; display: inline-flex; gap: 8px; align-items: center; }
.card-link:hover .card-more { color: var(--accent); }

/* Processo */
.process {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 56px;
  counter-reset: step;
}
.process li { display: flex; gap: 14px; align-items: flex-start; }
.process li > span {
  flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  border: 2px solid var(--accent); color: var(--accent); font-weight: 700;
}
.process strong { display: block; margin-bottom: 2px; }
.process p { color: var(--muted); font-size: .9rem; margin: 0; }

/* Experiência */
.two-col { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: start; }
.sticky { position: sticky; top: 110px; }

.timeline { position: relative; padding-left: 32px; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(var(--accent), var(--border));
}
.timeline li { position: relative; padding-bottom: 38px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -32px; top: 6px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--accent);
}
.timeline li:first-child::before { background: var(--accent); box-shadow: 0 0 0 6px var(--accent-soft); }
.timeline h3 { font-size: 1.2rem; margin-bottom: .2em; }
.timeline p { color: var(--muted); margin-bottom: .4em; }
.tl-date {
  display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .05em;
  color: var(--accent); margin-bottom: 6px;
}
p.tl-role { color: var(--text); font-weight: 500; font-size: .95rem; }

/* Formação */
.edu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.edu-main, .edu-side {
  padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
}
.edu-main {
  grid-column: 1 / -1; display: flex; gap: 24px; align-items: flex-start;
  background: linear-gradient(135deg, var(--accent-soft), transparent 60%), var(--surface);
}
.edu-main h3 { font-size: 1.35rem; }
.edu-main p { color: var(--muted); margin-bottom: .4em; }
.edu-badge {
  flex: none; width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center;
  background: var(--accent); color: #fff; font-size: 1.6rem;
}
.edu-side h3 { font-size: 1.05rem; display: flex; gap: 10px; align-items: center; margin-bottom: 18px; }
.edu-side h3 i { color: var(--accent); }

.mini-list li { color: var(--muted); font-size: .92rem; padding: 10px 0; border-top: 1px solid var(--border); }
.mini-list li:first-child { border-top: 0; padding-top: 0; }
.mini-list strong { color: var(--text); font-weight: 600; }

.lang-list li {
  display: grid; grid-template-columns: 80px 1fr auto; align-items: center; gap: 12px;
  font-size: .9rem; padding: 9px 0;
}
.lang-list em { font-style: normal; color: var(--muted); font-size: .8rem; }
.level { height: 6px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.level i { display: block; height: 100%; width: var(--w); background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: inherit; }

.stack {
  margin-top: 20px; padding: 32px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
}
.stack-title { font-size: 1.05rem; margin-bottom: 20px; }
.stack-group { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--border); }
.stack-label { color: var(--muted); font-size: .85rem; font-weight: 600; padding-top: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span {
  padding: 6px 14px; border-radius: 999px; font-size: .85rem;
  background: var(--surface-2); border: 1px solid var(--border);
  transition: border-color .2s, color .2s;
}
.chips span:hover { border-color: var(--accent); color: var(--accent); }

.projects-grid { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 700px) { .projects-grid { grid-template-columns: 1fr; } }

/* Hobbies */
.hobbies { margin-top: 28px; }
.hobbies h3 { font-size: 1rem; margin-bottom: 12px; }
.hobby-list { display: flex; flex-wrap: wrap; gap: 8px; }
.hobby-list li {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); font-size: .88rem;
}
.hobby-list i { color: var(--accent); }

/* Projetos extra */
.extra {
  display: flex; align-items: center; gap: 16px; margin-top: 28px; padding: 18px 22px;
  border-radius: 14px; border: 1px dashed var(--border); color: var(--muted);
}
.extra p { margin: 0; }
.extra i { color: var(--accent); }
.extra a { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.extra a:hover { color: var(--accent); }

/* Citação */
.quote {
  position: relative; padding: 110px 0; text-align: center; overflow: hidden;
  background:
    linear-gradient(rgba(5, 9, 20, .55), rgba(5, 9, 20, .65)),
    url("../imgs/parallax.jpg") center / cover fixed #070b16;
  color: #fff;
}
.quote-jp {
  display: block; font-family: "Noto Serif JP", serif; font-size: 1rem; letter-spacing: .4em;
  color: #7f9ee0; margin-bottom: 18px;
}
.quote blockquote { text-shadow: 0 2px 18px rgba(0, 0, 0, .6); margin: 0 auto 14px; max-width: 760px; font-size: clamp(1.6rem, 3.6vw, 2.6rem); font-weight: 700; line-height: 1.25; }
.quote p { color: rgba(255, 255, 255, .7); margin: 0; }

/* Contato */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact-list { display: grid; gap: 12px; }
.contact-list a {
  display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--border); transition: border-color .2s, transform .2s;
  word-break: break-word;
}
.contact-list a:hover { border-color: var(--accent); transform: translateX(4px); }
.contact-list small { display: block; color: var(--muted); font-size: .78rem; }
.c-icon {
  flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font-size: 1.15rem;
}
.c-icon.wa { background: rgba(37, 211, 102, .14); color: var(--wa); }

.contact-form {
  padding: 32px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.contact-form h3 { font-size: 1.3rem; margin-bottom: .2em; }
.form-hint { color: var(--muted); font-size: .9rem; margin-bottom: 22px; }
.contact-form label { display: block; margin-bottom: 16px; }
.contact-form label span { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; font: inherit; font-size: .95rem;
  background: var(--bg); color: var(--text); border: 1px solid var(--border);
  transition: border-color .2s, box-shadow .2s;
}
.contact-form textarea { resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft);
}
.form-error { color: var(--accent); font-size: .88rem; }

/* Rodapé */
.site-footer { padding: 34px 0; border-top: 1px solid var(--border); background: var(--bg-alt); }
.footer-wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-wrap p { margin: 0; color: var(--muted); font-size: .88rem; }

/* Flutuantes */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 40;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: var(--wa); color: #fff; font-size: 1.8rem;
  box-shadow: 0 10px 30px -6px rgba(37, 211, 102, .6);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }
.to-top {
  position: fixed; right: 30px; bottom: 92px; z-index: 40;
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .3s, transform .3s, visibility .3s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { border-color: var(--accent); color: var(--accent); }

/* Animação de entrada */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.no-js .reveal { 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; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 980px) {
  .hero-grid, .about-grid, .two-col, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { min-height: auto; padding-top: 110px; }
  .hero-photo { order: -1; width: min(100%, 340px); }
  .badge-top { left: -16px; top: 52%; }
  .badge-bottom { right: -12px; }
  .sticky { position: static; }
  .quote { background-attachment: scroll; }
  .section-head { margin-bottom: 32px; }
  .process { grid-template-columns: 1fr 1fr; }
  .edu-grid { grid-template-columns: 1fr; }

  .menu-btn { display: grid; }
  .nav {
    position: fixed; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    padding: 12px 16px 20px; gap: 4px;
    background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
    transform: translateY(-120%); visibility: hidden; transition: transform .3s, visibility .3s;
  }
  .nav.open { transform: none; visibility: visible; }
  .site-header:not(.scrolled) .nav a:not(.nav-cta) { color: var(--muted); }
  .site-header:not(.scrolled) .nav a.active:not(.nav-cta) { color: var(--text); background: var(--surface-2); }
  .nav a { padding: 12px 16px; border-radius: 12px; }
  .nav a.nav-cta { margin: 6px 0 0; text-align: center; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .section { padding: 80px 0; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--border); }
  .stat strong { font-size: 1.9rem; }
  .highlights { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .stack { padding: 22px; }
  .stack-group { grid-template-columns: 1fr; gap: 8px; }
  .edu-main { flex-direction: column; }
  .contact-form { padding: 22px; }
  .footer-wrap { flex-direction: column; text-align: center; }
  .hero-cta .btn { flex: 1 1 auto; }
  .brand span { font-size: .95rem; }
  .photo-badge { font-size: .72rem; padding: 10px 12px; }
  .badge-top { left: -8px; top: 50%; }
  .badge-bottom { right: -8px; bottom: 18px; }
}
.hero-lead strong { color: var(--text); font-weight: 600; }
