@import url("https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Outfit:wght@300;400;500;600;700&display=swap");

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
}

:root {
  --bg: hsl(228, 20%, 7%);
  --bg-alt: hsl(228, 18%, 9%);
  --bg-card: hsl(228, 18%, 11%);
  --bg-card-2: hsl(228, 16%, 14%);

  --text: hsl(40, 20%, 90%);
  --text-dim: hsl(40, 10%, 58%);
  --text-muted: hsl(40, 8%, 38%);

  --gold: hsl(43, 88%, 58%);
  --gold-light: hsl(45, 90%, 72%);
  --gold-dim: hsl(40, 60%, 38%);
  --gold-rgb: 232, 180, 62;
  --gold-glow: rgba(232, 180, 62, 0.18);

  --border: hsla(40, 20%, 100%, 0.07);
  --border-hover: hsla(40, 20%, 100%, 0.14);
  --border-gold: hsla(43, 88%, 58%, 0.28);

  --font-display: "Instrument Serif", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;

  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.25rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;
  --sp-32: 8rem;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 22px;
  --r-pill: 9999px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35), 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 6px 24px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.55), 0 4px 16px rgba(0, 0, 0, 0.35);
  --shadow-gold: 0 8px 40px rgba(232, 180, 62, 0.22);

  --nav-h: 68px;

  --section-py: clamp(5rem, 10vw, 8rem);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 128px;
}

.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}
.orb-1 {
  width: clamp(400px, 55vw, 700px);
  height: clamp(400px, 55vw, 700px);
  background: var(--gold);
  opacity: 0.055;
  top: -20%;
  left: -15%;
  animation: driftA 26s ease-in-out infinite alternate;
}
.orb-2 {
  width: clamp(300px, 40vw, 560px);
  height: clamp(300px, 40vw, 560px);
  background: hsl(210, 60%, 50%);
  opacity: 0.04;
  bottom: 5%;
  right: -12%;
  animation: driftB 32s ease-in-out infinite alternate;
}
@keyframes driftA {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(50px, 70px) scale(1.1);
  }
}
@keyframes driftB {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(-60px, -40px) scale(1.07);
  }
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
  position: relative;
  z-index: 1;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 100;
  background: hsla(228, 20%, 7%, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}
.nav-logo {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.nav-logo span {
  color: var(--gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
  list-style: none;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-dim);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-links a:hover {
  color: var(--text);
}
.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: var(--sp-2);
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-dim);
  border-radius: 2px;
  transition: 0.25s;
}
.nav-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile nav */
@media (max-width: 640px) {
  .nav-toggle {
    display: flex;
  }
  .nav-links {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: hsl(228, 20%, 9%);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--sp-6) clamp(1.25rem, 5vw, 3rem);
    gap: var(--sp-5);
    display: none;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    font-size: 1rem;
  }
}

section {
  position: relative;
  z-index: 1;
  padding: var(--section-py) 0;
}
#hero {
  padding: 0;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--sp-4);
}
.section-label::before {
  content: "";
  display: block;
  width: 22px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--text);
}
.section-title em {
  font-style: italic;
  color: var(--gold);
}

#hero {
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding-top: var(--nav-h);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--sp-16);
  align-items: center;
  padding: clamp(4rem, 10vw, 7rem) 0;
}
@media (max-width: 820px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-10);
  }
  .hero-right {
    display: none;
  }
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--sp-6);
}
.hero-tag::before {
  content: "";
  display: block;
  width: 28px;
  height: 1px;
  background: var(--gold);
}
.hero-tag-dot {
  width: 5px;
  height: 5px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse 2.5s ease-in-out infinite;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.7);
  }
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(3.6rem, 9vw, 7.5rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: var(--sp-6);
}
.hero-name em {
  font-style: italic;
  color: var(--gold);
  display: block;
}

.hero-roles {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-6);
}
.role-pill {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 5px 14px;
  transition:
    border-color 0.2s,
    color 0.2s;
}
.role-pill:hover {
  border-color: var(--border-gold);
  color: var(--gold-light);
}

.hero-bio {
  font-size: clamp(1rem, 1.8vw, 1.1rem);
  color: var(--text-dim);
  line-height: 1.8;
  max-width: 520px;
  margin-bottom: var(--sp-10);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  margin-bottom: var(--sp-10);
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: var(--r-md);
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition:
    transform 0.15s,
    box-shadow 0.2s,
    background 0.2s;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(0);
}
.btn-primary {
  background: var(--gold);
  color: hsl(228, 25%, 8%);
  border: none;
}
.btn-primary:hover {
  box-shadow: var(--shadow-gold);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--border-gold);
  background: hsla(43, 88%, 58%, 0.06);
}

.hero-socials {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}
.hero-socials-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.social-divider {
  width: 1px;
  height: 20px;
  background: var(--border);
}
.social-links {
  display: flex;
  gap: var(--sp-3);
}
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  color: var(--text-dim);
  text-decoration: none;
  transition:
    border-color 0.2s,
    color 0.2s,
    background 0.2s,
    transform 0.15s;
}
.social-link svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.social-link:hover {
  border-color: var(--border-gold);
  color: var(--gold);
  background: hsla(43, 88%, 58%, 0.07);
  transform: translateY(-2px);
}

.hero-card {
  width: clamp(220px, 24vw, 300px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--sp-8);
  position: relative;
  overflow: hidden;
}
.hero-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.hero-card-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-dim), var(--gold));
  margin-bottom: var(--sp-4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}
.hero-card-name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: var(--sp-1);
}
.hero-card-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: var(--sp-6);
}
.hero-card-stat {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.stat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
}
.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.stat-val {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold-light);
}

.scroll-hint {
  position: absolute;
  bottom: clamp(1.5rem, 4vw, 2.5rem);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  color: var(--text-muted);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  z-index: 1;
}
.scroll-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, var(--gold-dim), transparent);
  animation: scrollBlink 2.2s ease-in-out infinite;
}
@keyframes scrollBlink {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.9;
  }
}

#about {
  background: var(--bg-alt);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
@media (max-width: 820px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

.about-text p {
  font-size: 1.05rem;
  color: var(--text-dim);
  line-height: 1.85;
  margin-bottom: var(--sp-4);
}
.about-text p:last-child {
  margin-bottom: 0;
}

.interests-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
}
@media (max-width: 420px) {
  .interests-grid {
    grid-template-columns: 1fr;
  }
}

.interest-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-6) var(--sp-5);
  transition:
    border-color 0.25s,
    transform 0.25s,
    box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}
.interest-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.interest-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.interest-card:hover::after {
  opacity: 1;
}
.interest-icon {
  font-size: 1.6rem;
  margin-bottom: var(--sp-3);
  display: block;
}
.interest-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  display: block;
  margin-bottom: 3px;
}
.interest-sub {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.skills-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
@media (max-width: 700px) {
  .skills-layout {
    grid-template-columns: 1fr;
  }
}

.skills-desc {
  font-size: 1rem;
  color: var(--text-dim);
  line-height: 1.8;
}

.skills-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

.skill-row {
  display: grid;
  grid-template-columns: 150px 1fr 42px;
  align-items: center;
  gap: var(--sp-4);
  cursor: default;
  border-radius: var(--r-sm);
  padding: var(--sp-2) var(--sp-3);
  margin: 0 calc(-1 * var(--sp-3));
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.skill-row:hover {
  transform: scale(1.018);
}
@media (max-width: 480px) {
  .skill-row {
    grid-template-columns: 110px 1fr 38px;
    gap: var(--sp-3);
  }
}

.skill-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.2s;
}
.skill-row:hover .skill-name {
  color: var(--text);
}

.skill-bar {
  height: 4px;
  background: hsla(0, 0%, 100%, 0.06);
  border-radius: var(--r-pill);
  overflow: visible;
  transition:
    height 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s;
}
.skill-row:hover .skill-bar {
  height: 8px;
  box-shadow: 0 0 10px rgba(232, 180, 62, 0.2);
}

.skill-fill {
  height: 100%;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--gold-dim), var(--gold));
  transform-origin: left;
  transform: scaleX(0);
  transition:
    transform 1s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s;
}
.skill-fill.animated {
  transform: scaleX(var(--target));
}
.skill-row:hover .skill-fill {
  box-shadow: 0 0 14px rgba(232, 180, 62, 0.5);
}

.skill-pct {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--gold-dim);
  text-align: right;
  transition: color 0.2s;
}
.skill-row:hover .skill-pct {
  color: var(--gold);
}

#journey {
  background: var(--bg-alt);
}

.timeline-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
@media (max-width: 820px) {
  .timeline-wrap {
    grid-template-columns: 1fr;
  }
}

.timeline-heading {
  margin-bottom: var(--sp-10);
}

.timeline {
  position: relative;
  padding-left: var(--sp-8);
}
.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--gold), transparent);
}

.tl-item {
  position: relative;
  padding-bottom: var(--sp-8);
  padding-left: var(--sp-4);
  padding-top: var(--sp-2);
  margin-left: calc(-1 * var(--sp-4));
  border-left: 2px solid transparent;
  border-radius: 0 var(--r-md) var(--r-md) 0;
  opacity: 0;
  transform: translateX(-12px);
  cursor: default;
  transition:
    opacity 0.55s ease,
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.3s,
    border-color 0.3s,
    padding-bottom 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    padding-top 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.tl-item.visible {
  opacity: 1;
  transform: translateX(0);
}
.tl-item:last-child {
  padding-bottom: 0;
}
.tl-item:hover {
  background: hsla(43, 88%, 58%, 0.05);
  border-left-color: var(--gold-dim);
  padding-top: var(--sp-4);
  padding-bottom: calc(var(--sp-8) + var(--sp-3));
}
.tl-item:last-child:hover {
  padding-bottom: var(--sp-4);
}
.tl-item:hover .tl-title {
  color: var(--gold-light);
}
.tl-item:hover .tl-dot {
  background: var(--gold-light);
  box-shadow:
    0 0 0 3px var(--bg-alt),
    0 0 0 4.5px var(--gold),
    0 0 14px rgba(232, 180, 62, 0.55);
}

.tl-dot {
  position: absolute;
  left: calc(-1 * var(--sp-8) - 4px);
  top: 7px;
  width: 9px;
  height: 9px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow:
    0 0 0 3px var(--bg-alt),
    0 0 0 4.5px var(--gold-dim);
}

.tl-date {
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  color: var(--gold);
  margin-bottom: var(--sp-1);
  text-transform: uppercase;
}
.tl-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
  line-height: 1.3;
}
.tl-org {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: var(--sp-2);
}
.tl-body {
  font-size: 0.875rem;
  color: var(--text-dim);
  line-height: 1.75;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: var(--sp-6);
  margin-top: var(--sp-12);
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-8);
  position: relative;
  overflow: hidden;
  cursor: default;
  will-change: transform;
  transition:
    border-color 0.25s,
    box-shadow 0.25s;
}
.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at var(--mx, 50%) var(--my, 50%),
    rgba(var(--gold-rgb), 0.07) 0%,
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  z-index: 0;
}
.project-card:hover {
  border-color: var(--border-gold);
  box-shadow: var(--shadow-md);
}
.project-card:hover::before {
  opacity: 1;
}
.project-card > * {
  position: relative;
  z-index: 1;
}

.project-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 2;
}
.project-card:hover::after {
  opacity: 1;
}

.project-number {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 3.2rem;
  color: hsla(43, 88%, 58%, 0.06);
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-6);
  line-height: 1;
  user-select: none;
  z-index: 0;
  transition: color 0.3s;
}
.project-card:hover .project-number {
  color: hsla(43, 88%, 58%, 0.1);
}

.project-type {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--sp-3);
  display: block;
}
.project-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--sp-3);
  line-height: 1.3;
}
.project-desc {
  font-size: 0.875rem;
  color: var(--text-dim);
  line-height: 1.75;
  margin-bottom: var(--sp-6);
}
.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}
.project-link {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-dim);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 5px 12px;
  transition:
    color 0.2s,
    border-color 0.2s,
    background 0.2s;
}
.project-link:hover {
  color: var(--gold-light);
  border-color: var(--border-gold);
  background: hsla(43, 88%, 58%, 0.07);
}
.project-link svg {
  width: 11px;
  height: 11px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.project-card.empty {
  border-style: dashed;
  border-color: hsla(0, 0%, 100%, 0.09);
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.empty-icon {
  width: 44px;
  height: 44px;
  border: 1px dashed hsla(43, 88%, 58%, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: var(--sp-4);
  transition: border-color 0.25s;
}
.project-card.empty:hover .empty-icon {
  border-color: hsla(43, 88%, 58%, 0.5);
}
.empty-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

#contact {
  background: var(--bg-alt);
}

.contact-heading {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1.05;
  color: var(--text);
  margin-bottom: var(--sp-4);
}
.contact-heading em {
  font-style: italic;
  color: var(--gold);
}
.contact-sub {
  font-size: 1rem;
  color: var(--text-dim);
  line-height: 1.8;
  max-width: 560px;
  margin-bottom: var(--sp-10);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
@media (max-width: 820px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.contact-link {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  text-decoration: none;
  color: var(--text);
  transition:
    border-color 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
}
.contact-link:hover {
  border-color: var(--border-gold);
  transform: translateX(5px);
  box-shadow: var(--shadow-sm);
}
.cl-icon {
  width: 38px;
  height: 38px;
  background: hsla(43, 88%, 58%, 0.07);
  border: 1px solid var(--border-gold);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
}
.cl-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cl-text {
  display: flex;
  flex-direction: column;
}
.cl-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.cl-value {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}

.contact-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  position: relative;
  overflow: hidden;
}
.contact-form-wrap::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

.cf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}
@media (max-width: 560px) {
  .cf-row {
    grid-template-columns: 1fr;
  }
}

.cf-field {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.cf-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.cf-input {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 11px 14px;
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    background 0.2s;
  width: 100%;
}
.cf-input::placeholder {
  color: var(--text-muted);
}
.cf-input:focus {
  border-color: var(--gold-dim);
  box-shadow: 0 0 0 3px rgba(232, 180, 62, 0.1);
  background: hsl(228, 18%, 13%);
}

.cf-textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}

.cf-submit {
  width: 100%;
  justify-content: center;
  gap: var(--sp-3);
  padding: 14px 28px;
  font-size: 0.95rem;
}
.cf-submit svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s;
}
.cf-submit:hover svg {
  transform: translate(2px, -2px);
}
.cf-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.cf-success {
  display: none;
  font-size: 0.9rem;
  color: var(--gold-light);
  text-align: center;
  padding: var(--sp-3);
  border: 1px solid var(--border-gold);
  border-radius: var(--r-md);
  background: hsla(43, 88%, 58%, 0.06);
}
.cf-success.show {
  display: block;
}

.cf-note {
  margin-top: var(--sp-4);
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
}
.cf-note a {
  color: var(--gold-dim);
  text-decoration: none;
}
.cf-note a:hover {
  color: var(--gold);
}

footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: var(--sp-8) 0;
}
footer .inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-4);
}
.footer-logo {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-dim);
}
.footer-logo span {
  color: var(--gold);
}
.footer-copy {
  font-size: 0.78rem;
  color: var(--text-muted);
}

#cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  background: rgba(232, 180, 62, 0.12);
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition:
    width 0.2s,
    height 0.2s,
    background 0.2s,
    border-color 0.2s;
  will-change: transform;
  mix-blend-mode: screen;
}
#cursor-dot.cursor-grow {
  width: 32px;
  height: 32px;
  background: rgba(232, 180, 62, 0.18);
  border-color: var(--gold-light);
}
/* Hide on touch devices */
@media (hover: none) {
  #cursor-dot {
    display: none;
  }
}

.tl-item {
  border-left: 2px solid transparent;
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding-left: var(--sp-4);
  margin-left: calc(-1 * var(--sp-4));
  transition:
    opacity 0.55s ease,
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.25s,
    border-color 0.25s,
    padding 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: default;
}
.tl-item.hovered {
  background: hsla(43, 88%, 58%, 0.04);
  border-left-color: var(--gold-dim);
  padding-top: var(--sp-3);
  padding-bottom: calc(var(--sp-8) + var(--sp-3));
}
.tl-item.hovered .tl-title {
  color: var(--gold-light);
}
.tl-item.hovered .tl-dot {
  background: var(--gold-light);
  box-shadow:
    0 0 0 3px var(--bg-alt),
    0 0 0 4.5px var(--gold),
    0 0 12px rgba(232, 180, 62, 0.5);
}

.skill-row {
  cursor: default;
  border-radius: var(--r-sm);
  padding: var(--sp-2) var(--sp-3);
  margin: 0 calc(-1 * var(--sp-3));
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.skill-bar {
  transition:
    height 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.25s;
}
.skill-fill {
  transition:
    transform 1s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.25s;
}
.skill-name {
  transition: color 0.2s;
}
.skill-pct {
  transition: color 0.2s;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Cascade delays */
.d1 {
  transition-delay: 0s;
}
.d2 {
  transition-delay: 0.1s;
}
.d3 {
  transition-delay: 0.2s;
}
.d4 {
  transition-delay: 0.32s;
}
.d5 {
  transition-delay: 0.44s;
}
.d6 {
  transition-delay: 0.56s;
}

@media (max-width: 360px) {
  .hero-name {
    font-size: 3rem;
  }
  .hero-cta {
    flex-direction: column;
  }
  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Wide screens */
@media (min-width: 1600px) {
  :root {
    --section-py: 9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
