/* Hack Night 3 — MMU Tech × Cyber Sensei × Safitech */

.cs-hn3 {
  --hn3-cyan: #25e7ea;
  --hn3-soft: #7af0f2;
  --hn3-mist: rgba(200, 230, 240, 0.72);
  max-width: 1180px;
  margin: 0 auto;
  padding: 1rem 1.25rem 3rem;
  color: var(--cs-text, #e8f0f2);
  position: relative;
}

.cs-hn3::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 45% at 90% 8%, rgba(37, 231, 234, 0.16), transparent 55%),
    radial-gradient(ellipse 45% 40% at 5% 70%, rgba(74, 159, 216, 0.12), transparent 50%);
  z-index: 0;
}

.cs-hn3 > * { position: relative; z-index: 1; }

.cs-hn3-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.5rem, 4vw, 2.75rem);
  align-items: center;
  min-height: calc(100vh - 8rem);
  padding: 0.5rem 0 2.5rem;
}

.cs-hn3-collab {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.7rem;
  margin-bottom: 1.1rem;
  font-family: var(--cs-mono, "IBM Plex Mono", monospace);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hn3-cyan);
}

.cs-hn3-collab span[aria-hidden="true"] { color: var(--cs-faint, #5c6c75); }

.cs-hn3-eyebrow {
  margin: 0 0 0.55rem;
  font-family: var(--cs-mono, "IBM Plex Mono", monospace);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cs-muted, #8b9ba4);
}

.cs-hn3-title {
  margin: 0 0 0.9rem;
  font-family: var(--cs-display, "Chakra Petch", sans-serif);
  font-size: clamp(2rem, 4.8vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #fff;
}

.cs-hn3-title em {
  font-style: italic;
  font-weight: 500;
  color: var(--hn3-soft);
}

.cs-hn3-lede {
  margin: 0 0 1.2rem;
  max-width: 34rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--hn3-mist);
}

.cs-hn3-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  font-family: var(--cs-mono, "IBM Plex Mono", monospace);
  font-size: 0.8rem;
  color: var(--hn3-soft);
}

.cs-hn3-meta li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.cs-hn3-meta li::before {
  content: "";
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: var(--hn3-cyan);
  box-shadow: 0 0 10px var(--hn3-cyan);
}

.cs-hn3-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.cs-hn3-poster-wrap {
  position: relative;
  justify-self: end;
  width: min(100%, 28rem);
}

.cs-hn3-poster-wrap::before {
  content: "";
  position: absolute;
  inset: -8%;
  background: radial-gradient(circle at 50% 40%, rgba(37, 231, 234, 0.28), transparent 62%);
  filter: blur(10px);
  z-index: 0;
  animation: cs-hn3-glow 7s ease-in-out infinite alternate;
}

.cs-hn3-poster {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.4rem;
  border: 1px solid rgba(37, 231, 234, 0.22);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  animation: cs-hn3-rise 0.9s ease-out both;
}

.cs-hn3-band {
  padding: 0 0 clamp(2.4rem, 5vw, 3.5rem);
}

.cs-hn3-band + .cs-hn3-band {
  border-top: 1px solid var(--cs-line, rgba(170, 210, 220, 0.12));
  padding-top: clamp(2rem, 4vw, 3rem);
}

.cs-hn3-band h2 {
  margin: 0 0 0.65rem;
  font-family: var(--cs-display, "Chakra Petch", sans-serif);
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
}

.cs-hn3-band > p {
  margin: 0 0 1.4rem;
  max-width: 42rem;
  color: var(--cs-muted, #8b9ba4);
  line-height: 1.55;
}

.cs-hn3-orgs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.cs-hn3-org {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.35rem 1.2rem 1.4rem;
  border: 1px solid rgba(37, 231, 234, 0.18);
  border-radius: 0.9rem;
  background:
    linear-gradient(165deg, rgba(37, 231, 234, 0.06), transparent 42%),
    rgba(10, 14, 20, 0.88);
  min-height: 100%;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.cs-hn3-org:hover {
  border-color: rgba(37, 231, 234, 0.4);
  transform: translateY(-2px);
}

.cs-hn3-org-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 12.5rem;
  padding: 1.1rem 1.25rem;
  border-radius: 0.75rem;
  background: #05070b;
  border: 1px solid rgba(37, 231, 234, 0.1);
}

.cs-hn3-org-logo img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 10.5rem;
  object-fit: contain;
}

.cs-hn3-org-logo--light {
  background: #f4f7fa;
  border-color: rgba(0, 0, 0, 0.06);
}

.cs-hn3-org-logo--light img {
  max-height: 10.75rem;
}

.cs-hn3-org .cs-hn3-role {
  margin: 0;
  font-family: var(--cs-mono, "IBM Plex Mono", monospace);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hn3-cyan);
}

.cs-hn3-org h3 {
  margin: 0;
  font-family: var(--cs-display, "Chakra Petch", sans-serif);
  font-size: 1.15rem;
  color: #fff;
}

.cs-hn3-org p {
  margin: 0;
  color: var(--cs-muted, #8b9ba4);
  line-height: 1.5;
  font-size: 0.92rem;
}

.cs-hn3-org a {
  color: var(--hn3-soft);
  text-decoration: none;
}

.cs-hn3-org a:hover { text-decoration: underline; }

.cs-hn3-slide {
  --hn3-photo: 17.5rem;
  position: relative;
  border: 1px solid rgba(37, 231, 234, 0.18);
  border-radius: 1rem;
  background: rgba(10, 14, 20, 0.9);
  overflow: hidden;
}

.cs-hn3-slide-track {
  position: relative;
}

.cs-hn3-slide-item {
  display: none;
  grid-template-columns: var(--hn3-photo) minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  min-height: var(--hn3-photo);
  animation: cs-hn3-fade 0.45s ease both;
}

.cs-hn3-slide-item.is-active {
  display: grid;
}

.cs-hn3-slide-photo {
  position: relative;
  width: var(--hn3-photo);
  height: var(--hn3-photo);
  min-height: var(--hn3-photo);
  overflow: hidden;
  background:
    radial-gradient(circle at 40% 30%, rgba(37, 231, 234, 0.12), transparent 55%),
    #0a1018;
  flex-shrink: 0;
}

.cs-hn3-slide-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
}

.cs-hn3-slide-photo-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-family: var(--cs-display, "Chakra Petch", sans-serif);
  font-size: 4rem;
  color: var(--hn3-cyan);
  background: rgba(37, 231, 234, 0.08);
}

.cs-hn3-slide-copy {
  padding: clamp(1.25rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: var(--hn3-photo);
}

.cs-hn3-slide-copy .cs-hn3-role {
  margin: 0 0 0.45rem;
  font-family: var(--cs-mono, "IBM Plex Mono", monospace);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hn3-cyan);
}

.cs-hn3-slide-copy h3 {
  margin: 0 0 0.65rem;
  font-family: var(--cs-display, "Chakra Petch", sans-serif);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  color: #fff;
}

.cs-hn3-slide-copy p {
  margin: 0 0 1rem;
  color: var(--cs-muted, #8b9ba4);
  line-height: 1.55;
}

.cs-hn3-slide-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-top: 1px solid rgba(170, 210, 220, 0.1);
}

.cs-hn3-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.cs-hn3-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(170, 210, 220, 0.28);
  cursor: pointer;
}

.cs-hn3-dot.is-active {
  background: var(--hn3-cyan);
  box-shadow: 0 0 10px rgba(37, 231, 234, 0.55);
}

.cs-hn3-unlock { max-width: 28rem; margin-top: 0.35rem; }
.cs-hn3-unlock h3 {
  margin: 0 0 0.35rem;
  font-family: var(--cs-display, "Chakra Petch", sans-serif);
  font-size: 1.15rem;
}
.cs-hn3-unlock p {
  margin: 0 0 0.85rem;
  color: var(--cs-muted, #8b9ba4);
  font-size: 0.92rem;
}

@keyframes cs-hn3-glow {
  from { opacity: 0.55; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1.03); }
}

@keyframes cs-hn3-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes cs-hn3-fade {
  from { opacity: 0; transform: translateX(10px); }
  to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 960px) {
  .cs-hn3-hero { grid-template-columns: 1fr; min-height: 0; }
  .cs-hn3-poster-wrap { order: -1; justify-self: center; width: min(100%, 24rem); }
  .cs-hn3-orgs { grid-template-columns: 1fr; }
  .cs-hn3-org-logo { height: 11rem; }
  .cs-hn3-org-logo img { max-height: 9rem; }
  .cs-hn3-slide { --hn3-photo: min(100%, 20rem); }
  .cs-hn3-slide-item,
  .cs-hn3-slide-item.is-active {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .cs-hn3-slide-photo {
    width: min(100%, 20rem);
    height: min(100vw - 3rem, 20rem);
    min-height: 0;
    aspect-ratio: 1 / 1;
  }
  .cs-hn3-slide-copy {
    min-height: 0;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cs-hn3-poster,
  .cs-hn3-poster-wrap::before,
  .cs-hn3-slide-item { animation: none; }
}
