*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
:root {
  --bg: #0a0a0a;
  --surface: #111111;
  --surface2: #181818;
  --border: rgba(255, 255, 255, 0.08);
  --border2: rgba(255, 255, 255, 0.15);
  --text: #f0ede8;
  --muted: #888;
  --accent: #e8d5a3;
  --accent2: #c4a96e;
  --green: #4ade80;
  --mono: "DM Mono", monospace;
  --serif: "DM Serif Display", serif;
  --sans: "Instrument Sans", sans-serif;
}
html {
  scroll-behavior: smooth;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* NAV */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 3rem;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-decoration: none;
}
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--text);
}

/* HERO */
section {
  padding: 6rem 3rem;
  max-width: 1100px;
  margin: 0 auto;
}
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 8rem;
  position: relative;
  max-width: 100%;
  padding-left: 3rem;
  padding-right: 3rem;
}
.hero-tag {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.hero-tag::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 1px;
  background: var(--accent);
}
.hero-name {
  font-family: var(--serif);
  font-size: clamp(3.5rem, 8vw, 7rem);
  line-height: 1;
  color: var(--text);
  margin-bottom: 0.3rem;
}
.hero-name em {
  font-style: italic;
  color: var(--accent);
}
.hero-subtitle {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-bottom: 2.5rem;
  margin-top: 1rem;
  max-width: 580px;
  line-height: 1.8;
}
.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.btn {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  padding: 0.75rem 1.75rem;
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-primary {
  background: var(--accent);
  color: #0a0a0a;
  border: 1px solid var(--accent);
  font-weight: 600;
}
.btn-primary:hover {
  background: var(--accent2);
  border-color: var(--accent2);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border2);
}
.btn-ghost:hover {
  border-color: var(--text);
}
.hero-scroll {
  position: absolute;
  bottom: 3rem;
  left: 3rem;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.hero-scroll::after {
  content: "";
  display: block;
  width: 1px;
  height: 40px;
  background: var(--border2);
}
.hero-stats {
  position: absolute;
  right: 3rem;
  bottom: 3rem;
  display: flex;
  gap: 2.5rem;
}
.stat {
  text-align: right;
}
.stat-number {
  font-family: var(--serif);
  font-size: 2.2rem;
  color: var(--accent);
  line-height: 1;
}
.stat-label {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.3rem;
}

/* SECTION HEADERS */
.section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
}
.section-tag {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.section-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text);
  margin-bottom: 1rem;
}

/* ABOUT */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.about-text p {
  color: var(--muted);
  margin-bottom: 1rem;
  line-height: 1.8;
  font-size: 14px;
}
.about-text p strong {
  color: var(--text);
  font-weight: 600;
}
.about-text p em {
  color: var(--accent);
  font-style: italic;
}
.about-note {
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 0.06em;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  line-height: 1.6;
}

/* RANKING */
.ranking-block {
  margin: 1.5rem 0 2rem;
  border: 1px solid var(--border);
}
.ranking-label {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.ranking-row {
  display: grid;
  grid-template-columns: 36px 1fr 80px;
  align-items: center;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--border);
  gap: 0.75rem;
}
.ranking-row:last-child {
  border-bottom: none;
}
.ranking-row.ours {
  background: rgba(232, 213, 163, 0.05);
}
.rank-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}
.rank-num.top {
  color: var(--accent);
  font-weight: 500;
}
.rank-event {
  font-size: 13px;
  color: var(--text);
}
.rank-event.ours-text {
  color: var(--accent);
  font-weight: 600;
}
.rank-size {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  text-align: right;
}
.rank-badge {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--accent2);
  background: rgba(196, 169, 110, 0.1);
  border: 1px solid rgba(196, 169, 110, 0.2);
  padding: 1px 5px;
  border-radius: 1px;
  margin-left: 6px;
  vertical-align: middle;
}

/* SKILLS */
.skills-block {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.skill-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.skill-header {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}
.skill-bar {
  height: 2px;
  background: var(--border);
  border-radius: 1px;
  overflow: hidden;
}
.skill-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 1px;
  animation: grow 1s ease forwards;
  transform-origin: left;
}
@keyframes grow {
  from {
    width: 0;
  }
}

/* PROJECTS */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.project-card {
  background: var(--bg);
  padding: 2.5rem;
  transition: background 0.2s;
  position: relative;
  display: flex;
  flex-direction: column;
}
.project-card:hover {
  background: var(--surface2);
}
.project-number {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--border2);
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}
.project-title {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}
.project-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  flex: 1;
}
.project-desc em {
  color: rgba(255, 255, 255, 0.3);
  font-style: normal;
}
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.2rem;
}
.tag {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--accent2);
  border: 1px solid rgba(196, 169, 110, 0.25);
  padding: 0.25rem 0.6rem;
  border-radius: 1px;
  letter-spacing: 0.05em;
}
.tag-rank {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--green);
  border: 1px solid rgba(74, 222, 128, 0.25);
  padding: 0.25rem 0.6rem;
  border-radius: 1px;
  letter-spacing: 0.05em;
}
.tag-tech {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--accent);
  border: 1px solid rgba(232, 213, 163, 0.2);
  padding: 0.25rem 0.6rem;
  border-radius: 1px;
  letter-spacing: 0.05em;
}
.project-links {
  display: flex;
  gap: 0.75rem;
  margin-top: auto;
}
.project-link {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.85rem;
  border-radius: 1px;
  text-decoration: none;
  transition: all 0.2s;
}
.link-demo {
  background: var(--accent);
  color: #0a0a0a;
  font-weight: 600;
}
.link-demo:hover {
  background: var(--accent2);
}
.link-repo {
  border: 1px solid var(--border2);
  color: var(--muted);
}
.link-repo:hover {
  border-color: var(--text);
  color: var(--text);
}

/* AWARDS */
.achievements-list {
  display: flex;
  flex-direction: column;
}
.achievement-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}
.achievement-item:first-child {
  border-top: 1px solid var(--border);
}
.achievement-year {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
}
.achievement-title {
  font-size: 14px;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 0.2rem;
}
.achievement-sub {
  font-size: 12px;
  color: var(--muted);
}
.achievement-badge {
  font-family: var(--mono);
  font-size: 10px;
  padding: 0.3rem 0.8rem;
  border-radius: 1px;
  white-space: nowrap;
}
.badge-gold {
  background: rgba(232, 213, 163, 0.1);
  color: var(--accent);
  border: 1px solid rgba(232, 213, 163, 0.2);
}
.badge-silver {
  background: rgba(136, 136, 136, 0.1);
  color: #aaa;
  border: 1px solid rgba(136, 136, 136, 0.2);
}
.badge-green {
  background: rgba(74, 222, 128, 0.1);
  color: var(--green);
  border: 1px solid rgba(74, 222, 128, 0.2);
}

/* CONTACT */
.contact-inner {
  max-width: 600px;
}
.contact-lead {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--text);
  margin-bottom: 1rem;
  line-height: 1.2;
}
.contact-sub {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}
.contact-links {
  display: flex;
  flex-direction: column;
}
.contact-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: padding-left 0.2s;
}
.contact-link:first-child {
  border-top: 1px solid var(--border);
}
.contact-link:hover {
  padding-left: 0.5rem;
}
.contact-link-label {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text);
  letter-spacing: 0.04em;
}
.contact-link-value {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

/* FOOTER */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
footer span {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.05em;
}

/* GRID LINES */
.grid-line {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.02);
  pointer-events: none;
}

/* MOBILE */
@media (max-width: 768px) {
  nav {
    padding: 1rem 1.5rem;
  }
  section {
    padding: 4rem 1.5rem;
  }
  #hero {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .hero-stats {
    position: static;
    margin-top: 3rem;
    justify-content: flex-start;
  }
  .achievement-item {
    grid-template-columns: 60px 1fr;
  }
  .achievement-badge {
    display: none;
  }
  footer {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

/* HERO PHOTO */
.hero-photo {
  position: absolute;
  right: 7rem;
  top: 50%;
  transform: translateY(-50%);
  width: 310px;
  height: 310px;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  border: 1px solid var(--border2);
  filter: grayscale(20%);
  display: block;
}
@media (max-width: 768px) {
  .hero-photo {
    position: static;
    width: 140px;
    height: 140px;
    margin-top: 2rem;
  }
}
