@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --bg: #f3f1eb;
  --ink: #151515;
  --muted: #686862;
  --line: #cfcdc5;
  --accent: #2857ff;
  --card: #e7e5de;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
}

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


/* =========================
   NAVIGATION
========================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max);
  margin: auto;
  padding: 20px 24px;
  background: rgba(243, 241, 235, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.brand {
  font: 700 22px "Space Grotesk";
  letter-spacing: -1px;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
}

.site-header nav a:hover,
.quick-links a:hover {
  color: var(--accent);
}

.nav-resume {
  border: 1px solid var(--ink);
  padding: 9px 13px;
}


/* =========================
   GENERAL SECTIONS
========================= */

.section {
  max-width: var(--max);
  margin: auto;
  padding: 110px 24px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--muted);
  margin: 0 0 18px;
}


/* =========================
   HERO / BANNER
========================= */

.hero {
  min-height: 82vh;

  display: flex;
  flex-direction: column;
  justify-content: center;

  /*
    Dark overlay + your banner image.
    bannerbackground.jpeg must be in the
    same folder as style.css.
  */
  background-image:
    linear-gradient(
      rgba(0, 0, 0, 0.42),
      rgba(0, 0, 0, 0.42)
    ),
    url("bannerbackground.jpg");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  /*
    Allows the banner to stretch across
    the full width of the browser.
  */
  max-width: none;
  width: 100%;

  /*
    Keeps the text aligned with the rest
    of the website content.
  */
  padding-left: max(24px, calc((100vw - 1132px) / 2));
  padding-right: max(24px, calc((100vw - 1132px) / 2));

  color: white;
}

.hero h1 {
  font: 600 clamp(52px, 8.2vw, 112px) / 0.91 "Space Grotesk";
  letter-spacing: -0.065em;
  max-width: 1000px;
  margin: 0;
  color: white;
}

/* Name is white over the image */
.hero h1 span {
  color: white;
}

.hero-copy {
  font-size: 20px;
  line-height: 1.55;
  max-width: 680px;
  margin: 34px 0;
}

.hero .eyebrow,
.hero .hero-copy {
  color: rgba(255, 255, 255, 0.88);
}

.hero .quick-links a {
  color: white;
}

.hero .quick-links a:hover {
  color: rgba(255, 255, 255, 0.7);
}


/* =========================
   BUTTONS
========================= */

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  display: inline-block;
  padding: 14px 19px;
  border: 1px solid var(--ink);
  font-weight: 600;
  font-size: 14px;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.button.primary {
  background: var(--ink);
  color: white;
}

.button:hover {
  transform: translateY(-2px);
}

/* Hero buttons need contrast against image */

.hero .button.primary {
  background: white;
  color: #151515;
  border-color: white;
}

.hero .button.secondary {
  color: white;
  border-color: white;
  background: rgba(0, 0, 0, 0.12);
}

.hero .button.primary:hover {
  background: #eeeeee;
}

.hero .button.secondary:hover {
  background: white;
  color: #151515;
}


/* =========================
   QUICK LINKS
========================= */

.quick-links {
  display: flex;
  gap: 22px;
  margin-top: 45px;
  font-size: 14px;
}


/* =========================
   SECTION HEADINGS
========================= */

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
  margin-bottom: 48px;
}

.section-heading h2,
.about h2,
.contact h2 {
  font: 600 clamp(38px, 5vw, 66px) / 1 "Space Grotesk";
  letter-spacing: -0.045em;
  margin: 0;
}

.section-heading > p {
  max-width: 390px;
  color: var(--muted);
}


/* =========================
   PROJECT SLIDESHOW
========================= */

.project-slider {
  display: grid;
  grid-template-columns: 52px 1fr 52px;
  align-items: center;
  gap: 12px;
}

.slides {
  min-width: 0;
}

.project-slide {
  display: none;
  grid-template-columns: 1.25fr 0.75fr;
  min-height: 520px;
  border: 1px solid var(--line);
  background: #eeece6;
}

.project-slide.active {
  display: grid;
  animation: fade 0.35s ease;
}

.project-visual {
  padding: 22px;
  border-right: 1px solid var(--line);
}

.image-placeholder {
  height: 100%;
  min-height: 430px;
  background: var(--ink);
  color: white;

  display: flex;
  flex-direction: column;
  justify-content: flex-end;

  padding: 34px;
}

.image-placeholder span {
  font: 600 72px "Space Grotesk";
  opacity: 0.16;
  margin-bottom: auto;
}

.image-placeholder strong {
  font: 600 25px "Space Grotesk";
}

.image-placeholder small {
  color: #aaa;
  margin-top: 8px;
  max-width: 360px;
}

.future .image-placeholder {
  background: #d8d6cf;
  color: var(--ink);
}

.future .image-placeholder small {
  color: var(--muted);
}


/* =========================
   PROJECT INFORMATION
========================= */

.project-info {
  padding: 42px 34px;

  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-number {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 700;
}

.project-info h3 {
  font: 600 34px / 1.05 "Space Grotesk";
  letter-spacing: -0.035em;
  margin: 14px 0 22px;
}

.project-info > p:not(.project-number) {
  color: var(--muted);
  line-height: 1.7;
}

.tags {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.tags span {
  font-size: 11px;
  border: 1px solid var(--line);
  padding: 7px 9px;
}


/* =========================
   SLIDESHOW CONTROLS
========================= */

.slider-arrow {
  border: 1px solid var(--line);
  background: transparent;

  width: 52px;
  height: 52px;

  font-size: 20px;
  cursor: pointer;
}

.slider-arrow:hover {
  background: var(--ink);
  color: white;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
}

.slider-dots button {
  width: 34px;
  height: 3px;

  padding: 0;
  border: 0;

  background: var(--line);
  cursor: pointer;
}

.slider-dots button.active {
  background: var(--ink);
}


/* =========================
   ABOUT
========================= */

.about {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 100px;
}

.about-copy > p {
  font-size: 20px;
  line-height: 1.65;
  margin-top: 0;
}

.about-copy > p + p {
  color: var(--muted);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);

  border-top: 1px solid var(--line);

  margin-top: 45px;
  padding-top: 28px;
  gap: 20px;
}

.stats strong {
  display: block;
  font: 600 30px "Space Grotesk";
}

.stats span {
  font-size: 12px;
  color: var(--muted);
}


/* =========================
   SKILLS
========================= */

.skill-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
}

.skill-grid article {
  padding: 28px;
  min-height: 220px;
  border-right: 1px solid var(--line);
}

.skill-grid article:last-child {
  border: 0;
}

.skill-grid span {
  font-size: 12px;
  color: var(--muted);
}

.skill-grid h3 {
  font: 600 24px "Space Grotesk";
  margin: 45px 0 15px;
}

.skill-grid p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}


/* =========================
   CONTACT
========================= */

.contact h2 {
  font-size: clamp(48px, 7vw, 88px);
}

.contact > p:not(.eyebrow) {
  font-size: 18px;
  color: var(--muted);
  max-width: 600px;
}

.contact .actions {
  margin: 30px 0 55px;
}

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

.social-list a {
  display: flex;
  justify-content: space-between;

  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.social-list a:hover {
  color: var(--accent);
}


/* =========================
   FOOTER
========================= */

footer {
  max-width: var(--max);
  margin: auto;

  padding: 28px 24px 45px;

  display: flex;
  justify-content: space-between;

  color: var(--muted);
  font-size: 12px;
}


/* =========================
   SCROLL ANIMATIONS
========================= */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: 0.6s ease;
}

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

@keyframes fade {
  from {
    opacity: 0.2;
    transform: translateX(8px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}


/* =========================
   TABLET / MOBILE
========================= */

@media (max-width: 800px) {

  .site-header nav > a:not(.nav-resume) {
    display: none;
  }

  .section {
    padding: 80px 20px;
  }

  .hero {
    min-height: 75vh;

    /*
      Keeps the most useful part of the
      16:9 image visible on mobile.
    */
    background-position: center;

    padding-left: 20px;
    padding-right: 20px;
  }

  .project-slider {
    grid-template-columns: 1fr;
  }

  .slider-arrow {
    display: none;
  }

  .project-slide.active {
    grid-template-columns: 1fr;
  }

  .project-visual {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .image-placeholder {
    min-height: 330px;
  }

  .section-heading,
  .about {
    display: block;
  }

  .section-heading > p {
    margin-top: 20px;
  }

  .about-copy {
    margin-top: 45px;
  }

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

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

  .skill-grid article {
    border-bottom: 1px solid var(--line);
  }

  footer {
    gap: 20px;
    flex-direction: column;
  }
}


/* =========================
   SMALL PHONES
========================= */

@media (max-width: 520px) {

  .hero {
    min-height: 78vh;
  }

  .hero h1 {
    font-size: clamp(46px, 15vw, 68px);
  }

  .hero-copy {
    font-size: 17px;
  }

  .quick-links {
    margin-top: 32px;
  }

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

  .project-info {
    padding: 30px 22px;
  }
}
