/* ============================================
   MONOLITH — George Denton Portfolio
   High-contrast, B&W, dramatic typography
   ============================================ */

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

:root {
  --black: #0a0a0a;
  --white: #f7f7f5;
  --gray: #888;
  --gray-dark: #444;
  --gray-light: #bbb;
  --rule: rgba(255,255,255,0.1);
  --rule-dark: rgba(0,0,0,0.08);
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* --- Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Bands --- */
.band {
  padding: 6rem 3rem;
}
.band--black {
  background: var(--black);
  color: var(--white);
}
.band--white {
  background: var(--white);
  color: var(--black);
}
.band__inner {
  max-width: 1100px;
  margin: 0 auto;
}

/* --- Shared Typography --- */
.label {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gray);
  margin-bottom: 2rem;
}
.label--light { color: var(--gray-light); }

.heading-xl {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 3rem;
}
.heading-xl--light { color: var(--white); }


/* ============================================
   NAV
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 3rem;
  mix-blend-mode: difference;
}

.nav__logo {
  font-family: 'Syne', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1.3;
  color: var(--white);
  text-decoration: none;
}

.nav__links {
  display: flex;
  gap: 2rem;
}

.nav__link {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--white);
  text-decoration: none;
  opacity: 0.6;
  transition: opacity 0.3s;
}
.nav__link:hover,
.nav__link--active {
  opacity: 1;
}

.nav__toggle {
  display: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  background: none;
  border: none;
  cursor: pointer;
}


/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 8rem;
  padding-bottom: 4rem;
}

.hero__title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(3.5rem, 10vw, 9rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.hero__word {
  display: block;
}

.hero__dot {
  color: var(--gray);
}

.hero__bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 3rem;
  margin-top: 4rem;
}

.hero__intro {
  font-size: 1rem;
  font-weight: 300;
  color: var(--gray-light);
  max-width: 480px;
  line-height: 1.7;
}

.hero__location {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero__divider { color: var(--gray-dark); }


/* ============================================
   ABOUT
   ============================================ */
.about__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}

.about__right p {
  font-size: 1rem;
  font-weight: 300;
  color: var(--gray-dark);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}
.about__right p:last-child { margin-bottom: 0; }


/* ============================================
   STATS
   ============================================ */
.stats {
  padding: 5rem 3rem;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1100px;
  margin: 0 auto;
}

.stat {
  text-align: center;
  padding: 2rem;
  border-left: 1px solid var(--rule);
}
.stat:first-child { border-left: none; }

.stat__number {
  font-family: 'Syne', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  display: block;
  margin-bottom: 0.75rem;
  line-height: 1;
}

.stat__label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gray);
  line-height: 1.5;
}


/* ============================================
   JOURNEY
   ============================================ */
.timeline {
  margin-top: 1rem;
}

.tl {
  display: flex;
  align-items: baseline;
  gap: 3rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--rule-dark);
}

.tl__year {
  font-family: 'Syne', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  min-width: 50px;
  color: var(--gray);
}

.tl__info strong {
  font-family: 'Syne', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  display: block;
  margin-bottom: 0.15rem;
}

.tl__info span {
  font-size: 0.8rem;
  color: var(--gray);
}

.tl--highlight .tl__year { color: var(--black); }

.tl--current {
  background: var(--black);
  color: var(--white);
  margin: 0 -2rem;
  padding: 1.5rem 2rem;
  border-radius: 8px;
  border-bottom: none;
}
.tl--current .tl__year { color: var(--gray-light); }
.tl--current .tl__info span { color: var(--gray-light); }

.tl--break {
  border-bottom: none;
  padding: 1rem 0;
}

.tl__pivot {
  font-family: 'Syne', sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--white);
  background: var(--black);
  padding: 0.35rem 1rem;
  border-radius: 100px;
}


/* ============================================
   PROJECTS
   ============================================ */
.proj-list {
  margin-top: 1rem;
}

.proj {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  color: var(--white);
  transition: padding-left 0.4s var(--ease);
}
.proj:first-child {
  border-top: 1px solid var(--rule);
}
.proj:hover {
  padding-left: 1rem;
}
.proj:hover .proj__arrow {
  opacity: 1;
  transform: translate(3px, -3px);
}

.proj__left {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.proj__idx {
  font-family: 'Syne', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gray-dark);
  padding-top: 0.2rem;
}

.proj__name {
  font-family: 'Syne', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.4rem;
}

.proj__desc {
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--gray-light);
  max-width: 400px;
  line-height: 1.6;
}

.proj__right {
  text-align: right;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.proj__tech {
  font-size: 0.7rem;
  color: var(--gray);
  letter-spacing: 0.04em;
}

.proj__arrow {
  font-size: 1.5rem;
  opacity: 0.3;
  transition: opacity 0.3s, transform 0.3s var(--ease);
}


/* ============================================
   SKILLS
   ============================================ */
.skills__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-bottom: 4rem;
}

.skills__group {
  padding: 2rem;
  border: 1px solid var(--rule-dark);
  margin-top: -1px;
  margin-left: -1px;
}

.skills__group h3 {
  font-family: 'Syne', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.skills__group p {
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--gray-dark);
  line-height: 1.7;
}

.certs {
  padding-top: 3rem;
  border-top: 1px solid var(--rule-dark);
}

.certs h3 {
  font-family: 'Syne', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gray);
  margin-bottom: 1.25rem;
}

.certs ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.certs li {
  font-size: 0.8rem;
  font-weight: 400;
  padding: 0.5rem 1rem;
  border: 1px solid var(--rule-dark);
  border-radius: 100px;
  color: var(--gray-dark);
  transition: color 0.2s, border-color 0.2s;
}
.certs li:hover {
  color: var(--black);
  border-color: var(--black);
}


/* ============================================
   CONTACT
   ============================================ */
.contact__inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact__title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.contact__sub {
  font-size: 1rem;
  font-weight: 300;
  color: var(--gray-light);
  margin-bottom: 3rem;
  max-width: 400px;
  line-height: 1.7;
}

.contact__links {
  display: flex;
  gap: 1rem;
}

.contact__btn {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.8rem 2rem;
  text-decoration: none;
  border-radius: 100px;
  transition: all 0.3s var(--ease);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  background: var(--white);
  color: var(--black);
}
.contact__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,255,255,0.1);
}
.contact__btn--ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--rule);
}
.contact__btn--ghost:hover {
  border-color: var(--white);
}


/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 2rem 3rem;
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--gray);
  letter-spacing: 0.04em;
}


/* ============================================
   RESPONSIVE — Tablet
   ============================================ */
@media (max-width: 1024px) {
  .skills__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat {
    border-left: none;
    border-bottom: 1px solid var(--rule);
  }
}


/* ============================================
   RESPONSIVE — Mobile
   ============================================ */
@media (max-width: 768px) {
  .band {
    padding: 4rem 1.5rem;
  }

  .nav {
    padding: 1.25rem 1.5rem;
  }
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed;
    inset: 0;
    background: var(--black);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease);
    z-index: 99;
  }
  .nav--open .nav__links {
    opacity: 1;
    pointer-events: all;
  }
  .nav__link {
    font-size: 1.5rem;
    letter-spacing: 0.02em;
    font-family: 'Syne', sans-serif;
    font-weight: 600;
  }

  .hero {
    padding-top: 6rem;
    padding-bottom: 3rem;
  }
  .hero__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
  }

  .about__layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .proj {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .proj:hover { padding-left: 0; }
  .proj__right {
    flex-direction: row-reverse;
    width: 100%;
    justify-content: space-between;
  }

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

  .contact__links {
    flex-direction: column;
    width: 100%;
    max-width: 280px;
  }
  .contact__btn {
    justify-content: center;
    width: 100%;
  }

  .footer__inner {
    flex-direction: column;
    gap: 0.25rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .stats__grid {
    grid-template-columns: 1fr;
  }
  .stat { border-left: none; }
}


/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
