/* ============================================================
   MASTERS OF ENTERTAINMENT — design system
   Dark + gold. Serif headings (Playfair Display), Inter body.
   ============================================================ */
:root {
  --bg: #101010;
  --surface: #1a1a1a;
  --surface-2: #232323;
  --gold: #fecd0a;
  --gold-dim: #c9a227;
  --text: #f5f5f0;
  --muted: #9a9a94;
  --line: #2e2e2e;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Inter", -apple-system, "Segoe UI", sans-serif;
  --radius: 10px;
  --maxw: 1080px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: #ffd93b; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.2; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(16, 16, 16, 0.96);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.brand .monogram { width: 44px; height: 44px; }
.brand-name { font-family: var(--serif); font-size: 1.15rem; letter-spacing: 0.02em; }
.brand-name em { color: var(--gold); font-style: normal; }
.nav { display: flex; gap: 26px; list-style: none; }
.nav a { color: var(--muted); font-size: 0.92rem; letter-spacing: 0.04em; text-transform: uppercase; padding: 8px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--gold); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--text); font-size: 1.2rem; padding: 6px 12px; border-radius: 6px; cursor: pointer; }
@media (max-width: 768px) {
  html, body { overflow-x: clip; max-width: 100%; }
  .header-inner { position: relative; }
  .brand { position: static; }
  .brand img { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); z-index: 60; }
  .brand-name { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); max-width: calc(100vw - 140px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: clamp(0.85rem, 4vw, 1.05rem); }
  .nav-toggle { display: block; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); z-index: 60; }
  .nav-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.55); z-index: 54; opacity: 0; visibility: hidden; transition: opacity 0.25s ease, visibility 0s 0.25s; }
  .nav { display: flex; position: fixed; top: 0; right: 0; bottom: 0; width: 268px; background: #141414; border-left: 1px solid var(--line); flex-direction: column; gap: 6px; padding: 96px 24px 24px; transform: translateX(100%); visibility: hidden; transition: transform 0.28s ease, visibility 0s 0.28s; box-shadow: -14px 0 44px rgba(0, 0, 0, 0.6); z-index: 55; }
  body.nav-open .nav-backdrop { opacity: 1; visibility: visible; transition: opacity 0.25s ease; }
  body.nav-open .nav { transform: translateX(0); visibility: visible; transition: transform 0.28s ease, visibility 0s 0s; }
  body.nav-open { overflow: hidden; }
  .nav a { font-size: 1.02rem; padding: 13px 4px; border-bottom: 1px solid var(--line); width: 100%; }
  .nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--gold); }
  section[id] { scroll-margin-top: 76px; }
}

/* ---------- hero ---------- */
.hero { position: relative; text-align: center; padding: 96px 20px 80px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(254, 205, 10, 0.10), transparent 60%),
    radial-gradient(ellipse 40% 40% at 85% 90%, rgba(254, 205, 10, 0.05), transparent 70%),
    var(--bg);
}
.hero .monogram { width: 150px; height: 150px; margin: 0 auto 28px; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); letter-spacing: 0.01em; }
.hero h1 .gold { color: var(--gold); }
.hero .tagline { margin-top: 18px; color: var(--muted); font-size: clamp(1rem, 2.4vw, 1.25rem); max-width: 640px; margin-left: auto; margin-right: auto; }
.hero-cta { margin-top: 34px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-block; padding: 13px 28px; border-radius: 999px; font-weight: 600; letter-spacing: 0.03em; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: #101010; }
.btn-gold:hover { color: #101010; box-shadow: 0 8px 24px rgba(254, 205, 10, 0.35); }
.btn-ghost { border: 1px solid var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- sections ---------- */
.section { padding: 64px 20px; }
section[id] { scroll-margin-top: 80px; }
.section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.overline { color: var(--gold); text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.8rem; font-weight: 600; }
.section h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin: 10px 0 22px; }
.section .lede { color: var(--muted); max-width: 720px; }
.grid { display: grid; gap: 22px; margin-top: 34px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }
.card { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: border-color 0.2s ease, transform 0.2s ease; }
.card:hover { border-color: var(--gold-dim); transform: translateY(-3px); }
.card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.95rem; }
.card ul { list-style: none; margin-top: 12px; }
.card li { color: var(--muted); font-size: 0.9rem; padding: 4px 0 4px 18px; position: relative; }
.card li::before { content: "◆"; color: var(--gold); position: absolute; left: 0; font-size: 0.6rem; top: 9px; }

/* ---------- testimonials ---------- */
.testimonial { font-family: var(--serif); font-style: italic; font-size: 1.02rem; color: var(--text); }
.testimonial footer { margin-top: 14px; font-family: var(--sans); font-style: normal; font-size: 0.85rem; color: var(--gold); letter-spacing: 0.05em; text-transform: uppercase; }

/* ---------- photo grid ---------- */
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 30px; }
@media (max-width: 860px) { .photo-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .photo-grid { grid-template-columns: 1fr; } }
.photo-cell { position: relative; aspect-ratio: 4/3; overflow: hidden; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line); cursor: pointer; }
.photo-cell img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.photo-cell:hover img { transform: scale(1.05); }
.photo-cell .ph { display: flex; align-items: center; justify-content: center; height: 100%; font-family: var(--serif); color: var(--gold-dim); font-size: 2rem; }
/* lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.92); display: none; align-items: center; justify-content: center; z-index: 100; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 8px; }
.lightbox .lb-close, .lightbox .lb-prev, .lightbox .lb-next { position: absolute; background: none; border: none; color: var(--text); font-size: 1.6rem; cursor: pointer; opacity: 0.8; }
.lightbox .lb-close { top: 18px; right: 24px; }
.lightbox .lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 18px; top: 50%; transform: translateY(-50%); }

/* ---------- blog ---------- */
.post { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin-bottom: 26px; }
.post h2 { font-size: 1.45rem; margin-bottom: 12px; }
.post .date { color: var(--gold); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 14px; display: block; }
.post p { margin-bottom: 14px; }
.post .embed { position: relative; padding-bottom: 56.25%; height: 0; margin: 18px 0; border-radius: 8px; overflow: hidden; }
.post .embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- contact ---------- */
.contact-wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; margin-top: 30px; }
@media (max-width: 860px) { .contact-wrap { grid-template-columns: 1fr; } }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; color: var(--muted); font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 6px; }
.form-group input, .form-group textarea {
  width: 100%; background: var(--surface-2); border: 1px solid var(--line); color: var(--text);
  padding: 12px 14px; border-radius: 8px; font-family: var(--sans); font-size: 1rem;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--gold); }
.info-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; height: fit-content; }
.info-panel h3 { margin-bottom: 16px; }
.info-panel ul { list-style: none; }
.info-panel li { padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.info-panel li strong { color: var(--text); display: block; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; }
.form-note { color: var(--muted); font-size: 0.9rem; margin-top: 14px; }
.form-success { display: none; background: rgba(254,205,10,0.12); border: 1px solid var(--gold-dim); color: var(--gold); padding: 16px 20px; border-radius: 8px; margin-bottom: 20px; }
body.form-sent .form-success { display: block; }
body.form-sent .contact-form { display: none; }

/* ---------- footer ---------- */
.site-footer { background: #0b0b0b; border-top: 1px solid var(--line); padding: 50px 20px 24px; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; max-width: var(--maxw); margin: 0 auto; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { font-size: 0.95rem; margin-bottom: 14px; color: var(--text); }
.footer-grid ul { list-style: none; }
.footer-grid li { color: var(--muted); font-size: 0.9rem; padding: 4px 0; }
.footer-grid a { color: var(--muted); }
.footer-grid a:hover { color: var(--gold); }
.footer-bottom { max-width: var(--maxw); margin: 34px auto 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.8rem; text-align: center; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.revealed { opacity: 1; transform: none; }

/* ---------- hero slider ---------- */
.hero { position: relative; text-align: center; padding: 0; min-height: 82vh; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-slider { position: absolute; inset: 0; z-index: 0; }
.hero-slider .slide { position: absolute; inset: 0; opacity: 0; animation: heroFade 16s infinite; }
.hero-slider .slide:nth-child(1) { animation-delay: 0s; }
.hero-slider .slide:nth-child(2) { animation-delay: 4s; }
.hero-slider .slide:nth-child(3) { animation-delay: 8s; }
.hero-slider .slide:nth-child(4) { animation-delay: 12s; }
.hero-slider .slide img { width: 100%; height: 100%; object-fit: cover; }
@keyframes heroFade { 0% { opacity: 0; } 18% { opacity: 1; } 72% { opacity: 1; } 88% { opacity: 0; } 100% { opacity: 0; } }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(16,16,16,0.72), rgba(16,16,16,0.55) 45%, rgba(16,16,16,0.88)); }
.hero-inner { position: relative; z-index: 2; padding: 100px 20px; max-width: 800px; }
.hero-inner .logo-img { width: 220px; margin: 0 auto 24px; filter: drop-shadow(0 4px 18px rgba(0,0,0,0.6)); }
.hero-inner h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
.hero-inner h1 .gold { color: var(--gold); }
.hero-inner .tagline { margin-top: 16px; color: #ddd; font-size: clamp(1rem, 2.4vw, 1.2rem); }

/* ---------- media rows & photo strip ---------- */
.brand img { height: 40px; width: auto; }
@media (max-width: 640px) {
  .hero { min-height: 68vh; }
  .hero-inner { padding: 56px 20px 64px; }
  .hero-inner .logo-img { width: 120px; margin-bottom: 14px; }
  .hero-inner h1 { font-size: 1.9rem; }
}
.media-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin: 26px 0; }
.media-row img { width: 320px; max-width: 100%; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0,0,0,0.4); }
.photo-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 30px; }
@media (max-width: 720px) { .photo-strip { grid-template-columns: 1fr; } }
.photo-strip img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); }

/* ---------- inline blog post cards ---------- */
.post-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-top: 26px; }
.post-card h3 { font-size: 1.3rem; margin-bottom: 6px; }
.post-card .date { color: var(--gold); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; display: block; margin-bottom: 12px; }
.post-card p { color: var(--muted); margin-bottom: 12px; font-size: 0.97rem; }
.post-card blockquote { border-left: 3px solid var(--gold); padding-left: 16px; margin: 14px 0; color: var(--text); font-style: italic; }
.post-card .embed { position: relative; padding-bottom: 56.25%; height: 0; margin: 14px 0; border-radius: 8px; overflow: hidden; }
.post-card .embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- misc ---------- */
.page-hero { text-align: center; padding: 64px 20px 20px; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.page-hero p { color: var(--muted); max-width: 640px; margin: 14px auto 0; }
.prose { max-width: 760px; margin: 40px auto 0; }
.prose p { margin-bottom: 18px; color: var(--text); }
.prose h2 { margin: 34px 0 12px; font-size: 1.5rem; }
.cta-band { text-align: center; padding: 56px 20px; background: linear-gradient(160deg, rgba(254,205,10,0.10), transparent 55%); border-top: 1px solid var(--line); }
.cta-band h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
.cta-band p { color: var(--muted); margin: 12px 0 26px; }
.photo-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin: 30px 0; }
.photo-row img { width: 300px; border-radius: var(--radius); border: 1px solid var(--line); }
.team-card { display: flex; gap: 24px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-top: 30px; }
@media (max-width: 700px) { .team-card { flex-direction: column; text-align: center; } }
.team-card .avatar { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 3px solid var(--gold); flex-shrink: 0; }
