*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy: #0d1b2a;
  --navy-mid: #1a2f45;
  --navy-light: #243d57;
  --gold: #a06e20;
  --gold-dark: #7a5218;
  --gold-light: #e8b96a;
  --gold-pale: #f5e6cc;
  --cream: #faf7f2;
  --white: #ffffff;
  --text-dark: #1a1a2e;
  --text-mid: #3d4a5c;
  --text-light: #555f6e;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
}

/* NAV */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(13, 27, 42, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(200, 145, 58, 0.2);
}

.nav-name {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--gold-light);
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: color 0.2s, opacity 0.2s;
}

.nav-name:hover {
  color: var(--white);
  opacity: 0.95;
}

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  z-index: 200;
  pointer-events: none;
  transition: width 0.05s linear;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.82rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--gold-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.nav-links a.active {
  color: var(--gold-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--gold);
  color: var(--navy);
  padding: 0.6em 1.2em;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.9rem;
  z-index: 200;
  text-decoration: none;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 1rem;
  outline: 2px solid var(--gold-light);
  outline-offset: 2px;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
}

.nav-toggle {
  -webkit-appearance: none;
  appearance: none;
  background: none;
  border: none;
  padding: 0.4rem;
  cursor: pointer;
  display: none;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold-light);
  transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* HERO */
.hero {
  min-height: 100vh;
  background: var(--navy);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 6rem 2rem 4rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 70% 60%, rgba(200, 145, 58, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 10% 80%, rgba(36, 61, 87, 0.6) 0%, transparent 70%);
}

.hero-skyline {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 55%;
  height: 60%;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 300'%3E%3Crect x='100' y='120' width='30' height='180' fill='%23fff'/%3E%3Crect x='140' y='80' width='25' height='220' fill='%23fff'/%3E%3Crect x='175' y='100' width='35' height='200' fill='%23fff'/%3E%3Crect x='220' y='60' width='20' height='240' fill='%23fff'/%3E%3Crect x='250' y='90' width='28' height='210' fill='%23fff'/%3E%3Crect x='290' y='40' width='22' height='260' fill='%23fff'/%3E%3Crect x='322' y='70' width='32' height='230' fill='%23fff'/%3E%3Crect x='364' y='55' width='18' height='245' fill='%23fff'/%3E%3Crect x='392' y='85' width='26' height='215' fill='%23fff'/%3E%3Crect x='428' y='110' width='30' height='190' fill='%23fff'/%3E%3Crect x='468' y='75' width='22' height='225' fill='%23fff'/%3E%3Crect x='500' y='95' width='28' height='205' fill='%23fff'/%3E%3Crect x='538' y='50' width='20' height='250' fill='%23fff'/%3E%3C/svg%3E");
  background-size: cover;
  background-position: bottom;
}

.hero-content {
  position: relative;
  max-width: 680px;
  animation: fadeUp 0.9s ease both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-eyebrow {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
  animation: fadeUp 0.9s 0.1s ease both;
}

.hero-name {
  font-family: var(--serif);
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  font-weight: 300;
  line-height: 1.0;
  color: var(--white);
  margin-bottom: 0.3em;
  animation: fadeUp 0.9s 0.2s ease both;
}

.hero-name em {
  font-style: italic;
  color: var(--gold-light);
}

.hero-tagline {
  font-family: var(--serif);
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 300;
  font-style: italic;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 2.5rem;
  animation: fadeUp 0.9s 0.3s ease both;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 3rem;
  animation: fadeUp 0.9s 0.4s ease both;
}

.pill {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  padding: 0.35em 1em;
  border: 1px solid rgba(200, 145, 58, 0.4);
  color: rgba(255, 255, 255, 0.7);
  border-radius: 100px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--gold);
  padding: 0.75em 2em;
  border-radius: 100px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
  animation: fadeUp 0.9s 0.5s ease both;
}

.hero-cta:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
  transition: opacity 0.4s ease;
}

.hero-scroll.hidden {
  opacity: 0;
  pointer-events: none;
  animation: none;
}

.hero-scroll::after {
  content: '';
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(200, 145, 58, 0.6), transparent);
}

@keyframes bounce {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(6px);
  }
}

/* SECTIONS */
section {
  padding: 6rem 2rem;
  scroll-margin-top: 5rem;
}

/* Section entrance animations */
.reveal {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.container {
  max-width: 1000px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.8rem;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--navy);
  margin-bottom: 1.5rem;
}

.section-title em {
  font-style: italic;
  color: var(--gold-dark);
}

/* ABOUT */
#about {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 5rem;
  align-items: start;
}

.about-aside {
  position: sticky;
  top: 6rem;
}

.about-stat {
  border-left: 2px solid var(--gold);
  padding-left: 1.2rem;
  margin-bottom: 2rem;
}

.about-stat-number {
  font-family: var(--serif);
  font-size: 2.8rem;
  font-weight: 300;
  color: var(--navy);
  line-height: 1;
}

.about-stat-label {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-light);
  letter-spacing: 0.05em;
  margin-top: 0.2rem;
}

.about-body p {
  font-size: 1rem;
  color: var(--text-mid);
  margin-bottom: 1.4rem;
  line-height: 1.8;
}

.about-body p:first-child {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--text-dark);
  line-height: 1.7;
}

/* TIMELINE */
#timeline .section-title em {
  color: var(--gold-light);
}

#contact .section-title em {
  color: var(--gold-light);
}

#timeline {
  background: var(--navy);
}

#timeline .section-title {
  color: var(--white);
}

#timeline .section-label {
  color: var(--gold-light);
}

.timeline {
  position: relative;
  margin-top: 3rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--gold), rgba(200, 145, 58, 0.1));
}

.timeline-item {
  padding-left: 2.5rem;
  padding-bottom: 3rem;
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -4px;
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--navy);
}

.timeline-year {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 0.3rem;
}

.timeline-role {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--white);
  margin-bottom: 0.4rem;
}

.timeline-org {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.6rem;
}

.timeline-desc {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  max-width: 560px;
}

/* PROJECTS */
#projects {
  background: var(--cream);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.project-card {
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 12px;
  padding: 1.8rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
  border-color: rgba(200, 145, 58, 0.25);
}

.project-card:hover::before {
  transform: scaleX(1);
}

.project-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.8rem;
}

.project-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  flex-shrink: 0;
  background: var(--cream);
  object-fit: contain;
}

.project-tag {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0;
}

.project-name {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 0.6rem;
  line-height: 1.2;
}

.project-desc {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 1.4rem;
}

.project-link {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-dark);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.project-link::after {
  content: '→';
  transition: transform 0.2s;
}

.project-card:hover .project-link::after {
  transform: translateX(4px);
}

.build-note {
  margin-top: 2.5rem;
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-left: 3px solid var(--gold);
  border-radius: 12px;
  padding: 2.2rem 2.4rem;
}

.build-note-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.6rem;
}

.build-note-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  flex-shrink: 0;
  background: var(--cream);
  object-fit: contain;
}

.build-note-eyebrow {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0;
}

.build-note-title {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 1rem;
  max-width: 640px;
}

.build-note-lead {
  font-size: 0.92rem;
  color: var(--text-mid);
  line-height: 1.7;
  max-width: 640px;
}

.build-note-lead a {
  color: var(--gold-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.build-note-flow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-top: 1.4rem;
}

.build-note-flow-item {
  background: var(--cream);
  border-radius: 8px;
  padding: 1rem 1.2rem;
}

.build-note-flow-label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.45rem;
}

.build-note-flow-path {
  font-size: 0.85rem;
  color: var(--text-mid);
  line-height: 1.55;
}

.build-note-list {
  margin: 1rem 0 1.4rem;
  padding-left: 1.2rem;
  max-width: 640px;
}

.build-note-list li {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 0.6rem;
}

@media (max-width: 640px) {
  .build-note {
    padding: 1.6rem;
  }

  .build-note-flow {
    grid-template-columns: 1fr;
  }
}

/* SKILLS */
#skills {
  background: var(--white);
}

.skills-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 3rem;
}

.skills-column-title {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 300;
  font-style: italic;
  color: var(--navy);
  margin-bottom: 1.8rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(200, 145, 58, 0.3);
}

.skill-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.skill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  margin-top: 0.55rem;
  flex-shrink: 0;
}

.skill-name {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 0.15rem;
}

.skill-detail {
  font-size: 0.8rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* CONTACT */
#contact {
  background: var(--navy);
  text-align: center;
}

#contact .section-title {
  color: var(--white);
}

#contact .section-label {
  color: var(--gold-light);
}

.contact-sub {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.75);
  max-width: 480px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.contact-form {
  max-width: 560px;
  margin: 0 auto;
  text-align: left;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-field {
  margin-bottom: 1rem;
}

.form-field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 0.45rem;
}

.form-field input,
.form-field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(200, 145, 58, 0.25);
  border-radius: 8px;
  padding: 0.75em 1em;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200, 145, 58, 0.2);
}

.form-field textarea {
  resize: vertical;
  min-height: 120px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

.form-status {
  margin-top: 1.2rem;
  font-size: 0.9rem;
  color: var(--gold-light);
  text-align: center;
}

.form-status.error {
  color: #f5a8a8;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.75em 2em;
  border-radius: 100px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.contact-btn-primary {
  background: var(--gold-light);
  color: var(--navy);
  font-weight: 700;
}

.contact-btn-primary:hover {
  background: var(--gold);
  transform: translateY(-2px);
}

.contact-btn-primary:disabled {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}

.contact-btn-secondary {
  border: 1px solid rgba(200, 145, 58, 0.4);
  color: rgba(255, 255, 255, 0.85);
  background: transparent;
}

.contact-btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold-light);
  transform: translateY(-2px);
}

@media (max-width: 700px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* FOOTER */
footer {
  background: #080f17;
  padding: 2rem;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.05em;
}

footer a {
  color: #e8b96a;
  text-decoration: underline;
  text-underline-offset: 3px;
}

footer a:hover {
  color: var(--gold-light);
}

/* RESPONSIVE */
@media (max-width: 700px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-aside {
    position: static;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
  }

  .skills-split {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(13, 27, 42, 0.98);
    border-bottom: 1px solid rgba(200, 145, 58, 0.25);
    padding: 0.5rem 0 1rem;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    display: block;
    padding: 0.9rem 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-content,
  .hero-eyebrow,
  .hero-name,
  .hero-tagline,
  .hero-pills,
  .hero-cta,
  .hero-scroll {
    animation: none;
  }

  .nav-toggle span {
    transition: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
