/* =========================================================
   The Wizards of Ox — Stylesheet
   ========================================================= */

:root {
  /* Palette */
  --bg-0: #050714;
  --bg-1: #0a0d22;
  --bg-2: #0f1330;
  --bg-3: #150a26;
  --panel: rgba(14, 12, 30, 0.72);
  --panel-2: rgba(20, 16, 36, 0.6);

  --gold-1: #f6d77a;
  --gold-2: #d9a441;
  --gold-3: #8a5a1a;
  --gold-soft: rgba(246, 215, 122, 0.18);
  --gold-line: rgba(246, 215, 122, 0.22);
  --gold-line-strong: rgba(246, 215, 122, 0.40);
  --gold-glow: rgba(246, 215, 122, 0.55);

  --crimson-1: #7a1322;
  --crimson-2: #4a0a12;
  --crimson-3: #2a060b;

  --ink-0: #f4ecd6;
  --ink-1: #d9d1bd;
  --ink-2: #a89e84;
  --ink-3: #756c56;

  /* Spacing scale (8px base) */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;

  --maxw: 1180px;
  --radius: 12px;
  --radius-lg: 16px;

  --serif: "Cinzel", "Cormorant Garamond", "Times New Roman", serif;
  --serif-italic: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --shadow-1: 0 10px 30px rgba(0,0,0,.35);
  --shadow-2: 0 20px 50px rgba(0,0,0,.45);
  --shadow-3: 0 30px 70px rgba(0,0,0,.55);

  --ease: cubic-bezier(.4, .0, .2, 1);
}

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

html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--sans);
  color: var(--ink-1);
  background:
    radial-gradient(1200px 700px at 85% -10%, rgba(120, 60, 140, 0.30), transparent 60%),
    radial-gradient(900px 600px at 5% 20%, rgba(40, 60, 140, 0.30), transparent 60%),
    linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 40%, var(--bg-2) 70%, var(--bg-3) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px; top: 0;
  background: var(--gold-1);
  color: var(--bg-0);
  padding: 10px 16px;
  font-weight: 600;
  z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

/* Starfield */
.starfield {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(1px 1px at 18% 24%, rgba(255,255,255,.75), transparent 60%),
    radial-gradient(1px 1px at 72% 78%, rgba(255,255,255,.5),  transparent 60%),
    radial-gradient(1.5px 1.5px at 42% 58%, rgba(246,215,122,.55), transparent 60%),
    radial-gradient(1px 1px at 85% 14%, rgba(255,255,255,.6),  transparent 60%),
    radial-gradient(1px 1px at 10% 76%, rgba(255,255,255,.45), transparent 60%),
    radial-gradient(1.5px 1.5px at 62% 28%, rgba(246,215,122,.45), transparent 60%);
  opacity: .75;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--s-5);
  position: relative;
  z-index: 1;
}

/* Selection */
::selection { background: var(--gold-1); color: var(--bg-0); }

/* Focus rings */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold-1);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  background: linear-gradient(180deg, rgba(5,7,20,.92) 0%, rgba(5,7,20,.55) 100%);
  border-bottom: 1px solid var(--gold-line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: var(--s-3) var(--s-5);
  gap: var(--s-4);
  position: relative;
  min-height: 100px;
}

.brand {
  position: absolute;
  top: 50%;
  left: var(--s-5);
  transform: translateY(-45%);
  display: block;
  line-height: 0;
  text-decoration: none;
  z-index: 5;
}
.brand-logo {
  display: block;
  height: 172px;
  width: auto;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 14px rgba(246, 215, 122, 0.25));
  transition: filter .25s var(--ease), transform .25s var(--ease);
}
.brand:hover .brand-logo {
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 22px rgba(246, 215, 122, 0.45));
  transform: scale(1.02);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--gold-line);
  cursor: pointer;
  padding: 10px;
  border-radius: 8px;
}
.menu-toggle span {
  width: 22px; height: 2px;
  background: var(--gold-1);
  border-radius: 2px;
}

.primary-nav { display: flex; align-items: center; gap: var(--s-5); }
.primary-nav a {
  color: var(--ink-1);
  text-decoration: none;
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 8px 2px;
  position: relative;
  transition: color .2s var(--ease);
}
.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 1px;
  background: var(--gold-1);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .25s var(--ease);
}
.primary-nav a:hover { color: var(--gold-1); }
.primary-nav a:hover::after { transform: scaleX(1); }

.primary-nav .nav-cta {
  border: 1px solid var(--gold-line-strong);
  padding: 8px 16px;
  border-radius: 999px;
  color: var(--gold-1);
}
.primary-nav .nav-cta::after { display: none; }
.primary-nav .nav-cta:hover {
  background: var(--gold-soft);
  border-color: var(--gold-1);
}

/* ============ SECTION HEADERS ============ */
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--s-7);
}
.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .35em;
  font-size: .72rem;
  font-weight: 600;
  color: var(--gold-2);
  margin-bottom: var(--s-3);
}
.section-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.8rem, 1.5vw + 1.2rem, 2.8rem);
  line-height: 1.1;
  color: var(--ink-0);
  margin: 0 0 var(--s-4);
  letter-spacing: .01em;
}
.section-lede {
  color: var(--ink-2);
  font-size: 1.02rem;
  margin: var(--s-4) auto 0;
  max-width: 56ch;
}

/* Ornament divider */
.ornament {
  display: flex;
  justify-content: center;
  margin: var(--s-3) auto;
}
.ornament svg {
  width: 160px; height: 12px;
  stroke: var(--gold-2);
  fill: var(--gold-2);
  stroke-width: 1;
  opacity: .85;
}
.ornament svg path:first-child { fill: none; }

/* ============ BUTTONS ============ */
.btn {
  --btn-bg: linear-gradient(180deg, rgba(20,16,40,.85), rgba(10,8,22,.95));
  --btn-border: var(--gold-line-strong);
  --btn-color: var(--ink-0);

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-3);
  padding: 13px 22px;
  min-height: 48px;
  text-decoration: none;
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: .15em;
  font-size: .8rem;
  text-transform: uppercase;
  color: var(--btn-color);
  background: var(--btn-bg);
  border: 1px solid var(--btn-border);
  border-radius: 10px;
  cursor: pointer;
  transition: transform .15s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
  box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 6px 18px rgba(0,0,0,.35);
}
.btn:hover {
  transform: translateY(-1px);
  border-color: var(--gold-1);
  box-shadow: 0 0 0 1px var(--gold-soft) inset, 0 10px 28px rgba(0,0,0,.45), 0 0 22px var(--gold-soft);
}
.btn .btn-icon { width: 16px; height: 16px; fill: currentColor; color: var(--gold-1); flex-shrink: 0; }

.btn-primary {
  --btn-bg: linear-gradient(180deg, #8a141e 0%, #4a0a12 100%);
  --btn-color: #fff5d6;
}
.btn-primary:hover { --btn-bg: linear-gradient(180deg, #a01828 0%, #5a0e16 100%); }

.btn-secondary {
  --btn-bg: linear-gradient(180deg, #5a3a10 0%, #2b1d08 100%);
  --btn-color: var(--gold-1);
}

.btn-ghost {
  --btn-bg: linear-gradient(180deg, rgba(10,12,28,.85), rgba(5,7,20,.95));
  --btn-color: var(--ink-0);
}

/* ============ HERO ============ */
.hero { padding: 0; }

.hero-banner {
  position: relative;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  overflow: hidden;
}
.hero-banner-img {
  display: block;
  width: 100%;
  height: auto;
}

/* Invisible clickable overlays for the three drawn CTAs */
.hero-hotspot {
  position: absolute;
  height: 14%;
  top: 79.5%;
  border-radius: 8px;
  transition: background .2s var(--ease), box-shadow .25s var(--ease);
}
.hero-hotspot:hover {
  background: rgba(246, 215, 122, 0.10);
  box-shadow: 0 0 0 1px rgba(246, 215, 122, 0.35), 0 0 22px rgba(246, 215, 122, 0.20);
}
.hot-hire { left: 4%;  width: 17%;   }
.hot-yt   { left: 22%; width: 16%;   }
.hot-ig   { left: 38%; width: 16.5%; }

/* ============ FEATURES ============ */
.features-section {
  padding: var(--s-8) 0 var(--s-7);
  border-top: 1px solid var(--gold-line);
  position: relative;
}
.features-section::before {
  content: "";
  position: absolute; top: -1px; left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 1px;
  background: var(--gold-1);
  box-shadow: 0 0 12px var(--gold-glow);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-5);
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  border: 1px solid var(--gold-line);
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  overflow: hidden;
  box-shadow: var(--shadow-1);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-line-strong);
  box-shadow: var(--shadow-2), 0 0 30px rgba(246, 215, 122, .08);
}
/* Ornate corners */
.card::before,
.card::after {
  content: "";
  position: absolute;
  width: 18px; height: 18px;
  border: 1px solid var(--gold-2);
  opacity: .7;
  pointer-events: none;
  z-index: 2;
}
.card::before { top: 8px;  left: 8px;  border-right: 0; border-bottom: 0; }
.card::after  { bottom: 8px; right: 8px; border-left: 0;  border-top: 0; }

.card-art {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-bottom: 1px solid var(--gold-line);
  background: #0a0a18;
}
.card-art svg,
.card-art img {
  display: block;
  width: 100%; height: 100%;
}
.card-art img {
  object-fit: cover;
  object-position: center 35%;
  transition: transform .6s var(--ease), filter .4s var(--ease);
  filter: saturate(.95) brightness(.92);
}
/* Per-card focal points — center the subject within the crop */
#hire     .card-art img { object-position: center 30%; }
#cedar    .card-art img { object-position: center 88%; transform: scale(1.28); transform-origin: center 65%; }
#cedar:hover .card-art img { transform: scale(1.32); }
#illusion .card-art img { object-position: center 40%; }
#escape   .card-art img { object-position: center 35%; }

.card:hover .card-art img {
  transform: scale(1.04);
  filter: saturate(1.05) brightness(1);
}
.card-art::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, transparent 55%, rgba(5,7,20,.65) 100%),
    radial-gradient(120% 60% at 50% 100%, rgba(5,7,20,.35), transparent 60%);
  pointer-events: none;
}

.card-body {
  padding: var(--s-6) var(--s-5) var(--s-5);
  text-align: center;
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-icon {
  display: inline-grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, #3a2810, #0e0904 70%);
  color: var(--gold-1);
  margin: -48px auto var(--s-3);
  border: 1px solid var(--gold-2);
  box-shadow: 0 0 18px var(--gold-soft), 0 6px 14px rgba(0,0,0,.4);
  position: relative;
  z-index: 3;
}
.card-icon svg { width: 22px; height: 22px; }

.card-title {
  font-family: var(--serif);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 1.05rem;
  color: var(--gold-1);
  margin: 0 0 var(--s-3);
}
.card-text {
  color: var(--ink-2);
  font-size: .94rem;
  margin: 0 auto var(--s-4);
  max-width: 38ch;
  flex: 1;
}
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .75rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-1);
  text-decoration: none;
  font-weight: 600;
  align-self: center;
  padding-top: var(--s-2);
  border-top: 1px solid var(--gold-line);
  padding: var(--s-3) 0 0;
  transition: gap .2s var(--ease);
}
.card-link svg {
  width: 14px; height: 14px;
  fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .2s var(--ease);
}
.card-link:hover { gap: 14px; }
.card-link:hover svg { transform: translateX(2px); }

/* ============ WATCH ============ */
.watch-section {
  padding: var(--s-8) 0;
  border-top: 1px solid var(--gold-line);
  position: relative;
}
.watch-section::before {
  content: "";
  position: absolute; top: -1px; left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 1px;
  background: var(--gold-1);
  box-shadow: 0 0 12px var(--gold-glow);
}

.watch {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--s-6);
  align-items: center;
}

.watch-video {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  border: 1px solid var(--gold-line-strong);
  overflow: hidden;
  background:
    radial-gradient(70% 60% at 50% 50%, rgba(246, 215, 122, 0.18), transparent 65%),
    radial-gradient(60% 80% at 30% 80%, rgba(120, 30, 60, 0.4), transparent 65%),
    linear-gradient(180deg, #2a0b14 0%, #110509 100%);
  box-shadow: var(--shadow-2);
}
.play-btn {
  position: absolute; inset: 0;
  margin: auto;
  width: 92px; height: 92px;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: grid; place-items: center;
}
.play-btn svg {
  width: 100%; height: 100%;
  transition: transform .25s var(--ease);
  filter: drop-shadow(0 0 16px var(--gold-glow));
}
.play-btn svg .ring { fill: none; stroke: var(--gold-1); stroke-width: 1.5; opacity: .75; }
.play-btn svg .fill { fill: rgba(10,6,18,.65); stroke: var(--gold-2); stroke-width: 1; }
.play-btn svg .tri  { fill: var(--gold-1); }
.play-btn:hover svg { transform: scale(1.07); }

.watch-title {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 1.2vw + 1.2rem, 2.4rem);
  line-height: 1.1;
  color: var(--ink-0);
  margin: var(--s-3) 0 var(--s-4);
  font-weight: 700;
}
.watch-text {
  color: var(--ink-2);
  max-width: 50ch;
  margin: 0 0 var(--s-5);
}
.watch-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
}

/* ============ FOOTER ============ */
.site-footer {
  margin-top: var(--s-7);
  border-top: 1px solid var(--gold-line);
  background:
    radial-gradient(80% 80% at 50% 0%, rgba(120, 30, 60, 0.12), transparent 60%),
    linear-gradient(180deg, rgba(5,7,20,.96), rgba(5,7,20,1));
}
.footer-inner {
  text-align: center;
  padding: var(--s-7) var(--s-5) var(--s-5);
}
.footer-title {
  font-family: var(--serif);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-1);
  font-size: 1.1rem;
  margin: var(--s-3) 0 var(--s-2);
  font-weight: 700;
}
.footer-sub {
  color: var(--ink-2);
  margin: 0 0 var(--s-5);
  font-size: .95rem;
}
.footer-social {
  display: flex;
  justify-content: center;
  gap: var(--s-3);
  margin-bottom: var(--s-5);
}
.footer-social a {
  color: var(--gold-1);
  text-decoration: none;
  width: 42px; height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--gold-line-strong);
  transition: background .2s var(--ease), transform .2s var(--ease), border-color .2s var(--ease);
}
.footer-social a svg { width: 18px; height: 18px; }
.footer-social a:hover {
  background: var(--gold-soft);
  transform: translateY(-2px);
  border-color: var(--gold-1);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  border-top: 1px solid var(--gold-line);
  border-bottom: 1px solid var(--gold-line);
  padding: var(--s-3) 0;
  margin-bottom: var(--s-4);
}
.footer-nav a {
  color: var(--ink-1);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .72rem;
  font-weight: 500;
  padding: 6px 14px;
  position: relative;
  transition: color .2s var(--ease);
}
.footer-nav a + a::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 1px; height: 12px;
  background: var(--gold-line);
  transform: translateY(-50%);
}
.footer-nav a:hover { color: var(--gold-1); }

.footer-copy {
  color: var(--ink-3);
  font-size: .78rem;
  margin: 0;
  letter-spacing: .05em;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
  .watch { grid-template-columns: 1fr; }
  .menu-toggle { display: inline-flex; }
  .primary-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(5, 7, 20, 0.98);
    border-top: 1px solid var(--gold-line);
    border-bottom: 1px solid var(--gold-line);
    padding: var(--s-3) var(--s-5);
    gap: 4px;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: transform .25s var(--ease), opacity .25s var(--ease);
  }
  .primary-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .primary-nav a { padding: 12px 4px; }
  .primary-nav .nav-cta { text-align: center; margin-top: 6px; }
}

@media (max-width: 640px) {
  .features-grid { grid-template-columns: 1fr; }
  .hero { padding: 0; }
  .brand-logo { height: 116px; }
  .header-inner { min-height: 48px; }
  .brand { left: var(--s-4); }
  .footer-nav a { font-size: .68rem; padding: 6px 10px; }
  .footer-nav a + a::before { display: none; }
  .features-section, .watch-section { padding: var(--s-7) 0; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
