:root {
  color-scheme: dark;
  --bg: #111210;
  --panel: rgba(27, 28, 24, 0.82);
  --panel-strong: rgba(38, 39, 33, 0.92);
  --text: #f4f0e8;
  --muted: #b9b0a2;
  --line: rgba(244, 240, 232, 0.12);
  --accent: #d7f171;
  --accent-two: #72d6c9;
  --accent-three: #f08f6e;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 20% 10%, rgba(215, 241, 113, 0.18), transparent 30%),
    radial-gradient(circle at 88% 88%, rgba(114, 214, 201, 0.14), transparent 32%),
    var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
a {
  font: inherit;
}

.ambient {
  position: fixed;
  width: 26rem;
  height: 26rem;
  border: 1px solid rgba(244, 240, 232, 0.08);
  border-radius: 999px;
  pointer-events: none;
  animation: drift 14s ease-in-out infinite alternate;
}

.ambient-one {
  left: -10rem;
  top: -8rem;
}

.ambient-two {
  right: -12rem;
  bottom: -10rem;
  animation-delay: -5s;
}

.shell {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 1rem;
  width: min(1180px, calc(100% - 2rem));
  min-height: calc(100vh - 2rem);
  margin: 1rem auto;
}

.sidebar,
.content {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(22px);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 1.25rem;
  border-radius: 8px;
}

.profile {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 1rem;
  align-items: start;
}

.avatar {
  display: grid;
  width: 64px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(215, 241, 113, 0.36);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(215, 241, 113, 0.24), rgba(114, 214, 201, 0.14));
  color: var(--accent);
  font-size: 1.6rem;
  font-weight: 800;
}

.eyebrow {
  margin: 0 0 0.45rem;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0.45rem;
  font-size: 1.4rem;
}

h2 {
  max-width: 760px;
  margin-bottom: 1rem;
  font-size: clamp(2rem, 5vw, 5.4rem);
  line-height: 0.96;
}

p {
  color: var(--muted);
  line-height: 1.7;
}

.profile-text {
  margin-bottom: 0;
  font-size: 0.92rem;
}

.menu {
  display: grid;
  gap: 0.5rem;
}

.menu-item {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 0 1rem;
  text-align: left;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.menu-item::after {
  content: "";
  width: 8px;
  aspect-ratio: 1;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.35;
}

.menu-item:hover,
.menu-item.active {
  border-color: rgba(215, 241, 113, 0.25);
  background: rgba(244, 240, 232, 0.06);
  color: var(--text);
  transform: translateX(4px);
}

.menu-item.active::after {
  color: var(--accent);
  opacity: 1;
}

.sidebar-footer {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: auto;
  color: var(--muted);
  font-size: 0.9rem;
}

.status-dot {
  width: 9px;
  aspect-ratio: 1;
  border-radius: 999px;
  background: var(--accent-two);
  box-shadow: 0 0 24px var(--accent-two);
}

.content {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.screen {
  display: none;
  min-height: 100%;
  padding: clamp(1.4rem, 4vw, 4rem);
  animation: screenIn 480ms ease both;
}

.screen.active {
  display: block;
}

#home.active {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 2rem;
  align-items: center;
}

.hero-copy p {
  max-width: 640px;
  font-size: 1.05rem;
}

.motion-panel {
  position: relative;
  min-height: 420px;
  border-left: 1px solid var(--line);
}

.pulse-core {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 170px;
  aspect-ratio: 1;
  translate: -50% -50%;
  border: 1px solid rgba(215, 241, 113, 0.42);
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(215, 241, 113, 0.3), transparent 58%),
    rgba(244, 240, 232, 0.03);
  animation: breathe 3.5s ease-in-out infinite;
}

.floating-card {
  position: absolute;
  min-width: 96px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
  color: var(--text);
  padding: 0.8rem 1rem;
  text-align: center;
  text-transform: uppercase;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  animation: float 5s ease-in-out infinite;
}

.card-one {
  left: 14%;
  top: 18%;
}

.card-two {
  right: 8%;
  top: 42%;
  color: var(--accent-two);
  animation-delay: -1.4s;
}

.card-three {
  left: 28%;
  bottom: 16%;
  color: var(--accent-three);
  animation-delay: -2.6s;
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 0.8rem;
  margin-top: 2rem;
}

.tile,
.link-list a {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(244, 240, 232, 0.05);
  color: var(--text);
  text-decoration: none;
}

.tile {
  min-height: 120px;
  padding: 1rem;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin-top: 2rem;
}

.photo-grid div {
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(244, 240, 232, 0.1), rgba(244, 240, 232, 0.02)),
    rgba(255, 255, 255, 0.03);
}

.link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.link-list a {
  padding: 0.8rem 1rem;
  transition: border-color 180ms ease, transform 180ms ease;
}

.link-list a:hover {
  border-color: rgba(215, 241, 113, 0.45);
  transform: translateY(-2px);
}

@keyframes screenIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift {
  to {
    transform: translate3d(2rem, 1.5rem, 0) rotate(12deg);
  }
}

@keyframes breathe {
  50% {
    transform: scale(1.12);
    box-shadow: 0 0 70px rgba(215, 241, 113, 0.16);
  }
}

@keyframes float {
  50% {
    transform: translateY(-18px);
  }
}

@media (max-width: 860px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .menu {
    grid-template-columns: repeat(3, 1fr);
  }

  .menu-item {
    justify-content: center;
  }

  .menu-item::after {
    display: none;
  }

  #home.active {
    grid-template-columns: 1fr;
  }

  .motion-panel {
    min-height: 260px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .tile-grid,
  .photo-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .shell {
    width: min(100% - 1rem, 1180px);
    min-height: calc(100vh - 1rem);
    margin: 0.5rem auto;
  }

  .profile {
    grid-template-columns: 1fr;
  }

  .menu {
    grid-template-columns: 1fr 1fr;
  }

  .menu-item {
    min-height: 44px;
    padding: 0 0.75rem;
  }

  h2 {
    font-size: 2.2rem;
  }
}
