* { box-sizing: border-box; }

:root {
  --bg: #0d0f12;
  --panel: #15181d;
  --fg: #f2f4f6;
  --soft: #c8cdd3;
  --muted: #858d97;
  --line: #292e35;
  --accent: #aeb9ff;
}

html { background: var(--bg); }

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 78% 24%, rgba(115,128,255,.055), transparent 27%),
    var(--bg);
  color: var(--fg);
  font-family: Arial, Helvetica, sans-serif;
}

.page {
  position: relative;
  z-index: 2;
  width: min(1200px, calc(100% - 80px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 42px 0 30px;
  display: flex;
  flex-direction: column;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--fg);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .24em;
}

.brand-line {
  width: 19px;
  height: 2px;
  background: var(--fg);
  transition: width .3s ease;
}

.brand:hover .brand-line { width: 31px; }

.status {
  font: 10px/1 monospace;
  letter-spacing: .12em;
  color: var(--muted);
}

.status i {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(174,185,255,.65);
  animation: pulse 3s ease-in-out infinite;
}

.hero {
  width: min(1020px, 100%);
  margin: auto 0;
  padding: 70px 0;
}

.eyebrow {
  margin: 0 0 23px;
  color: var(--muted);
  font: 11px/1.5 monospace;
  letter-spacing: .13em;
}

h1 {
  margin: 0 0 38px;
  font-size: clamp(70px, 9.5vw, 132px);
  font-weight: 600;
  line-height: .84;
  letter-spacing: -.07em;
}

.accent {
  color: var(--fg);
  position: relative;
}

.accent::after {
  content: "";
  position: absolute;
  left: .03em;
  bottom: -.04em;
  width: 0;
  height: 3px;
  background: var(--accent);
  animation: underline 1s cubic-bezier(.2,.8,.2,1) 1.2s forwards;
}

.lead {
  max-width: 690px;
  margin: 0;
  color: var(--soft);
  font-size: 19px;
  line-height: 1.65;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  width: fit-content;
  max-width: 900px;
  margin: 38px 0 27px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.skills span {
  position: relative;
  overflow: hidden;
  padding: 12px 15px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(21,24,29,.68);
  color: #d7dbe0;
  font: 12px/1 monospace;
  transition: color .25s ease, transform .25s ease;
}

.skills span::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(174,185,255,.08);
  transform: translateY(101%);
  transition: transform .25s ease;
}

.skills span:hover {
  color: #fff;
  transform: translateY(-2px);
}

.skills span:hover::before { transform: translateY(0); }

.stack {
  margin: 0;
  color: var(--muted);
  font: 12px/1.8 monospace;
}

.stack b {
  color: #505760;
  font-weight: 400;
}

.contact {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin-top: 27px;
  padding-bottom: 5px;
  border-bottom: 1px solid #555c65;
  color: var(--fg);
  text-decoration: none;
  font: 12px/1 monospace;
  letter-spacing: .08em;
  transition: border-color .25s ease;
}

.contact:hover { border-color: var(--accent); }

.arrow {
  transition: transform .25s ease;
}

.contact:hover .arrow { transform: translate(3px,-3px); }

footer {
  display: flex;
  gap: 8px;
  color: #666e78;
  font: 10px/1.4 monospace;
}

footer a {
  color: inherit;
  text-decoration: none;
}

footer a:hover { color: var(--soft); }

.reveal {
  opacity: 0;
  transform: translateY(12px);
  animation: reveal .75s cubic-bezier(.2,.8,.2,1) forwards;
}

.delay-1 { animation-delay: .12s; }
.delay-2 { animation-delay: .22s; }
.delay-3 { animation-delay: .36s; }
.delay-4 { animation-delay: .48s; }
.delay-5 { animation-delay: .60s; }

.ambient {
  position: fixed;
  z-index: 1;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(1px);
  opacity: .35;
}

.ambient-one {
  width: 360px;
  height: 360px;
  right: -220px;
  top: 18%;
  border: 1px solid rgba(174,185,255,.13);
  animation: drift 14s ease-in-out infinite alternate;
}

.ambient-two {
  width: 170px;
  height: 170px;
  right: 10%;
  bottom: -110px;
  border: 1px solid rgba(255,255,255,.08);
  animation: drift 11s ease-in-out 1s infinite alternate-reverse;
}

@keyframes reveal {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes underline {
  to { width: .86em; }
}

@keyframes pulse {
  0%, 100% { opacity: .55; transform: scale(.85); }
  50% { opacity: 1; transform: scale(1); }
}

@keyframes drift {
  from { transform: translate3d(0,0,0); }
  to { transform: translate3d(-22px,18px,0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media (max-width: 700px) {
  .page {
    width: calc(100% - 44px);
    padding-top: 28px;
  }

  .status { display: none; }

  .hero { padding: 85px 0 65px; }

  h1 {
    font-size: clamp(58px, 19vw, 88px);
    letter-spacing: -.075em;
  }

  .lead { font-size: 17px; }

  .skills { width: 100%; }

  .skills span { flex: 1 1 50%; }

  footer { padding-top: 20px; }
}

.privacy-language {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 20px 0 50px;
  font-size: 14px;
}

.privacy-language a {
  text-decoration: none;
}

.privacy-en {
  margin-top: 80px;
  padding-top: 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.privacy-note {
  margin-top: 32px;
  opacity: 0.7;
  font-size: 0.9em;
}