:root {
  --ink: #f8f1df;
  --muted: #c9b98b;
  --paper: #060503;
  --line: rgba(212, 175, 55, 0.22);
  --panel: rgba(17, 14, 9, 0.76);
  --gold: #d4af37;
  --gold-bright: #ffd66b;
  --gold-soft: #8d6f23;
  --deep: #030302;
  --shadow: 0 26px 90px rgba(0, 0, 0, 0.48);
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  z-index: -3;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 12% 14%, rgba(255, 214, 107, 0.18), transparent 24%),
    radial-gradient(circle at 86% 6%, rgba(212, 175, 55, 0.12), transparent 28%),
    linear-gradient(135deg, #020201 0%, #0c0904 48%, #030302 100%);
}

body::after {
  position: fixed;
  z-index: -1;
  inset: 0;
  content: "";
  background-image:
    linear-gradient(rgba(212, 175, 55, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 175, 55, 0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 82%);
}

.live-bg {
  position: fixed;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.85;
}

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  color: #fff;
  background: linear-gradient(180deg, rgba(3, 3, 2, 0.88), rgba(3, 3, 2, 0));
  transition: color 220ms ease, background 220ms ease, border-color 220ms ease, transform 220ms ease;
}

.site-header.is-scrolled {
  color: var(--ink);
  background: rgba(5, 5, 3, 0.78);
  border-bottom: 1px solid rgba(212, 175, 55, 0.22);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 214, 107, 0.65);
  border-radius: 8px;
  color: var(--gold-bright);
  background: rgba(255, 214, 107, 0.08);
  box-shadow: 0 0 28px rgba(212, 175, 55, 0.18);
  font-weight: 800;
  letter-spacing: 0;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 34px);
  font-size: 0.93rem;
  font-weight: 700;
}

nav a {
  position: relative;
  opacity: 0.86;
}

nav a::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--gold-bright), transparent);
  opacity: 0;
  transform: scaleX(0.3);
  transition: opacity 180ms ease, transform 180ms ease;
}

nav a:hover {
  opacity: 1;
  color: var(--gold-bright);
}

nav a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.hero {
  position: relative;
  min-height: 94vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: var(--deep);
}

.hero-image,
.hero-shade,
.gold-orbit {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
  filter: saturate(0.72) sepia(0.42) brightness(0.78);
  transform: scale(1.04);
  animation: heroDrift 22s ease-in-out infinite alternate;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(3, 3, 2, 0.96) 0%, rgba(9, 7, 3, 0.78) 48%, rgba(3, 3, 2, 0.42) 100%),
    linear-gradient(0deg, rgba(3, 3, 2, 0.88), rgba(3, 3, 2, 0.16));
}

.gold-orbit {
  background:
    conic-gradient(from 160deg at 78% 44%, transparent 0deg, rgba(255, 214, 107, 0.18) 42deg, transparent 88deg, transparent 360deg),
    linear-gradient(120deg, transparent 0%, rgba(255, 214, 107, 0.08) 46%, transparent 68%);
  mix-blend-mode: screen;
  opacity: 0.8;
  animation: orbitSweep 12s linear infinite;
}

.hero-content {
  position: relative;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 128px 0 72px;
  animation: heroEnter 900ms ease-out both;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold-bright);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3.4rem, 8vw, 7.6rem);
  line-height: 0.94;
  letter-spacing: 0;
  color: #fff8e3;
  text-shadow: 0 0 34px rgba(212, 175, 55, 0.2);
}

.hero-role {
  max-width: 760px;
  margin: 22px 0 0;
  color: #f0d98c;
  font-size: clamp(1.06rem, 2vw, 1.45rem);
  font-weight: 760;
}

.hero-copy {
  max-width: 700px;
  margin: 22px 0 0;
  color: #d8c99c;
  font-size: clamp(1rem, 1.45vw, 1.18rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.recruiter-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 790px;
  margin-top: 22px;
}

.recruiter-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 214, 107, 0.26);
  border-radius: 999px;
  color: #ffe9a7;
  background: rgba(255, 214, 107, 0.08);
  font-size: 0.82rem;
  font-weight: 800;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 12px 18px;
  border: 1px solid rgba(255, 214, 107, 0.34);
  font-weight: 800;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(212, 175, 55, 0.2);
}

.primary {
  color: #060503;
  background: linear-gradient(135deg, #fff3bd, var(--gold), #8d6f23);
  border-color: rgba(255, 214, 107, 0.7);
}

.secondary {
  color: #080704;
  background: #f8f1df;
  border-color: #f8f1df;
}

.ghost {
  color: #fff;
  background: rgba(212, 175, 55, 0.08);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: min(780px, 100%);
  margin: 52px 0 0;
}

.hero-stats div {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(16, 12, 5, 0.52);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 214, 107, 0.12);
  transition: transform 180ms ease, border-color 180ms ease;
}

.hero-stats div:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 214, 107, 0.42);
}

.hero-stats dt {
  color: #fff3bd;
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  line-height: 1;
  font-weight: 900;
}

.hero-stats dd {
  margin: 8px 0 0;
  color: #d6c492;
  font-size: 0.92rem;
}

.ticker {
  width: 100%;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: rgba(9, 7, 3, 0.74);
}

.ticker div {
  display: flex;
  width: max-content;
  gap: 14px;
  padding: 16px 0;
  animation: tickerMove 28s linear infinite;
}

.ticker span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 214, 107, 0.24);
  border-radius: 8px;
  color: #f9e6a2;
  background: rgba(255, 214, 107, 0.06);
  font-size: 0.84rem;
  font-weight: 850;
  white-space: nowrap;
}

.section {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 92px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 32px;
}

.section-heading h2 {
  text-wrap: balance;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.65rem);
  line-height: 1.04;
}

h3 {
  margin: 0;
  font-size: 1.1rem;
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
  color: var(--muted);
  font-size: 1.08rem;
}

.intro {
  position: relative;
}

.intro::before {
  position: absolute;
  right: 2%;
  top: 18%;
  width: 180px;
  height: 180px;
  content: "";
  border: 1px solid rgba(255, 214, 107, 0.2);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 214, 107, 0.12), transparent 62%);
  animation: pulseRing 4s ease-in-out infinite;
}

.recruiter-panel {
  padding-top: 18px;
}

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

.snapshot-grid article {
  min-height: 190px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 214, 107, 0.12), rgba(255, 214, 107, 0.02) 42%),
    rgba(17, 14, 9, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.snapshot-grid strong {
  display: block;
  color: #fff3bd;
  font-size: 1.22rem;
  line-height: 1.2;
}

.snapshot-grid p {
  margin: 14px 0 0;
  color: var(--muted);
}

.skill-band {
  width: 100%;
  max-width: none;
  padding-inline: max(20px, calc((100vw - 1120px) / 2));
  background:
    linear-gradient(180deg, rgba(255, 214, 107, 0.05), rgba(255, 214, 107, 0.02)),
    rgba(8, 7, 4, 0.82);
  border-block: 1px solid var(--line);
}

.skill-groups,
.project-grid,
.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.skill-groups article,
.proof-grid article,
.project-card,
.timeline-list article,
.contact-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.skill-groups article:hover,
.proof-grid article:hover,
.project-card:hover,
.timeline-list article:hover,
.contact-card:hover,
.snapshot-grid article:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 214, 107, 0.52);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.56), 0 0 32px rgba(212, 175, 55, 0.12);
}

.skill-groups article {
  padding: 22px;
}

.skill-groups p,
.proof-grid p,
.timeline-list p,
.project-card span,
.project-card small,
.contact p,
.intro-grid p {
  color: var(--muted);
}

.timeline-list {
  display: grid;
  gap: 14px;
}

.timeline-list article {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  padding: 24px;
  align-items: start;
}

.timeline-list span {
  color: var(--gold-bright);
  font-size: 0.9rem;
  font-weight: 850;
  grid-row: 1 / span 2;
}

.timeline-list h3 {
  margin-bottom: 8px;
  grid-column: 2;
}

.timeline-list p {
  margin: 0;
  grid-column: 2;
  max-width: 820px;
}

.projects {
  border-top: 1px solid var(--line);
}

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

.project-card {
  min-height: 236px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.project-card::before {
  position: absolute;
  inset: -60% -20%;
  content: "";
  background: linear-gradient(120deg, transparent, rgba(255, 214, 107, 0.14), transparent);
  transform: translateX(-70%) rotate(10deg);
  transition: transform 650ms ease;
}

.project-card:hover::before {
  transform: translateX(70%) rotate(10deg);
}

.project-card > * {
  position: relative;
}

.project-card p {
  margin: 0;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project-card h3 {
  margin: 18px 0;
  font-size: 1.32rem;
  line-height: 1.2;
}

.project-card span {
  display: block;
}

.project-card span::before {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  content: "";
  background: var(--gold-bright);
  box-shadow: 0 0 16px rgba(255, 214, 107, 0.6);
}

.project-card small {
  display: block;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 214, 107, 0.16);
  color: #f1d783;
  font-size: 0.88rem;
  line-height: 1.45;
}

.proof-grid article,
.skill-groups article,
.timeline-list article {
  position: relative;
  overflow: hidden;
}

.proof-grid article::after,
.skill-groups article::after,
.timeline-list article::after {
  position: absolute;
  inset: auto 18px 0;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 214, 107, 0.76), transparent);
  opacity: 0;
  transition: opacity 200ms ease;
}

.proof-grid article:hover::after,
.skill-groups article:hover::after,
.timeline-list article:hover::after {
  opacity: 1;
}

.proof {
  width: 100%;
  max-width: none;
  padding-inline: max(20px, calc((100vw - 1120px) / 2));
  background:
    linear-gradient(135deg, rgba(255, 214, 107, 0.08), transparent 34%),
    #050403;
  color: #fff;
}

.proof .section-heading h2 {
  color: #fff;
}

.proof-grid article {
  padding: 22px;
  color: var(--ink);
}

.proof-grid a {
  display: inline-flex;
  margin-top: 12px;
  color: var(--gold-bright);
  font-weight: 850;
}

.contact {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 42px;
  align-items: start;
}

.contact-card {
  padding: 22px;
  display: grid;
  gap: 12px;
}

.contact-card strong {
  color: #fff3bd;
  font-size: 1.05rem;
}

.contact-card a {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-weight: 800;
  transition: color 160ms ease, transform 160ms ease;
}

.contact-card a:hover {
  color: var(--gold-bright);
  transform: translateX(4px);
}

.contact-card a:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px clamp(20px, 5vw, 72px);
  color: #d8c99c;
  background: var(--deep);
}

footer p {
  margin: 0;
}

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

@keyframes heroDrift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.1) translate3d(-18px, -10px, 0);
  }
}

@keyframes orbitSweep {
  from {
    transform: rotate(0deg) scale(1.05);
  }
  to {
    transform: rotate(360deg) scale(1.05);
  }
}

@keyframes tickerMove {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes pulseRing {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.96);
  }
  50% {
    opacity: 0.76;
    transform: scale(1.06);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 720ms ease, transform 720ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
  }

  nav {
    max-width: 270px;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px 16px;
    font-size: 0.84rem;
  }

  .hero {
    min-height: auto;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(3, 3, 2, 0.96), rgba(9, 7, 3, 0.82)),
      linear-gradient(0deg, rgba(3, 3, 2, 0.74), rgba(3, 3, 2, 0.24));
  }

  .hero-content {
    padding-top: 116px;
  }

  .hero-stats,
  .intro-grid,
  .snapshot-grid,
  .skill-groups,
  .project-grid,
  .proof-grid,
  .contact {
    grid-template-columns: 1fr;
  }

  .ticker div {
    animation-duration: 18s;
  }

  .timeline-list article {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .timeline-list span,
  .timeline-list h3,
  .timeline-list p {
    grid-column: auto;
    grid-row: auto;
  }

  footer {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .site-header {
    padding: 14px 16px;
  }

  .brand {
    width: 38px;
    height: 38px;
  }

  nav {
    gap: 8px 12px;
  }

  .hero-content,
  .section {
    width: calc(100% - 32px);
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }
}
