/* BASE */
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: #0a0a0a;
  color: #fff;
}

/* LAYOUT */
.container {
  width: min(1100px, 90%);
  margin: 0 auto;
}

.section {
  padding: 4rem 0;
}

/* HEADER */
.site-header {
  background: rgba(0,0,0,0.85);
  position: sticky;
  top: 0;
  z-index: 100;
}

.primary-nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  padding: 0;
}

/* HERO */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;

  background:
    linear-gradient(90deg, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.55) 60%, rgba(0,0,0,0.2) 100%),
    var(--hero-image) center/cover no-repeat;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.hero__title {
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -1.5px;
  text-transform: uppercase;
}

.hero__eyebrow {
  color: #f97316;
  font-weight: 700;
  letter-spacing: 0.15em;
  font-size: 0.75rem;
  margin-bottom: 1rem;
}

.hero__text {
  color: #ccc;
}
.hero__content > * {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease forwards;
}

.hero__content > *:nth-child(1) { animation-delay: 0.2s; }
.hero__content > *:nth-child(2) { animation-delay: 0.4s; }
.hero__content > *:nth-child(3) { animation-delay: 0.6s; }
.hero__content > *:nth-child(4) { animation-delay: 0.8s; }

.hero {
  background-attachment: fixed;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;

  background: radial-gradient(
    circle at 75% 40%,
    rgba(255,120,40,0.15),
    transparent 60%
  );

  z-index: 1;
  pointer-events: none;
}

/* BUTTON */
.button {
  background: #c4452d;
  border-radius: 999px;
  padding: 0.9rem 1.4rem;
  font-weight: 700;
  text-transform: uppercase;
  display: inline-block;
}

.header-cta {
  background: transparent;
  border: 1px solid #c4452d;
}
.button {
  transition: all 0.25s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(196,69,45,0.4);
}

/* HERO CARD */
.hero-card img {
  width: 120px;
  height: auto;
  display: block;
  margin: 0 auto 1rem;
}
.hero-card {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* WORK SECTION */
.section--work {
  background: #0f0c0a;
  padding: 5rem 0;
}

.section--work h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.section {
  position: relative;
}

.section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.05);
}

.work-list li {
  font-size: 1.1rem;
  letter-spacing: 0.05em;
}

.work-closer {
  margin-top: 1rem;
  color: #d6a13a;
}

/* CENTER */
.center-text {
  text-align: center;
}

/* MOBILE */
@media (max-width: 768px) {
  .hero-video {
    display: none;
  }

  .hero-fallback {
    display: block;
  }
}

  .hero-card {
    margin: 2rem auto 0;
  }

.custom-logo {
  width: 60px;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.primary-nav .menu {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.custom-logo {
  width: 60px;
  height: auto;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;

  background: radial-gradient(
    circle at 70% 40%,
    rgba(255,120,40,0.15),
    transparent 60%
  );

  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url('../img/grain.png');
  opacity: 0.08;
  pointer-events: none;
}
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/*video*/
.hero {
  position: relative;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  height: 120%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.9), rgba(0,0,0,0.4));
  z-index: 1;
}

.hero__grid {
  position: relative;
  z-index: 2;
}
.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* VIDEO */
.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  height: 120%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  z-index: 0;
  opacity: 0.6;
}

/* FALLBACK IMAGE */
.hero-fallback {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

/* DARK OVERLAY */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0,0,0,0.92) 0%,
    rgba(0,0,0,0.6) 60%,
    rgba(0,0,0,0.3) 100%
  );
  z-index: 1;
}

/* CONTENT ABOVE VIDEO */
.hero__grid {
  position: relative;
  z-index: 2;
}
.hero-video {
  opacity: 0;
  animation: videoFade 1.5s ease forwards;
}

@keyframes videoFade {
  to { opacity: 0.6; }
}
.button {
  background: #c4452d;
  border-radius: 999px;
  padding: 1rem 1.6rem;
  font-weight: 700;
  text-transform: uppercase;
  transition: all 0.25s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(196,69,45,0.4);
}
.section {
  padding: 6rem 0;
  position: relative;
}

.section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.05);
}
.rule-hero {
  padding: 8rem 0 4rem;
  background: #0a0a0a;
}

.rule-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  text-transform: uppercase;
}

.rule-eyebrow {
  color: #f97316;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.75rem;
  margin-bottom: 1rem;
}

.rule-section {
  padding: 5rem 0;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.rule-list {
  list-style: none;
  padding: 0;
}

.rule-list li {
  margin: 1rem 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.rule-list li::before {
  content: "+ ";
  color: #f97316;
}
.join-hero {
  padding: 6rem 0 3rem;
}

.join-section form {
  max-width: 500px;
  margin: 2rem auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.join-section input,
.join-section textarea {
  padding: 1rem;
  background: #111;
  border: 1px solid #333;
  color: #fff;
}

.join-section textarea {
  min-height: 120px;
}

.success {
  margin-top: 2rem;
  color: #f97316;
}
.members-hero {
  padding: 6rem 0;
}

.members-section {
  padding: 4rem 0;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.member-list {
  list-style: none;
  padding: 0;
}

.member-list li {
  margin: 1rem 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.member-list li::before {
  content: "+ ";
  color: #f97316;
}
.progress-box {
  margin: 2rem 0;
  padding: 1.5rem;
  background: #111;
  border-radius: 12px;
}
.progress-box {
  margin: 2rem 0;
  padding: 1.5rem;
  background: #111;
  border-radius: 12px;
}

.soft-note {
  opacity: 0.7;
  font-style: italic;
}

.encourage { color: #aaa; }
.encourage-strong { color: #f97316; }
.encourage-deep { color: #eab308; }

.success {
  color: #22c55e;
  margin-top: 1rem;
}

.log-form {
  margin-top: 1.5rem;
}
.reflection-box {
	padding: 1rem;
	background: #111;
	border-radius: 12px;
	border: 1px solid rgba(255,255,255,0.06);
}

.soft-note {
	opacity: 0.7;
	font-size: 0.9rem;
}
/* FLAGS */
.cwc-flag {
    font-weight: 600;
}

.cwc-flag-none {
    color: #666;
}

.cwc-flag-follow_up {
    color: #f97316;
}

.cwc-flag-ready {
    color: #22c55e;
}

.cwc-flag-drifting {
    color: #ef4444;
}
.success { color: #22c55e; margin-top: 1rem; }
.error { color: #ef4444; margin-top: 1rem; }