:root {
  --bg: #0a0a0d;
  --bg-2: #111116;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.09);
  --text: #f4efe9;
  --muted: #a7a19a;
  --dim: #6f6a65;
  --gold: #e2bd8e;
  --rose: #cf8c7a;
  --grad: linear-gradient(120deg, #f1d3a8 0%, #e2bd8e 40%, #cf8c7a 100%);
  --wa: #25d366;
  --radius: 22px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
svg { width: 1.1em; height: 1.1em; fill: currentColor; flex: none; }
em { font-style: italic; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
::selection { background: var(--gold); color: #1a1208; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* ---------- Background ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; }
.o1 { width: 620px; height: 620px; background: radial-gradient(circle, rgba(226,189,142,.38), transparent 65%); top: -180px; right: -120px; animation: drift 22s ease-in-out infinite alternate; }
.o2 { width: 520px; height: 520px; background: radial-gradient(circle, rgba(207,140,122,.28), transparent 65%); top: 45%; left: -200px; animation: drift 28s ease-in-out infinite alternate-reverse; }
.o3 { width: 460px; height: 460px; background: radial-gradient(circle, rgba(120,110,190,.18), transparent 65%); bottom: -160px; right: 10%; animation: drift 25s ease-in-out infinite alternate; }
.grain {
  position: absolute; inset: -50%; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%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");
}
@keyframes drift { to { transform: translate3d(60px, 80px, 0) scale(1.12); } }

/* ---------- Top bar ---------- */
.topbar {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%);
  width: min(calc(100% - 2 * var(--gutter)), var(--max));
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 12px 10px 22px; z-index: 50;
  background: rgba(14, 14, 18, .6);
  border: 1px solid var(--line); border-radius: 999px;
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  transition: background .3s, box-shadow .3s;
}
.topbar.scrolled { background: rgba(14, 14, 18, .85); box-shadow: 0 10px 40px rgba(0,0,0,.4); }
.logo { font-family: var(--serif); font-size: 22px; font-weight: 500; letter-spacing: .02em; }
.logo span { color: var(--gold); }
.nav { display: flex; gap: 6px; }
.nav a { font-size: 14px; color: var(--muted); padding: 8px 14px; border-radius: 999px; transition: color .2s, background .2s; }
.nav a:hover, .nav a.active { color: var(--text); background: var(--surface-2); }
.lang {
  font-size: 13px; font-weight: 600; letter-spacing: .1em; padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); transition: border-color .2s, color .2s;
}
.lang:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- Layout ---------- */
main { width: min(calc(100% - 2 * var(--gutter)), var(--max)); margin: 0 auto; }
.section { padding: clamp(80px, 12vw, 140px) 0 0; scroll-margin-top: 60px; }
.sec-head { margin-bottom: clamp(36px, 6vw, 64px); }
.kicker { display: inline-block; font-size: 12px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.1; margin: 0; letter-spacing: -.01em; }
h2 { font-size: clamp(34px, 5.5vw, 60px); max-width: 18ch; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center;
  gap: clamp(32px, 6vw, 80px); padding: 120px 0 60px;
}
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); padding: 7px 14px 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); margin: 0 0 28px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--wa); box-shadow: 0 0 0 0 rgba(37,211,102,.6); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }
h1 { font-size: clamp(64px, 11vw, 148px); font-weight: 300; line-height: .92; letter-spacing: -.035em; }
h1 span { display: block; }
h1 .last { font-style: italic; font-weight: 400; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .08em; }
.role { font-size: clamp(13px, 1.4vw, 15px); letter-spacing: .3em; text-transform: uppercase; color: var(--text); margin: 26px 0 0; font-weight: 500; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 40ch; margin: 18px 0 0; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.loc { display: flex; align-items: center; gap: 8px; color: var(--dim); font-size: 14px; margin: 28px 0 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 500 15px/1 var(--sans); padding: 16px 26px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .25s, box-shadow .25s, background .25s, border-color .25s, color .25s;
}
.btn.primary { background: var(--grad); color: #1b130b; box-shadow: 0 10px 30px -10px rgba(226,189,142,.55); }
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(226,189,142,.7); }
.btn.primary svg { transition: transform .25s; }
.btn.primary:hover svg { transform: translateX(3px); }
.btn.ghost { border-color: var(--line); background: var(--surface); color: var(--text); }
.btn.ghost:hover { border-color: rgba(226,189,142,.5); }

.portrait { position: relative; margin: 0; justify-self: end; width: 100%; max-width: 440px; }
.portrait-frame {
  position: relative; border-radius: 220px 220px 28px 28px; overflow: hidden; padding: 1px;
  background: linear-gradient(160deg, rgba(241,211,168,.8), rgba(207,140,122,.15) 45%, rgba(255,255,255,.05));
  box-shadow: 0 40px 100px -30px rgba(0,0,0,.8), 0 0 80px -20px rgba(226,189,142,.25);
}
.portrait-frame picture, .portrait-frame img { border-radius: 219px 219px 27px 27px; }
.portrait-frame img { width: 100%; aspect-ratio: 3/4; object-fit: cover; filter: saturate(.92) contrast(1.03); }
.portrait-frame::after {
  content: ""; position: absolute; inset: 1px; border-radius: 219px 219px 27px 27px; pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(10,10,13,.55) 100%);
}
.badge {
  position: absolute; left: -28px; bottom: 48px; display: flex; align-items: center; gap: 12px;
  padding: 14px 20px 14px 16px; border-radius: 18px; border: 1px solid var(--line);
  background: rgba(18,18,23,.75); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px -15px rgba(0,0,0,.7); animation: float 6s ease-in-out infinite;
}
.badge span { font-family: var(--serif); font-size: 40px; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.badge small { font-size: 12px; line-height: 1.3; color: var(--muted); max-width: 9ch; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* ---------- Stats ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden;
}
.stat { padding: clamp(22px, 3vw, 36px) clamp(16px, 2.5vw, 32px); border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat-n { display: block; font-family: var(--serif); font-size: clamp(32px, 4.2vw, 52px); line-height: 1.05; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-l { display: block; font-size: 14px; color: var(--muted); margin-top: 6px; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 6vw, 80px); }
.about-text p { margin: 0 0 1.2em; font-size: clamp(17px, 1.6vw, 20px); color: #d8d2cb; }
.about-text p:first-child { font-family: var(--serif); font-size: clamp(22px, 2.4vw, 28px); line-height: 1.45; color: var(--text); font-weight: 300; }
.about-side h3 { font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--dim); margin: 0 0 14px; }
.about-side h3:not(:first-child) { margin-top: 34px; }
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: 14px; padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(226,189,142,.3); background: rgba(226,189,142,.06); color: #f0dcc0; }
.tags.soft li { border-color: var(--line); background: var(--surface); color: var(--text); }

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 0; }
.timeline::before {
  content: ""; position: absolute; left: 180px; top: 8px; bottom: 8px; width: 1px;
  background: linear-gradient(180deg, var(--gold), rgba(207,140,122,.4) 50%, transparent);
}
.job { position: relative; display: grid; grid-template-columns: 180px 1fr; gap: 0 48px; padding-bottom: 28px; }
.job-dot { position: absolute; left: 175px; top: 30px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 2px solid var(--gold); }
.job.current .job-dot { background: var(--gold); box-shadow: 0 0 0 6px rgba(226,189,142,.15), 0 0 24px rgba(226,189,142,.6); }
.job-period { padding-top: 22px; font-size: 14px; font-weight: 500; letter-spacing: .08em; color: var(--muted); font-variant-numeric: tabular-nums; }
.job.current .job-period { color: var(--gold); }
.job-card {
  padding: clamp(22px, 3vw, 32px); border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface);
  transition: border-color .3s, background .3s, transform .3s;
}
.job-card:hover { border-color: rgba(226,189,142,.35); background: var(--surface-2); transform: translateX(4px); }
.job-card h3 { font-size: clamp(22px, 2.4vw, 28px); }
.job-company { margin: 4px 0 14px; color: var(--gold); font-size: 15px; font-weight: 500; }
.job-text { margin: 0; color: var(--muted); font-size: 16px; }
.wins { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.wins li { font-size: 13px; font-weight: 500; padding: 7px 13px; border-radius: 10px; background: rgba(226,189,142,.1); color: #f1d3a8; border: 1px solid rgba(226,189,142,.2); }

/* ---------- Education ---------- */
.edu-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.edu-card {
  position: relative; padding: clamp(26px, 3.5vw, 40px); border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(226,189,142,.08), rgba(255,255,255,.02) 50%); overflow: hidden;
}
.edu-card::after { content: ""; position: absolute; right: -60px; top: -60px; width: 180px; height: 180px; border-radius: 50%; border: 1px solid rgba(226,189,142,.18); }
.edu-years { font-size: 13px; letter-spacing: .14em; color: var(--gold); font-weight: 500; }
.edu-card h3 { font-size: clamp(24px, 2.6vw, 32px); margin: 14px 0 8px; max-width: 16ch; }
.edu-card p { margin: 0; color: var(--muted); }

/* ---------- Contact ---------- */
.contact { padding-bottom: clamp(60px, 10vw, 120px); }
.contact-wrap {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 64px);
  padding: clamp(28px, 5vw, 64px); border-radius: 32px; border: 1px solid var(--line);
  background: radial-gradient(120% 120% at 0% 0%, rgba(226,189,142,.12), transparent 50%), var(--bg-2);
  box-shadow: 0 40px 100px -40px rgba(0,0,0,.8);
}
.contact h2 { font-size: clamp(30px, 4.4vw, 50px); max-width: 16ch; }
.channels { display: grid; gap: 12px; margin-top: 32px; }
.channel { display: flex; align-items: stretch; gap: 8px; }
.channel-main {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 18px;
  border: 1px solid var(--line); background: var(--surface); transition: border-color .25s, background .25s, transform .25s;
}
.channel-main:hover { border-color: rgba(226,189,142,.5); background: var(--surface-2); transform: translateY(-2px); }
.channel-main.wa:hover { border-color: rgba(37,211,102,.55); }
.channel-main .ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: rgba(226,189,142,.12); color: var(--gold); font-size: 22px; flex: none; }
.channel-main.wa .ic { background: rgba(37,211,102,.12); color: var(--wa); }
.channel-main small { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.channel-main strong { display: block; font-weight: 500; font-size: 16px; overflow-wrap: anywhere; }
.copy {
  flex: none; font: 500 13px var(--sans); color: var(--muted); padding: 0 16px; border-radius: 14px;
  border: 1px solid var(--line); background: transparent; cursor: pointer; transition: color .2s, border-color .2s;
}
.copy:hover { color: var(--text); border-color: var(--gold); }
.copy.done { color: var(--wa); border-color: rgba(37,211,102,.5); }

.contact-form { display: grid; gap: 14px; align-content: start; }
.contact-form h3 { font-size: 24px; margin-bottom: 6px; }
.contact-form label { display: grid; gap: 6px; }
.contact-form label span { font-size: 13px; color: var(--muted); }
.contact-form input, .contact-form textarea {
  width: 100%; font: 400 16px/1.5 var(--sans); color: var(--text); padding: 14px 16px; border-radius: 14px;
  border: 1px solid var(--line); background: rgba(0,0,0,.25); transition: border-color .2s, background .2s; resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--gold); background: rgba(0,0,0,.4); }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.form-actions .btn { flex: 1 1 180px; }
.wa-btn { background: rgba(37,211,102,.12); border-color: rgba(37,211,102,.4); color: #7ff0a8; }
.wa-btn:hover { background: rgba(37,211,102,.2); transform: translateY(-2px); }
.hint { margin: 2px 0 0; font-size: 13px; color: var(--dim); }

/* ---------- Footer & floating ---------- */
.footer {
  width: min(calc(100% - 2 * var(--gutter)), var(--max)); margin: 0 auto; padding: 28px 0 40px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line);
  font-size: 14px; color: var(--dim);
}
.footer p { margin: 0; }
.footer a:hover { color: var(--gold); }
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; background: var(--wa); color: #fff; font-size: 28px;
  box-shadow: 0 12px 30px -6px rgba(37,211,102,.55); transition: transform .25s, opacity .3s;
  opacity: 0; transform: translateY(20px) scale(.9); pointer-events: none;
}
.wa-float.show { opacity: 1; transform: none; pointer-events: auto; }
.wa-float:hover { transform: scale(1.08); }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 110px; min-height: auto; }
  .portrait { justify-self: center; max-width: 380px; order: -1; }
  .badge { left: -8px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .about-grid, .contact-wrap { grid-template-columns: 1fr; }
  .timeline::before { left: 5px; }
  .job { grid-template-columns: 1fr; padding-left: 32px; }
  .job-dot { left: 0; top: 6px; }
  .job-period { padding: 0 0 10px; }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .topbar { padding-left: 18px; }
  .edu-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 100px; gap: 28px; }
  .portrait { max-width: 300px; }
  .badge { padding: 10px 14px 10px 12px; bottom: 30px; }
  .badge span { font-size: 32px; }
  .btn { padding: 15px 22px; }
  .actions .btn { flex: 1 1 auto; }
  .copy { padding: 0 12px; }
  .channel-main { padding: 14px; gap: 12px; }
  .channel-main .ic { width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
