/* =========================================================================
   Castle Productions — cinematic landing page
   Same castle-medallion brand DNA as Castle Records, tuned for film:
   full-bleed video hero, letterbox blacks, gold Cinzel titles.
   ========================================================================= */

:root {
  --gold-hi:   #FAECB4;
  --gold:      #E7C66B;
  --gold-mid:  #C8923A;
  --gold-deep: #8a5e1f;

  --purple-glow: #b07bff;
  --purple:      #7a3ff2;

  --bg-0: #050308;
  --bg-1: #0c0716;
  --card: rgba(23, 13, 44, 0.7);
  --card-border: rgba(176, 123, 255, 0.26);
  --line: rgba(176, 123, 255, 0.14);

  --text:  #efe9ff;
  --muted: #b3a8d4;
  --faint: #857aab;

  --radius: 16px;
  --maxw: 1140px;

  --serif: "Cinzel", Georgia, serif;
  --body:  "EB Garamond", Georgia, serif;
  --ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--ui);
  color: var(--text);
  background: linear-gradient(180deg, var(--bg-1), var(--bg-0) 55%);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }
.center { text-align: center; }

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-hi); }

h1, h2, h3 { font-family: var(--serif); font-weight: 700; letter-spacing: 1px; line-height: 1.12; margin: 0; }

.gold {
  background: linear-gradient(180deg, var(--gold-hi) 0%, var(--gold) 38%, var(--gold-mid) 72%, var(--gold-deep) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.eyebrow { color: var(--purple-glow); letter-spacing: 4px; text-transform: uppercase; font-size: .74rem; font-weight: 700; margin: 0 0 10px; }
.lede { font-family: var(--body); font-size: 1.22rem; color: var(--muted); margin: 18px auto 0; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 30;
  background: linear-gradient(180deg, rgba(5,3,8,0.92), rgba(5,3,8,0.55));
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  border-bottom: 1px solid rgba(176,123,255,0.08);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 46px; height: 46px; border-radius: 50%; box-shadow: 0 0 18px rgba(176,123,255,0.55); }
.brand .name { font-family: var(--serif); font-size: 1.05rem; letter-spacing: 2px; white-space: nowrap; }
.nav { margin-left: auto; display: flex; gap: 4px; align-items: center; }
.nav a { color: var(--muted); padding: 8px 14px; border-radius: 8px; font-size: .94rem; }
.nav a:hover { color: var(--text); background: rgba(176,123,255,0.12); }
.nav a.cta { color: #1a0e02; background: linear-gradient(180deg, var(--gold-hi), var(--gold-mid)); font-weight: 700; margin-left: 8px; white-space: nowrap; }
.nav a.cta:hover { filter: brightness(1.08); color: #1a0e02; }
@media (max-width: 720px) {
  .nav a:not(.cta) { display: none; }
  .brand { gap: 8px; }
  .brand .name { font-size: .74rem; letter-spacing: .5px; }
  .brand img { width: 34px; height: 34px; }
  .nav a.cta { font-size: .82rem; padding: 8px 11px; margin-left: 4px; }
  .site-header .wrap { height: 58px; padding: 0 14px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--ui); font-weight: 600; font-size: 1rem;
  padding: 13px 26px; border-radius: 10px; border: 1px solid transparent;
  cursor: pointer; transition: transform .08s ease, filter .15s ease, background .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-gold { color: #1a0e02; background: linear-gradient(180deg, var(--gold-hi), var(--gold-mid)); box-shadow: 0 10px 30px rgba(200,146,58,0.35); }
.btn-gold:hover { filter: brightness(1.07); color: #1a0e02; }
.btn-ghost { color: var(--text); background: rgba(10,6,20,0.45); border-color: var(--card-border); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(176,123,255,0.18); }

/* ---------- Hero ---------- */
.hero {
  position: relative; height: 100svh; min-height: 560px;
  display: flex; align-items: flex-end; justify-content: center;
  overflow: hidden; text-align: center;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(5,3,8,0.55) 0%, rgba(5,3,8,0.12) 35%, rgba(5,3,8,0.16) 60%, rgba(5,3,8,0.92) 100%);
}
.hero-content { position: relative; z-index: 2; padding-bottom: 56px; }
.kicker { color: var(--gold); letter-spacing: 5px; text-transform: uppercase; font-size: .8rem; margin: 0 0 8px; text-shadow: 0 2px 18px rgba(0,0,0,0.8); }
.hero .sub { font-family: var(--body); font-style: italic; font-size: clamp(1.15rem, 2.6vw, 1.5rem); color: var(--text); opacity: .95; margin: 0 0 26px; text-shadow: 0 2px 18px rgba(0,0,0,0.8); }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Sections ---------- */
.block { padding: 96px 0; }
.block-alt { background: linear-gradient(180deg, rgba(122,63,242,0.07), rgba(122,63,242,0.015)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.block h2 { font-size: clamp(1.9rem, 4.4vw, 3rem); }

.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 54px; }
@media (max-width: 880px) { .trio { grid-template-columns: 1fr; } }

.card {
  background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius);
  padding: 30px; box-shadow: 0 18px 50px rgba(0,0,0,0.5);
}
.feature { text-align: center; }
.feature .fi { font-size: 2rem; margin-bottom: 12px; }
.feature h3 { font-size: 1.2rem; color: var(--gold-hi); margin-bottom: 10px; }
.feature p { font-family: var(--body); font-size: 1.05rem; color: var(--muted); margin: 0; }

/* ---------- Slate projects ---------- */
.project {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; align-items: center;
  margin-top: 70px;
}
.project.reverse .project-media { order: 2; }
.project.reverse .project-info { order: 1; }
@media (max-width: 880px) {
  .project { grid-template-columns: 1fr; gap: 24px; }
  .project.reverse .project-media { order: 0; }
}

.project-media img {
  width: 100%; display: block; border-radius: var(--radius);
  border: 1px solid var(--card-border);
  box-shadow: 0 24px 70px rgba(0,0,0,0.65), 0 0 40px rgba(122,63,242,0.18);
}

/* The Last Viking placeholder art — engraved title card */
.viking-art {
  aspect-ratio: 16 / 10; border-radius: var(--radius);
  border: 1px solid var(--card-border);
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(122,63,242,0.28), transparent 55%),
    radial-gradient(80% 60% at 50% 105%, rgba(200,146,58,0.2), transparent 60%),
    linear-gradient(180deg, #120a24, #07040f);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  box-shadow: 0 24px 70px rgba(0,0,0,0.65), inset 0 0 60px rgba(0,0,0,0.5);
}
.viking-rune { font-size: 3.4rem; color: var(--purple-glow); opacity: .85; text-shadow: 0 0 24px rgba(176,123,255,0.7); }
.viking-title {
  font-family: var(--serif); font-weight: 700; font-size: clamp(1.6rem, 3.4vw, 2.5rem);
  letter-spacing: 6px; text-align: center; line-height: 1.25;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold-mid) 75%, var(--gold-deep));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* The Experiment title card — serum-vial countdown motif */
.experiment-art {
  aspect-ratio: 16 / 10; border-radius: var(--radius);
  border: 1px solid var(--card-border);
  background:
    radial-gradient(90% 70% at 50% 110%, rgba(96, 240, 190, 0.16), transparent 60%),
    radial-gradient(120% 90% at 50% -10%, rgba(122,63,242,0.3), transparent 55%),
    linear-gradient(180deg, #0e0820, #060310);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  box-shadow: 0 24px 70px rgba(0,0,0,0.65), inset 0 0 60px rgba(0,0,0,0.5);
}
.exp-timer {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 1.05rem; letter-spacing: 6px; color: #7ef0c4;
  text-shadow: 0 0 18px rgba(96,240,190,0.65);
}
.exp-title {
  font-family: var(--serif); font-weight: 700; font-size: clamp(1.6rem, 3.4vw, 2.5rem);
  letter-spacing: 6px; text-align: center; line-height: 1.25;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold-mid) 75%, var(--gold-deep));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.exp-sub { color: var(--faint); letter-spacing: 4px; font-size: .62rem; }

.proj-links { margin: 16px 0 0; }
.imdb-link {
  display: inline-block; font-size: .82rem; font-weight: 700; letter-spacing: 1px;
  color: #0e0820; background: #f5c518; border-radius: 6px; padding: 7px 14px;
}
.imdb-link:hover { filter: brightness(1.1); color: #0e0820; }

.project-info .status { color: var(--purple-glow); letter-spacing: 3px; text-transform: uppercase; font-size: .74rem; font-weight: 700; margin: 0 0 8px; }
.project-info h3 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); margin-bottom: 6px; }
.project-info .genre { color: var(--faint); font-size: .95rem; letter-spacing: 1px; margin: 0 0 16px; }
.project-info .logline { font-family: var(--body); font-size: 1.18rem; color: var(--text); margin: 0 0 14px; }
.project-info .note { font-family: var(--body); font-size: 1.02rem; color: var(--muted); font-style: italic; margin: 0; }

/* ---------- Founder / credits ---------- */
.founder-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.credits-wrap { max-width: 720px; margin-top: 54px; }
.credits-head { font-family: var(--serif); color: var(--gold-hi); font-size: 1.05rem; letter-spacing: 2px; text-transform: uppercase; margin: 0 0 14px; }
.credits-src { color: var(--faint); font-family: var(--ui); font-size: .78rem; letter-spacing: 1px; text-transform: none; }
.credits-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.credits-list li { border-bottom: 1px solid var(--line); }
.credits-list a {
  display: grid; grid-template-columns: 1fr auto auto; gap: 8px 18px; align-items: baseline;
  padding: 16px 6px; transition: background .15s ease;
}
.credits-list a:hover { background: rgba(176,123,255,0.07); }
.credits-list .ct { font-family: var(--serif); font-size: 1.12rem; color: var(--gold); }
.credits-list .cm { color: var(--faint); font-size: .86rem; }
.credits-list .cs {
  font-size: .7rem; letter-spacing: 1.5px; text-transform: uppercase;
  border: 1px solid var(--card-border); color: var(--purple-glow);
  border-radius: 999px; padding: 3px 11px; white-space: nowrap;
}
.credits-list .cs.done { color: #7ef0c4; border-color: rgba(96,240,190,0.4); }
@media (max-width: 640px) {
  .credits-list a { grid-template-columns: 1fr auto; }
  .credits-list .cm { grid-column: 1 / -1; }
}

/* ---------- Contact ---------- */
.contact-card { padding: 54px 40px; }
.contact-card .seal { width: 110px; height: 110px; border-radius: 50%; box-shadow: 0 0 46px rgba(176,123,255,0.55); margin-bottom: 18px; }
.contact-lines { margin: 26px 0 12px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 44px 0 60px; }
.site-footer .wrap { display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.site-footer .brand img { width: 40px; height: 40px; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(3,2,6,0.94);
  display: flex; align-items: center; justify-content: center; padding: 4vw;
}
.lightbox[hidden] { display: none; }
.lightbox video { width: min(1100px, 92vw); max-height: 86vh; border-radius: 12px; box-shadow: 0 0 90px rgba(122,63,242,0.4); }
.lightbox-close {
  position: absolute; top: 20px; right: 26px;
  background: none; border: none; color: var(--muted); font-size: 1.6rem; cursor: pointer;
}
.lightbox-close:hover { color: var(--text); }
