:root {
  --bg: #071018;
  --bg-elev: #0d1a24;
  --ink: #e8f1f4;
  --muted: #8aa0ab;
  --accent: #2ec4b6;
  --accent-2: #f4a261;
  --line: rgba(232, 241, 244, 0.12);
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --max: 1120px;
  --radius: 2px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(46, 196, 182, 0.18), transparent 55%),
    radial-gradient(900px 500px at -10% 30%, rgba(244, 162, 97, 0.12), transparent 50%),
    linear-gradient(180deg, #050b10 0%, var(--bg) 40%, #0a141c 100%);
  line-height: 1.6;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: -1;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

a,
.btn,
button {
  position: relative;
  z-index: 2;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(46, 196, 182, 0.25);
}

.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1.15rem;
}

.brand-mark {
  width: 1.1rem;
  height: 1.1rem;
  border: 2px solid var(--accent);
  border-radius: 50%;
  box-shadow: inset 0 0 0 3px var(--bg), 0 0 0 1px rgba(46, 196, 182, 0.35);
  background: radial-gradient(circle at 35% 35%, var(--accent), transparent 55%);
}

.nav {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
}

.nav a,
.lang a,
.text-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav a:hover,
.lang a:hover,
.text-link:hover,
.nav a.is-active,
.lang a.is-active { color: var(--ink); }

.lang {
  justify-self: end;
  display: flex;
  gap: 0.4rem;
  align-items: center;
  color: var(--muted);
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  min-height: calc(100vh - 5.5rem);
  padding: 2rem 1.5rem 4rem;
}

.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.4rem);
  letter-spacing: -0.04em;
  color: var(--accent);
  margin: 0 0 0.75rem;
  line-height: 1;
}

.hero h1,
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0 0 1rem;
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
  max-width: 16ch;
}

.lead {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 38ch;
  margin: 0 0 1.75rem;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--accent);
  color: #04201c;
}

.btn-ghost {
  border-color: var(--line);
  color: var(--ink);
  background: transparent;
}

.hero-visual { display: grid; place-items: center; }

.lens {
  position: relative;
  width: min(360px, 70vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(46, 196, 182, 0.35), transparent 40%),
    radial-gradient(circle at 70% 65%, rgba(244, 162, 97, 0.2), transparent 35%),
    linear-gradient(145deg, #102433, #071018);
  border: 1px solid var(--line);
  overflow: hidden;
  animation: float 7s ease-in-out infinite;
}

.lens-ring {
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(46, 196, 182, 0.45);
  border-radius: 50%;
  animation: pulse 3.5s ease-in-out infinite;
}

.lens-ring.delay { inset: 24%; animation-delay: 0.7s; }

.topo {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background:
    repeating-radial-gradient(circle at 50% 60%, transparent 0 12px, rgba(232, 241, 244, 0.08) 13px 14px);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.35; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.03); }
}

.section,
.page-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

.page-hero { padding-top: 2rem; padding-bottom: 0.5rem; }

.section-head h2,
.prose h2,
.app-detail h2 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

.section-head p,
.prose p { color: var(--muted); }

.app-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.app-tile,
.app-detail,
.contact-block {
  background: rgba(13, 26, 36, 0.72);
  border: 1px solid var(--line);
  padding: 1.35rem 1.4rem;
}

.app-id,
.meta-label,
.meta dt {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.app-tile h3 {
  font-family: var(--font-display);
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
}

.app-tile p { color: var(--muted); }

.app-list { display: grid; gap: 1.5rem; }

.app-detail .desc { color: var(--muted); }

.meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.25rem 0;
}

.meta dd { margin: 0; }

.experience { padding-left: 1.1rem; color: var(--muted); }
.experience li { margin-bottom: 0.6rem; }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.contact-block h2 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.contact-block a { color: var(--ink); word-break: break-all; }

.note {
  grid-column: 1 / -1;
  color: var(--muted);
  margin: 0.5rem 0 0;
}

.site-footer {
  max-width: var(--max);
  margin: 3rem auto 0;
  padding: 2rem 1.5rem 2.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer strong { color: var(--ink); display: block; margin-bottom: 0.25rem; }

.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.7s ease forwards;
}

.reveal:nth-child(2) { animation-delay: 0.08s; }
.reveal:nth-child(3) { animation-delay: 0.16s; }
.reveal:nth-child(4) { animation-delay: 0.24s; }

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

@media (max-width: 860px) {
  .site-header {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand lang"
      "nav nav";
  }
  .brand { grid-area: brand; }
  .lang { grid-area: lang; }
  .nav {
    grid-area: nav;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    overflow: visible;
    padding-bottom: 0.25rem;
  }
  .nav a,
  .lang a,
  .btn,
  .text-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 1.5rem;
  }
  .hero-visual { order: -1; }
  .lens { width: min(260px, 68vw); }
  .eyebrow { font-size: clamp(1.8rem, 9vw, 2.6rem); }
  .app-grid,
  .contact-grid,
  .meta { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; }
}

.app-role {
  color: var(--accent-2);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.45;
  margin: 0 0 0.85rem;
  max-width: 62ch;
}

.tech-block { margin-top: 1.25rem; }
.tech-list {
  columns: 1;
  gap: 1.5rem;
  color: var(--muted);
  padding-left: 1.1rem;
  margin: 0.35rem 0 0;
}
.tech-list li { break-inside: avoid; margin-bottom: 0.45rem; }
@media (min-width: 720px) {
  .tech-list { columns: 2; }
}
