:root {
  color-scheme: light dark;
  --background: #eef7fc;
  --text: #162f40;
  --muted: #506d80;
  --accent: #087aa9;
  --line: #b9d7e7;
  --surface: #ffffff75;
  --button: #086b98;
  --button-hover: #05567e;
  --glow-one: #74cbea70;
  --glow-two: #a1d5f35c;
  --wave: #498bb6;
  --shadow: #0b597221;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--background);
  color: var(--text);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
@media (prefers-color-scheme: dark) {
  :root {
    --background: #071722;
    --text: #edf7ff;
    --muted: #a1bbcd;
    --accent: #77d0ef;
    --line: #284555;
    --surface: #132e3e88;
    --button: #8bd4f0;
    --button-hover: #b0e6fa;
    --glow-one: #11799a32;
    --glow-two: #1b5c8c40;
    --wave: #4d9bc4;
    --shadow: #00000040;
  }
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100svh; display: flex; flex-direction: column; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
button, a { touch-action: manipulation; }
.ambient { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.glow { position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; filter: blur(55px); will-change: transform; }
.glow-one { background: radial-gradient(ellipse, var(--glow-one), transparent 65%); left: -30vmax; top: -28vmax; animation: drift 24s ease-in-out infinite alternate; }
.glow-two { background: radial-gradient(ellipse, var(--glow-two), transparent 65%); right: -25vmax; bottom: -28vmax; animation: drift 30s ease-in-out -12s infinite alternate-reverse; }
.waves { width: 120%; height: 120%; position: absolute; inset: -10%; color: var(--wave); opacity: .18; animation: tide 28s ease-in-out infinite alternate; }
.topbar, footer { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 30px 48px; gap: 16px; }
.wordmark { display: inline-flex; align-items: center; font-size: 15px; font-weight: 650; letter-spacing: -.4px; }
.brand-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 10px; }
.domain { color: var(--muted); font-weight: 400; }
.languages { display: flex; padding: 4px; border: 1px solid var(--line); border-radius: 30px; gap: 2px; background: var(--surface); }
.languages button { border: 0; border-radius: 20px; padding: 8px 10px; min-width: 38px; min-height: 34px; cursor: pointer; background: transparent; color: var(--muted); font-size: 11px; font-weight: 650; letter-spacing: .5px; transition: background .2s, color .2s; }
.languages button[aria-pressed="true"] { background: var(--text); color: var(--background); }
.languages button:hover:not([aria-pressed="true"]) { color: var(--text); background: var(--line); }
main { flex: 1; display: grid; place-items: center; padding: 42px 24px 52px; }
.profile { text-align: center; width: 100%; max-width: 760px; animation: arrive .9s ease-out both; }
.portrait-wrap { width: 206px; height: 206px; padding: 7px; margin: 0 auto 32px; border: 1px solid var(--line); border-radius: 50%; position: relative; }
.portrait-wrap::before { content: ""; position: absolute; inset: -9px; border: 1px solid var(--line); opacity: .4; border-radius: 50%; }
.portrait { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: 50% 40%; box-shadow: 0 12px 35px var(--shadow); }
.eyebrow { font-size: 12px; color: var(--accent); letter-spacing: 2.3px; text-transform: uppercase; font-weight: 600; margin: 0 0 14px; }
h1 { font-size: clamp(42px, 6.2vw, 76px); letter-spacing: -.02em; line-height: 1.08; font-weight: 650; margin: 0; }
.name-dot { color: var(--accent); }
.profession { margin: 19px 0 0; color: var(--muted); font-size: clamp(13px, 1.6vw, 16px); line-height: 1.7; letter-spacing: .05px; }
.profession span { padding: 0 7px; color: var(--accent); }
.contact { display: flex; flex-direction: column; align-items: center; gap: 18px; margin: 34px 0 33px; }
.email { display: inline-flex; align-items: center; gap: 12px; padding: 17px 21px; border-radius: 12px; background: var(--button); color: var(--background); box-shadow: 0 7px 22px var(--shadow); font-size: 15px; font-weight: 550; transition: transform .2s, background .2s, box-shadow .2s; }
.email:hover { background: var(--button-hover); transform: translateY(-2px); box-shadow: 0 12px 28px var(--shadow); }
svg { width: 19px; height: 19px; flex-shrink: 0; }
.email .arrow { margin-left: 12px; transition: transform .2s; }
.email:hover .arrow { transform: translateX(3px); }
.cv { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 36px; font-size: 13px; color: var(--muted); }
.cv svg { width: 16px; height: 16px; }
.cv:hover { color: var(--accent); }
.file-type { font-size: 9px; border: 1px solid var(--line); border-radius: 4px; padding: 3px 5px; letter-spacing: .4px; margin-left: 3px; }
.socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.socials a { display: inline-flex; justify-content: center; align-items: center; gap: 8px; padding: 12px 15px; min-height: 44px; font-size: 12px; font-weight: 500; border: 1px solid var(--line); border-radius: 30px; background: var(--surface); transition: transform .2s, border-color .2s, color .2s; }
.socials svg { width: 15px; height: 15px; }
.socials a:hover { transform: translateY(-3px); color: var(--accent); border-color: var(--accent); }
.handle { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; margin: 18px 0 0; color: var(--muted); font-size: 11px; letter-spacing: .8px; }
footer { font-size: 11px; color: var(--muted); padding-top: 20px; padding-bottom: 26px; }
.footer-note { letter-spacing: .3px; }
@keyframes drift { to { transform: translate(18vmax, 12vmax) scale(1.15); } }
@keyframes tide { from { transform: translate(-2%, 2%) rotate(-4deg); } to { transform: translate(2%, -2%) rotate(4deg); } }
@keyframes arrive { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }
@media (min-width: 1600px) { .portrait-wrap { width: 230px; height: 230px; } }
@media (max-width: 600px) {
  .topbar { padding: 22px 22px; }
  main { padding: 35px 18px 42px; }
  .portrait-wrap { width: 176px; height: 176px; margin-bottom: 30px; }
  .eyebrow { font-size: 10px; letter-spacing: 1.8px; }
  .profession { max-width: 350px; margin: 17px auto 0; text-wrap: balance; }
  .profession span { padding: 0 3px; }
  .contact { margin-top: 28px; margin-bottom: 26px; gap: 14px; }
  .email { padding: 16px 17px; font-size: 14px; gap: 10px; }
  .email .arrow { margin-left: 2px; }
  .socials { max-width: 320px; margin-inline: auto; gap: 8px; }
  .socials a { padding: 11px 13px; }
  footer { padding: 20px 22px; font-size: 10px; }
}
@media (max-width: 360px) { .footer-note { display: none; } h1 { font-size: 39px; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
