/* Mommas Boy Media — styles
   Strict brief: cream canvas, logo accents, curated catalog.
   Modern photography/videography presence without film-site chrome. */

:root {
  --cream: #f1ebe1;
  --cream-deep: #e7dfd3;
  --ink: #1a1714;
  --ink-soft: #3a322c;
  --muted: #6b5f54;
  --yellow: #f0c029;
  --blue: #5b7db8;
  --blue-deep: #2f4f86;
  --red: #c62828;
  --tan: #6b4f3a;
  --white: #fffcf7;
  --rule: rgba(26, 23, 20, 0.12);

  --font-display: "Syne", sans-serif;
  --font-body: "DM Sans", sans-serif;

  --nav-h: 4.25rem;
  --space: clamp(1.25rem, 4vw, 2.75rem);
  --max: 68rem;
  --max-wide: 92rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--blue-deep);
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.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;
}

/* —— Navigation (brief: top, hide on scroll) —— */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space);
  background: rgba(241, 235, 225, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transform: translateY(0);
  transition: transform 0.45s var(--ease), border-color 0.3s ease, background 0.3s ease;
}

.site-header.is-hidden {
  transform: translateY(-110%);
}

.site-header.is-scrolled {
  border-bottom-color: var(--rule);
  background: rgba(241, 235, 225, 0.96);
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-brand img {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
}

.nav-brand:hover {
  color: var(--ink);
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--rule);
  background: transparent;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: currentColor;
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 1.75rem);
}

.site-nav a {
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  position: relative;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 100%;
  height: 2px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-email {
  color: var(--blue-deep);
}

/* —— Layout —— */
.site-main {
  padding-top: var(--nav-h);
  min-height: calc(100vh - 7rem);
}

.wrap {
  width: min(100% - (var(--space) * 2), var(--max));
  margin-inline: auto;
}

.wrap-wide {
  width: min(100% - (var(--space) * 2), var(--max-wide));
  margin-inline: auto;
}

.section {
  padding: clamp(3.5rem, 9vw, 6.5rem) 0;
}

.section-label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tan);
  margin: 0 0 0.85rem;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.65rem, 3.8vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.85rem;
}

.section-lead {
  max-width: 36rem;
  color: var(--ink-soft);
  margin: 0 0 2rem;
  font-size: 1.05rem;
}

.rule {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 0;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  padding: 0.85rem 1.35rem;
  border: 1.5px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

.btn:hover {
  background: transparent;
  color: var(--ink);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--white);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.email-link {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  border-bottom: 2px solid var(--yellow);
  word-break: break-word;
}

.email-link:hover {
  color: var(--blue-deep);
}

/* —— Motion —— */
.reveal {
  opacity: 0;
  transform: translateY(1.1rem);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* —— Photo/video stills (placeholders until real media) —— */
.media-still {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--cream-deep);
  --parallax-y: 0px;
  --still-scale: 1.08;
}

.media-still::before {
  content: "";
  position: absolute;
  inset: -10% 0;
  height: 120%;
  top: -10%;
  background:
    radial-gradient(ellipse 70% 55% at 35% 40%, var(--flare, rgba(240, 192, 41, 0.22)), transparent 55%),
    radial-gradient(ellipse 60% 50% at 70% 65%, var(--wash, rgba(91, 125, 184, 0.28)), transparent 50%),
    linear-gradient(155deg, var(--p1, #2a241e), var(--p2, #5b7db8) 50%, var(--p3, #1a1714));
  transform: scale(var(--still-scale)) translate3d(0, var(--parallax-y), 0);
  will-change: transform;
}

.media-still.harbor {
  --p1: #1c2430;
  --p2: #4a6fa5;
  --p3: #151a22;
  --flare: rgba(143, 168, 212, 0.28);
  --wash: rgba(47, 79, 134, 0.35);
}

.media-still.northline {
  --p1: #2a2018;
  --p2: #8a6a3a;
  --p3: #1a1410;
  --flare: rgba(240, 192, 41, 0.3);
  --wash: rgba(107, 79, 58, 0.35);
}

.media-still.warm {
  --p1: #2a2014;
  --p2: #a07840;
  --p3: #1a140e;
  --flare: rgba(240, 192, 41, 0.32);
}

.media-still.cool {
  --p1: #181e28;
  --p2: #4d6a90;
  --p3: #12161c;
  --flare: rgba(180, 200, 230, 0.22);
}

.media-still img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(var(--still-scale)) translate3d(0, var(--parallax-y), 0);
  will-change: transform;
}

/* —— Home identity (brief §4: logo anchor, cream, negative space) —— */
.home-identity {
  min-height: calc(100svh - var(--nav-h));
  display: grid;
  place-items: center;
  text-align: center;
  padding: clamp(2rem, 6vw, 4rem) var(--space);
  overflow: hidden;
}

.home-identity__inner {
  max-width: 28rem;
  will-change: transform;
}

.home-logo {
  width: min(100%, 26rem);
  margin: 0 auto;
  animation: riseIn 1s var(--ease) both;
}

.home-scroll {
  margin-top: 2.75rem;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--tan);
  animation: riseIn 1s var(--ease) 0.2s both;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* —— Work preview / catalog: visual dominant + light caption —— */
.work-preview,
.work-catalog {
  padding: clamp(2.5rem, 7vw, 4.5rem) 0 clamp(3rem, 8vw, 5.5rem);
}

.project-list {
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 6vw, 4rem);
  margin-top: 2rem;
}

.project-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.project-card:hover {
  color: inherit;
}

.project-card__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--cream-deep);
}

.project-card__frame .media-still {
  position: absolute;
  inset: 0;
}

.project-card:hover .media-still {
  --still-scale: 1.12;
}

.project-card__caption {
  margin-top: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1rem;
}

.project-card__caption strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: 0;
}

.project-card__caption span {
  font-size: 0.9rem;
  color: var(--muted);
}

/* —— Mission / contact previews on cream —— */
.mission-preview p {
  margin: 0;
  max-width: 38rem;
  font-size: 1.2rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

.contact-preview {
  background: var(--cream-deep);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

/* —— Case study —— */
.case-hero {
  position: relative;
  aspect-ratio: 16 / 9;
  max-height: min(78vh, 44rem);
  width: 100%;
  overflow: hidden;
  background: var(--cream-deep);
}

@media (min-width: 900px) {
  .case-hero {
    aspect-ratio: 2.2 / 1;
  }
}

.case-hero .media-still,
.case-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  --still-scale: 1.12;
}

.case-hero-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 1.25rem var(--space) 1.5rem;
  background: linear-gradient(transparent, rgba(26, 23, 20, 0.55));
  color: var(--white);
  will-change: transform;
}

.case-hero-caption p {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.85;
}

.case-hero-caption h1 {
  margin: 0.25rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.case-section {
  padding: clamp(3rem, 8vw, 5rem) 0;
}

.case-section + .case-section {
  border-top: 1px solid var(--rule);
}

.case-grid {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

@media (min-width: 700px) {
  .case-grid.two {
    grid-template-columns: 1fr 1fr;
  }

  .case-grid.three {
    grid-template-columns: repeat(3, 1fr);
  }
}

.case-frame {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--cream-deep);
}

.case-frame.wide {
  aspect-ratio: 16 / 9;
}

.case-frame.tall {
  aspect-ratio: 3 / 4;
}

.case-frame .media-still,
.case-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-frame:hover .media-still {
  --still-scale: 1.12;
}

.case-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 2rem 0 3.5rem;
  border-top: 1px solid var(--rule);
  font-size: 0.92rem;
}

.case-nav a {
  text-decoration: none;
  font-weight: 600;
}

/* —— About —— */
.about-mission {
  max-width: 40rem;
}

.about-mission .mission-statement {
  margin: 0 0 1.25rem;
  font-size: clamp(1.25rem, 2.8vw, 1.65rem);
  line-height: 1.45;
  color: var(--ink-soft);
  font-weight: 500;
}

.about-mission .support {
  margin: 0;
  color: var(--muted);
  max-width: 36rem;
}

.people-grid {
  display: grid;
  gap: 2.25rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .people-grid {
    grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  }
}

.person {
  max-width: 20rem;
}

.person-photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--cream-deep);
  margin-bottom: 1rem;
}

.person h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
}

.person .role {
  margin: 0.25rem 0 0.7rem;
  color: var(--tan);
  font-size: 0.88rem;
}

.person .bio {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* —— Contact page —— */
.contact-page {
  max-width: 36rem;
}

.contact-page .email-link {
  display: inline-block;
  margin: 1.5rem 0;
}

.contact-note {
  margin: 0;
  color: var(--muted);
  max-width: 28rem;
}

/* —— Footer (brief §8: extremely minimal) —— */
.site-footer {
  padding: 2rem var(--space) 2.5rem;
  border-top: 1px solid var(--rule);
}

.footer-inner {
  width: min(100%, var(--max));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-brand img {
  width: 1.6rem;
  height: 1.6rem;
}

.footer-meta {
  font-size: 0.85rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.footer-meta a {
  text-decoration: none;
}

.footer-meta a:hover {
  color: var(--blue-deep);
}

/* —— Mobile nav —— */
@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--space) 1.15rem;
    background: rgba(241, 235, 225, 0.98);
    border-bottom: 1px solid var(--rule);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s var(--ease), opacity 0.35s ease;
  }

  body.nav-open .site-nav {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  body.nav-open .site-header {
    transform: none;
  }

  .site-nav a {
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--rule);
  }

  .site-nav a::after {
    display: none;
  }

  body.nav-open .nav-toggle span {
    background: transparent;
  }

  body.nav-open .nav-toggle span::before {
    top: 0;
    transform: rotate(45deg);
  }

  body.nav-open .nav-toggle span::after {
    top: 0;
    transform: rotate(-45deg);
  }

  .project-card__frame {
    aspect-ratio: 4 / 3;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

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

  .home-identity__inner,
  .case-hero-caption {
    transform: none !important;
    opacity: 1 !important;
  }

  .media-still,
  .media-still img,
  .case-hero > img {
    --parallax-y: 0px !important;
  }
}
