/* =========================================================
   AME DISCIPLINE PAGE — DARK GLASS SYSTEM
   Matches Index / Vision / Subjects / Fitness / Nutrition.
   ========================================================= */

html,
body {
  background: #02040a !important;
}

body {
  overflow-x: hidden;
}

.aurora {
  display: none !important;
}

.grid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  display: block !important;
  background-image:
    linear-gradient(rgba(0, 240, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.045) 1px, transparent 1px);
  background-size: 86px 86px;
  opacity: 0.55;
}

#stars {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.discipline-main,
footer {
  position: relative;
  z-index: 1;
}

.discipline-main {
  padding-top: clamp(122px, 14vh, 156px);
}

.discipline-container {
  width: min(calc(100% - 48px), var(--max));
}

.discipline-hero {
  position: relative;
  padding: 0 0 clamp(44px, 7vh, 82px);
  isolation: isolate;
}

.discipline-hero-card,
.protocol-card,
.tracker-card,
.discipline-cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 2px solid rgba(255, 255, 255, 0.055);
  border-radius: clamp(24px, 2.2vw, 35px);
  background: rgba(8, 14, 28, 0.70);
}

.discipline-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.72fr);
  gap: clamp(24px, 4vw, 62px);
  align-items: center;
  min-height: clamp(420px, 54vh, 610px);
  padding: clamp(30px, 5vw, 70px);
}

.discipline-kicker {
  margin: 0 0 clamp(18px, 2vw, 26px);
  color: rgba(142, 230, 255, 0.86);
  font-size: clamp(0.72rem, 0.82vw, 0.92rem);
  font-weight: 800;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(0, 220, 255, 0.28);
}

.discipline-title {
  margin: 0;
  max-width: 900px;
  color: #f7fdff;
  font-size: clamp(2.35rem, 5.75vw, 7.3rem);
  line-height: 0.90;
  font-weight: 900;
  letter-spacing: -0.055em;
  text-transform: uppercase;
  text-shadow:
    0 0 20px rgba(0, 240, 255, 0.10),
    0 0 52px rgba(0, 140, 255, 0.10);
}

.discipline-title span {
  display: block;
  background: linear-gradient(90deg, #ffffff 0%, #9dfbff 42%, #59b8ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.discipline-title::after,
.discipline-section-head h2::after,
.protocol-copy h2::after,
.tracker-head h2::after {
  content: "";
  display: block;
  width: min(720px, 88%);
  height: 3px;
  margin: clamp(24px, 3vw, 34px) 0 0;
  background: linear-gradient(90deg, rgba(0, 240, 255, 0.74), rgba(255, 255, 255, 0.26), transparent);
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.18);
}

.discipline-copy-text,
.discipline-section-head p,
.protocol-copy p,
.tracker-head p,
.discipline-cta p {
  color: rgba(216, 232, 244, 0.76);
  font-weight: 650;
  line-height: 1.82;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.discipline-copy-text {
  max-width: 780px;
  margin: clamp(22px, 3vw, 32px) 0 0;
  font-size: clamp(0.9rem, 1.06vw, 1.08rem);
}

.discipline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(24px, 3vw, 38px);
}

.discipline-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid rgba(0, 240, 255, 0.32);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.16), rgba(58, 141, 255, 0.10));
  color: #f4fdff;
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease, box-shadow 0.24s ease;
}

.discipline-btn::after {
  content: ">";
  margin-left: 10px;
}

.discipline-btn-muted {
  border-color: rgba(255, 255, 255, 0.075);
  background: rgba(255, 255, 255, 0.026);
  color: rgba(230, 244, 252, 0.84);
}

.discipline-btn:hover,
.discipline-btn:focus-visible {
  transform: translateY(-3px);
  outline: none;
  border-color: rgba(0, 240, 255, 0.62);
  box-shadow: 0 0 34px rgba(0, 240, 255, 0.18), 0 18px 46px rgba(0, 0, 0, 0.24);
}

.discipline-command {
  display: grid;
  gap: 20px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: clamp(20px, 2vw, 35px);
  background: rgba(7, 17, 31, 0.46);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.050), inset 0 0 44px rgba(0, 180, 255, 0.026);
}

.command-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.command-header span,
.command-header strong {
  color: rgba(142, 230, 255, 0.78);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.command-header strong {
  color: #31ff8a;
}

.discipline-rings {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 230px;
  border: 2px solid rgba(0, 240, 255, 0.11);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(0, 240, 255, 0.065), transparent 42%),
    rgba(255, 255, 255, 0.022);
}

.discipline-rings::before,
.discipline-rings::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(0, 240, 255, 0.14);
  transform: rotate(45deg);
}

.discipline-rings::before {
  width: 160px;
  height: 160px;
}

.discipline-rings::after {
  width: 112px;
  height: 112px;
  border-color: rgba(49, 255, 138, 0.16);
}

.execution-core {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 118px;
  height: 118px;
  border: 2px solid rgba(0, 240, 255, 0.22);
  border-radius: 30px;
  background: rgba(2, 8, 18, 0.74);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.execution-core span,
.execution-core strong {
  color: #f5fcff;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.execution-core span {
  font-size: 1.8rem;
}

.execution-core strong {
  color: #8eeeff;
  font-size: 0.54rem;
}

.command-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.command-metrics div,
.execution-card,
.control-card {
  border: 2px solid rgba(0, 240, 255, 0.11);
  border-radius: 20px;
  background: rgba(7, 17, 31, 0.44);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), inset 0 0 34px rgba(0, 180, 255, 0.018);
}

.command-metrics div {
  min-height: 104px;
  padding: 18px;
}

.command-metrics strong,
.execution-card h3,
.control-card h3 {
  display: block;
  color: #f5fcff;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.command-metrics span {
  display: block;
  margin-top: 8px;
  color: rgba(185, 210, 230, 0.72);
  font-size: 0.56rem;
  line-height: 1.55;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.discipline-section {
  position: relative;
  padding: clamp(42px, 7vh, 86px) 0;
}

.discipline-section-head {
  max-width: 1100px;
  margin-bottom: 30px;
}

.discipline-section-head h2,
.protocol-copy h2,
.tracker-head h2,
.discipline-cta h2 {
  margin: 0;
  color: #f7fdff;
  font-size: clamp(1.9rem, 3.5vw, 4.4rem);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  text-wrap: balance;
}

.discipline-section-head p,
.protocol-copy p,
.tracker-head p,
.discipline-cta p {
  max-width: 900px;
  margin: clamp(16px, 2vw, 24px) 0 0;
  font-size: clamp(0.84rem, 0.96vw, 1rem);
}

.execution-grid,
.control-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.execution-card,
.control-card {
  min-height: 250px;
  padding: 24px;
  transition: transform 0.28s ease, border-color 0.28s ease, background 0.28s ease;
}

.execution-card:hover,
.control-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 240, 255, 0.20);
  background: rgba(10, 18, 32, 0.78);
}

.execution-card span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border: 1px solid rgba(0, 240, 255, 0.14);
  border-radius: 14px;
  background: rgba(0, 240, 255, 0.06);
  color: #c8f9ff;
  font-weight: 900;
}

.execution-card h3,
.control-card h3 {
  margin: 0 0 12px;
  font-size: 0.95rem;
  line-height: 1.35;
}

.execution-card p,
.control-card p,
.timeline-item p {
  margin: 0;
  color: rgba(185, 210, 230, 0.70);
  font-size: 0.78rem;
  line-height: 1.72;
  font-weight: 700;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.protocol-card {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(320px, 1.16fr);
  gap: clamp(24px, 4vw, 54px);
  align-items: center;
  padding: clamp(30px, 4.2vw, 62px);
}

.protocol-timeline {
  position: relative;
  display: grid;
  gap: 12px;
}

.protocol-timeline::before {
  content: "";
  position: absolute;
  left: 23px;
  top: 20px;
  bottom: 20px;
  width: 2px;
  background: linear-gradient(rgba(0, 240, 255, 0.65), rgba(49, 255, 138, 0.22));
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.18);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 8px 16px;
  min-height: 96px;
  padding: 18px 18px 18px 64px;
  border: 2px solid rgba(255, 255, 255, 0.055);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.022);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 28px;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(0, 240, 255, 0.65);
  border-radius: 6px;
  background: #06101e;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.26);
}

.timeline-item strong {
  color: #31ff8a;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.timeline-item span {
  color: #f5fcff;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.timeline-item p {
  grid-column: 1 / -1;
}

.control-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.control-icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin-bottom: 18px;
  border: 1px solid rgba(0, 240, 255, 0.16);
  border-radius: 18px;
  background: rgba(0, 240, 255, 0.055);
  color: #c8f9ff;
  font-size: 1.4rem;
}

.tracker-card {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1.18fr);
  gap: clamp(24px, 4vw, 54px);
  padding: clamp(30px, 4.2vw, 62px);
}

.tracker-board {
  display: grid;
  gap: 16px;
  align-content: center;
}

.tracker-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 50px;
  align-items: center;
  gap: 14px;
}

.tracker-row span,
.tracker-row strong {
  color: rgba(237, 251, 255, 0.88);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tracker-row strong {
  color: #8eeeff;
  text-align: right;
}

.tracker-row i {
  position: relative;
  display: block;
  height: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.045);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
}

.tracker-row i::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--level);
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(58, 141, 255, 0.78), rgba(0, 240, 255, 0.82), rgba(49, 255, 138, 0.70));
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.16);
}

.discipline-cta-wrap {
  padding: clamp(22px, 4vh, 54px) 0 clamp(88px, 10vh, 120px);
}

.discipline-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(30px, 4.2vw, 52px);
}

.discipline-cta h2 {
  max-width: 900px;
  font-size: clamp(1.55rem, 3vw, 3.6rem);
}

.cta-actions {
  margin-top: 0;
  flex-shrink: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1180px) {
  .discipline-hero-card,
  .protocol-card,
  .tracker-card {
    grid-template-columns: 1fr;
  }

  .discipline-copy,
  .protocol-copy,
  .tracker-head {
    text-align: center;
    justify-self: center;
  }

  .discipline-title::after,
  .discipline-section-head h2::after,
  .protocol-copy h2::after,
  .tracker-head h2::after {
    margin-left: auto;
    margin-right: auto;
    background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.72), rgba(49, 255, 138, 0.32), transparent);
  }

  .discipline-actions {
    justify-content: center;
  }

  .discipline-command,
  .protocol-timeline,
  .tracker-board {
    width: min(760px, 100%);
    justify-self: center;
  }

  .execution-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .discipline-section-head {
    text-align: center;
    justify-self: center;
    margin-left: auto;
    margin-right: auto;
  }

  .discipline-section-head p {
    margin-left: auto;
    margin-right: auto;
  }

  .discipline-cta {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 860px) {
  .discipline-main {
    padding-top: clamp(132px, 16vh, 178px);
  }

  .discipline-container {
    width: min(calc(100% - 28px), var(--max));
  }

  .discipline-hero-card,
  .protocol-card,
  .tracker-card,
  .discipline-cta {
    padding: 34px 18px;
    border-radius: 24px;
  }

  .discipline-title {
    font-size: clamp(2.45rem, 12vw, 5.45rem);
    line-height: 0.92;
  }

  .discipline-copy-text,
  .discipline-section-head p,
  .protocol-copy p,
  .tracker-head p,
  .discipline-cta p {
    font-size: 0.84rem;
    letter-spacing: 0.055em;
  }

  .control-grid {
    grid-template-columns: 1fr;
  }

  .tracker-row {
    grid-template-columns: 120px minmax(0, 1fr) 44px;
    gap: 10px;
  }
}

@media (max-width: 620px) {
  .execution-grid,
  .command-metrics {
    grid-template-columns: 1fr;
  }

  .protocol-timeline::before {
    left: 18px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    padding: 18px 14px 18px 50px;
  }

  .timeline-item::before {
    left: 10px;
  }

  .tracker-row {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .tracker-row strong {
    text-align: left;
  }
}

@media (max-width: 520px) {
  .discipline-main {
    padding-top: clamp(122px, 15vh, 154px);
  }

  .discipline-container {
    width: min(calc(100% - 22px), var(--max));
  }

  .discipline-hero-card,
  .protocol-card,
  .tracker-card,
  .discipline-cta {
    padding: 30px 12px;
    border-radius: 20px;
  }

  .discipline-kicker {
    letter-spacing: 0.22em;
  }

  .discipline-title {
    font-size: clamp(2.2rem, 13vw, 4rem);
  }

  .discipline-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .discipline-btn {
    width: 100%;
  }

  .discipline-rings {
    min-height: 210px;
  }

  .discipline-rings::before {
    width: 136px;
    height: 136px;
  }

  .discipline-rings::after {
    width: 96px;
    height: 96px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
