/* Entertainment Ventures Group — styles
   Supports: Chrome/Edge 88+, Safari 14+ (macOS/iOS), Firefox 85+, Samsung Internet 15+ */

/* Self-hosted fonts (SIL Open Font License, see /assets/fonts/) */
@font-face { font-family: "Kdam Thmor Pro"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/kdam-thmor-pro-latin-400-normal.woff2") format("woff2"), url("../fonts/kdam-thmor-pro-latin-400-normal.woff") format("woff"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin-400-normal.woff2") format("woff2"), url("../fonts/plus-jakarta-sans-latin-400-normal.woff") format("woff"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin-500-normal.woff2") format("woff2"), url("../fonts/plus-jakarta-sans-latin-500-normal.woff") format("woff"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin-600-normal.woff2") format("woff2"), url("../fonts/plus-jakarta-sans-latin-600-normal.woff") format("woff"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin-700-normal.woff2") format("woff2"), url("../fonts/plus-jakarta-sans-latin-700-normal.woff") format("woff"); }

:root {
  --bg: #0b0b12;
  --bg-2: #12121c;
  --card: #171724;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f5f5f7;
  --muted: #b0b0c0;
  --accent: #ff5500;
  --accent-2: #ff7a33;
  --accent-solid: #cc4400;      /* white text on this passes WCAG AA (4.8:1) */
  --accent-solid-hover: #b33b00;
  --display: "Kdam Thmor Pro", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 1180px;
  --header-h: 76px;
  --gutter: 24px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--body);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

/* Accessibility */
.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  background: var(--accent-solid);
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 700;
}
.skip-link:focus { top: 16px; }

:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }
a:focus:not(:focus-visible), button:focus:not(:focus-visible) { outline: none; }

.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;
}

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding-top: env(safe-area-inset-top);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.site-header.scrolled,
.site-header.open {
  background-color: rgba(11, 11, 18, 0.96);
  border-color: var(--line);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header.scrolled {
    background-color: rgba(11, 11, 18, 0.78);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 16px;
}

.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark {
  flex: none;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--accent-solid);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display);
  font-size: 18px;
  color: #fff;
}
.brand-name {
  font-family: var(--display);
  font-size: 18px;
  line-height: 1.05;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.brand-name small {
  display: block;
  font-family: var(--body);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 3px;
}

.nav-links { display: flex; gap: 32px; list-style: none; font-size: 14px; font-weight: 500; }
.nav-links a { color: var(--muted); transition: color 0.2s; padding: 8px 0; }
.nav-links a:hover { color: var(--text); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  background: var(--accent-solid);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: 9999px;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}
.btn:hover { background: var(--accent-solid-hover); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-ghost { background: transparent; border-color: rgba(255, 255, 255, 0.28); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.07); }

.menu-toggle {
  display: none;
  width: 48px; height: 48px;
  margin-right: -10px;
  background: none;
  border: 0;
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex: none;
  -webkit-tap-highlight-color: transparent;
}
.menu-toggle svg { width: 26px; height: 26px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; fill: none; }
.menu-toggle .icon-close { display: none; }
.site-header.open .menu-toggle .icon-open { display: none; }
.site-header.open .menu-toggle .icon-close { display: block; }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: calc(var(--header-h) + 48px + env(safe-area-inset-top)) 0 80px;
}
.hero::before {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background:
    radial-gradient(ellipse 60% 70% at 78% 30%, rgba(255, 85, 0, 0.28), transparent 60%),
    radial-gradient(ellipse 40% 50% at 20% 90%, rgba(120, 60, 255, 0.18), transparent 60%),
    conic-gradient(from 200deg at 85% -10%, transparent 0deg, rgba(255, 255, 255, 0.07) 12deg, transparent 24deg, rgba(255, 255, 255, 0.05) 40deg, transparent 52deg);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 24px;
}
.eyebrow::before { content: ""; flex: none; width: 28px; height: 2px; background: var(--accent); }

h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 42px;
  font-size: clamp(36px, 7vw, 88px);
  line-height: 1.04;
  max-width: 900px;
  margin-bottom: 28px;
  overflow-wrap: break-word;
}
h1 em { font-style: normal; color: var(--accent); }

.lead {
  font-size: 18px;
  font-size: clamp(16px, 2vw, 20px);
  color: var(--muted);
  max-width: 620px;
  margin-bottom: 40px;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Sections */
.section { padding: 110px 0; }
.section-head { max-width: 680px; margin-bottom: 56px; }
h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 40px;
  font-size: clamp(30px, 4.5vw, 52px);
  line-height: 1.1;
  margin-bottom: 16px;
}
.section-head p { color: var(--muted); font-size: 17px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 34px 30px;
  transition: border-color 0.25s, transform 0.25s;
}
@media (hover: hover) {
  .card:hover { border-color: rgba(255, 85, 0, 0.45); transform: translateY(-3px); }
}
.icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(255, 85, 0, 0.12);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.icon svg { width: 24px; height: 24px; stroke: var(--accent); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; }

/* Ventures */
.ventures { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.venture {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
}
.venture-visual {
  position: relative;
  min-height: 380px;
  background:
    radial-gradient(circle at 50% 120%, rgba(255, 85, 0, 0.55), transparent 55%),
    radial-gradient(circle at 15% 0%, rgba(255, 200, 120, 0.25), transparent 40%),
    radial-gradient(circle at 85% 0%, rgba(140, 90, 255, 0.3), transparent 40%),
    linear-gradient(160deg, #1d1030, #0b0b12);
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 40px;
}
.logo-type { font-family: var(--display); font-size: 52px; font-size: clamp(40px, 5vw, 64px); line-height: 0.95; }
.logo-type span { display: block; font-size: 0.42em; letter-spacing: 0.3em; color: var(--accent-2); margin-bottom: 4px; }
.marquee { margin-top: 18px; font-size: 11px; letter-spacing: 0.35em; text-transform: uppercase; color: rgba(255, 255, 255, 0.7); }

.venture-body { padding: 52px 48px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.tag {
  font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent-2);
  background: rgba(255, 85, 0, 0.1);
  border: 1px solid rgba(255, 85, 0, 0.3);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.venture-body h3 { font-family: var(--display); font-weight: 400; font-size: 36px; margin-bottom: 14px; }
.venture-body p { color: var(--muted); margin-bottom: 22px; }
.ticks { list-style: none; margin-bottom: 30px; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; font-size: 15px; }
.ticks li::before {
  content: "";
  flex: none;
  width: 18px; height: 18px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--accent-solid) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 11px no-repeat;
}

/* Approach */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: step; list-style: none; }
.step { border-top: 2px solid var(--line); padding-top: 24px; }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--display);
  font-size: 15px;
  color: var(--accent);
  display: block;
  margin-bottom: 12px;
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }

/* Contact */
.contact { padding-top: 0; }
.contact-box {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 72px 56px;
  background: linear-gradient(135deg, #cc4400 0%, #b33400 55%, #8a1c00 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}
.contact-box::after {
  content: "";
  position: absolute;
  right: -120px; top: -120px;
  width: 420px; height: 420px;
  border-radius: 50%;
  border: 70px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
}
.contact-copy, .contact-actions { position: relative; z-index: 1; }
.contact-box h2 { color: #fff; margin-bottom: 12px; }
.contact-box p { color: #fff; opacity: 0.92; font-size: 17px; }
.contact-actions { display: grid; gap: 14px; }
.contact-line {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 16px;
  padding: 18px 22px;
  transition: background-color 0.2s;
}
.contact-line:hover { background: rgba(0, 0, 0, 0.3); }
.contact-line svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 1.8; flex: none; }
.contact-line span { min-width: 0; }
.contact-line small { display: block; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: #fff; opacity: 0.85; }
.contact-line strong { font-size: 18px; overflow-wrap: break-word; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 calc(40px + env(safe-area-inset-bottom));
  font-size: 14px;
  color: var(--muted);
}
.foot { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; }
.foot nav { display: flex; flex-wrap: wrap; column-gap: 28px; }
.foot nav a { display: inline-block; padding: 12px 0; }
.foot nav a:hover { color: var(--text); }

/* 404 */
.error-page { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; text-align: center; }
.error-page .wrap { display: flex; flex-direction: column; align-items: center; }
.error-code { font-family: var(--display); font-size: clamp(96px, 20vw, 180px); line-height: 1; color: var(--accent); }

/* Scroll reveal — only hides content when JS is running */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* Large screens */
@media (min-width: 1600px) {
  :root { --max: 1320px; }
}

/* Tablet */
@media (max-width: 960px) {
  .section { padding: 90px 0; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 .card:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .venture { grid-template-columns: minmax(0, 1fr); }
  .venture-visual { min-height: 260px; }
  .contact-box { grid-template-columns: minmax(0, 1fr); padding: 56px 36px; }
}

/* Mobile */
@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }
  .nav-cta { display: none; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 8px max(var(--gutter), env(safe-area-inset-left)) 24px;
    font-size: 17px;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .site-header.open .nav-links { display: flex; }
  .nav-links a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--text); }
  .nav-links li:last-child a { border-bottom: 0; }
  .nav-links .mobile-cta { display: block; margin-top: 16px; }
  .nav-links .mobile-cta a { border: 0; display: flex; color: #fff; }
}
@media (max-width: 760px) {
  :root { --header-h: 68px; --gutter: 20px; }
  .grid-3, .steps { grid-template-columns: minmax(0, 1fr); }
  .grid-3 .card:last-child:nth-child(odd) { grid-column: auto; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 40px; }
  .card { padding: 28px 24px; }
  .venture-body { padding: 36px 24px; }
  .venture-body h3 { font-size: 30px; }
  .contact-box { padding: 44px 24px; border-radius: 22px; }
  .hero { padding-bottom: 64px; }
  .foot { flex-direction: column; align-items: flex-start; }
}
@media (min-width: 901px) {
  .nav-links .mobile-cta { display: none; }
}

/* Small phones (iPhone SE, Galaxy Fold folded) */
@media (max-width: 374px) {
  :root { --gutter: 16px; }
  .brand-name { font-size: 14px; white-space: normal; line-height: 1.1; }
  .brand { gap: 10px; }
  .brand-mark { width: 36px; height: 36px; font-size: 16px; }
  .cta-row .btn { width: 100%; }
  .eyebrow { letter-spacing: 0.14em; font-size: 11px; }
  .contact-box { padding: 36px 16px; }
  .contact-line { padding: 14px; gap: 12px; }
  .contact-line strong { font-size: 15px; }
}

/* Short landscape phones */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { min-height: auto; padding-top: calc(var(--header-h) + 32px); }
}

/* Print */
@media print {
  .site-header, .menu-toggle, .hero::before, .hero::after, .skip-link { display: none !important; }
  body { background: #fff; color: #000; }
  .js .reveal { opacity: 1; transform: none; }
  .card, .venture, .contact-box { border: 1px solid #ccc; background: #fff; color: #000; }
  .lead, .card p, .section-head p, .venture-body p, .step p, .contact-box p { color: #333; }
  .hero { min-height: auto; padding: 24px 0; }
}
