@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --bg: #0d0b12;
  --panel: #17131f;
  --panel-2: #211a2c;
  --text: #f8f3ff;
  --muted: #b8afc4;
  --accent: #c8a7ff;
  --accent-2: #f4b8d7;
  --line: rgba(255,255,255,.09);
  --shadow: 0 25px 70px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 0%, rgba(117, 72, 172, .18), transparent 32%),
    radial-gradient(circle at 90% 18%, rgba(209, 108, 160, .10), transparent 28%),
    var(--bg);
  font-family: "DM Sans", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%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)' opacity='.35'/%3E%3C/svg%3E");
  z-index: 99;
}
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 6vw;
  background: rgba(13, 11, 18, .78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(145deg, var(--panel-2), var(--panel));
  color: var(--accent);
  font-family: "Space Grotesk", sans-serif;
}
.nav-links { display: flex; gap: 24px; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: .95rem;
  transition: .2s ease;
}
.nav-links a:hover { color: var(--text); transform: translateY(-1px); }
main { width: min(1180px, 88%); margin: 0 auto; }
.hero {
  min-height: 82vh;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 70px;
  align-items: center;
  padding: 70px 0;
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .18em;
}
h1, h2, h3 { font-family: "Space Grotesk", sans-serif; margin-top: 0; }
h1 {
  margin-bottom: 18px;
  font-size: clamp(4.3rem, 10vw, 8.5rem);
  line-height: .82;
  letter-spacing: -.07em;
}
h2 {
  margin-bottom: 18px;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  line-height: 1;
  letter-spacing: -.04em;
}
h3 { margin-bottom: 12px; font-size: 1.8rem; }
.role { max-width: 540px; color: var(--muted); font-size: 1.3rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 18px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  transition: .2s ease;
}
.button.primary { background: var(--text); color: #141018; }
.button.primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(255,255,255,.12); }
.button.ghost { background: transparent; color: #82788e; cursor: not-allowed; }
.hero-card {
  overflow: hidden;
  min-height: 470px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(155deg, #21192d, #15111d);
  box-shadow: var(--shadow);
  transform: rotate(1.4deg);
}
.window-bar { display: flex; gap: 8px; padding: 16px; border-bottom: 1px solid var(--line); }
.window-bar span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.18); }
.cat-scene { position: relative; min-height: 420px; overflow: hidden; }
.moon {
  position: absolute;
  top: 48px;
  right: 48px;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff8d8, #f0cde1 60%, #d7a8ff);
  box-shadow: 0 0 50px rgba(216, 177, 255, .35);
}
.desk {
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 55px;
  height: 105px;
  border-radius: 18px 18px 8px 8px;
  background: linear-gradient(#5d3c50, #3a2838);
  box-shadow: 0 20px 35px rgba(0,0,0,.28);
}
.cat {
  position: absolute;
  left: 50%;
  bottom: 122px;
  width: 150px;
  height: 150px;
  transform: translateX(-50%);
  border-radius: 48% 48% 42% 42%;
  background: #d8c4e7;
  box-shadow: inset 0 -18px 0 rgba(90,65,110,.10);
}
.ear {
  position: absolute;
  top: -32px;
  width: 62px;
  height: 68px;
  background: #d8c4e7;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.ear.left { left: 7px; transform: rotate(-9deg); }
.ear.right { right: 7px; transform: rotate(9deg); }
.face { position: absolute; top: 58px; left: 50%; display: flex; gap: 34px; transform: translateX(-50%); }
.eye { width: 10px; height: 13px; border-radius: 50%; background: #33263c; animation: blink 4.5s infinite; }
.nose {
  position: absolute;
  top: 24px;
  left: 50%;
  width: 10px;
  height: 8px;
  transform: translateX(-50%);
  border-radius: 50% 50% 60% 60%;
  background: #b06f8f;
}
.speech {
  position: absolute;
  left: 50%;
  top: 55px;
  padding: 12px 16px;
  transform: translateX(-90%);
  border: 1px solid var(--line);
  border-radius: 16px 16px 16px 4px;
  background: rgba(255,255,255,.92);
  color: #241b2c;
  font-weight: 700;
  box-shadow: 0 15px 35px rgba(0,0,0,.22);
}
.section {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 40px;
  padding: 100px 0;
  border-top: 1px solid var(--line);
}
.section-number { color: #6c6177; font-family: "Space Grotesk", sans-serif; font-size: 1.1rem; }
.large-copy { max-width: 880px; margin: 0; font-size: clamp(1.35rem, 2.7vw, 2.15rem); line-height: 1.35; }
.muted { color: var(--muted); }
.section-heading { display: flex; justify-content: space-between; gap: 30px; align-items: end; margin-bottom: 30px; }
.projects { display: block; }
.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.project-card {
  min-height: 320px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.02));
  transition: .25s ease;
}
.project-card:hover { transform: translateY(-7px); border-color: rgba(200, 167, 255, .35); box-shadow: 0 18px 45px rgba(0,0,0,.25); }
.project-card.featured {
  grid-column: span 2;
  min-height: 360px;
  background:
    radial-gradient(circle at 85% 15%, rgba(200,167,255,.18), transparent 32%),
    linear-gradient(145deg, rgba(255,255,255,.065), rgba(255,255,255,.02));
}
.project-top { display: flex; justify-content: space-between; margin-bottom: 70px; }
.status { color: var(--accent-2); font-size: .75rem; font-weight: 700; letter-spacing: .13em; }
.project-number { color: #746b7d; font-family: "Space Grotesk", sans-serif; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.tags span, .skill-list span {
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,255,255,.025);
  font-size: .87rem;
}
.skill-list { display: flex; flex-wrap: wrap; gap: 11px; }
.contact {
  margin: 60px 0 100px;
  padding: 65px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 0%, rgba(200,167,255,.14), transparent 45%),
    var(--panel);
}
.contact-note { display: inline-block; margin-top: 18px; padding: 10px 14px; border-radius: 12px; background: rgba(255,255,255,.04); color: var(--accent); }
footer { display: flex; justify-content: space-between; gap: 20px; padding: 28px 6vw; border-top: 1px solid var(--line); color: #83798e; font-size: .85rem; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@keyframes blink { 0%, 45%, 49%, 100% { transform: scaleY(1); } 47% { transform: scaleY(.1); } }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 60px; }
  .hero-card { min-height: 390px; }
  .nav-links { display: none; }
  .section { grid-template-columns: 1fr; gap: 18px; }
  .section-number { display: none; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card.featured { grid-column: auto; }
  .section-heading { display: block; }
  footer { flex-direction: column; }
}
@media (max-width: 560px) {
  main { width: min(92%, 1180px); }
  h1 { font-size: 4.2rem; }
  .hero-card { min-height: 340px; }
  .cat-scene { min-height: 300px; }
  .contact { padding: 38px 22px; }
}
