/* ===========================
   Harrison Buchanan - Actor
   =========================== */

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

:root {
  --color-bg: #0a0a0a;
  --color-bg-alt: #111111;
  --color-surface: #1a1a1a;
  --color-text: #e8e4e0;
  --color-text-muted: #9a9590;
  --color-accent: #c9a96e;
  --color-accent-hover: #ddbf8a;
  --color-border: #2a2a2a;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Montserrat', -apple-system, sans-serif;
  --header-height: 80px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ---- Header ---- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  transition: background 0.3s ease;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
}

.site-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: 0.04em;
}

.site-nav {
  display: flex;
  gap: 2.5rem;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  text-decoration: none;
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-text);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--color-text);
  transition: all 0.3s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 5px);
}

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

.nav-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -5px);
}

/* ---- Sections ---- */

.section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-height) + 3rem) 2rem 3rem;
}

.section-inner {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}

/* ---- Home / Gallery ---- */

.section-home {
  padding-top: var(--header-height);
  padding-bottom: 0;
  min-height: 100vh;
}

.gallery {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0.5rem;
  width: 100%;
  height: calc(100vh - var(--header-height));
  padding: 0.5rem;
}

.gallery-item {
  overflow: hidden;
  position: relative;
}

.gallery-item--tall {
  grid-row: 1 / 3;
}

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

.gallery-item:nth-child(2) img {
  object-position: center center;
}

.gallery-item:nth-child(3) img {
  object-position: right center;
}

/* Placeholder images */
.placeholder-img {
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 300px;
  position: relative;
  overflow: hidden;
}

.placeholder-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, transparent 40%, rgba(201, 169, 110, 0.03) 50%, transparent 60%);
}

.placeholder-img span {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--color-text-muted);
  opacity: 0.5;
}

/* ---- Bio ---- */

.section-bio {
  background: var(--color-bg-alt);
}

.bio-layout {
  display: grid;
  grid-template-columns: 50% 1fr;
  gap: 4rem;
  align-items: start;
  overflow: hidden;
}

.bio-layout > * {
  min-width: 0;
  min-height: 0;
}

.bio-text h2 {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  margin-bottom: 2rem;
  color: var(--color-text);
}

.bio-text h2::after {
  content: '';
  display: block;
  width: 50px;
  height: 1px;
  background: var(--color-accent);
  margin-top: 1rem;
}

.bio-text p {
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
}

.placeholder-img--headshot {
  aspect-ratio: 3 / 4;
  min-height: unset;
}

.bio-headshot,
.contact-headshot {
  position: relative;
  overflow: hidden;
  height: 450px;
}

.bio-headshot img,
.contact-headshot img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bio-headshot img {
  object-position: center 30%;
}

.contact-headshot img {
  object-position: center top;
}

/* ---- Resume ---- */

.section-resume {
  background: var(--color-bg);
}

.section-resume h2 {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  margin-bottom: 2.5rem;
  text-align: center;
}

.section-resume h2::after {
  content: '';
  display: block;
  width: 50px;
  height: 1px;
  background: var(--color-accent);
  margin: 1rem auto 0;
}

.resume-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-border);
}

.resume-name {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.resume-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.resume-section {
  margin-bottom: 2.5rem;
}

.resume-section h3 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border);
}

.resume-table {
  width: 100%;
  border-collapse: collapse;
}

.resume-table th {
  display: none;
}

.resume-table td {
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  vertical-align: top;
}

.resume-table tr {
  border-bottom: 1px solid rgba(42, 42, 42, 0.5);
}

.resume-table tr:last-child {
  border-bottom: none;
}

.resume-table td:first-child {
  width: 40%;
  color: var(--color-text);
  font-weight: 400;
}

.resume-table td:nth-child(2) {
  width: 30%;
}

.resume-table td:last-child {
  width: 30%;
  text-align: right;
}

.resume-skills {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.8;
}

.resume-download {
  text-align: center;
  margin-top: 3rem;
}

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1rem 2.5rem;
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn:hover {
  background: var(--color-accent);
  color: var(--color-bg);
}

/* ---- Contact ---- */

.section-contact {
  background: var(--color-bg-alt);
}

.contact-layout {
  display: grid;
  grid-template-columns: 50% 1fr;
  gap: 4rem;
  align-items: start;
  overflow: hidden;
}

.contact-layout > * {
  min-width: 0;
  min-height: 0;
}

.contact-info h2 {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  margin-bottom: 2rem;
}

.contact-info h2::after {
  content: '';
  display: block;
  width: 50px;
  height: 1px;
  background: var(--color-accent);
  margin-top: 1rem;
}

.contact-details {
  margin-bottom: 2rem;
}

.contact-item {
  margin-bottom: 1.5rem;
}

.contact-item h4 {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.4rem;
}

.contact-item a {
  font-size: 1.05rem;
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: var(--color-accent);
}

.contact-note {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.8;
}

/* ---- Footer ---- */

.site-footer {
  text-align: center;
  padding: 2rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.75rem;
  color: var(--color-text-muted);
  letter-spacing: 0.08em;
}

/* ===========================
   Responsive
   =========================== */

@media (max-width: 900px) {

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: rgba(10, 10, 10, 0.97);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .site-nav.open {
    transform: translateX(0);
  }

  .site-nav .nav-link {
    font-size: 1rem;
    letter-spacing: 0.25em;
  }

  /* Gallery */
  .gallery {
    grid-template-columns: 1fr;
    grid-template-rows: 1.5fr 1fr 1fr;
    height: calc(100vh - var(--header-height));
  }

  .gallery-item--tall {
    grid-row: auto;
  }

  /* Bio */
  .bio-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }

  .bio-headshot {
    order: -1;
    width: 100%;
    max-width: 100%;
    height: 300px;
    margin: 0 auto;
  }

  .bio-text h2::after {
    margin-left: auto;
    margin-right: auto;
  }

  /* Resume */
  .resume-stats {
    gap: 1rem;
  }

  .resume-table td {
    padding: 0.5rem 0.5rem;
    font-size: 0.8rem;
  }

  /* Contact */
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }

  .contact-headshot {
    width: 100%;
    max-width: 100%;
    height: 300px;
    margin: 0 auto;
  }

  .contact-info h2::after {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 500px) {

  :root {
    --header-height: 64px;
  }

  .site-title {
    font-size: 1.4rem;
  }

  .section {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .gallery {
    gap: 0.25rem;
    padding: 0.25rem;
  }

  .bio-text h2,
  .section-resume h2,
  .contact-info h2 {
    font-size: 2.2rem;
  }

  .resume-table td:last-child {
    text-align: left;
  }

  .resume-stats {
    flex-direction: column;
    gap: 0.5rem;
  }
}
