﻿/* ============================================
   RYAN LOUDER &mdash; Custom Website
   What survives when two realities meet.
   ============================================ */

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0908;
  --bg-2: #14110f;
  --bg-3: #1c1815;
  --text: #e8d5b0;
  --text-dim: #8a7d68;
  --text-bright: #f5ead5;
  --accent: #c4a35a;
  --accent-glow: rgba(196, 163, 90, 0.15);
  --border: rgba(196, 163, 90, 0.12);
  --serif: 'Georgia', 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --max: 1280px;
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ===== NAV ===== */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(10, 9, 8, 0);
  transition: background 0.4s ease, backdrop-filter 0.4s ease;
}
#nav.scrolled {
  background: rgba(10, 9, 8, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.15em;
  color: var(--text-bright);
  text-decoration: none;
  font-weight: 600;
}
.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.05em;
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--text-bright); }
.nav-cta {
  border: 1px solid var(--border);
  padding: 7px 16px !important;
  border-radius: 4px;
  color: var(--accent) !important;
  transition: all 0.3s;
}
.nav-cta:hover {
  border-color: var(--accent);
  background: var(--accent-glow);
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: 0.3s;
}

/* ===== HERO ===== */
#hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.35) contrast(1.1);
  transform: scale(1.05);
  animation: heroZoom 20s ease-out forwards;
}
@keyframes heroZoom {
  from { transform: scale(1.15); }
  to { transform: scale(1.05); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 0%, rgba(10,9,8,0.6) 70%, rgba(10,9,8,0.95) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 32px;
  max-width: 900px;
}
.hero-title {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--text-bright);
  letter-spacing: -0.01em;
  margin-bottom: 24px;
  text-shadow: 0 2px 40px rgba(0,0,0,0.5);
}
.hero-sub {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: var(--text-dim);
  line-height: 1.8;
  margin-bottom: 40px;
}
.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}
.hero-scroll span {
  width: 1px;
  height: 20px;
  background: var(--text-dim);
  animation: scrollPulse 2s ease-in-out infinite;
}
.hero-scroll span:nth-child(2) { animation-delay: 0.3s; }
.hero-scroll span:nth-child(3) { animation-delay: 0.6s; }
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 14px 28px;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
  font-family: var(--sans);
}
.btn-primary {
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
}
.btn-primary:hover {
  background: var(--text-bright);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--accent-glow);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--text-bright);
  background: var(--accent-glow);
}
.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--accent);
  background: var(--accent-glow);
}

/* ===== SECTIONS ===== */
section {
  padding: 100px 32px;
  max-width: var(--max);
  margin: 0 auto;
}
.section-header {
  margin-bottom: 60px;
}
.section-num {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--accent);
  letter-spacing: 0.2em;
  margin-bottom: 12px;
}
.section-header h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 400;
  color: var(--text-bright);
  margin-bottom: 20px;
  line-height: 1.2;
}
.section-intro {
  font-size: 1.05rem;
  color: var(--text-dim);
  max-width: 800px;
  line-height: 1.8;
}

/* ===== PAINTINGS ===== */
.painting-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}
.painting-card {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
  background: var(--bg-2);
  aspect-ratio: 1;
  transition: transform 0.3s, box-shadow 0.3s;
}
.painting-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
.painting-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s, filter 0.3s;
  filter: brightness(0.92);
}
.painting-card:hover img {
  transform: scale(1.06);
  filter: brightness(1);
}
.painting-card .painting-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 16px 14px 12px;
  background: linear-gradient(transparent, rgba(10,9,8,0.9));
  font-family: var(--serif);
  font-size: 14px;
  color: var(--text-bright);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s;
}
.painting-card:hover .painting-label {
  opacity: 1;
  transform: translateY(0);
}
.painting-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

/* ===== PRINTS ===== */
.print-info {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 40px;
}
.print-info h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--text-bright);
  margin-bottom: 24px;
}
.print-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.print-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 20px;
  text-align: center;
  transition: border-color 0.3s;
}
.print-card:hover { border-color: var(--accent); }
.print-size {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 8px;
}
.print-price {
  font-size: 1.3rem;
  color: var(--accent);
  font-weight: 600;
}
.print-note {
  font-size: 0.9rem;
  color: var(--text-dim);
}
.print-note a { color: var(--accent); text-decoration: none; }
.print-note a:hover { text-decoration: underline; }


/* ===== ANALYSIS VIDEOS ===== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}
.video-card {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
  background: var(--bg-2);
  aspect-ratio: 16/9;
  transition: transform 0.3s, box-shadow 0.3s;
}
.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
.video-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s, filter 0.3s;
  filter: brightness(0.85);
}
.video-card:hover img {
  transform: scale(1.06);
  filter: brightness(1);
}
.video-card .video-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10,9,8,0.3);
  transition: background 0.3s;
}
.video-card:hover .video-play-overlay {
  background: rgba(10,9,8,0.15);
}
.video-card .video-play-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(196,163,90,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s, background 0.3s;
}
.video-card:hover .video-play-icon {
  transform: scale(1.15);
  background: var(--accent);
}
.video-card .video-play-icon::after {
  content: '';
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent var(--bg);
  margin-left: 4px;
}
.video-card .video-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 16px 14px 12px;
  background: linear-gradient(transparent, rgba(10,9,8,0.9));
  font-family: var(--serif);
  font-size: 14px;
  color: var(--text-bright);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s;
}
.video-card:hover .video-label {
  opacity: 1;
  transform: translateY(0);
}
.video-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

/* ===== VIDEO LIGHTBOX ===== */
.video-lightbox-inner {
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.video-lightbox-inner iframe {
  width: 80vw;
  max-width: 900px;
  aspect-ratio: 16/9;
  border-radius: 8px;
  border: 1px solid var(--border);
}
#video-lightbox-title {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--text-dim);
}

/* ===== MUSIC ===== */
.music-credits {
  margin-bottom: 40px;
}
.credit-row {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.credit-artist {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--text-bright);
  white-space: nowrap;
  min-width: 180px;
}
.credit-detail {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.6;
}
.music-quote {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--text);
  border-left: 3px solid var(--accent);
  padding: 16px 0 16px 24px;
  margin: 40px 0 8px;
  max-width: 700px;
}
.quote-attr {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin-bottom: 40px;
  padding-left: 27px;
}
.music-players {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 40px;
}
.player-block h3 {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--text-bright);
  margin-bottom: 12px;
}
.player-block iframe {
  border-radius: 8px;
  border: 1px solid var(--border);
}
.music-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ===== FILM ===== */
.film-block {
  margin-bottom: 48px;
}
.film-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.6rem;
  color: var(--accent);
  margin-bottom: 4px;
}
.film-tagline {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-bottom: 16px;
  font-style: italic;
}
.film-videos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 16px;
}
.film-video {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  aspect-ratio: 16/9;
  background: #000;
}
.film-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.film-status {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px;
}
.status-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.status-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.status-value {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--text-bright);
}
.status-value a { color: var(--accent); text-decoration: none; }

/* ===== WRITING ===== */
.novel-card {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 40px;
  align-items: start;
}
.novel-cover {
  aspect-ratio: 2/3;
  background: linear-gradient(135deg, #1c1815 0%, #2a2218 50%, #1c1815 100%);
  border: 1px solid var(--border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.novel-cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, var(--accent-glow), transparent 60%);
}
.novel-cover-inner {
  position: relative;
  text-align: center;
  padding: 20px;
}
.novel-title-big {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--text-bright);
  line-height: 1.1;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}
.novel-author {
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.2em;
}
.novel-info h3 {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--text-bright);
  margin-bottom: 20px;
}
.novel-meta {
  margin-bottom: 20px;
}
.meta-row {
  display: flex;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.meta-row span:first-child {
  font-size: 0.8rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  min-width: 100px;
}
.meta-row span:last-child {
  color: var(--text);
  font-size: 0.95rem;
}
.novel-pitch {
  font-style: italic;
  color: var(--text-dim);
  margin-bottom: 20px;
  line-height: 1.8;
}

/* ===== MCBSE ===== */
.mcbse-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}
.mcbse-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px;
  transition: border-color 0.3s, transform 0.3s;
}
.mcbse-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}
.mcbse-icon { font-size: 2rem; margin-bottom: 16px; }
.mcbse-card h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--text-bright);
  margin-bottom: 12px;
}
.mcbse-card p {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.7;
}
.mcbse-card em { color: var(--accent); font-style: normal; }
.mcbse-cross {
  text-align: center;
  margin-bottom: 40px;
}
.mcbse-cross p {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--text);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}
.mcbse-cta {
  text-align: center;
}

/* ===== ABOUT ===== */
.about-body {
  max-width: 800px;
}
.about-body p {
  font-size: 1.1rem;
  line-height: 1.9;
  margin-bottom: 24px;
  color: var(--text);
}
.about-body em { color: var(--accent); font-style: normal; }
.about-channels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.channel {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  transition: border-color 0.3s;
}
.channel:hover { border-color: var(--accent); }
.channel-icon { font-size: 2rem; margin-bottom: 12px; }
.channel h4 {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--text-bright);
  margin-bottom: 8px;
}
.channel p {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.6;
}
.channel em { color: var(--text); font-style: normal; }

/* ===== CONTACT ===== */
#contact {
  text-align: center;
}
.contact-inner h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--text-bright);
  margin-bottom: 40px;
  font-weight: 400;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}
.contact-card {
  display: block;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px;
  text-decoration: none;
  transition: all 0.3s;
}
.contact-card:hover {
  border-color: var(--accent);
  background: var(--bg-3);
  transform: translateY(-3px);
}
.contact-type {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--text-bright);
  margin-bottom: 8px;
}
.contact-action {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.6;
}
.contact-card em { color: var(--text); font-style: normal; }
.contact-email {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--accent);
  letter-spacing: 0.05em;
}

/* ===== FOOTER ===== */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 32px;
  max-width: var(--max);
  margin: 0 auto;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-name {
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.15em;
  color: var(--text-bright);
  margin-bottom: 4px;
}
.footer-tag {
  font-size: 0.85rem;
  color: var(--text-dim);
  font-style: italic;
}
.footer-links {
  display: flex;
  gap: 20px;
}
.footer-links a {
  color: var(--text-dim);
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  text-align: center;
  margin-top: 24px;
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ===== LIGHTBOX ===== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.lightbox.active { display: flex; }
.lightbox-inner {
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.lightbox-inner img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 4px;
}
#lightbox-title {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--text-dim);
}
.lightbox-close {
  position: fixed;
  top: 20px;
  right: 30px;
  background: none;
  border: none;
  font-size: 2.5rem;
  color: var(--text);
  cursor: pointer;
  z-index: 2001;
  transition: color 0.3s;
}
.lightbox-close:hover { color: var(--accent); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 60px;
    left: 0; right: 0;
    background: rgba(10,9,8,0.97);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 20px 32px;
    gap: 16px;
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
    pointer-events: none;
  }
  body.nav-open .nav-links {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .credit-row { flex-direction: column; gap: 4px; }
  .credit-artist { min-width: auto; }
  .music-players { grid-template-columns: 1fr; }
  .novel-card { grid-template-columns: 1fr; }
  .novel-cover { max-width: 250px; margin: 0 auto; }
  section { padding: 60px 20px; }
  .footer-inner { flex-direction: column; text-align: center; }
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
