/* ─── RESET & VARIABLES ───────────────────────────── */

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

:root {
  --orange: #FF6600;
  --orange-dark: #CC5200;
  --black: #1A1A1A;
  --grey: #555555;
  --light-grey: #F5F5F5;
  --border: #E5E5E5;
  --white: #FFFFFF;
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --max-width: 1200px;
  --gutter: 48px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--black);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ─── NAVIGATION ──────────────────────────────────── */

#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.nav-container {
  max-width: var(--max-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--black);
  text-decoration: none;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 40px;
}

.nav-links a {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--black);
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--orange);
}

/* ─── SHARED SECTION STYLES ───────────────────────── */

section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 120px var(--gutter);
}

.section-divider {
  width: 40px;
  height: 2px;
  background: var(--orange);
  margin-bottom: 32px;
}

.section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--black);
  margin-bottom: 24px;
}

h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--black);
  line-height: 1.3;
}

.section-intro {
  font-size: 18px;
  color: var(--grey);
  max-width: 580px;
  margin-bottom: 56px;
  line-height: 1.65;
}

/* ─── BUTTONS ─────────────────────────────────────── */

.btn {
  display: inline-block;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 15px 30px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
}

.btn-secondary {
  background: transparent;
  border-color: var(--black);
  color: var(--black);
}

.btn-secondary:hover {
  border-color: var(--orange);
  color: var(--orange);
}

/* ─── HERO ────────────────────────────────────────── */

#hero {
  padding-top: 164px;
  padding-bottom: 120px;
}

#hero h1 {
  font-size: clamp(3.5rem, 9vw, 8rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: var(--black);
  margin-bottom: 40px;
}

.positioning {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--grey);
  max-width: 620px;
  margin-bottom: 56px;
  line-height: 1.65;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ─── WORK / PORTFOLIO ────────────────────────────── */

#work {
  border-top: 1px solid var(--border);
}

.filter-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

.filter-tab {
  font-family: var(--font);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 12px 28px 12px 0;
  margin-bottom: -1px;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.filter-tab:hover,
.filter-tab.active {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px 40px;
}

.portfolio-card {
  transition: opacity 0.2s ease;
}

.portfolio-card.hidden {
  display: none;
}

.card-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--light-grey);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-image-placeholder {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #BBBBBB;
}

.card-category {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 8px;
}

.card-title {
  margin-bottom: 10px;
}

.card-description {
  font-size: 14px;
  color: var(--grey);
  line-height: 1.65;
}

/* ─── ABOUT ───────────────────────────────────────── */

#about {
  border-top: 1px solid var(--border);
}

.about-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 80px;
  align-items: start;
}

.about-image {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: var(--light-grey);
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.about-image.no-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-image.no-image::after {
  content: "Headshot";
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #BBBBBB;
}

.about-content {
  padding-top: 8px;
}

.about-content h2 {
  margin-bottom: 32px;
}

.about-bio p {
  font-size: 18px;
  line-height: 1.7;
  color: var(--black);
  margin-bottom: 24px;
}

.about-bio p:last-child {
  margin-bottom: 0;
}

/* ─── RESUME ──────────────────────────────────────── */

#resume {
  border-top: 1px solid var(--border);
}

.resume-body {
  font-size: 18px;
  color: var(--grey);
  max-width: 480px;
  margin-bottom: 40px;
  line-height: 1.65;
}

/* ─── CONTACT ─────────────────────────────────────── */

#contact {
  border-top: 1px solid var(--border);
}

.contact-body {
  font-size: 18px;
  color: var(--grey);
  max-width: 520px;
  margin-bottom: 48px;
  line-height: 1.65;
}

.contact-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 48px;
}

.contact-link {
  font-size: 16px;
  font-weight: 700;
  color: var(--black);
  text-decoration: none;
  border-bottom: 2px solid var(--orange);
  padding-bottom: 2px;
  transition: color 0.15s ease;
}

.contact-link:hover {
  color: var(--orange);
}

.calendly-placeholder {
  border: 1px dashed #CCCCCC;
  padding: 40px 48px;
  max-width: 480px;
}

.calendly-placeholder p {
  font-size: 13px;
  color: #AAAAAA;
  font-style: italic;
  letter-spacing: 0.02em;
  text-align: center;
}

/* ─── FOOTER ──────────────────────────────────────── */

footer {
  border-top: 1px solid var(--border);
  padding: 40px var(--gutter);
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy {
  font-size: 12px;
  color: #AAAAAA;
  letter-spacing: 0.04em;
}

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-links a {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #AAAAAA;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--orange);
}

/* ─── TABLET ──────────────────────────────────────── */

@media (max-width: 1024px) {
  :root {
    --gutter: 40px;
  }

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

  .about-grid {
    grid-template-columns: 280px 1fr;
    gap: 56px;
  }
}

/* ─── MOBILE ──────────────────────────────────────── */

@media (max-width: 768px) {
  :root {
    --gutter: 24px;
  }

  section {
    padding: 80px var(--gutter);
  }

  #hero {
    padding-top: 120px;
  }

  .nav-links {
    gap: 24px;
  }

  .nav-links a {
    font-size: 10px;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .filter-tabs {
    flex-wrap: wrap;
    gap: 4px;
  }

  .filter-tab {
    padding: 10px 16px 10px 0;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image {
    max-width: 260px;
    aspect-ratio: 1 / 1;
  }

  footer {
    flex-direction: column;
    gap: 16px;
    text-align: center;
    padding: 32px var(--gutter);
  }
}
