:root{
  --bg:#0d0d0f;
  --bg-dark:#0a0a0c;
  --card:#ffffff;
  --muted:#7a7a7a;
  --ink:#111113;
  --purple:#9b5cff; /* THEME */
  --line:#e8e8e8;
  --accent:#1a1a1d;
  --max:1200px;
}

*{box-sizing:border-box}

html,body{
  margin:0;
  padding:0;
  background:var(--bg-dark);
  color:#fff;
  font-family:Montserrat,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
  line-height:1.6;
  scroll-behavior:smooth;
}

img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
.container{max-width:var(--max);margin:0 auto;padding:0 24px}

/* Buttons */
/* === Universal Buttons with glossy depth === */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;

  background: var(--purple);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;

  padding: 14px 28px;
  border-radius: 6px;
  border: none;

  box-shadow:
    inset 0 2px 4px rgba(255,255,255,.25),
    inset 0 -2px 4px rgba(0,0,0,.25),
    0 10px 24px rgba(0,0,0,.35),
    inset 0 0 0 1px rgba(255,255,255,.05);

  transition: background .25s ease, box-shadow .25s ease, transform .25s ease, color .25s ease;
  cursor: pointer;
  text-decoration: none;
  overflow: hidden;
}

/* Glossy rim */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(145deg,
    rgba(255,255,255,0.65),
    rgba(255,255,255,0.08) 40%,
    rgba(0,0,0,0.25) 100%);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Hover effect */
.btn:hover {
  background: #000; /* background stays solid black */
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow:
    inset 0 2px 4px rgba(255,255,255,.25),
    inset 0 -2px 4px rgba(0,0,0,.3),
    0 14px 28px rgba(0,0,0,.45),
    inset 0 0 0 1px rgba(255,255,255,.08);

  /* Gradient text overlay */
  color: #fff; /* fallback */
  background-image: linear-gradient(to top, rgba(155,92,255,0.8), #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Active (pressed) */
.btn:active {
  transform: translateY(0);
  filter: brightness(0.95);
  box-shadow:
    inset 0 3px 6px rgba(0,0,0,.35),
    inset 0 -1px 2px rgba(255,255,255,.15),
    0 6px 12px rgba(0,0,0,.35);
}

/* === Variants === */

/* Outline button */
.btn-outline {
  background: transparent;
  color: var(--purple);
  border: 2px solid var(--purple);
  box-shadow: none;
}
.btn-outline:hover {
  background: transparent; /* stays transparent */
  color: #fff;
  border-color: #000;
  background-image: linear-gradient(to top, rgba(155,92,255,0.8), #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  box-shadow: 0 3px 12px rgba(155, 92, 255, 0.35);
}

/* Ghost (subtle) */
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: none;
  box-shadow: none;
}
.btn-ghost:hover {
  background: transparent; /* keep it transparent */
  color: var(--purple);
  transform: translateY(-1px);
}


/* ---------------- HERO ---------------- */
.hero{
  position:relative;
  min-height:100vh;
  display:grid;
  place-items:center;
  background:#000;
  overflow:hidden;
}
.hero__bg{
  position:absolute;
  inset:0;
  background:linear-gradient(to right,rgba(0,0,0,.70),rgba(0,0,0,.35)),
    url("assets/hero.png") center/cover no-repeat;
  filter:saturate(.3) contrast(1.05);
}
.hero__bg:after{
  content:"";
  position:absolute;
  right:-15vw;
  top:-20vh;
  width:70vw;
  height:140vh;
  background:rgba(255,255,255,.08);
  transform:skewX(-30deg);
}
.hero__inner{position:relative;z-index:2;width:100%}
.hero__branding{margin-left:8px;margin-bottom:20vh;opacity:.95}
.hero__branding img{height:30px}
.hero__content{max-width:var(--max);margin:0 auto;padding:0 24px;text-align:left}
.hero h1{margin:0;font-size:clamp(46px,7vw,100px);line-height:.9;font-weight:900}
.hero .split{display:block}
.hero .split--purple{color:var(--purple)}
.hero .cta{margin-top:48px}
/* Hidden states */
.hero__bg,
.hero__bg:after,
.hero__branding,
.hero h1,
.hero .cta {
  opacity:0;
  transform:translateY(30px);
}
/* ===== Mobile Hero Adjustments ===== */
@media (max-width: 768px) {
  .hero {
    min-height: 75vh;
    display: flex;                 /* stop grid centering */
    align-items: center;           /* vertical centering */
    justify-content: flex-start;   /* push everything left */
  }

  .hero__inner {
    width: 100%;
  }

  .hero__content {
    margin: 0;                     /* remove auto centering */
    max-width: 100%;               /* full width available */
    padding-left: 12px;            /* nudge closer to edge */
    padding-right: 16px;
    text-align: left;              /* left align text */
  }

  .hero h1 {
    margin: 0;                     /* prevent extra centering */
    font-size: clamp(28px, 7vw, 48px);
    line-height: 1.05;
    font-weight: 900;
  }

  .hero .cta {
    margin-top: 24px;
  }
}
/* Reveal Animations */
.hero.reveal .hero__bg {
  animation: heroBgIn 1.2s ease-out forwards;
}

.hero.reveal .hero__bg:after {
  animation: heroOverlayIn 1.4s ease-out forwards;
  animation-delay:0.3s;
}

.hero.reveal .hero__branding {
  animation: fadeDown 1s ease-out forwards;
  animation-delay:0.6s;
}

.hero.reveal h1 {
  animation: fadeUp 1s ease-out forwards;
  animation-delay:0.9s;
}

.hero.reveal .cta {
  animation: zoomIn 0.8s ease-out forwards;
  animation-delay:1.3s;
}

/* === Keyframes === */
@keyframes heroBgIn {
  0% {opacity:0; transform:scale(1.1);}
  100% {opacity:1; transform:scale(1);}
}

@keyframes heroOverlayIn {
  0% {opacity:0; transform:translateX(50px) skewX(-30deg);}
  100% {opacity:1; transform:translateX(0) skewX(-30deg);}
}

@keyframes fadeDown {
  0% {opacity:0; transform:translateY(-30px);}
  100% {opacity:1; transform:translateY(0);}
}

@keyframes fadeUp {
  0% {opacity:0; transform:translateY(30px);}
  100% {opacity:1; transform:translateY(0);}
}

@keyframes zoomIn {
  0% {opacity:0; transform:scale(0.9);}
  100% {opacity:1; transform:scale(1);}
}


/* ---------------- WHITE CARD (WHO) ---------------- */
.card-wrap{background:var(--bg);padding:80px 0}
.card{
  background:var(--card);
  color:var(--ink);
  border-radius:6px;
  padding:64px 48px;
  max-width:860px;
  box-shadow:0 12px 28px rgba(0,0,0,.22);
  margin:-130px auto 60px;
}
.card h2{margin:0 0 16px;font-size:clamp(32px,3.5vw,44px);font-weight:800}
.card p{color:#2a2a2a;font-size:1.15rem;margin:0 0 20px}
/* Hidden state */
.card {
  opacity:0;
  transform:translateY(40px) scale(0.97);
  transition:all 0.9s cubic-bezier(.25,.8,.25,1);
}

/* Reveal state */
.card.reveal {
  opacity:1;
  transform:translateY(0) scale(1);
}

/* Optional: stagger children inside card */
.card h2, .card p {
  opacity:0;
  transform:translateY(20px);
  transition:all 0.7s ease;
}
.card.reveal h2 {
  transition-delay:0.2s;
  opacity:1;
  transform:translateY(0);
}
.card.reveal p {
  transition-delay:0.4s;
  opacity:1;
  transform:translateY(0);
}


/* ---------------- ROLES STRIP ---------------- */
.roles {
  background: var(--purple);
  color: #fff;
  padding: 70px 0; /* reduced from 90px */
}

.roles .grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px; /* reduced from 40px */
  align-items: start;
}

.role {
  text-align: center;
  padding: 8px 6px; /* slightly tighter */
}

.role img {
  height: 56px; /* reduced from 64px */
  margin: 0 auto 16px; /* less vertical spacing */
  opacity: .95;
}

.role h3 {
  margin: .4rem 0 .6rem; /* reduced spacing */
  font-size: 1.35rem;    /* slightly smaller */
}



/* ---------------- VIDEO ---------------- */
/* VIDEO section takes full width & height */
.video {
  background: #000;
  padding: 0;
  margin: 0;
  width: 100%;
  height: 100vh; /* full screen height */
  position: relative;
  overflow: hidden;
}

.video-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  cursor: pointer;
  overflow: hidden;
}

.video-thumb,
.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* fills the whole section */
}

/* Play Button (smaller) */
.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60px;   /* smaller circle */
  height: 60px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
  transition: transform 0.3s ease, background 0.3s ease;
}

.play-btn:before {
  content: "";
  border-style: solid;
  border-width: 12px 0 12px 20px; /* smaller triangle */
  border-color: transparent transparent transparent #000;
  margin-left: 4px;
}

/* Pulse ring adjusted */
.play-btn::after {
  content: "";
  position: absolute;
  border: 2px solid rgba(255,255,255,0.6);
  border-radius: 50%;
  width: 90px;   /* reduced from 140px */
  height: 90px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0%   { transform: translate(-50%, -50%) scale(0.8); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

.play-btn:hover {
  transform: translate(-50%, -50%) scale(1.1);
  background: #fff;
}
/* Hidden states */
.video-thumb {
  opacity:0;
  transform:scale(1.1);
  transition:all 1s ease-out;
}
.play-btn {
  opacity:0;
  transform:translate(-50%, -50%) scale(0.6);
  transition:all 0.7s ease-out;
}

/* Reveal states */
.video.reveal .video-thumb {
  opacity:1;
  transform:scale(1);
}
.video.reveal .play-btn {
  opacity:1;
  transform:translate(-50%, -50%) scale(1);
  transition-delay:0.4s;
}




/* ---------------- MISSION ---------------- */
/* === Base Mission Section === */
.mission {
  background:#ededed;
  color:#111;
  padding:0;
  overflow:hidden;
}

.mission .container {
  display:grid;
  grid-template-columns:1.1fr 1fr;
  gap:60px;
  align-items:center;
  min-height:80vh;
}

/* Hidden state before scroll */
.mission .container > div:first-child,
.stack {
  opacity:0;
  transform:translateY(40px);
  transition:all .8s ease-out;
}

/* Reveal text side */
.mission .container > div:first-child.reveal {
  opacity:1;
  transform:translateY(0);
  transition-delay:0.2s;
}

/* Reveal image side */
.stack.reveal {
  opacity:1;
  transform:translateX(0);
  transition-delay:0.6s;
}

.stack {
  display:grid;
  gap:0;
  align-self:center;
  max-height:500px;
  transform:translateX(40px); /* slide from side */
}

.stack img {
  border-radius:0;
  box-shadow:none;
  width:100%;
  height:250px;
  object-fit:cover;
}


/* ---------------- BRANDS ---------------- */
.brands {
  position: relative;
  background: url("assets/brands-background.jpeg") center/cover fixed no-repeat;
  color: #fff;
  padding: 110px 0;
}
.brands:before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
}
.brands .container {
  position: relative;
  text-align: center;
}
.brands .eyebrow {
  color: #ccc;
  margin-bottom: 18px;
}
.brands h2 {
  font-size: clamp(28px,3vw,44px);
  margin: 0 0 40px;
}
.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 16px;
  max-width: 600px;
  margin: 0 auto;
}
.brand-tile {
  width: 100px;
  height: 100px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 6px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,.25);
  margin: 0 auto;
}
.brand-tile img {
  max-width: 70%;
  max-height: 70%;
  object-fit: contain;
  filter: none;
}
/* Hidden states */
.brands,
.brands .eyebrow,
.brands h2,
.brand-tile {
  opacity:0;
  transform:translateY(40px);
}

/* Section reveal */
.brands.reveal {
  animation: fadeBg 1.2s ease-out forwards;
}
@keyframes fadeBg {
  from {opacity:0; transform:translateY(60px);}
  to   {opacity:1; transform:translateY(0);}
}

/* Eyebrow + heading */
.brands.reveal .eyebrow {
  animation: fadeUp 0.8s ease-out forwards;
  animation-delay:0.3s;
}
.brands.reveal h2 {
  animation: fadeUp 0.8s ease-out forwards;
  animation-delay:0.5s;
}

@keyframes fadeUp {
  from {opacity:0; transform:translateY(40px);}
  to   {opacity:1; transform:translateY(0);}
}

/* Brand tiles — flipping cascade */
.brand-tile {
  transform:rotateY(90deg) scale(0.8);
  transition:transform 0.6s cubic-bezier(.25,.8,.25,1),
             opacity 0.6s ease;
}
.brand-tile.reveal {
  opacity:1;
  transform:rotateY(0deg) scale(1);
}


/* ---------------- PATREON (comedy reveal) ---------------- */
.patreon-wrapper{position:relative;margin-top:-18px}
.patreon-section{
  background:#1b1b1d;
  color:#fff;
  overflow:hidden;
  max-height:0;
  padding:0;
  opacity:0;
  transform:translateY(-16px) scaleY(.82);
  transition:
    max-height 800ms cubic-bezier(.25,.85,.25,1.1),
    padding 800ms cubic-bezier(.25,.85,.25,1.1),
    opacity 450ms ease,
    transform 800ms cubic-bezier(.25,.85,.25,1.1);
  will-change:max-height,transform,opacity;
  border-top:1px solid #2a2a2e;
  border-bottom:1px solid #2a2a2e;
}
.patreon-section.peek{
  max-height:120px;
  padding:18px 0;
  opacity:1;
  transform:translateY(-8px) scaleY(.94);
}
.patreon-section.open{
  max-height:240px;
  padding:28px 0;
  opacity:1;
  transform:translateY(0) scaleY(1);
  animation:hesitate 900ms cubic-bezier(.2,.9,.3,1) 1;
}
@keyframes hesitate{
  0%   { transform:translateY(-6px) scaleY(.96) }
  35%  { transform:translateY(0)    scaleY(1.02) }
  65%  { transform:translateY(-2px) scaleY(.99) }
  100% { transform:translateY(0)    scaleY(1) }
}
.patreon-section .container{text-align:center}
.patreon-section h2{font-size:1.6rem;margin:0 0 8px;color:var(--purple)}
.patreon-section p{color:#cfcfe6;margin:0 0 14px;font-size:1.05rem}
.patreon-section .btn{font-size:1.05rem;padding:14px 22px}

/* ---------------- COURSE ---------------- */
.course{background:#fff;color:#111;padding:110px 0}
.course .container{
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:60px;
  align-items:center;
}
.tilt{
  transform:rotate(-18deg);
  filter:drop-shadow(0 18px 20px rgba(0,0,0,.25));
  max-width:600px;
  justify-self:center;
}
.course .card{margin:0;box-shadow:none}
.course .card p{color:#333;font-size:1.1rem}
/* Hidden state for tilt image */
.tilt {
  opacity:0;
  transform:rotate(-18deg) translateY(60px) scale(0.9);
  transition:all 1s cubic-bezier(.25,.8,.25,1);
}

/* Reveal state */
.tilt.reveal {
  opacity:1;
  transform:rotate(-18deg) translateY(0) scale(1);
}

/* Optional: subtle swing effect after reveal */
.tilt.reveal {
  animation: tiltSwing 1.5s ease-out 1;
}

@keyframes tiltSwing {
  0%   { transform:rotate(-28deg) translateY(40px) scale(0.9); opacity:0; }
  60%  { transform:rotate(-15deg) translateY(-8px) scale(1.02); opacity:1; }
  80%  { transform:rotate(-20deg) translateY(4px) scale(0.98); }
  100% { transform:rotate(-18deg) translateY(0) scale(1); }
}


/* ---------------- CONTACT ---------------- */
.contact{background:#f4f4f4;color:#111;padding:120px 0}
.contact .card{
  background:#fff;
  padding:60px;
  border-radius:8px;
  box-shadow:0 10px 28px rgba(0,0,0,.15);
  max-width:720px;
  margin:0 auto;
}
.contact h2{margin:0 0 16px;font-size:clamp(32px,3.5vw,48px)}
form{display:grid;gap:20px;margin-top:30px}
input,textarea{
  width:100%;
  padding:16px 14px;
  border-radius:6px;
  border:1px solid #ccc;
  background:#fff;
  font:inherit;
}
textarea{min-height:140px;resize:vertical}

/* ---------------- FOOTER ---------------- */
.footer{background:#0a0a0c;color:#fff;padding:48px 0;border-top:1px solid #222}
.footer .row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:30px;
  flex-wrap:wrap;
}
.socials{display:flex;gap:22px;align-items:center}
.socials img{height:36px;width:36px;display:block}

/* Respect reduced motion */
@media (prefers-reduced-motion:reduce){
  *{scroll-behavior:auto}
  .brands,.patreon-section{transition:none;animation:none}
}

@media (max-width: 980px){
  .roles .grid {
    grid-template-columns: 1fr;
  }

  .mission .container,
  .course .container {
    grid-template-columns: 1fr; /* stack on mobile */
    gap: 30px;
  }

  .tilt {
    transform: none; /* remove angled tilt on mobile */
    max-width: 100%; /* shrink to fit mobile */
    margin: 0 auto 20px; /* center above the card */
  }

  .course .card {
    padding: 40px 24px; /* reduce padding so text fits */
    margin: 0 auto;
  }

  .course .card h2 {
    font-size: 1.8rem;
    text-align: center;
  }

  .course .card p {
    font-size: 1rem;
    text-align: center;
  }

  .course .btn {
    display: block;
    margin: 20px auto 0; /* center the button */
  }
}
/* Tablet */
@media (max-width: 768px) {
  .container {
    padding: 0 16px; /* add breathing room */
  }

  section {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .hero h1 {
    font-size: clamp(32px, 8vw, 60px); /* scale down headline */
    text-align: center;
  }

  .roles .grid {
    gap: 24px;
  }

  .card {
    padding: 40px 24px;
  }
}

/* Mobile phones */
@media (max-width: 480px) {
  .container {
    padding: 0 12px;
  }

  section {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  h2 {
    font-size: clamp(24px, 6vw, 32px);
    line-height: 1.3;
  }

  .card h2 {
    font-size: 1.5rem;
  }

  .card p {
    font-size: 1rem;
  }

  .brand-grid {
    grid-template-columns: repeat(2, 1fr); /* not too cramped */
    gap: 12px;
  }

  .brand-tile {
    width: 80px;
    height: 80px;
  }

  .tilt {
    transform: none; /* no tilt on very small screens */
    max-width: 90%;
  }
}
