/* =============================================
   Photographer Portfolio — all-navy dusk + lime
   ============================================= */

/* --- Reset + base --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 300;
  line-height: 1.6;
  color: #eaeef7;
  background: #0e1a2b;
  overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* --- Grain overlay --- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.045;
  pointer-events: none;
  z-index: 9998;
}

/* --- Kwaku attribution --- */
.attribution {
  font-size: 0.7rem;
  opacity: 0.4;
  font-family: 'JetBrains Mono', monospace;
}
.attribution a { color: inherit; }
.attribution a:hover { color: #ccff33; }

/* --- Marquee ticker --- */
.marquee-wrap {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2.2rem;
  overflow: hidden;
  background: rgba(14, 26, 43, 0.85);
  backdrop-filter: blur(6px);
  z-index: 100;
  border-bottom: 1px solid rgba(204, 255, 51, 0.15);
}
.marquee {
  display: flex;
  gap: 3rem;
  width: max-content;
  padding: 0.4rem 0;
  animation: scroll 30s linear infinite;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(234, 238, 247, 0.6);
}
.marquee span { white-space: nowrap; }
@keyframes scroll {
  to { transform: translateX(-50%); }
}

/* --- Main --- */
main {
  padding: 3.5rem 1.5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* --- Section headings --- */
.section-heading {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 300;
  font-size: 2.8rem;
  margin: 0 0 2rem;
  font-variation-settings: 'wdth' 100;
  animation: breathe 6s ease-in-out infinite;
  color: #ccff33;
  letter-spacing: -0.02em;
}
@keyframes breathe {
  0%, 100% { font-variation-settings: 'wdth' 75; }
  50% { font-variation-settings: 'wdth' 125; }
}

/* --- Hero --- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  min-height: 70vh;
  padding: 2rem 0;
}
.hero-img {
  position: relative;
}
.img-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #1a2d47 0%, #0e1a2b 100%);
  border: 1px solid rgba(204, 255, 51, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.8);
  transform: rotate(-1deg);
}
.placeholder-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(234, 238, 247, 0.3);
}
.hero-text h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 300;
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1.05;
  margin: 0 0 0.5rem;
  color: #ccff33;
  font-variation-settings: 'wdth' 100;
  animation: breathe 6s ease-in-out infinite;
}
.subtitle {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(234, 238, 247, 0.5);
  margin: 0;
}

/* --- Dictated quote --- */
.quote-section {
  padding: 4rem 0;
  border-top: 1px solid rgba(204, 255, 51, 0.1);
  border-bottom: 1px solid rgba(204, 255, 51, 0.1);
  margin: 2rem 0;
}
.dictated-quote {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.5;
  color: rgba(234, 238, 247, 0.85);
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  min-height: 2.6em;
  position: relative;
}
.dictated-quote .dw {
  display: inline-block;
  opacity: 0;
  animation: appear 0.4s ease-out forwards;
  animation-delay: var(--d, 0s);
}
.dictated-quote.ready::after {
  content: '|';
  display: inline-block;
  color: #ccff33;
  animation: blink 0.9s step-end infinite;
  font-weight: 300;
  margin-left: 2px;
}
@keyframes appear {
  to { opacity: 1; }
}
@keyframes blink {
  50% { opacity: 0; }
}

/* --- Projects / index card stack --- */
.projects {
  padding: 4rem 0;
}
.card-stack {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  background: rgba(26, 45, 71, 0.4);
  border: 1px solid rgba(204, 255, 51, 0.1);
  box-shadow: 4px 4px 0 rgba(0,0,0,0.8);
  transform: rotate(-1deg);
  padding: 1.25rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:nth-child(even) {
  transform: rotate(1deg);
}
.card:hover {
  transform: rotate(0deg) translateY(-4px);
  box-shadow: 6px 6px 0 rgba(0,0,0,0.9);
  border-color: rgba(204, 255, 51, 0.3);
}
.card .img-placeholder {
  aspect-ratio: 4/3;
  box-shadow: 2px 2px 0 rgba(0,0,0,0.6);
  transform: none;
}
.card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.card-body h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
  color: #ccff33;
}
.card-body p {
  font-size: 0.95rem;
  color: rgba(234, 238, 247, 0.7);
  margin: 0;
  line-height: 1.6;
}

/* --- About --- */
.about {
  padding: 4rem 0;
}
.about-content {
  max-width: 680px;
}
.about-text p {
  font-size: 1.1rem;
  margin: 0 0 1.2rem;
  color: rgba(234, 238, 247, 0.8);
}
.about-cta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #ccff33;
  margin-top: 1.5rem;
}

/* --- Contact --- */
.contact {
  padding: 4rem 0;
}
#contact-form {
  max-width: 520px;
}
.form-row {
  margin-bottom: 1.25rem;
}
.form-row label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.4rem;
  color: rgba(234, 238, 247, 0.5);
}
.form-row input,
.form-row textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(26, 45, 71, 0.5);
  border: 1px solid rgba(204, 255, 51, 0.15);
  border-radius: 0;
  color: #eaeef7;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1rem;
  transition: border-color 0.2s;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: #ccff33;
  box-shadow: 0 0 0 1px #ccff33;
}
#contact-form button {
  background: #ccff33;
  color: #0e1a2b;
  border: none;
  padding: 0.8rem 2.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  cursor: pointer;
  transition: opacity 0.2s;
  font-weight: 600;
}
#contact-form button:hover {
  opacity: 0.85;
}
.form-status {
  margin-top: 1rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: rgba(234, 238, 247, 0.6);
}

/* --- Footer --- */
.site-footer {
  text-align: center;
  padding: 2rem 1.5rem;
  border-top: 1px solid rgba(204, 255, 51, 0.08);
  font-size: 0.8rem;
  color: rgba(234, 238, 247, 0.35);
}
.site-footer p { margin: 0.3rem 0; }

/* --- Responsive --- */
@media (max-width: 720px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .card {
    grid-template-columns: 1fr;
    transform: rotate(0deg) !important;
  }
  .section-heading {
    font-size: 2rem;
  }
  main {
    padding: 3rem 1rem 2rem;
  }
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .marquee { animation: none; }
  .hero-text h1, .section-heading { animation: none; font-variation-settings: 'wdth' 100; }
  .dictated-quote .dw { opacity: 1; animation: none; }
  .dictated-quote.ready::after { animation: none; opacity: 0; }
  .card:hover { transform: rotate(-1deg); }
  .card:nth-child(even):hover { transform: rotate(1deg); }
}
