:root {
  --primary: #1d1d1b;
  --secondary: #c8a5ad;
  --tertiary: #f5f5f5;
  --accent: #707070;
  --light: #ffffff;
  --font-sans: "Raleway", sans-serif;
  --font-serif: "Playfair Display", serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--primary);
  background: var(--tertiary);
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

/* ── Site chrome (header.php / footer.html) ── */
.site-nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.nav-link {
  position: relative;
}

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

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Home ── */
.home-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--light);
  overflow: hidden;
}

.home-hero-media {
  position: absolute;
  inset: 0;
}

.home-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.home-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(29, 29, 27, 0.88) 0%,
    rgba(29, 29, 27, 0.45) 45%,
    rgba(29, 29, 27, 0.25) 100%
  );
}

.home-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 6rem 1.5rem 4.5rem;
}

.home-brand {
  font-family: var(--font-serif);
  font-size: clamp(2.75rem, 7vw, 5rem);
  font-weight: 600;
  line-height: 1.05;
  margin: 0 0 1.25rem;
  letter-spacing: -0.02em;
}

.home-brand em {
  font-style: normal;
  color: var(--secondary);
}

.home-headline {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 400;
  margin: 0 0 1rem;
  max-width: 28rem;
  line-height: 1.3;
}

.home-lead {
  margin: 0 0 2rem;
  max-width: 32rem;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 300;
}

.home-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.95rem 1.75rem;
  background: var(--secondary);
  color: var(--primary);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background 0.25s ease, transform 0.25s ease;
}

.home-cta:hover {
  background: #d4b4bb;
  transform: translateY(-1px);
}

.home-section {
  padding: 5rem 1.5rem;
}

.home-section-inner {
  max-width: 72rem;
  margin: 0 auto;
}

.home-section-white {
  background: var(--light);
}

.home-section-dark {
  background: var(--primary);
  color: var(--light);
}

.home-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--secondary);
  margin: 0 0 1rem;
  font-weight: 500;
}

.home-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 1.25rem;
}

.home-body {
  margin: 0;
  color: var(--accent);
  font-size: 1.05rem;
  max-width: 40rem;
  font-weight: 300;
}

.home-section-dark .home-body {
  color: rgba(255, 255, 255, 0.72);
}

.home-split {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 900px) {
  .home-split {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }

  .home-split-reverse .home-split-copy {
    order: -1;
  }
}

.home-image-panel {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--tertiary);
}

.home-image-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

@media (min-width: 700px) {
  .home-stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

.home-stat-value {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  margin: 0 0 0.35rem;
}

.home-stat-label {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.04em;
}

.home-work-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

@media (min-width: 700px) {
  .home-work-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.home-work-card {
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #181716;
}

.home-work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.home-work-card:hover img {
  transform: scale(1.04);
}

.home-work-card-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.25rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent);
  color: var(--light);
}

.home-work-card-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  margin: 0 0 0.25rem;
  font-weight: 500;
}

.home-work-card-meta {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-work-actions {
  margin-top: 2.5rem;
}

.home-cta-dark {
  background: var(--primary);
  color: var(--light);
}

.home-cta-dark:hover {
  background: #2a2a28;
}

.home-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.home-list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.85rem;
  color: var(--accent);
  font-weight: 300;
}

.home-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.4rem;
  height: 0.4rem;
  background: var(--secondary);
  border-radius: 50%;
}

/* Portfolio sits under the fixed white nav */
.portfolio-body .portfolio-page {
  padding-top: 4.5rem;
}

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

  .home-cta,
  .home-work-card img {
    transition: none;
  }
}
