/* ============================================
   nocolorpictures — Golden Age of Film
   ============================================ */

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

:root {
  /* Spotlight positions */
  --x1: 50%;
  --y1: 50%;
  --x2: 50%;
  --y2: 50%;

  /* Color palette */
  --gold: #d4a853;
  --gold-light: #efdcae;
  --gold-bright: #f0c14b;
  --cream: #f5efe0;
  --dark: #0a0a0a;
  --dark-warm: #111009;
  --charcoal: #1a1a17;
  --charcoal-light: #2a2a25;
  --text-body: #c8bfa8;
  --text-muted: #8a8272;
}

/* ——— BASE ——— */
body {
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  color: var(--text-body);
  background-color: var(--dark);
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: left;
  padding-left: 10vw;
  padding-right: 10vw;
  line-height: 1.7;
  font-size: 1.1rem;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--gold);
  color: var(--dark);
}

/* ——— FILM GRAIN OVERLAY ——— */
#film-grain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

/* ——— SPOTLIGHT — softer, brighter, larger radius ——— */
#spotlight-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.40);
  pointer-events: none;
  z-index: 999;
  -webkit-mask-image: radial-gradient(circle 320px at var(--x1) var(--y1), transparent 0, transparent 200px, black 400px),
    radial-gradient(circle 320px at var(--x2) var(--y2), transparent 0, transparent 200px, black 400px);
  mask-image: radial-gradient(circle 320px at var(--x1) var(--y1), transparent 0, transparent 200px, black 400px),
    radial-gradient(circle 320px at var(--x2) var(--y2), transparent 0, transparent 200px, black 400px);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

/* ——— SIDE PANELS ——— */
.left-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 10vw;
  height: 100vh;
  background-image: url('img/left.jpeg');
  background-size: cover;
  background-position: center;
  z-index: -1;
}

.right-bg {
  position: fixed;
  top: 0;
  right: 0;
  width: 10vw;
  height: 100vh;
  background-image: url('img/right.jpeg');
  background-size: cover;
  background-position: center;
  z-index: -1;
}

/* ——— HERO SECTION ——— */
.hero {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 2rem;
  padding-bottom: 1rem;
}

.logo {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  position: relative;
  margin-top: 1rem;
}

.logo img {
  max-height: 45vh;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6), 0 0 80px rgba(212, 168, 83, 0.08);
}

.slogan {
  text-align: center;
  margin-top: 2rem;
  padding: 0 1rem;
}

.slogan h1 {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.3rem, 3vw, 2.2rem);
  color: var(--gold-light);
  letter-spacing: 0.02em;
  line-height: 1.4;
  text-shadow: 0 2px 20px rgba(212, 168, 83, 0.15);
}

.attribution {
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: right;
  margin-top: 0.5rem;
  padding-right: 8%;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* ——— DIVIDERS ——— */
.divider {
  width: 60%;
  max-width: 500px;
  text-align: center;
  margin: 2.5rem auto;
  position: relative;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 30%, var(--gold) 70%, transparent);
  opacity: 0.35;
}

.divider-diamond {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--dark);
  padding: 0 1rem;
  color: var(--gold);
  font-size: 0.6rem;
  opacity: 0.7;
}

/* ——— CONTENT SECTIONS ——— */
.content-section {
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  padding: 1rem 0;
  animation: fadeInUp 0.8s ease both;
}

.content-section h2 {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-weight: 700;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  color: var(--gold);
  text-align: center;
  margin-bottom: 0.5rem;
  letter-spacing: 0.04em;
}

.section-subtitle {
  text-align: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 200;
  font-size: 0.95rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.content-section p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

/* ——— INTRO ——— */
.lead-text {
  font-size: 1.35rem !important;
  color: var(--cream);
  font-weight: 400;
  line-height: 1.8;
}

.mission-block {
  margin: 2rem auto;
  padding: 1.8rem 2.2rem;
  border-left: 3px solid var(--gold);
  background: linear-gradient(135deg, rgba(212, 168, 83, 0.06), rgba(212, 168, 83, 0.02));
  border-radius: 0 8px 8px 0;
  max-width: 600px;
}

.mission-label {
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.5rem;
}

.mission-block p {
  font-style: italic;
  font-size: 1.2rem !important;
  color: var(--gold-light);
  margin: 0;
}

/* ——— JOIN SECTION ——— */
.join-section {
  text-align: center;
}

.join-section p {
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ——— PROJECT CARDS ——— */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
  margin: 1.5rem 0 2rem;
}

.project-card {
  background: linear-gradient(160deg, var(--charcoal), var(--charcoal-light));
  border: 1px solid rgba(212, 168, 83, 0.12);
  border-radius: 8px;
  padding: 1.5rem 1.6rem;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.project-card:hover {
  border-color: rgba(212, 168, 83, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(212, 168, 83, 0.05);
}

.project-card:hover::before {
  opacity: 1;
}

.project-type {
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border: 1px solid rgba(212, 168, 83, 0.25);
  border-radius: 50px;
  margin-bottom: 0.7rem;
}

.project-card h3 {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--cream);
  margin-bottom: 0.5rem;
}

.project-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

.watch-space {
  text-align: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  font-size: 1rem;
  color: var(--gold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 1.5rem;
  opacity: 0.7;
}

/* ——— CONTACT FORM ——— */
.contact-section {
  text-align: center;
}

form {
  max-width: 520px;
  margin: 0 auto;
  text-align: left;
}

.form-group {
  margin-bottom: 1.4rem;
}

form label {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  color: var(--gold);
}

form input,
form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(212, 168, 83, 0.2);
  border-radius: 4px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  color: var(--cream);
  background: rgba(255, 255, 255, 0.04);
  transition: all 0.3s ease;
  outline: none;
}

form input::placeholder,
form textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.5;
}

form input:focus,
form textarea:focus {
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 20px rgba(212, 168, 83, 0.08);
}

form textarea {
  resize: vertical;
  min-height: 120px;
}

form button {
  background: transparent;
  color: var(--gold);
  padding: 0.85rem 2.5rem;
  border: 1px solid var(--gold);
  border-radius: 4px;
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.4s ease;
  display: block;
  margin: 1.5rem auto 0;
}

form button:hover {
  background: var(--gold);
  color: var(--dark);
  box-shadow: 0 4px 25px rgba(212, 168, 83, 0.25);
}

/* ——— FOOTER ——— */
.site-footer {
  width: 100%;
  text-align: center;
  padding: 3rem 0 2rem;
  margin-top: 1rem;
}

.site-footer p {
  font-family: 'Outfit', sans-serif;
  font-weight: 200;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.5;
}

/* ——— ANIMATIONS ——— */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

.hero {
  animation: fadeInUp 1s ease both;
}

.intro-section {
  animation-delay: 0.15s;
}

.join-section {
  animation-delay: 0.3s;
}

.projects-section {
  animation-delay: 0.45s;
}

.contact-section {
  animation-delay: 0.6s;
}

/* ——— ACCESSIBILITY: reduced motion ——— */
@media (prefers-reduced-motion: reduce) {

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

  #spotlight-overlay,
  #film-grain {
    display: none;
  }
}

/* ——— TABLET (max 768px) ——— */
@media only screen and (max-width: 768px) {
  body {
    padding-left: 5vw;
    padding-right: 5vw;
    font-size: 1rem;
    line-height: 1.65;
  }

  .left-bg,
  .right-bg {
    width: 5vw;
    opacity: 0.5;
  }

  .hero {
    padding-top: 1.5rem;
  }

  .logo img {
    max-height: 32vh;
    max-width: 85%;
  }

  .slogan {
    margin-top: 1.5rem;
    padding: 0 0.5rem;
  }

  .slogan h1 {
    font-size: 1.15rem;
  }

  .attribution {
    font-size: 0.75rem;
    text-align: center;
    padding-right: 0;
  }

  .divider {
    width: 70%;
    margin: 1.8rem auto;
  }

  .content-section {
    padding: 0.8rem 0;
  }

  .content-section h2 {
    font-size: 1.4rem;
    margin-bottom: 0.4rem;
  }

  .section-subtitle {
    font-size: 0.8rem;
    margin-bottom: 1.5rem;
  }

  .lead-text {
    font-size: 1.15rem !important;
  }

  .mission-block {
    padding: 1.2rem 1.4rem;
    margin: 1.5rem 0;
  }

  .mission-block p {
    font-size: 1.05rem !important;
  }

  .join-section p {
    font-size: 1rem;
    padding: 0 0.5rem;
  }

  .project-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .project-card {
    padding: 1.3rem 1.4rem;
  }

  /* Spotlight: smaller radius on tablet */
  #spotlight-overlay {
    background: rgba(0, 0, 0, 0.30);
    -webkit-mask-image: radial-gradient(circle 240px at var(--x1) var(--y1), transparent 0, transparent 150px, black 300px),
      radial-gradient(circle 240px at var(--x2) var(--y2), transparent 0, transparent 150px, black 300px);
    mask-image: radial-gradient(circle 240px at var(--x1) var(--y1), transparent 0, transparent 150px, black 300px),
      radial-gradient(circle 240px at var(--x2) var(--y2), transparent 0, transparent 150px, black 300px);
  }

  form {
    width: 100%;
    max-width: 100%;
    margin-bottom: 2rem;
  }

  /* Touch-friendly inputs: min 44px tap target */
  form input,
  form textarea {
    padding: 0.9rem 1rem;
    font-size: 16px;
    /* Prevents iOS zoom on focus */
  }

  form button {
    padding: 1rem 2rem;
    font-size: 0.85rem;
    min-height: 48px;
  }
}

/* ——— MOBILE (max 480px) ——— */
@media only screen and (max-width: 480px) {
  body {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    padding-left: max(1.25rem, env(safe-area-inset-left));
    padding-right: max(1.25rem, env(safe-area-inset-right));
    font-size: 0.95rem;
  }

  /* Hide side panels on small screens */
  .left-bg,
  .right-bg {
    display: none;
  }

  .hero {
    padding-top: 1rem;
  }

  .logo {
    margin-top: 0.5rem;
  }

  .logo img {
    max-height: 28vh;
    max-width: 95%;
    border-radius: 3px;
  }

  .slogan {
    margin-top: 1.2rem;
    padding: 0;
  }

  .slogan h1 {
    font-size: 1rem;
    line-height: 1.5;
  }

  .attribution {
    font-size: 0.7rem;
    margin-top: 0.3rem;
  }

  .divider {
    width: 85%;
    margin: 1.4rem auto;
  }

  .content-section {
    padding: 0.5rem 0;
  }

  .content-section h2 {
    font-size: 1.25rem;
  }

  .content-section p {
    font-size: 0.95rem;
  }

  .section-subtitle {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    margin-bottom: 1.2rem;
  }

  .lead-text {
    font-size: 1.05rem !important;
    line-height: 1.7;
  }

  .mission-block {
    padding: 1rem 1.1rem;
    margin: 1rem 0;
    border-left-width: 2px;
  }

  .mission-label {
    font-size: 0.6rem;
  }

  .mission-block p {
    font-size: 1rem !important;
  }

  .join-section p {
    font-size: 0.95rem;
  }

  .project-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .project-card {
    padding: 1.1rem 1.2rem;
  }

  .project-card h3 {
    font-size: 1.15rem;
  }

  .project-card p {
    font-size: 0.88rem;
  }

  .project-type {
    font-size: 0.58rem;
    padding: 0.15rem 0.55rem;
  }

  .watch-space {
    font-size: 0.85rem;
    margin-top: 1rem;
  }

  /* Spotlight: even lighter on mobile for readability */
  #spotlight-overlay {
    background: rgba(0, 0, 0, 0.22);
    -webkit-mask-image: radial-gradient(circle 180px at var(--x1) var(--y1), transparent 0, transparent 110px, black 230px),
      radial-gradient(circle 180px at var(--x2) var(--y2), transparent 0, transparent 110px, black 230px);
    mask-image: radial-gradient(circle 180px at var(--x1) var(--y1), transparent 0, transparent 110px, black 230px),
      radial-gradient(circle 180px at var(--x2) var(--y2), transparent 0, transparent 110px, black 230px);
  }

  /* Disable film grain on mobile for perf */
  #film-grain {
    display: none;
  }

  /* Form: full-width, touch-optimized */
  form {
    width: 100%;
    padding: 0;
  }

  .form-group {
    margin-bottom: 1.1rem;
  }

  form label {
    font-size: 0.7rem;
    margin-bottom: 0.4rem;
  }

  form input,
  form textarea {
    padding: 0.85rem 0.9rem;
    font-size: 16px;
    border-radius: 6px;
  }

  form textarea {
    min-height: 100px;
  }

  form button {
    width: 100%;
    padding: 1rem;
    font-size: 0.82rem;
    min-height: 50px;
    border-radius: 6px;
    margin-top: 1rem;
    /* Active state for touch feedback */
  }

  form button:active {
    background: var(--gold);
    color: var(--dark);
    transform: scale(0.98);
  }

  .site-footer {
    padding: 2rem 0 calc(1.5rem + env(safe-area-inset-bottom));
  }

  .site-footer p {
    font-size: 0.6rem;
    letter-spacing: 0.15em;
  }
}

/* ——— SMALL MOBILE (max 360px) ——— */
@media only screen and (max-width: 360px) {
  body {
    padding-left: 1rem;
    padding-right: 1rem;
    font-size: 0.9rem;
  }

  .logo img {
    max-height: 24vh;
  }

  .slogan h1 {
    font-size: 0.92rem;
  }

  .content-section h2 {
    font-size: 1.15rem;
  }

  .project-card {
    padding: 0.9rem 1rem;
  }

  .project-card h3 {
    font-size: 1.05rem;
  }

  .mission-block {
    padding: 0.8rem 1rem;
  }
}

/* ——— LANDSCAPE MOBILE ——— */
@media only screen and (max-height: 500px) and (orientation: landscape) {
  .hero {
    padding-top: 0.5rem;
  }

  .logo img {
    max-height: 35vh;
  }

  .slogan {
    margin-top: 0.8rem;
  }

  .divider {
    margin: 1rem auto;
  }

  #spotlight-overlay {
    background: rgba(0, 0, 0, 0.18);
  }
}