:root {
  --bg: #07111f;
  --bg-soft: #0f1d33;
  --panel: rgba(11, 20, 36, 0.72);
  --panel-strong: rgba(15, 28, 49, 0.9);
  --border: rgba(255, 255, 255, 0.12);
  --text: #edf2ff;
  --muted: #a8b3cc;
  --accent: #ffb86b;
  --accent-2: #71d7c7;
  --accent-3: #8fa8ff;
  --shadow: 0 20px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(113, 215, 199, 0.16), transparent 28%),
    radial-gradient(circle at top right, rgba(255, 184, 107, 0.12), transparent 26%),
    radial-gradient(circle at bottom center, rgba(143, 168, 255, 0.08), transparent 34%),
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(180deg, #050b14 0%, var(--bg) 44%, #091423 100%);
  background-size: auto, auto, 28px 28px, 28px 28px, auto;
  background-position: center;
  min-height: 100vh;
  overflow-x: hidden;
}

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

.bg-orb,
.grain {
  position: fixed;
  pointer-events: none;
  inset: auto;
  z-index: 0;
}

.bg-orb {
  border-radius: 50%;
  filter: blur(20px);
  opacity: 0.55;
}

.orb-one {
  width: 28rem;
  height: 28rem;
  left: -8rem;
  top: 8rem;
  background: rgba(113, 215, 199, 0.14);
}

.orb-two {
  width: 24rem;
  height: 24rem;
  right: -6rem;
  top: 22rem;
  background: rgba(255, 184, 107, 0.12);
}

.grain {
  inset: 0;
  opacity: 0.08;
  background-image: radial-gradient(rgba(255, 255, 255, 0.85) 0.7px, transparent 0.7px);
  background-size: 18px 18px;
  mix-blend-mode: soft-light;
}

.topbar,
main {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.6rem;
  max-width: 1200px;
  margin: 0 auto;
}

.brand {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 184, 107, 0.92), rgba(113, 215, 199, 0.9));
  color: #08111b;
  font-weight: 700;
  box-shadow: var(--shadow);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(7, 13, 24, 0.5);
  backdrop-filter: blur(18px);
}

.nav a {
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-tabs {
  gap: 0.4rem;
  padding: 0.45rem;
  border-radius: 1.1rem;
}

.tab {
  border: 0;
  border-radius: 999px;
  padding: 0.75rem 1rem;
  color: var(--muted);
  background: transparent;
  font: inherit;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.tab:hover,
.tab:focus-visible {
  color: var(--text);
  transform: translateY(-1px);
}

.tab.active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--text);
}

.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.6rem;
}

.page-arrows {
  position: fixed;
  top: 50%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
  transform: translateY(-50%);
  z-index: 5;
  pointer-events: none;
}

.page-arrow {
  pointer-events: auto;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(7, 13, 24, 0.72);
  color: var(--text);
  font-size: 1.2rem;
  display: grid;
  place-items: center;
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.page-arrow:hover,
.page-arrow:focus-visible {
  transform: scale(1.05);
  background: rgba(18, 31, 53, 0.86);
}

.page-arrow-left {
  margin-left: 0.2rem;
}

.page-arrow-right {
  margin-right: 0.2rem;
}

.panel[hidden] {
  display: none !important;
}

.hero {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 1.5rem;
  min-height: calc(100vh - 5rem);
  align-items: center;
  padding-top: 1.5rem;
}

.hero-copy {
  position: relative;
}

.hero-copy::before {
  content: '';
  position: absolute;
  inset: -1rem auto auto -1rem;
  width: 6rem;
  height: 6rem;
  border-left: 1px solid rgba(113, 215, 199, 0.35);
  border-top: 1px solid rgba(113, 215, 199, 0.35);
}

.hero-copy::after {
  content: 'input / compute / output';
  position: absolute;
  right: 0;
  top: -0.25rem;
  color: rgba(143, 168, 255, 0.7);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent-2);
  font-size: 0.78rem;
  margin-bottom: 0.9rem;
}

h1,
h2,
h3 {
  font-family: 'Fraunces', serif;
  margin: 0;
  line-height: 1.02;
}

h1 {
  font-size: clamp(3rem, 7vw, 6.2rem);
  max-width: 12ch;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  max-width: 16ch;
}

h3 {
  font-size: 1.6rem;
}

.lede,
.section-heading p,
.card p,
.panel-card p,
.contact-card p {
  color: var(--muted);
  line-height: 1.7;
}

.lede {
  max-width: 60ch;
  font-size: 1.1rem;
  margin: 1.5rem 0 0;
}

.hero-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.2rem;
}

.hero-chip {
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #d9e3ff;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.primary {
  background: linear-gradient(135deg, rgba(255, 184, 107, 0.98), rgba(255, 111, 97, 0.86));
  color: #140d05;
  border-color: transparent;
}

.secondary {
  background: rgba(255, 255, 255, 0.03);
}

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

.hero-meta div,
.panel-card,
.card,
.contact-card,
.blog-item,
.creative-item {
  border: 1px solid var(--border);
  border-radius: 1.4rem;
  background: var(--panel);
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow);
}

.hero-meta div {
  padding: 1rem 1.1rem;
}

.hero-meta span,
.item-meta,
.panel-label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-3);
  margin-bottom: 0.4rem;
}

.hero-meta strong {
  font-size: 1rem;
  font-weight: 500;
}

.hero-panel {
  display: grid;
  gap: 1rem;
}

.signal-rig {
  padding-top: 1rem;
  background: linear-gradient(180deg, rgba(8, 14, 28, 0.96), rgba(14, 25, 45, 0.78));
}

.signal-head {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: 0.8rem;
}

.signal-head strong {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.signal-wave {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  align-items: end;
  gap: 0.45rem;
  height: 5rem;
  padding: 1rem 0 0.8rem;
}

.signal-wave span {
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, rgba(113, 215, 199, 0.95), rgba(143, 168, 255, 0.4));
  min-height: 0.7rem;
  animation: pulseBars 1.8s ease-in-out infinite;
}

.signal-wave span:nth-child(1) { height: 18%; animation-delay: 0s; }
.signal-wave span:nth-child(2) { height: 56%; animation-delay: 0.1s; }
.signal-wave span:nth-child(3) { height: 34%; animation-delay: 0.2s; }
.signal-wave span:nth-child(4) { height: 78%; animation-delay: 0.3s; }
.signal-wave span:nth-child(5) { height: 45%; animation-delay: 0.4s; }
.signal-wave span:nth-child(6) { height: 88%; animation-delay: 0.5s; }
.signal-wave span:nth-child(7) { height: 52%; animation-delay: 0.6s; }
.signal-wave span:nth-child(8) { height: 68%; animation-delay: 0.7s; }

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

.signal-readout div {
  padding: 0.8rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.04);
}

.signal-readout span {
  display: block;
  color: var(--accent-3);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  margin-bottom: 0.35rem;
}

.signal-readout strong {
  font-size: 1rem;
  font-weight: 500;
}

.profile-figure {
  margin: 0;
  width: min(100%, 320px);
  aspect-ratio: 1 / 1;
  padding: 0;
  border-radius: 50%;
  overflow: hidden;
  justify-self: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.profile-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  border-radius: 50%;
}

.panel-card {
  padding: 1.4rem;
}

.profile-card {
  background: linear-gradient(180deg, rgba(15, 28, 49, 0.96), rgba(12, 20, 35, 0.72));
}

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

.stats-grid div {
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.04);
}

.stats-grid strong {
  display: block;
  font-size: 1.4rem;
  margin-bottom: 0.35rem;
}

.stats-grid span {
  color: var(--muted);
}

.section-heading {
  margin-bottom: 1.4rem;
}

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

.card,
.blog-item,
.creative-item {
  padding: 1.4rem;
}

.timeline {
  display: grid;
  gap: 1rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 0.9rem;
  align-items: start;
}

.timeline-marker {
  width: 16px;
  height: 16px;
  margin-top: 1.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.03);
}

.timeline-content {
  position: relative;
  overflow: hidden;
}

.timeline-content::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
}

.timeline-content > * {
  margin-left: 0.5rem;
}

.skill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.skill-pill {
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text);
}

.split-section {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 1rem;
  align-items: start;
}

.blog-list,
.creative-grid {
  display: grid;
  gap: 1rem;
}

.blog-item,
.creative-item {
  background: linear-gradient(180deg, rgba(13, 24, 43, 0.9), rgba(9, 17, 31, 0.75));
}

.blog-item h3,
.creative-item h3 {
  margin-bottom: 0.6rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tag {
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 0.85rem;
}

.contact-card {
  padding: 1.8rem;
  background: linear-gradient(135deg, rgba(18, 31, 53, 0.95), rgba(9, 18, 32, 0.82));
}

.reveal {
  animation: liftIn 0.9s ease both;
}

@keyframes pulseBars {
  0%, 100% {
    opacity: 0.75;
    transform: scaleY(0.9);
  }
  50% {
    opacity: 1;
    transform: scaleY(1.05);
  }
}

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

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

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

@media (max-width: 980px) {
  .hero,
  .split-section,
  .about-grid,
  .project-grid,
  .creative-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 3rem;
  }

  .hero-meta {
    grid-template-columns: 1fr;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    width: 100%;
    border-radius: 1.1rem;
  }

  .page-arrows {
    padding: 0 0.5rem;
  }
}

@media (max-width: 640px) {
  .section,
  .topbar {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  h1 {
    max-width: none;
  }

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

  .signal-readout {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    grid-template-columns: 18px 1fr;
  }

  .profile-photo {
    height: 100%;
  }

  .page-arrow {
    width: 2.8rem;
    height: 2.8rem;
  }
}