/*--------------------------------------------------------------
# House System Page
--------------------------------------------------------------*/
.house-system-page {
  --house-bg: #fdf2e5;
  --house-surface: #fffbf5;
  --house-card: #ffffff;
  --house-border: #ecd3b4;
  --house-heading: #24160b;
  --house-text: rgba(58, 37, 18, 0.82);
  --house-grad: linear-gradient(135deg, #ff7008 0%, #ff9933 55%, #ffd853 100%);
  background: var(--house-bg);
}

.house-system-page .house-tag {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border-radius: 999px;
  border: 1px solid #eec89b;
  background: rgba(255, 249, 240, 0.88);
  padding: 6px 14px;
  color: #b25e09;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

/*--------------------------------------------------------------
# Section 1: Showcase
--------------------------------------------------------------*/
.house-system-page .house-showcase {
  position: relative;
  overflow: hidden;
  padding: 76px 0 64px;
  background:
    radial-gradient(circle at 4% 10%, rgba(255, 198, 120, 0.2) 0%, rgba(255, 198, 120, 0) 50%),
    radial-gradient(circle at 95% 90%, rgba(255, 145, 34, 0.16) 0%, rgba(255, 145, 34, 0) 52%),
    var(--house-bg);
}

.house-system-page .house-showcase-shell {
  border-radius: 28px;
  border: 1px solid var(--house-border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 247, 233, 0.9) 100%);
  box-shadow: 0 20px 34px rgba(77, 42, 10, 0.1);
  padding: clamp(16px, 2.8vw, 34px);
}

.house-system-page .showcase-copy h1 {
  margin: 14px 0 12px;
  color: var(--house-heading);
  font-size: clamp(38px, 5.2vw, 68px);
  line-height: 1.06;
}

.house-system-page .showcase-copy p {
  margin: 0;
  color: var(--house-text);
  font-size: 17px;
  line-height: 1.72;
}

.house-system-page .showcase-points {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}

.house-system-page .showcase-points li {
  min-height: 40px;
  border-radius: 12px;
  border: 1px solid #efd3b4;
  background: rgba(255, 253, 248, 0.9);
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #5d3511;
  font-size: 14px;
  font-weight: 600;
}

.house-system-page .showcase-points li i {
  color: #ff7e13;
  font-size: 15px;
}

.house-system-page .showcase-btn {
  margin-top: 16px;
  min-height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(255, 241, 214, 0.52);
  background: var(--house-grad);
  padding: 10px 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff9ef;
  font-size: 15px;
  font-weight: 700;
  transition: transform 280ms ease, box-shadow 280ms ease, filter 280ms ease;
}

.house-system-page .showcase-btn:hover {
  color: #fff9ef;
  transform: translateY(-2px);
  box-shadow: 0 14px 24px rgba(149, 78, 8, 0.24);
  filter: saturate(1.06);
}

.house-system-page .orbit-stage {
  position: relative;
  min-height: 546px;
  border-radius: 24px;
  border: transparent;
  background: transparent;
  box-shadow: transparent;
  overflow: hidden;
}

.house-system-page .orbit-shape {
  position: absolute;
  pointer-events: none;
}

.house-system-page .orbit-link {
  position: absolute;
  height: 1.5px;
  transform-origin: left center;
  background: linear-gradient(90deg, rgba(224, 188, 150, 0.72) 0%, rgba(224, 188, 150, 0.42) 72%, rgba(224, 188, 150, 0) 100%);
  z-index: 1;
  pointer-events: none;
}

.house-system-page .orbit-link.link-agni {
  left: calc(50% - 58px);
  top: calc(50% - 42px);
  width: 125px;
  transform: rotate(-148deg);
}

.house-system-page .orbit-link.link-akash {
  left: calc(50% + 58px);
  top: calc(50% - 42px);
  width: 130px;
  transform: rotate(-31deg);
}

.house-system-page .orbit-link.link-prithvi {
  left: calc(50% - 58px);
  top: calc(50% + 42px);
  width: 134px;
  transform: rotate(152deg);
}

.house-system-page .orbit-link.link-varun {
  left: calc(50% + 58px);
  top: calc(50% + 42px);
  width: 126px;
  transform: rotate(31deg);
}

.house-system-page .orbit-shape.orbit-ring {
  width: 228px;
  height: 228px;
  right: -84px;
  top: -72px;
  border-radius: 999px;
  border: 2px solid rgba(255, 174, 78, 0.32);
  box-shadow: inset 0 0 0 18px rgba(255, 223, 173, 0.2);
  animation: houseSpin 24s linear infinite;
}

.house-system-page .orbit-shape.orbit-dots {
  width: 116px;
  height: 116px;
  left: -40px;
  bottom: 52px;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(255, 142, 24, 0.82) 2px, transparent 3px) 0 0 / 10px 10px,
    rgba(255, 213, 145, 0.2);
  animation: houseFloatY 8s ease-in-out infinite;
}

.house-system-page .orbit-core {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -56%);
  width: 190px;
  height: 190px;
  border-radius: 999px;
  border: 1px solid #efd0a9;
  background: radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.96) 0%, rgba(255, 247, 233, 0.88) 58%, rgba(255, 223, 174, 0.3) 100%);
  box-shadow: 0 14px 26px rgba(64, 31, 4, 0.14);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 2;
}

.house-system-page .orbit-core span {
  color: rgba(103, 56, 17, 0.74);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.house-system-page .orbit-core strong {
  margin-top: 5px;
  color: #5c320f;
  font-size: 28px;
  line-height: 1.1;
}

.house-system-page .orbit-card {
  --accent: #ff7a13;
  position: absolute;
  width: 174px;
  min-height: 150px;
  border-radius: 18px;
  border: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 249, 239, 0.9) 100%);
  box-shadow: 0 14px 24px rgba(64, 31, 4, 0.1);
  padding: 10px 8px;
  text-align: center;
  transition: transform 300ms ease, box-shadow 300ms ease, background 300ms ease, filter 300ms ease;
  animation: houseFloatCard 7.6s ease-in-out infinite;
  cursor: pointer;
}

.house-system-page .orbit-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 300ms ease;
}

.house-system-page .orbit-card:hover {
  animation: none;
  transform: translateY(-10px) scale(1.02);
  filter: saturate(1.05);
}

.house-system-page .orbit-card:hover::after {
  transform: scaleX(1);
}

.house-system-page .orbit-card img {
  width: 68px;
  height: 68px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid #efcfaa;
  box-shadow: 0 10px 16px rgba(64, 31, 4, 0.12);
  transition: transform 300ms ease, box-shadow 300ms ease;
}

.house-system-page .orbit-card:hover img {
  transform: translateY(-2px) scale(1.04);
}

.house-system-page .orbit-card h3 {
  margin: 8px 0 1px;
  color: #2b190b;
  font-size: 30px;
  line-height: 1.08;
}

.house-system-page .orbit-card p {
  margin: 0;
  color: rgba(81, 50, 21, 0.72);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.house-system-page .orbit-card.agni {
  --accent: #ff7a12;
  top: 28px;
  left: 22px;
}

.house-system-page .orbit-card.agni:hover {
  box-shadow: 0 24px 34px rgba(186, 82, 7, 0.26);
  background: linear-gradient(180deg, rgba(255, 248, 239, 0.98) 0%, rgba(255, 237, 220, 0.94) 100%);
}

.house-system-page .orbit-card.akash {
  --accent: #ddb100;
  top: 46px;
  right: 18px;
  animation-delay: 150ms;
}

.house-system-page .orbit-card.akash:hover {
  box-shadow: 0 24px 34px rgba(157, 122, 0, 0.24);
  background: linear-gradient(180deg, rgba(255, 252, 238, 0.98) 0%, rgba(255, 245, 211, 0.94) 100%);
}

.house-system-page .orbit-card.prithvi {
  --accent: #2b9347;
  bottom: 38px;
  left: 16px;
  animation-delay: 300ms;
}

.house-system-page .orbit-card.prithvi:hover {
  box-shadow: 0 24px 34px rgba(27, 104, 45, 0.24);
  background: linear-gradient(180deg, rgba(244, 253, 247, 0.98) 0%, rgba(228, 246, 233, 0.94) 100%);
}

.house-system-page .orbit-card.varun {
  --accent: #2d97e4;
  bottom: 20px;
  right: 24px;
  animation-delay: 450ms;
}

.house-system-page .orbit-card.varun:hover {
  box-shadow: 0 24px 34px rgba(19, 101, 163, 0.24);
  background: linear-gradient(180deg, rgba(243, 250, 255, 0.98) 0%, rgba(227, 242, 255, 0.94) 100%);
}

/*--------------------------------------------------------------
# Section 2: Profiles
--------------------------------------------------------------*/
.house-system-page .house-profiles {
  padding: 0 0 86px;
  background: var(--house-bg);
}

.house-system-page .profiles-head {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 22px;
}

.house-system-page .profiles-head h2 {
  margin: 14px 0 10px;
  color: #28180b;
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 1.08;
}

.house-system-page .profiles-head p {
  margin: 0;
  color: var(--house-text);
  font-size: 16px;
  line-height: 1.68;
}

.house-system-page .profiles-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.house-system-page .profile-card {
  --accent: #ff7a13;
  --accent-soft: rgba(255, 122, 19, 0.14);
  --accent-border: #f8aa63;
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid #ebcfaf;
  background: #fffdf9;
  box-shadow: 0 14px 24px rgba(64, 31, 4, 0.1);
  padding: 15px 16px 16px;
  transition: transform 300ms ease, box-shadow 300ms ease, border-color 300ms ease;
}

.house-system-page .profile-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, var(--accent-soft) 0%, rgba(255, 255, 255, 0) 42%);
}

.house-system-page .profile-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-border);
  box-shadow: 0 24px 34px rgba(64, 31, 4, 0.15);
}

.house-system-page .profile-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
}

.house-system-page .profile-symbol {
  width: 74px;
  height: 74px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid #efceab;
  box-shadow: 0 10px 16px rgba(64, 31, 4, 0.12);
}

.house-system-page .profile-title h3 {
  margin: 0;
  color: #2a190b;
  font-size: 34px;
  line-height: 1.06;
}

.house-system-page .profile-title span {
  margin-top: 4px;
  min-height: 26px;
  border-radius: 999px;
  border: 1px solid #ecc79d;
  background: rgba(255, 252, 246, 0.9);
  padding: 4px 10px;
  display: inline-flex;
  align-items: center;
  color: #6b3a10;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.house-system-page .profile-card p {
  position: relative;
  z-index: 2;
  margin: 12px 132px 0 0;
  color: var(--house-text);
  font-size: 14px;
  line-height: 1.6;
}

.house-system-page .profile-traits {
  position: relative;
  z-index: 2;
  margin: 12px 132px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.house-system-page .profile-traits li {
  min-height: 28px;
  border-radius: 999px;
  border: 1px solid #ecd0b0;
  background: rgba(255, 253, 248, 0.92);
  padding: 4px 10px;
  display: inline-flex;
  align-items: center;
  color: #59320f;
  font-size: 12px;
  font-weight: 600;
}

.house-system-page .profile-traits li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  margin-right: 7px;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.house-system-page .profile-student {
  position: absolute;
  right: 12px;
  bottom: 10px;
  width: 122px;
  height: 118px;
  object-fit: contain;
  z-index: 2;
  filter: drop-shadow(0 8px 12px rgba(58, 31, 8, 0.16));
}

.house-system-page .profile-card.agni {
  --accent: #ff7a13;
  --accent-soft: rgba(255, 122, 19, 0.14);
  --accent-border: #f8aa63;
}

.house-system-page .profile-card.akash {
  --accent: #d7ab00;
  --accent-soft: rgba(215, 171, 0, 0.14);
  --accent-border: #e2c14f;
}

.house-system-page .profile-card.prithvi {
  --accent: #2b9347;
  --accent-soft: rgba(43, 147, 71, 0.15);
  --accent-border: #68ba7d;
}

.house-system-page .profile-card.varun {
  --accent: #2d98e5;
  --accent-soft: rgba(45, 152, 229, 0.14);
  --accent-border: #70baee;
}

/*--------------------------------------------------------------
# Responsive
--------------------------------------------------------------*/
@media (max-width: 1199px) {
  .house-system-page .orbit-stage {
    min-height: 516px;
  }

  .house-system-page .orbit-link.link-agni {
    left: calc(50% - 84px);
    top: calc(50% - 45px);
    width: 136px;
  }

  .house-system-page .orbit-link.link-akash {
    left: calc(50% + 84px);
    top: calc(50% - 45px);
    width: 130px;
  }

  .house-system-page .orbit-link.link-prithvi {
    left: calc(50% - 84px);
    top: calc(50% + 43px);
    width: 132px;
  }

  .house-system-page .orbit-link.link-varun {
    left: calc(50% + 84px);
    top: calc(50% + 43px);
    width: 126px;
  }

  .house-system-page .orbit-card {
    width: 158px;
  }
}

@media (max-width: 991px) {
  .house-system-page .house-showcase {
    padding: 62px 0 54px;
  }

  .house-system-page .showcase-copy p {
    font-size: 16px;
    line-height: 1.65;
  }

  .house-system-page .orbit-stage {
    min-height: 468px;
  }

  .house-system-page .orbit-core {
    width: 156px;
    height: 156px;
  }

  .house-system-page .orbit-core strong {
    font-size: 22px;
  }

  .house-system-page .orbit-card {
    width: 138px;
    min-height: 126px;
  }

  .house-system-page .orbit-link.link-agni {
    width: 102px;
    left: calc(50% - 74px);
    top: calc(50% - 36px);
  }

  .house-system-page .orbit-link.link-akash {
    width: 98px;
    left: calc(50% + 74px);
    top: calc(50% - 36px);
  }

  .house-system-page .orbit-link.link-prithvi {
    width: 98px;
    left: calc(50% - 74px);
    top: calc(50% + 35px);
  }

  .house-system-page .orbit-link.link-varun {
    width: 94px;
    left: calc(50% + 74px);
    top: calc(50% + 35px);
  }

  .house-system-page .orbit-card img {
    width: 54px;
    height: 54px;
    border-radius: 12px;
  }

  .house-system-page .orbit-card h3 {
    font-size: 24px;
  }

  .house-system-page .profiles-grid {
    grid-template-columns: 1fr;
  }

  .house-system-page .house-profiles {
    padding-bottom: 70px;
  }
}

@media (max-width: 767px) {
  .house-system-page .house-showcase {
    padding: 50px 0 42px;
  }

  .house-system-page .house-showcase-shell {
    border-radius: 18px;
    padding: 12px;
  }

  .house-system-page .showcase-copy h1 {
    font-size: clamp(30px, 10vw, 44px);
  }

  .house-system-page .showcase-copy p {
    font-size: 14.8px;
    line-height: 1.6;
  }

  .house-system-page .showcase-points li {
    min-height: 34px;
    border-radius: 10px;
    padding: 6px 9px;
    font-size: 12.5px;
  }

  .house-system-page .showcase-btn {
    min-height: 42px;
    padding: 9px 14px;
    font-size: 13px;
  }

  .house-system-page .orbit-stage {
    min-height: auto;
    border-radius: 14px;
    padding: 10px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .house-system-page .orbit-shape,
  .house-system-page .orbit-link {
    display: none;
  }

  .house-system-page .orbit-core {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    width: auto;
    height: auto;
    min-height: 76px;
    border-radius: 12px;
    box-shadow: none;
    grid-column: 1 / -1;
    padding: 10px 8px;
  }

  .house-system-page .orbit-core span {
    font-size: 10px;
  }

  .house-system-page .orbit-core strong {
    font-size: 18px;
  }

  .house-system-page .orbit-card {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    width: auto;
    min-height: 112px;
    border-radius: 10px;
    padding: 8px 6px 6px;
    animation: none;
  }

  .house-system-page .orbit-card.agni,
  .house-system-page .orbit-card.akash,
  .house-system-page .orbit-card.prithvi,
  .house-system-page .orbit-card.varun {
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    transform: none;
  }

  .house-system-page .orbit-card img {
    width: 52px;
    height: 52px;
  }

  .house-system-page .orbit-card h3 {
    margin: 6px 0 1px;
    font-size: 18px;
  }

  .house-system-page .orbit-card p {
    font-size: 9px;
  }

  .house-system-page .profiles-head h2 {
    font-size: clamp(28px, 8vw, 38px);
  }

  .house-system-page .profiles-head p {
    font-size: 14px;
    line-height: 1.55;
  }

  .house-system-page .profile-card {
    border-radius: 14px;
    padding: 11px 10px;
  }

  .house-system-page .profile-symbol {
    width: 60px;
    height: 60px;
    border-radius: 13px;
  }

  .house-system-page .profile-title h3 {
    font-size: 26px;
  }

  .house-system-page .profile-title span {
    min-height: 22px;
    padding: 2px 8px;
    font-size: 9px;
  }

  .house-system-page .profile-card p {
    margin: 9px 0 0;
    font-size: 13px;
  }

  .house-system-page .profile-traits {
    margin: 9px 0 0;
    gap: 6px;
  }

  .house-system-page .profile-traits li {
    min-height: 24px;
    padding: 3px 8px;
    font-size: 10.5px;
  }

  .house-system-page .profile-student {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 8px;
    width: 102px;
    height: 84px;
  }
}

/*--------------------------------------------------------------
# Animations
--------------------------------------------------------------*/
@keyframes houseSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes houseFloatY {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-9px);
  }
}

@keyframes houseFloatCard {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .house-system-page *,
  .house-system-page *::before,
  .house-system-page *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}
