/* Hackathon Page Styles */

.hackathon-hero {
  padding: 0 0 2.25rem;
}

.hackathon-hero .container {
  max-width: none;
  padding: 0;
}

.hackathon-cinematic-hero {
  position: relative;
  padding: 0;
  margin-top: -1.15rem;
  overflow: hidden;
  text-align: left;
  background: #020304;
}

.hackathon-browser-stage {
  min-height: clamp(680px, calc(100vh - 84px), 980px);
  padding: clamp(2rem, 4vw, 3rem);
  align-items: flex-end;
  --hackathon-overlay-opacity: 0.72;
  --hackathon-image-scale: 1.05;
  --hackathon-image-shift-x: 6%;
  --hackathon-image-brightness: 0.94;
  --hackathon-image-saturate: 1.02;
}

.hackathon-browser-stage::before {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.16), transparent 18%),
    linear-gradient(90deg, rgba(0, 0, 0, var(--hackathon-overlay-opacity)) 0%, rgba(0, 0, 0, 0.42) 24%, rgba(0, 0, 0, 0.14) 54%, rgba(0, 0, 0, 0.28) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0) 54%, rgba(0, 0, 0, 0.62) 100%);
}

.hackathon-browser-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 22% 38%, rgba(235, 191, 122, 0.12), transparent 26%),
    radial-gradient(circle at 78% 22%, rgba(114, 144, 201, 0.12), transparent 28%);
  opacity: calc(1 - var(--scroll-progress, 0) * 0.45);
  z-index: 1;
  pointer-events: none;
}

.hackathon-browser-stage .browser-stage-image {
  object-position: 38% 18%;
  opacity: 0.9;
  transform: translate3d(var(--hackathon-image-shift-x), 0, 0) scale(var(--hackathon-image-scale));
  filter:
    brightness(var(--hackathon-image-brightness))
    saturate(var(--hackathon-image-saturate));
  transition: filter 0.2s ease-out;
}

.hackathon-cinematic-hero .browser-stage-copy {
  max-width: min(560px, 36vw);
  padding-left: clamp(0.2rem, 1vw, 0.6rem);
  padding-bottom: clamp(1rem, 2vw, 1.8rem);
}

.champion-badge {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  color: #1d1d1f;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  display: inline-block;
  justify-self: start;
  width: fit-content;
  margin-bottom: 0.2rem;
  box-shadow: 0 8px 24px rgba(255, 215, 0, 0.5);
  animation: glow 2s ease-in-out infinite;
}

.title-logo {
  height: clamp(70px, 10vw, 96px);
  width: auto;
  vertical-align: middle;
  margin-right: 0;
}

.hackathon-cinematic-hero .browser-stage-copy h1 {
  font-size: clamp(3rem, 5.4vw, 5rem);
  text-shadow: 0 18px 30px rgba(0, 0, 0, 0.38);
}

.hackathon-cinematic-hero .browser-stage-copy h2 {
  color: rgba(255, 255, 255, 0.84);
  text-shadow: 0 10px 20px rgba(0, 0, 0, 0.28);
}

.hackathon-subtitle {
  font-size: 1.04rem;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 0;
  line-height: 1.6;
  max-width: 640px;
  text-shadow: 0 8px 18px rgba(0, 0, 0, 0.26);
}

.hackathon-snapshot {
  position: absolute;
  right: clamp(1rem, 3vw, 2.5rem);
  bottom: clamp(1rem, 3vw, 2.2rem);
  z-index: 2;
  display: grid;
  gap: 0.9rem;
  justify-items: end;
}

.hackathon-snapshot-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 2.4rem;
  padding: 0 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.hackathon-snapshot-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem;
  max-width: min(560px, 42vw);
}

.hackathon-snapshot-item {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 3.55rem;
  padding: 0.85rem 1.1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.18);
}

.hackathon-snapshot-item strong {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.hackathon-snapshot-item span {
  font-size: 0.9rem;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.76);
}

/* Problem Card */
.problem-card {
  padding: 2.5rem;
}

.problem-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.problem-card > p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.challenge-points {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.challenge-item {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 12px;
  border-left: 3px solid var(--accent-solid);
}

.challenge-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.challenge-item h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.challenge-item p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Solution Grid */
.solution-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.solution-card {
  text-align: center;
  padding: 2rem;
}

.solution-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  animation: float 3s ease-in-out infinite;
}

.solution-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.solution-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Video Container */
.video-container {
  padding: 2rem;
  text-align: center;
}

.video-container video {
  width: 100%;
  max-width: 900px;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* Photo Gallery */
.media-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(1rem, 2.4vw, 1.6rem);
  min-height: 200px;
  align-items: start;
}

.media-item {
  position: relative;
  padding: 0;
  border-radius: 24px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.38);
}

[data-theme="dark"] .media-item {
  background: linear-gradient(180deg, rgba(17, 27, 42, 0.88), rgba(11, 18, 29, 0.92));
  border-color: rgba(173, 193, 223, 0.16);
}

.media-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: rgba(206, 218, 232, 0.32);
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.media-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(8, 18, 32, 0.16);
}

.media-item:hover .media-frame img {
  transform: scale(1.045);
}

.media-meta {
  display: grid;
  gap: 0.7rem;
  padding: 1rem 1.05rem 1.1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0.2));
}

[data-theme="dark"] .media-meta {
  background: linear-gradient(180deg, rgba(18, 31, 49, 0.86), rgba(9, 16, 27, 0.88));
}

.media-chip {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  padding: 0.36rem 0.72rem;
  border-radius: 999px;
  background: rgba(15, 39, 68, 0.08);
  border: 1px solid rgba(15, 39, 68, 0.1);
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

[data-theme="dark"] .media-chip {
  background: rgba(146, 180, 230, 0.12);
  border-color: rgba(173, 193, 223, 0.12);
}

.media-caption {
  margin: 0;
  color: var(--text-primary);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.45;
}

/* Features Timeline */
.features-timeline {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.feature-item {
  display: flex;
  gap: 2rem;
  padding: 2rem;
}

.feature-number {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  flex-shrink: 0;
}

.feature-content {
  flex: 1;
}

.feature-content h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.feature-content > p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
}

.feature-list li {
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  position: relative;
  color: var(--text-secondary);
  line-height: 1.6;
}

.feature-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-solid);
  font-weight: bold;
}

/* Tech Grid */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.tech-card {
  padding: 2rem;
  text-align: center;
}

.tech-card h3 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.tech-tags {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Sprint Grid */
.sprint-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.sprint-card {
  padding: 2rem;
}

.sprint-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.sprint-card p {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Team Scroll */
.team-scroll-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(190px, 19vw, 260px);
  gap: clamp(1.15rem, 2.25vw, 2rem);
  align-items: start;
}

.team-stage {
  --team-accent: 84, 122, 177;
  --team-card-title: #07162f;
  --team-card-role-bg: rgba(var(--team-accent), 0.12);
  --team-card-role-text: #294f85;
  --team-card-body: rgba(23, 39, 64, 0.84);
  --team-card-org: rgba(77, 98, 129, 0.84);
  --team-card-divider: rgba(21, 35, 56, 0.08);
  position: sticky;
  top: 112px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: clamp(0.58rem, 1vw, 0.88rem);
  min-height: clamp(580px, calc(100vh - 132px), 748px);
  padding: clamp(0.72rem, 1.2vw, 0.96rem);
  overflow: hidden;
  isolation: isolate;
}

.team-stage::before {
  content: "";
  position: absolute;
  inset: -8% auto auto -10%;
  width: 20rem;
  height: 20rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--team-accent), 0.18), transparent 70%);
  pointer-events: none;
}

.team-formation {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: clamp(0.52rem, 0.9vw, 0.78rem);
  min-height: 0;
  margin-bottom: 0;
  padding: 0;
}

.team-figure {
  --team-figure-accent: rgba(var(--team-accent), 0.16);
  position: relative;
  max-width: none;
  display: grid;
  gap: 0.55rem;
  justify-items: center;
  opacity: 0.68;
  transform: translate3d(0, 8px, 0) scale(0.93);
  transition:
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.45s ease,
    filter 0.45s ease;
  filter: saturate(0.9);
  transform-origin: center center;
}

.team-figure:nth-child(2) {
  --team-figure-accent: rgba(74, 156, 173, 0.18);
}

.team-figure:nth-child(3) {
  --team-figure-accent: rgba(188, 137, 82, 0.18);
}

.team-figure:nth-child(4) {
  --team-figure-accent: rgba(132, 116, 188, 0.18);
}

.team-figure-portrait {
  width: min(100%, 100%);
  aspect-ratio: 0.8 / 1;
  border-radius: 28px;
  overflow: visible;
  background: transparent;
  border: 0;
  box-shadow: none;
  transition:
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s ease;
  animation: teamPortraitFloat 8.5s ease-in-out infinite;
}

.team-figure:nth-child(2) .team-figure-portrait {
  animation-delay: -1.1s;
}

.team-figure:nth-child(3) .team-figure-portrait {
  animation-delay: -2.3s;
}

.team-figure:nth-child(4) .team-figure-portrait {
  animation-delay: -3.4s;
}

.team-figure-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
  border-radius: inherit;
  box-shadow: 0 18px 36px rgba(7, 16, 30, 0.2);
}

.team-figure-name {
  margin: 0;
  font-size: clamp(0.94rem, 1vw, 1.08rem);
  font-weight: 700;
  line-height: 1.3;
  color: rgba(15, 28, 48, 0.82);
  text-align: center;
  text-shadow: none;
}

.team-figure.is-active {
  opacity: 1;
  transform: translate3d(0, -7px, 0) scale(1.01);
  z-index: 3;
  filter: saturate(1.05) blur(0);
}

.team-figure.is-active .team-figure-portrait {
  transform: translateY(-2px) scale(1.01);
  box-shadow:
    0 0 0 1px rgba(var(--team-accent), 0.14);
  animation: teamPortraitHero 4.5s ease-in-out infinite;
}

.team-figure.is-active .team-figure-avatar {
  box-shadow:
    0 30px 56px rgba(7, 16, 30, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.12);
}

.team-focus-panel {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: start;
  min-height: 0;
  padding: clamp(0.96rem, 1.4vw, 1.15rem);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(250, 252, 255, 0.96), rgba(231, 238, 248, 0.92)),
    linear-gradient(135deg, rgba(var(--team-accent), 0.08), rgba(255, 255, 255, 0));
  border: 1px solid rgba(121, 145, 179, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 20px 44px rgba(121, 142, 171, 0.16);
  overflow: visible;
}

.team-focus-copy {
  position: relative;
  inset: auto;
  display: none;
  grid-area: 1 / 1;
  gap: 0.92rem;
  align-content: start;
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition:
    opacity 0.42s ease,
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.team-focus-copy.is-active {
  display: grid;
  opacity: 1;
  transform: translate3d(0, 0, 0);
  pointer-events: auto;
}

.team-name {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--team-card-title);
}

.team-focus-topline {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.team-focus-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3rem;
  height: 2.1rem;
  padding: 0 0.75rem;
  border-radius: 999px;
  background: rgba(var(--team-accent), 0.14);
  color: rgba(var(--team-accent), 0.9);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.team-main-role {
  margin: 0;
}

.team-main-role strong {
  display: inline-flex;
  align-items: center;
  min-height: 2.3rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: var(--team-card-role-bg);
  color: var(--team-card-role-text);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.team-focus-summary {
  margin: -0.15rem 0 0;
  max-width: 62ch;
  color: rgba(54, 74, 103, 0.88);
  font-size: 1.02rem;
  line-height: 1.8;
}

.team-focus-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr);
  gap: 1rem;
}

.team-focus-block {
  display: grid;
  gap: 0.8rem;
  padding: 1rem 1rem 1.05rem;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(246, 249, 254, 0.44)),
    rgba(var(--team-accent), 0.05);
  border: 1px solid rgba(132, 154, 189, 0.14);
}

.team-focus-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(var(--team-accent), 0.86);
}

.team-details {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.team-details li {
  position: relative;
  padding-left: 1rem;
  color: var(--team-card-body);
  font-size: 1rem;
  line-height: 1.78;
}

.team-details li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72rem;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: rgb(var(--team-accent));
}

.team-org {
  margin: 0;
  padding-top: 0;
  border-top: 0;
  font-size: 0.95rem;
  line-height: 1.72;
  color: var(--team-card-org);
}

.team-scroll-steps {
  position: relative;
  display: block;
  padding: 0 0 calc(100vh - 260px);
}

.team-progress-rail {
  position: sticky;
  top: 124px;
  z-index: 2;
  display: grid;
  gap: 0.78rem;
  padding: 1rem;
  margin-bottom: 1rem;
  background:
    linear-gradient(180deg, rgba(249, 251, 255, 0.92), rgba(235, 242, 251, 0.9)),
    rgba(var(--team-accent), 0.04);
  border-color: rgba(112, 138, 175, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 18px 42px rgba(111, 130, 158, 0.12);
}

.team-progress-item {
  position: relative;
  display: grid;
  gap: 0.28rem;
  padding: 0.75rem 0.8rem 0.8rem;
  border: 1px solid transparent;
  border-radius: 18px;
  opacity: 0.72;
  transform: translateX(0);
  cursor: pointer;
  user-select: none;
  transition:
    opacity 0.35s ease,
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.35s ease,
    background 0.35s ease,
    box-shadow 0.35s ease;
  background: rgba(255, 255, 255, 0.42);
}

.team-progress-item::before {
  content: none;
}

.team-progress-item:hover {
  opacity: 0.94;
  border-color: rgba(var(--team-accent), 0.18);
  background: rgba(255, 255, 255, 0.58);
}

.team-progress-item.is-reached {
  opacity: 0.82;
}

.team-progress-item.is-active {
  opacity: 1;
  transform: translateX(0.32rem);
  background: rgba(var(--team-accent), 0.12);
  border-color: rgba(var(--team-accent), 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    0 12px 26px rgba(89, 111, 142, 0.16);
}

.team-progress-item:focus-visible {
  outline: none;
  opacity: 1;
  border-color: rgba(var(--team-accent), 0.42);
  background: rgba(var(--team-accent), 0.14);
  box-shadow:
    0 0 0 3px rgba(var(--team-accent), 0.14),
    0 12px 26px rgba(89, 111, 142, 0.16);
}

.team-step {
  position: relative;
  min-height: 58vh;
  opacity: 0;
  pointer-events: none;
  scroll-margin-top: 136px;
}

.team-step-copy {
  visibility: hidden;
}

.team-step-index {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: rgba(var(--team-accent), 0.7);
}

.team-step-name {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: rgba(12, 27, 49, 0.92);
}

.team-step-role {
  margin: 0;
  color: rgba(68, 89, 119, 0.84);
  line-height: 1.6;
}

[data-theme="dark"] .team-stage {
  --team-card-title: #f4f7ff;
  --team-card-role-bg: rgba(var(--team-accent), 0.16);
  --team-card-role-text: #dfeaff;
  --team-card-body: rgba(232, 239, 250, 0.9);
  --team-card-org: rgba(188, 203, 224, 0.84);
  --team-card-divider: rgba(173, 193, 223, 0.14);
}

[data-theme="dark"] .team-figure-name {
  color: rgba(244, 247, 255, 0.96);
}

[data-theme="dark"] .team-focus-panel {
  background:
    linear-gradient(180deg, rgba(9, 22, 40, 0.94), rgba(5, 13, 27, 0.92)),
    linear-gradient(135deg, rgba(var(--team-accent), 0.1), rgba(255, 255, 255, 0));
  border-color: rgba(173, 193, 223, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 26px 60px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .team-focus-block {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    rgba(var(--team-accent), 0.05);
  border-color: rgba(173, 193, 223, 0.1);
}

[data-theme="dark"] .team-focus-summary {
  color: rgba(228, 237, 250, 0.88);
}

[data-theme="dark"] .team-progress-item {
  opacity: 0.42;
  border-color: transparent;
  background: rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .team-progress-item.is-reached {
  opacity: 0.78;
}

[data-theme="dark"] .team-progress-item:hover {
  border-color: rgba(var(--team-accent), 0.24);
  background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .team-progress-item.is-active {
  border-color: rgba(var(--team-accent), 0.34);
}

[data-theme="dark"] .team-progress-rail {
  background:
    linear-gradient(180deg, rgba(7, 18, 34, 0.9), rgba(5, 13, 27, 0.88)),
    rgba(var(--team-accent), 0.03);
  border-color: rgba(173, 193, 223, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 42px rgba(0, 0, 0, 0.16);
}

[data-theme="dark"] .team-step-name {
  color: rgba(245, 247, 255, 0.95);
}

[data-theme="dark"] .team-step-role {
  color: rgba(197, 211, 232, 0.82);
}

@keyframes teamPortraitFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-6px) scale(1.01);
  }
}

@keyframes teamPortraitHero {
  0%, 100% {
    transform: translateY(-6px) scale(1.02);
  }
  50% {
    transform: translateY(-12px) scale(1.045);
  }
}

/* Hackathon Info */
.hackathon-info {
  padding: 2.5rem;
}

.hackathon-info h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.hackathon-tagline {
  font-size: 1.2rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 2rem;
}

.hackathon-official-link {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  text-decoration: none;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.hackathon-official-link:hover {
  transform: translateY(-1px);
  border-color: rgba(92, 178, 255, 0.45);
  background: rgba(92, 178, 255, 0.08);
}

.hackathon-official-link-label {
  font-weight: 700;
}

.hackathon-official-link-url {
  color: var(--text-secondary);
  font-size: 0.95rem;
  word-break: break-all;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.info-item h4 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.info-item ul {
  list-style: none;
  padding: 0;
}

.info-item li {
  padding: 0.5rem 0;
  color: var(--text-secondary);
  line-height: 1.6;
  border-bottom: 1px solid var(--glass-border);
}

.info-item li:last-child {
  border-bottom: none;
}

/* Impact Grid */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.impact-card {
  padding: 2rem;
}

.impact-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.impact-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.impact-card p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.impact-card ul {
  list-style: none;
  padding: 0;
}

.impact-card li {
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  position: relative;
  color: var(--text-secondary);
  line-height: 1.6;
}

.impact-card li:before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--accent-solid);
  font-weight: bold;
}

.reflection-intro {
  max-width: 820px;
  margin: -0.65rem 0 2rem;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.75;
}

.reflection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.reflection-card {
  padding: 2rem;
}

.reflection-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.reflection-card p {
  color: var(--text-secondary);
  line-height: 1.75;
}

/* Links Grid */
.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.link-card {
  text-align: center;
  padding: 2rem;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.link-card:hover {
  transform: translateY(-8px);
}

.link-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  animation: float 3s ease-in-out infinite;
}

.link-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.link-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 980px) {
  .team-scroll-layout {
    grid-template-columns: 1fr;
  }

  .team-stage {
    position: relative;
    top: auto;
    min-height: auto;
  }

  .team-formation {
    margin-bottom: 0;
  }

  .team-scroll-steps {
    display: grid;
    padding: 0;
    gap: 0.85rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .team-progress-rail {
    display: none;
  }

  .team-step {
    min-height: auto;
    padding: 1rem;
    border: 1px solid var(--glass-border);
    border-left: 3px solid rgba(var(--team-accent), 0.28);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .team-step.is-active {
    border-left-color: rgba(var(--team-accent), 0.96);
    box-shadow:
      0 18px 34px rgba(8, 18, 30, 0.12),
      0 0 0 1px rgba(var(--team-accent), 0.1);
  }

  .team-step-copy {
    visibility: visible;
    gap: 0.3rem;
    padding: 0;
  }

  .team-focus-panel {
    min-height: 0;
  }

  .team-focus-grid {
    grid-template-columns: 1fr;
  }

  .team-focus-copy {
    inset: auto;
  }
}

@media (max-width: 768px) {
  .hackathon-hero {
    padding-top: 0.4rem;
  }

  .hackathon-browser-stage {
    min-height: min(82vh, 760px);
    padding: 1.2rem;
  }

  .hackathon-browser-stage .browser-stage-image {
    transform: scale(1.02);
  }

  .hackathon-cinematic-hero .browser-stage-copy {
    max-width: 100%;
    padding-left: 0;
    padding-bottom: 0.25rem;
  }

  .hackathon-subtitle {
    max-width: none;
  }

  .hackathon-snapshot {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: auto;
    align-self: end;
    justify-items: start;
    width: 100%;
    padding-top: 0.5rem;
  }

  .hackathon-snapshot-list {
    justify-content: flex-start;
    max-width: 100%;
  }
  
  .feature-item {
    flex-direction: column;
    gap: 1rem;
  }
  
  .solution-grid,
  .sprint-grid,
  .impact-grid,
  .reflection-grid,
  .links-grid {
    grid-template-columns: 1fr;
  }

  .media-frame {
    aspect-ratio: 5 / 4;
  }

  .team-scroll-steps {
    display: block;
  }

  .team-stage {
    position: sticky;
    top: 84px;
    min-height: auto;
    gap: 0.85rem;
    padding: 0.82rem;
  }

  .team-formation {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.42rem;
    min-height: auto;
    align-items: start;
    margin-bottom: 0;
    padding: 0.1rem 0 0;
  }

  .team-figure {
    max-width: none;
    gap: 0.35rem;
    margin-bottom: 0 !important;
    transform: translate3d(0, 0, 0) scale(0.86);
    opacity: 0.62;
    filter: none;
  }

  .team-figure-portrait {
    aspect-ratio: 1 / 1.08;
    border-radius: 18px;
    animation: none;
  }

  .team-figure-name {
    font-size: 0.66rem;
    line-height: 1.15;
  }

  .team-figure.is-active {
    transform: translate3d(0, -8px, 0) scale(0.96);
    opacity: 1;
  }

  .team-figure.is-active .team-figure-portrait {
    transform: none;
    animation: none;
    box-shadow: none;
  }

  .team-figure-avatar {
    box-shadow: 0 12px 24px rgba(7, 16, 30, 0.22);
  }

  .team-figure.is-active .team-figure-avatar {
    box-shadow:
      0 18px 34px rgba(7, 16, 30, 0.28),
      0 0 0 1px rgba(255, 255, 255, 0.1);
  }

  .team-name {
    font-size: clamp(1.55rem, 7vw, 2rem);
  }

  .team-focus-topline {
    gap: 0.55rem;
  }

  .team-focus-index {
    min-width: 2.55rem;
    height: 1.85rem;
    padding: 0 0.6rem;
    font-size: 0.72rem;
  }

  .team-main-role strong {
    min-height: 2rem;
    padding: 0.35rem 0.72rem;
    font-size: 0.75rem;
  }

  .team-focus-summary {
    font-size: 0.96rem;
    line-height: 1.65;
    display: block;
    overflow: visible;
  }

  .team-focus-block {
    gap: 0.65rem;
    padding: 0.78rem 0.82rem;
    border-radius: 18px;
  }

  .team-focus-label {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
  }

  .team-details li {
    font-size: 0.92rem;
    line-height: 1.55;
  }

  .team-focus-panel {
    min-height: 0;
    padding: 0.88rem;
  }

  .team-focus-copy {
    position: relative;
    inset: auto;
    gap: 0.82rem;
    opacity: 0;
    display: none;
    transform: translate3d(0, 18px, 0);
    pointer-events: none;
  }

  .team-focus-copy.is-active {
    display: grid;
    opacity: 1;
    transform: translate3d(0, 0, 0);
    pointer-events: auto;
  }

  .team-focus-grid {
    gap: 0.72rem;
  }

  .team-focus-grid .team-focus-block:last-child {
    display: none;
  }

  .team-step {
    min-height: 44vh;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    opacity: 0;
    pointer-events: none;
  }

  .team-step.is-active {
    border-left-color: transparent;
    box-shadow: none;
  }

  .team-step-copy {
    visibility: hidden;
  }
}
