/* ─── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --black: #111111;
  --white: #ffffff;

  /* ─ Brand palette ─ */
  --almond-silk: #E6D2CF;
  --hot-fuchsia: #FF2965;
  --celadon: #80D1AE;
  --jet-black: #243742;

  --dark-bg: var(--jet-black);
  --gray-light: #f4f4f4;
  --gray-mid: #999999;

  /* ─ Fonts ─ */
  /* Neue Haas Grotesk falls back to Helvetica Neue until Adobe Fonts is wired up */
  --font-sans: 'neue-haas-grotesk-display', 'Neue Haas Grotesk Display',
               'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;

  --max-width: 1200px;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--black);
  background: var(--white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

/* ─── Standard Nav (project pages, about) ──────────────────── */
header {
  position: sticky;
  top: 0;
  background: var(--white);
  border-bottom: 1px solid var(--almond-silk);
  z-index: 100;
}

nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wordmark img {
  height: 26px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-family: var(--font-sans);
  font-size: 0.975rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--gray-mid);
  transition: color 0.15s;
}

.nav-links a:hover {
  color: var(--black);
}

/* ─── Home: Dark Layout ─────────────────────────────────────── */
body.home {
  background: var(--dark-bg);
  color: var(--white);
}

.home-header {
  position: sticky;
  top: 0;
  background: var(--dark-bg);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  z-index: 100;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.home-header .wordmark img {
  height: 26px;
  width: auto;
  display: block;
  filter: invert(1);
}

.home-nav {
  display: flex;
  gap: 2rem;
}

.home-nav a {
  font-family: var(--font-sans);
  font-size: 0.975rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--white);
  transition: color 0.15s;
}

.home-nav a:hover {
  color: rgba(255,255,255,0.65);
}

/* ─── Home Intro ────────────────────────────────────────────── */
.home-intro {
  text-align: center;
  padding: 5rem 2rem 4rem;
}

.home-intro p {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 300;
  font-style: italic;
  line-height: 1.6;
  color: var(--white);
  letter-spacing: 0.01em;
  max-width: 900px;
  margin: 0 auto;
}

/* ─── Home Grid ─────────────────────────────────────────────── */
.home-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  padding: 0 45px;
  margin: 0;
  max-width: none;
}

@media (max-width: 900px) {
  .home-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 20px;
  }
}

@media (max-width: 560px) {
  .home-grid {
    grid-template-columns: 1fr;
    padding: 0 16px;
    gap: 4px;
  }
}

.home-grid .project-card {
  display: block;
  position: relative;
  overflow: hidden;
}

.home-grid .project-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #ffffff;
  position: relative;
  overflow: hidden;
  margin: 0;
}

.home-grid .project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease, opacity 0.3s ease, filter 0.3s ease;
}

.home-grid .project-card:hover .project-thumb img {
  transform: scale(1.04);
  opacity: 0.525;
  filter: blur(2px);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.38);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.4rem;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.home-grid .project-card:hover .project-overlay {
  opacity: 1;
}

.overlay-client {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hot-fuchsia);
}

.overlay-title {
  font-family: var(--font-serif);
  font-size: 1.6875rem;
  font-weight: 400;
  color: var(--white);
  letter-spacing: 0.01em;
  line-height: 1.3;
}

/* ─── Home Footer ───────────────────────────────────────────── */
.home-footer {
  margin-top: 3px;
  border-top: none;
  padding: 1.5rem 2rem;
  background: var(--dark-bg);
}

.home-footer p {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 300;
  color: rgba(255,255,255,0.2);
}

/* ─── Standard Footer ───────────────────────────────────────── */
footer {
  margin-top: auto;
  border-top: 1px solid #e8e8e8;
  padding: 1.5rem 2rem;
}

footer p {
  font-family: var(--font-sans);
  max-width: var(--max-width);
  margin: 0 auto;
  font-size: 0.8125rem;
  font-weight: 300;
  color: var(--gray-mid);
}

/* ─── Project Page ─────────────────────────────────────────── */
.project-hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 2rem 2rem;
}

.project-hero h1 {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.01em;
  margin-bottom: 0.4rem;
}

.project-hero .client-label {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hot-fuchsia);
  margin-bottom: 1rem;
  display: block;
}

.project-body {
  max-width: 680px;
  margin: 0 auto;
  padding: 2rem 2rem 6rem;
}

.project-body p {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.8;
  color: #444;
  margin-bottom: 1.75rem;
}

.project-body img {
  width: 100%;
  display: block;
  margin: 2.5rem 0;
}

/* ─── About ────────────────────────────────────────────────── */
.about-body {
  max-width: 620px;
  margin: 0 auto;
  padding: 5rem 2rem 6rem;
  background: transparent;
}

/* Almond Silk tint on about page */
body:has(.about-body) {
  background: #FAF5F4;
}

.about-body h1 {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  margin-bottom: 2.5rem;
}

/* First paragraph gets serif treatment */
.about-body p:first-of-type {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1.75;
  color: #333;
  margin-bottom: 2rem;
}

.about-body p {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 300;
  line-height: 1.85;
  color: #444;
  margin-bottom: 1.25rem;
}

.about-body a {
  border-bottom: 1px solid var(--celadon);
  transition: border-color 0.15s, color 0.15s;
}

.about-body a:hover {
  color: var(--jet-black);
  border-color: var(--hot-fuchsia);
}
