/* Sundays Interiors — shared site styles (Norma-like restraint) */
:root {
  --si-bg: #f2ede7;
  --si-text: #1a1714;
  --si-accent: #b75f5f;
  --si-accent-hover: #9f4f4f;
  --si-ink: #000000;
  --si-muted: #6b6560;
  --si-line: rgba(26, 23, 20, 0.12);
  --si-footer: #0a0908;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--si-text);
  background-color: var(--si-bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: 'Playfair Display', serif; }

/* ——— Header ——— */
.site-header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--si-bg) 94%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--si-line);
}

.site-nav {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

@media (min-width: 1024px) {
  .site-nav { padding-inline: 2rem; }
}

.logo-mark {
  height: 2rem;
  width: auto;
  filter: none;
}

@media (min-width: 640px) {
  .logo-mark { height: 2.25rem; }
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

@media (min-width: 768px) {
  .nav-links { display: flex; }
}

.nav-links a:hover { color: var(--si-accent); }
.nav-links a.is-active { color: var(--si-accent); }

.nav-toggle {
  display: flex;
  background: none;
  border: none;
  padding: 0.25rem;
  cursor: pointer;
  color: var(--si-text);
}

@media (min-width: 768px) {
  .nav-toggle { display: none; }
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--si-line);
  padding: 1rem 1.5rem 1.5rem;
  background: var(--si-bg);
}

.mobile-nav.open { display: block; }

.mobile-nav a {
  display: block;
  padding: 0.75rem 0;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.mobile-nav a:hover { color: var(--si-accent); }

/* ——— Text links (primary CTA language) ——— */
.si-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--si-text);
  border-bottom: 1px solid rgba(26, 23, 20, 0.25);
  padding-bottom: 0.2rem;
  transition: border-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.si-link:hover {
  border-bottom-color: var(--si-accent);
  color: var(--si-accent);
}

.si-link--light {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.55);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.25);
}

.si-link--light:hover {
  border-bottom-color: #fff;
  color: #fff;
  opacity: 0.85;
}

/* Keep legacy button classes as text-link aliases so older markup softens */
.btn-primary,
.btn-outline,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  border-radius: 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(26, 23, 20, 0.25);
  padding-bottom: 0.2rem;
  color: var(--si-text);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.btn-primary:hover,
.btn-outline:hover {
  background: transparent;
  border-bottom-color: var(--si-accent);
  color: var(--si-accent);
  transform: none;
}

.btn-ghost {
  border-bottom-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.btn-ghost:hover {
  background: transparent;
  color: #fff;
  border-bottom-color: #fff;
}

/* ——— Page scaffolding ——— */
.page {
  padding-top: 7rem;
  padding-bottom: 5rem;
}

@media (min-width: 768px) {
  .page { padding-top: 8rem; padding-bottom: 6rem; }
}

.page-wrap {
  max-width: 72rem;
  margin: 0 auto;
  padding-inline: 1.5rem;
}

@media (min-width: 1024px) {
  .page-wrap { padding-inline: 2rem; }
}

.page-wrap--narrow {
  max-width: 40rem;
}

.page-hero {
  max-width: 40rem;
}

.page-hero h1 {
  margin-top: 1rem;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.page-hero__lede {
  margin-top: 1.25rem;
  max-width: 32rem;
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.65;
  color: var(--si-muted);
}

.eyebrow {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: var(--si-muted);
}

.section-gap {
  margin-top: 4.5rem;
}

@media (min-width: 768px) {
  .section-gap { margin-top: 6rem; }
}

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

.split {
  display: grid;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .split {
    grid-template-columns: 5fr 7fr;
    gap: 4rem;
  }
}

.split--3 {
  display: grid;
  gap: 0;
  border-block: 1px solid var(--si-line);
}

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

.split--3 > * {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--si-line);
}

@media (min-width: 768px) {
  .split--3 > * {
    padding: 3rem 2rem;
    border-bottom: 0;
    border-right: 1px solid var(--si-line);
  }
  .split--3 > *:first-child { padding-left: 0; }
  .split--3 > *:last-child {
    padding-right: 0;
    border-right: 0;
  }
}

.prose-muted {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--si-muted);
}

.prose-muted > * + * { margin-top: 1.25rem; }

.stack-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.stack-list li {
  padding: 1.5rem 0;
  border-top: 1px solid var(--si-line);
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.65;
  color: var(--si-muted);
}

.stack-list li:last-child {
  border-bottom: 1px solid var(--si-line);
}

.step-row {
  display: grid;
  gap: 1rem;
  padding: 2.5rem 0;
  border-top: 1px solid var(--si-line);
}

@media (min-width: 768px) {
  .step-row {
    grid-template-columns: 4rem 1fr 1.4fr;
    gap: 1.5rem;
    align-items: start;
    padding: 3rem 0;
  }
}

.step-row:last-child {
  border-bottom: 1px solid var(--si-line);
}

.step-row__num {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--si-muted);
  padding-top: 0.35rem;
}

.step-row h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 500;
  line-height: 1.2;
}

.step-row__label {
  margin-top: 0.4rem;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--si-accent);
}

.cta-band {
  text-align: center;
  padding: 5rem 1.5rem;
}

.cta-band h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.cta-band p {
  margin: 1.25rem auto 0;
  max-width: 28rem;
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.65;
  color: var(--si-muted);
}

.cta-band__links {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.75rem 2.5rem;
}

/* ——— Work / bleed / feature ——— */
.home-hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  background: var(--si-bg);
  padding-top: 4.5rem;
}

.home-hero__media {
  position: absolute;
  inset: 0;
  background: var(--si-bg);
}

.home-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  animation: kenburns 22s ease-out forwards;
}

.home-hero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(26, 23, 20, 0.45) 0%,
    rgba(26, 23, 20, 0.12) 28%,
    transparent 55%
  );
  pointer-events: none;
}

.home-hero__copy {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem 2.75rem;
}

@media (min-width: 1024px) {
  .home-hero__copy { padding: 0 2rem 4rem; }
}

.home-hero h1 {
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.35);
}

.home-hero__line {
  margin-top: 1.25rem;
  max-width: 22rem;
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.55;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.3);
}

.home-hero .si-link { margin-top: 2rem; }

.si-bleed {
  position: relative;
  display: block;
  min-height: 85svh;
  overflow: hidden;
}

.si-bleed img {
  width: 100%;
  height: 100%;
  min-height: 85svh;
  object-fit: cover;
  transition: transform 1.1s ease;
}

.si-bleed:hover img { transform: scale(1.03); }

.si-bleed__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
  color: #fff;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
}

@media (min-width: 768px) {
  .si-bleed__caption { padding: 2rem; }
}

.si-feature {
  display: block;
  padding: 4rem 1.5rem 5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .si-feature { padding: 5.5rem 2rem 6.5rem; }
}

.si-feature__frame {
  margin: 0 auto;
  max-width: 28rem;
}

.si-feature__frame img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 1.1s ease;
}

.si-feature:hover .si-feature__frame img { transform: scale(1.02); }

.si-feature__caption {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--si-muted);
}

/* Tall editorial portraits (native ~2000×3000) */
.si-feature--tall .si-feature__frame {
  max-width: min(36rem, 92vw);
}

/* Quiet mid-page photo break */
.si-moment {
  display: block;
  padding: 0;
}

.si-moment img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 90svh;
  object-fit: cover;
  object-position: center;
}

.si-thesis {
  padding: 6rem 1.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .si-thesis { padding: 8rem 2rem; }
}

.si-thesis h2 {
  max-width: 18ch;
  margin: 0 auto;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.si-thesis__links {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.75rem 2.5rem;
}

/* Work index: full-bleed project rows */
.work-row {
  display: block;
}

.work-row + .work-row { margin-top: 0; }

.work-row__media {
  position: relative;
  min-height: 70svh;
  overflow: hidden;
}

.work-row__media img {
  width: 100%;
  height: 100%;
  min-height: 70svh;
  object-fit: cover;
  transition: transform 1.1s ease;
}

.work-row:hover .work-row__media img { transform: scale(1.03); }

.work-row__meta {
  padding: 1.5rem 1.5rem 3.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--si-muted);
}

@media (min-width: 768px) {
  .work-row__meta { padding: 1.75rem 2rem 4.5rem; }
}

/* Case study */
.project-tags {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--si-muted);
}

.project-pair {
  display: grid;
  gap: 2rem;
  padding-top: 4rem;
  scroll-margin-top: 6rem;
}

@media (min-width: 1024px) {
  .project-pair {
    grid-template-columns: 7fr 5fr;
    gap: 3rem;
    align-items: start;
    padding-top: 5rem;
  }
}

.project-pair__copy > * + * { margin-top: 1rem; }

.project-pair__copy h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  line-height: 1.15;
}

.project-pair__lede {
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.55;
}

.project-pair__why {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--si-line);
}

.project-pair__why-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--si-accent);
}

.project-pair__why p {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--si-muted);
}

/* ——— Sparse footer (cream, not black) ——— */
.site-footer {
  background: var(--si-bg);
  color: var(--si-text);
  padding: 4rem 1.5rem 5rem;
  border-top: 1px solid var(--si-line);
  text-align: center;
}

.site-footer__inner {
  max-width: 72rem;
  margin: 0 auto;
}

.site-footer__place {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--si-muted);
  margin-bottom: 1.5rem;
}

.site-footer__links {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem 2rem;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--si-muted);
}

.site-footer__links a:hover { color: var(--si-accent); }

.site-footer__email {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--si-muted);
}

.site-footer__email a:hover { color: var(--si-accent); }

/* ——— Motion ——— */
.fade-up {
  opacity: 0;
  transform: translateY(1.25rem);
  animation: fadeUp 0.9s ease forwards;
}

.fade-up-delay { animation-delay: 0.15s; }
.fade-up-delay-2 { animation-delay: 0.3s; }
.fade-up-delay-3 { animation-delay: 0.45s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-kenburns {
  animation: kenburns 18s ease-out forwards;
}

@keyframes kenburns {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}

@media (prefers-reduced-motion: reduce) {
  .fade-up,
  .fade-up-delay,
  .fade-up-delay-2,
  .fade-up-delay-3,
  .hero-kenburns,
  .home-hero__media img {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .si-bleed img,
  .si-feature__frame img,
  .work-row__media img {
    transition: none;
  }
  .si-bleed:hover img,
  .si-feature:hover .si-feature__frame img,
  .work-row:hover .work-row__media img {
    transform: none;
  }
}
