:root {
  --ink: #0A0F14;
  --surface: #121A22;
  --line: rgba(255, 255, 255, .09);
  --text: #E9EEF2;
  --muted: #94A3B3;
  --mint: #7CF0C8;
  --coral: #FF8A5B;
  --r: 22px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  background: var(--ink);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { color: var(--muted); }
h1, h2, h3 { font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.3rem); font-weight: 750; margin-bottom: 1.4rem; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin-bottom: 1rem; }
h3 { font-size: 1.2rem; margin-bottom: .4rem; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 1rem; background: var(--mint); color: var(--ink); padding: .5rem 1rem; border-radius: 8px; z-index: 100; }
.skip:focus { left: 1rem; }

.glass {
  background: linear-gradient(150deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .015));
  border: 1px solid var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--r);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6);
}

.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .9rem 1.5rem; border-radius: 999px; font-weight: 600;
  transition: transform .25s, background .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: var(--mint); color: var(--ink); }
.btn.ghost { border: 1px solid var(--line); background: rgba(255, 255, 255, .04); color: var(--text); }

/* Floating navigation */
.nav {
  position: fixed; top: 1rem; left: 50%; transform: translateX(-50%);
  width: min(1100px, calc(100% - 2rem));
  display: flex; align-items: center; justify-content: space-between;
  padding: .6rem .6rem .6rem 1.4rem;
  border-radius: 999px; border: 1px solid var(--line);
  background: rgba(18, 26, 34, .55);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  z-index: 50; transition: background .3s;
}
.nav.scrolled { background: rgba(10, 15, 20, .85); }
.logo { font-weight: 800; font-size: 1.3rem; }
.logo span { color: var(--mint); }
#menu { display: flex; gap: 1.5rem; align-items: center; }
#menu a { color: var(--muted); font-size: .95rem; transition: color .2s; }
#menu a:hover { color: var(--text); }
.nav-cta { background: var(--mint); color: var(--ink) !important; padding: .5rem 1.1rem; border-radius: 999px; font-weight: 600; }
.menu-btn { display: none; background: none; border: 0; cursor: pointer; width: 40px; height: 40px; position: relative; }
.menu-btn span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s; }
.menu-btn span:first-child { top: 15px; }
.menu-btn span:last-child { top: 23px; }
.nav.open .menu-btn span:first-child { transform: translateY(4px) rotate(45deg); }
.nav.open .menu-btn span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 3rem;
  padding: 7rem clamp(1.25rem, 5vw, 4rem) 4rem;
}
.orbs { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.orbs i { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .45; animation: drift 18s ease-in-out infinite alternate; }
.orbs i:nth-child(1) { width: 380px; height: 380px; background: #1F7A62; top: -80px; left: -120px; }
.orbs i:nth-child(2) { width: 300px; height: 300px; background: #B8552F; bottom: -60px; right: 10%; animation-duration: 22s; }
.orbs i:nth-child(3) { width: 220px; height: 220px; background: #2C4C7A; top: 30%; left: 45%; animation-duration: 26s; }
@keyframes drift { to { transform: translate(60px, -40px) scale(1.1); } }

.hero-text, .hero-visual { position: relative; z-index: 1; }
.hero-text { animation: rise .9s both; }
.hero-visual { animation: rise 1.2s .15s both; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

.status {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .45rem .9rem; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .04);
  font-size: .9rem; color: var(--text); margin-bottom: 1.6rem;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(124, 240, 200, 0); } 100% { box-shadow: 0 0 0 0 rgba(124, 240, 200, 0); } }
.lead { font-size: 1.15rem; max-width: 34rem; margin-bottom: 2.2rem; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; }

.hero-visual { width: min(520px, 100%); aspect-ratio: 1; justify-self: center; transition: translate .4s ease-out; }
.ring {
  position: absolute; inset: 6%; border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, .14);
  animation: spin 60s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.photo-wrap {
  position: absolute; inset: 18%; border-radius: 50%; overflow: hidden;
  border: 1px solid var(--line); background: var(--surface);
  box-shadow: 0 0 0 14px rgba(124, 240, 200, .05), 0 40px 80px -30px rgba(0, 0, 0, .8);
}
.photo-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.initials { position: absolute; inset: 0; display: none; place-items: center; font-size: 3.5rem; font-weight: 800; color: var(--mint); }
.no-photo .initials { display: grid; }
.no-photo img { display: none; }

.orbit { list-style: none; position: absolute; inset: 0; }
.chip {
  position: absolute; left: var(--x); top: var(--y);
  transform: translate(-50%, -50%);
  padding: .55rem 1rem; border-radius: 999px;
  font-size: .9rem; font-weight: 600; white-space: nowrap;
  background: rgba(18, 26, 34, .75); border: 1px solid var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .7);
  animation: bob 6s ease-in-out infinite; animation-delay: calc(var(--i) * -.75s);
}
.chip:nth-child(even) { color: var(--coral); }
.chip:nth-child(odd) { color: var(--mint); }
@keyframes bob { 50% { translate: 0 -12px; } }

.badge-card {
  position: absolute; left: -2%; bottom: 4%;
  display: flex; align-items: center; gap: .8rem;
  padding: .9rem 1.2rem; border-radius: 18px; font-size: .9rem;
  animation: bob 7s ease-in-out infinite reverse;
}
.badge-card strong { display: block; color: var(--text); }
.pin { width: 12px; height: 12px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 6px rgba(255, 138, 91, .18); }

/* Sections */
.section { max-width: 1200px; margin: 0 auto; padding: clamp(4rem, 9vw, 7rem) clamp(1.25rem, 5vw, 4rem); }
.about { display: grid; grid-template-columns: 1.2fr .8fr; gap: 3rem; align-items: start; }
.about p { font-size: 1.08rem; margin-bottom: 1rem; }
.about-card { padding: 2rem; margin-top: 3rem; }

.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.tile { padding: 1.8rem; grid-column: span 2; }
.tile.big {
  grid-column: span 4; grid-row: span 2;
  display: flex; flex-direction: column; justify-content: flex-end; min-height: 300px;
  background: radial-gradient(circle at 90% 10%, rgba(124, 240, 200, .18), transparent 55%), linear-gradient(150deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .015));
}
.tile.big h3 { font-size: 1.8rem; }
.tile.big p { font-size: 1.05rem; max-width: 30rem; }
.tile.wide { grid-column: span 6; }

.marquee { overflow: hidden; padding: 1.4rem 0; border-block: 1px solid var(--line); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.track { display: flex; width: max-content; animation: scroll 40s linear infinite; }
.group { display: flex; flex-shrink: 0; gap: 2.5rem; padding-right: 2.5rem; }
.group span { font-size: clamp(1.3rem, 2.5vw, 1.9rem); font-weight: 600; color: var(--muted); white-space: nowrap; display: flex; align-items: center; gap: 2.5rem; }
.group span::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }
@keyframes scroll { to { transform: translateX(-50%); } }

.stack { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.group-card { padding: 1.8rem; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.chips li { padding: .4rem .8rem; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); font-size: .92rem; }

.job { padding: 2.4rem; }
.job > p { color: var(--mint); margin-bottom: 1.4rem; }
.job ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 2rem; }
.job li { position: relative; padding-left: 1.4rem; color: var(--text); font-size: .98rem; }
.job li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; border-radius: 3px; background: var(--mint); transform: rotate(45deg); }

.project-card {
  padding: clamp(2rem, 5vw, 3.5rem);
  display: flex; flex-wrap: wrap; gap: 2rem; align-items: center; justify-content: space-between;
  background: radial-gradient(circle at 0% 100%, rgba(255, 138, 91, .18), transparent 50%), linear-gradient(150deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .015));
}
.project-card p { max-width: 30rem; margin-top: .6rem; }

.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 2.5rem; }
.contact-item {
  display: flex; flex-direction: column; gap: .3rem;
  padding: 1.5rem 1.6rem; font: inherit; color: var(--text); text-align: left; cursor: pointer;
  transition: transform .25s, border-color .25s;
}
button.contact-item:hover, a.contact-item:hover { transform: translateY(-4px); border-color: rgba(124, 240, 200, .4); }
.label { font-size: .85rem; color: var(--muted); }

.footer { text-align: center; padding: 2.5rem 1rem; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }

/* Responsive */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 8rem; }
  .hero-visual { width: min(420px, 92%); }
  .about { grid-template-columns: 1fr; }
  .about-card { margin-top: 0; }
  .stack { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .menu-btn { display: block; }
  #menu {
    position: absolute; top: calc(100% + .6rem); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 1rem; padding: 1.2rem;
    border-radius: var(--r); border: 1px solid var(--line); background: rgba(18, 26, 34, .97);
    opacity: 0; pointer-events: none; transform: translateY(-8px); transition: opacity .3s, transform .3s;
  }
  .nav.open #menu { opacity: 1; pointer-events: auto; transform: none; }
  .nav { border-radius: 26px; flex-wrap: wrap; }
  .bento { grid-template-columns: 1fr 1fr; }
  .tile, .tile.big, .tile.wide { grid-column: span 2; grid-row: auto; min-height: 0; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .tile, .tile.big, .tile.wide { grid-column: span 1; }
  .job ul, .contact-grid { grid-template-columns: 1fr; }
  .chip { font-size: .72rem; padding: .4rem .7rem; }
  .badge-card { left: 0; font-size: .8rem; }
  .group span { font-size: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
