/* ============================================
   Spotlight Coalition — One-Pager
   Dark cinematic palette, editorial typography
   Mobile-first, condensed layout
   ============================================ */

:root {
  --bg-deep: #1A1A1A;
  --bg-charcoal: #2B2B2B;
  --cream: #F5EDE0;
  --amber: #D4A054;
  --warm-mid: #8C7A62;

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;

  --max-width: 1100px;
  --narrow-width: 760px;
  --section-py: clamp(2.5rem, 6vh, 5rem);
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

/* ---- Reset ---- */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.7;
  color: var(--cream);
  background-color: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--amber);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.85;
}

ul {
  list-style: none;
}

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

/* ---- Layout ---- */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container--narrow {
  max-width: var(--narrow-width);
}

.section {
  padding: var(--section-py) 0;
}

.section--dark {
  background-color: var(--bg-deep);
  color: var(--cream);
}

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

/* ---- Image Break (framed photo divider) ---- */

.image-break {
  background-color: var(--bg-deep);
  padding: clamp(1.5rem, 4vw, 3rem) var(--gutter);
}

.image-break img {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  object-fit: cover;
  border-radius: 3px;
}

.image-break--founder img {
  height: 55vw;
  max-height: 520px;
  object-position: center 20%;
}

.image-break--monitors img {
  height: 45vw;
  max-height: 440px;
  object-position: center 60%;
}

.image-break--rooftop img {
  height: 50vw;
  max-height: 480px;
  object-position: center 30%;
}

@media (max-width: 767px) {
  .image-break--founder img {
    height: 70vw;
    max-height: none;
    object-position: center 20%;
  }

  .image-break--monitors img {
    height: 55vw;
  }

  .image-break--rooftop img {
    height: 60vw;
  }
}

/* ---- Section Rule (amber editorial mark) ---- */

.section-rule {
  width: 48px;
  height: 2px;
  background-color: var(--amber);
  margin-bottom: 1.5rem;
}

/* ---- Section Headings ---- */

.section-heading {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.375rem, 1.15rem + 0.9vw, 1.875rem);
  letter-spacing: -0.01em;
  margin-bottom: 1.75rem;
  color: var(--cream);
}

.section-heading--dark {
  color: var(--bg-deep);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.75rem 0;
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header.scrolled {
  background-color: rgba(26, 26, 26, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wordmark {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 400;
  color: var(--cream);
  letter-spacing: 0.01em;
}

.wordmark:hover {
  opacity: 1;
  color: var(--amber);
}

/* ---- Buttons ---- */

.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.625rem 1.5rem;
  border: 1px solid var(--amber);
  border-radius: 2px;
  transition: all 0.25s ease;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--amber);
  color: var(--bg-deep);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--amber);
  opacity: 1;
}

.btn-header {
  background-color: transparent;
  color: var(--amber);
  padding: 0.4rem 1rem;
  font-size: 0.75rem;
}

.btn-header:hover {
  background-color: var(--amber);
  color: var(--bg-deep);
  opacity: 1;
}

.btn-large {
  padding: 0.875rem 3rem;
  font-size: 0.9375rem;
}

.section--hero .btn {
  padding: 0.75rem 2.5rem;
}

/* ---- Hero ---- */

.section--hero {
  min-height: 72dvh;
  display: flex;
  align-items: center;
  padding-top: 2.5rem;
  padding-bottom: clamp(1.5rem, 4vh, 3rem);
  background-color: var(--bg-deep);
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  opacity: 0.25;
}

@media (max-width: 767px) {
  .hero-bg img {
    object-position: center center;
    object-fit: cover;
    height: 100%;
    opacity: 0.25;
  }

  .section--hero {
    min-height: auto;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  #work {
    padding-top: calc(var(--section-py) * 0.7);
    padding-bottom: calc(var(--section-py) * 0.7);
  }

  .section--cta .cta-bg img {
    object-position: center 40%;
  }
}

.section--hero .container {
  position: relative;
  z-index: 1;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section--hero .container > * {
  align-self: flex-start;
}

.hero-headline {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.75rem, 1.25rem + 2.5vw, 3.25rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--cream);
  max-width: 960px;
  margin-bottom: 1.75rem;
}

.hero-subtext {
  font-size: clamp(0.9375rem, 0.875rem + 0.3vw, 1.125rem);
  line-height: 1.7;
  color: var(--warm-mid);
  max-width: 640px;
  margin-bottom: 1.5rem;
}

/* ---- Problem ---- */

.section--cream {
  padding: clamp(3.5rem, 8vh, 7rem) 0;
}

.problem-text {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  line-height: 1.55;
  color: var(--bg-deep);
  font-weight: 400;
}

/* ---- Services ---- */

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.services-category {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1rem;
}

.services-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(245, 237, 224, 0.08);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: rgba(245, 237, 224, 0.8);
}

.services-list li strong {
  color: var(--cream);
  font-weight: 500;
}

.services-list li:last-child {
  border-bottom: none;
}

.services-footnote {
  margin-top: 2rem;
  font-size: 0.6875rem;
  color: rgba(140, 122, 98, 0.65);
  font-style: italic;
  line-height: 1.6;
}

/* ---- Mid-page CTA ---- */

.mid-cta {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(245, 237, 224, 0.06);
}

/* ---- Why ---- */

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

.why-card {
  padding-top: 1.25rem;
  border-top: 1px solid rgba(245, 237, 224, 0.1);
}

.why-number {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--amber);
  display: block;
  margin-bottom: 0.5rem;
}

.why-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.125rem;
  color: var(--cream);
  margin-bottom: 0.5rem;
}

.why-card p {
  color: var(--warm-mid);
  font-size: 0.9375rem;
  line-height: 1.65;
}

/* ---- Work Gallery ---- */

.work-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.work-gallery-item {
  overflow: hidden;
  border-radius: 2px;
  aspect-ratio: 16 / 10;
}

.work-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.work-gallery-item:hover img {
  transform: scale(1.03);
}

/* ---- Selected Work ---- */

.work-list li {
  padding: 0.625rem 0;
  border-bottom: 1px solid rgba(245, 237, 224, 0.08);
  font-size: 0.9375rem;
  line-height: 1.65;
  color: rgba(245, 237, 224, 0.8);
  padding-left: 1.125rem;
  position: relative;
}

.work-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.1rem;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--amber);
}

.work-list li:last-child {
  border-bottom: none;
}

.work-note {
  margin-top: 1.5rem;
  font-size: 0.8125rem;
  color: var(--warm-mid);
  font-style: italic;
}

/* ---- Process ---- */

.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

.process-step {
  padding-top: 1.25rem;
  border-top: 1px solid rgba(26, 26, 26, 0.12);
}

.process-number {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--amber);
  display: block;
  margin-bottom: 0.375rem;
}

.process-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.125rem;
  color: var(--bg-deep);
  margin-bottom: 0.375rem;
}

.process-step p {
  color: var(--warm-mid);
  font-size: 0.9375rem;
}

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

.section--cta {
  text-align: center;
  padding: clamp(5rem, 12vh, 10rem) 0;
  position: relative;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  opacity: 0.2;
  filter: brightness(0.8);
}

.section--cta .cta-block {
  position: relative;
  z-index: 1;
}

.cta-heading {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 1.1rem + 1.75vw, 2.5rem);
  line-height: 1.2;
  color: var(--cream);
  margin-bottom: 1.5rem;
}

.cta-email {
  margin-top: 1rem;
  font-size: 0.9375rem;
  color: var(--warm-mid);
}

.cta-email a {
  color: var(--amber);
}

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

.site-footer {
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.75rem;
  color: var(--warm-mid);
  border-top: 1px solid rgba(245, 237, 224, 0.06);
}

.footer-disclaimer {
  max-width: 540px;
  margin: 0 auto 0.75rem;
  font-size: 0.625rem;
  line-height: 1.5;
  color: rgba(140, 122, 98, 0.4);
}

/* ============================================
   Tablet+ (768px)
   ============================================ */

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .why-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .process-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .work-gallery {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.625rem;
  }

  .image-break--founder img {
    max-height: 500px;
  }

  .image-break--monitors img {
    max-height: 420px;
  }

  .image-break--rooftop img {
    max-height: 460px;
  }
}

/* ============================================
   Desktop (1024px)
   ============================================ */

@media (min-width: 1024px) {
  .services-grid {
    gap: 5rem;
  }

  .why-grid {
    gap: 2.5rem;
  }

  .process-grid {
    gap: 2.5rem;
  }

  .work-gallery {
    gap: 0.75rem;
  }

  .image-break--founder img {
    max-height: 560px;
  }

  .image-break--monitors img {
    max-height: 480px;
  }

  .image-break--rooftop img {
    max-height: 520px;
  }
}

/* ============================================
   Subtle scroll reveal animation
   ============================================ */

@media (prefers-reduced-motion: no-preference) {
  .section-rule,
  .hero-headline,
  .hero-subtext,
  .hero-tagline,
  .problem-text,
  .services-column,
  .why-card,
  .work-list li,
  .process-step,
  .cta-heading {
    opacity: 0;
    transform: translateY(16px);
    animation: fadeInUp 0.5s ease forwards;
  }

  .hero-headline { animation-delay: 0.1s; }
  .hero-subtext { animation-delay: 0.2s; }

  .services-column:nth-child(2) { animation-delay: 0.1s; }
  .why-card:nth-child(2) { animation-delay: 0.08s; }
  .why-card:nth-child(3) { animation-delay: 0.16s; }
  .process-step:nth-child(2) { animation-delay: 0.08s; }
  .process-step:nth-child(3) { animation-delay: 0.16s; }
}

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