/*--------------------------------------------------------------
# Brigadier Gyan Singh About Page
# Uses existing root variables
--------------------------------------------------------------*/

.legacy-about-page {
  --logo-blue: #2371b6;
  --logo-orange: #d46f14;
  --transition-fluid: all 0.3s ease;

  margin: 0;
  color: #24313a;
  background: #f7f5f0;
  font-family: "DM Sans", sans-serif;
}

.legacy-about-page *,
.legacy-about-page *::before,
.legacy-about-page *::after {
  box-sizing: border-box;
}

.legacy-about-page img {
  display: block;
  max-width: 100%;
}

.legacy-about-page a {
  text-decoration: none;
}

.legacy-about-page h1,
.legacy-about-page h2,
.legacy-about-page h3 {
  font-family: "Playfair Display", serif;
}

/*--------------------------------------------------------------
# Hero
--------------------------------------------------------------*/

.legacy-hero {
  min-height: 780px;
  position: relative;

  display: flex;
  align-items: center;

  padding: 150px 0 90px;

  overflow: hidden;

  background:
    url("https://images.unsplash.com/photo-1464822759023-fed622ff2c3b?auto=format&fit=crop&w=2000&q=85")
    center / cover no-repeat;
}

.legacy-hero-overlay {
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      90deg,
      rgba(8, 28, 42, 0.96) 0%,
      rgba(8, 28, 42, 0.86) 48%,
      rgba(8, 28, 42, 0.48) 100%
    );
}

.legacy-hero-container {
  position: relative;
  z-index: 2;

  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  align-items: center;
  gap: 80px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 10px;

  margin-bottom: 24px;

  color: rgba(255, 255, 255, 0.74);

  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.article-meta span:first-child {
  color: var(--logo-orange);
}

.meta-dot {
  width: 4px;
  height: 4px;

  display: inline-block;

  background: rgba(255, 255, 255, 0.55);
  border-radius: 50%;
}

.legacy-hero h1 {
  max-width: 760px;

  margin: 0;

  color: #ffffff;

  font-size: clamp(54px, 7vw, 96px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -3px;
}

.legacy-hero h1 span {
  display: block;

  margin-top: 15px;

  color: var(--logo-orange);

  font-family: "DM Sans", sans-serif;
  font-size: 0.45em;
  font-weight: 700;
  letter-spacing: 0;
}

.legacy-hero-description {
  max-width: 660px;

  margin: 30px 0 0;

  color: rgba(255, 255, 255, 0.84);

  font-size: 19px;
  line-height: 1.7;
}

.legacy-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;

  margin-top: 38px;
}

.legacy-primary-button,
.legacy-outline-button {
  min-height: 50px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  padding: 12px 22px;

  border-radius: 6px;

  font-size: 13px;
  font-weight: 700;

  transition: var(--transition-fluid);
}

.legacy-primary-button {
  color: #ffffff;
  background: var(--logo-orange, #d46f14);
}

.legacy-primary-button:hover {
  color: #ffffff;
  background: #b85d10;

  transform: translateY(-2px);
}

.legacy-outline-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);

  border: 1px solid rgba(255, 255, 255, 0.38);
}

.legacy-outline-button:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);

  border-color: #ffffff;
}

.legacy-document {
  margin: 0;
}

.legacy-document-frame {
  padding: 12px;

  background: rgba(255, 255, 255, 0.94);

  border-radius: 8px;

  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.32);

  transform: rotate(1.5deg);
}

.legacy-document-frame img {
  width: 100%;
  max-height: 520px;

  object-fit: cover;
  object-position: top;

  border-radius: 3px;
}

.legacy-document figcaption {
  margin-top: 15px;

  color: rgba(255, 255, 255, 0.66);

  font-size: 12px;
  text-align: center;
}

/*--------------------------------------------------------------
# Quick Facts
--------------------------------------------------------------*/

.legacy-facts {
  position: relative;
  z-index: 4;

  margin-top: -42px;
}

.legacy-facts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);

  overflow: hidden;

  background: #ffffff;

  border-radius: 10px;

  box-shadow:
    0 20px 55px rgba(23, 36, 43, 0.13);
}

.legacy-facts-grid article {
  min-height: 145px;

  padding: 28px;

  border-right: 1px solid #e9e6df;
}

.legacy-facts-grid article:last-child {
  border-right: 0;
}

.legacy-facts-grid span {
  display: block;

  margin-bottom: 8px;

  color: var(--logo-blue);

  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.legacy-facts-grid strong {
  display: block;

  color: #172c38;

  font-family: "Playfair Display", serif;
  font-size: 24px;
}

.legacy-facts-grid small {
  display: block;

  margin-top: 6px;

  color: #71808a;

  line-height: 1.5;
}

/*--------------------------------------------------------------
# Story
--------------------------------------------------------------*/

.legacy-story {
  padding: 130px 0 110px;
}

.legacy-story-layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 90px;
}

.legacy-story-intro {
  align-self: start;

  position: sticky;
  top: 110px;
}

.legacy-section-label {
  display: block;

  margin-bottom: 12px;

  color: var(--logo-orange);

  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.legacy-story-intro h2,
.legacy-section-heading h2,
.legacy-everest-card h2,
.legacy-book-content h2,
.legacy-film-content h2 {
  margin: 0;

  color: #142c39;

  font-size: clamp(36px, 4vw, 58px);
  line-height: 1.08;
}

.legacy-story-intro p {
  margin: 24px 0 0;

  color: #697780;

  line-height: 1.8;
}

.legacy-years {
  display: flex;
  align-items: center;
  gap: 14px;

  margin-top: 28px;

  color: var(--logo-blue);

  font-weight: 800;
}

.legacy-story-content {
  max-width: 760px;
}

.legacy-story-lead {
  margin: 0 0 55px;

  color: #243640;

  font-family: "Playfair Display", serif;
  font-size: 27px;
  line-height: 1.55;
}

.legacy-story-block {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 26px;

  margin-top: 48px;
  padding-top: 48px;

  border-top: 1px solid #ddd9d0;
}

.legacy-story-number {
  color: var(--logo-orange);

  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
}

.legacy-story-block h3 {
  margin: 0 0 18px;

  color: #172c38;

  font-size: 30px;
}

.legacy-story-block p {
  margin: 0 0 18px;

  color: #66747c;

  font-size: 16px;
  line-height: 1.85;
}

/*--------------------------------------------------------------
# Everest Feature
--------------------------------------------------------------*/

.legacy-everest {
  min-height: 720px;

  position: relative;

  display: flex;
  align-items: center;

  overflow: hidden;
}

.legacy-everest-image {
  position: absolute;
  inset: 0;
}

.legacy-everest-image::after {
  content: "";

  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      90deg,
      rgba(8, 28, 42, 0.92),
      rgba(8, 28, 42, 0.25)
    );
}

.legacy-everest-image img {
  width: 100%;
  height: 100%;

  object-fit: cover;
}

.legacy-everest-container {
  position: relative;
  z-index: 2;
}

.legacy-everest-card {
  max-width: 650px;

  padding: 58px;

  color: #ffffff;
  background: rgba(8, 28, 42, 0.79);

  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.legacy-everest-card h2 {
  color: #ffffff;
}

.legacy-everest-card p {
  margin: 22px 0 0;

  color: rgba(255, 255, 255, 0.82);

  line-height: 1.8;
}

.legacy-everest-stat {
  display: flex;
  align-items: center;
  gap: 20px;

  margin-top: 34px;
  padding-top: 28px;

  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.legacy-everest-stat strong {
  color: var(--logo-orange);

  font-family: "Playfair Display", serif;
  font-size: 45px;
}

.legacy-everest-stat span {
  max-width: 230px;

  color: rgba(255, 255, 255, 0.72);

  line-height: 1.5;
}

/*--------------------------------------------------------------
# Institutions
--------------------------------------------------------------*/

.legacy-institutions {
  padding: 110px 0;

  background: #ffffff;
}

.legacy-section-heading {
  max-width: 760px;

  margin-bottom: 60px;
}

.legacy-section-heading > p {
  margin: 22px 0 0;

  color: #6b7981;

  font-size: 16px;
  line-height: 1.8;
}

.legacy-institution-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.legacy-institution-grid article {
  min-height: 330px;

  padding: 32px;

  background: #f6f4ef;

  border-top: 4px solid var(--logo-blue);
  border-radius: 6px;

  transition: var(--transition-fluid);
}

.legacy-institution-grid article:hover {
  transform: translateY(-6px);

  box-shadow:
    0 20px 40px rgba(26, 44, 54, 0.1);
}

.legacy-institution-grid article > span {
  color: var(--logo-orange);

  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
}

.legacy-institution-grid i {
  display: block;

  margin-top: 45px;

  color: var(--logo-blue);

  font-size: 34px;
}

.legacy-institution-grid h3 {
  margin: 20px 0 14px;

  color: #172c38;

  font-size: 26px;
}

.legacy-institution-grid p {
  margin: 0;

  color: #6c7980;

  line-height: 1.75;
}

/*--------------------------------------------------------------
# Timeline
--------------------------------------------------------------*/

.legacy-timeline {
  padding: 110px 0;

  background: #f4f1ea;
}

.legacy-timeline-list {
  max-width: 980px;
}

.legacy-timeline-item {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 50px;

  padding: 34px 0;

  border-top: 1px solid #ddd8cf;
}

.legacy-timeline-item:last-child {
  border-bottom: 1px solid #ddd8cf;
}

.legacy-timeline-item time {
  color: var(--logo-orange);

  font-family: "Playfair Display", serif;
  font-size: 28px;
  font-weight: 700;
}

.legacy-timeline-item h3 {
  margin: 0 0 10px;

  color: #172c38;

  font-size: 25px;
}

.legacy-timeline-item p {
  max-width: 660px;

  margin: 0;

  color: #6d7980;

  line-height: 1.75;
}

/*--------------------------------------------------------------
# Contributions
--------------------------------------------------------------*/

.legacy-contributions {
  padding: 110px 0;

  background: #102b3a;
}

.legacy-light-heading h2 {
  color: #ffffff;
}

.legacy-contribution-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.legacy-contribution-grid article {
  min-height: 275px;

  padding: 30px;

  background: rgba(255, 255, 255, 0.06);

  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
}

.legacy-contribution-grid i {
  color: var(--logo-orange);

  font-size: 30px;
}

.legacy-contribution-grid h3 {
  margin: 45px 0 13px;

  color: #ffffff;

  font-size: 23px;
}

.legacy-contribution-grid p {
  margin: 0;

  color: rgba(255, 255, 255, 0.68);

  line-height: 1.75;
}

/*--------------------------------------------------------------
# Book and Honours
--------------------------------------------------------------*/

.legacy-book-section {
  padding: 110px 0;

  background: #ffffff;
}

.legacy-book-layout {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  align-items: center;
  gap: 85px;
}

.legacy-book-cover {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 520px;
  margin: 0;
}

.legacy-book-item {
  margin: 0;
}

.legacy-book-item img {
  display: block;
  width: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.legacy-book-item-primary {
  position: relative;
  z-index: 2;
  width: 285px;
}

.legacy-book-item-primary img {
  box-shadow:
    -18px 20px 45px rgba(21, 40, 51, 0.23);
  transform: rotate(-2deg);
}

.legacy-book-item-secondary {
  position: absolute;
  z-index: 1;
  top: 10px;
  right: -12px;
  width: 205px;
}

.legacy-book-item-secondary img {
  box-shadow: 12px 16px 34px rgba(21, 40, 51, 0.18);
  transform: rotate(5deg);
}

.legacy-book-item figcaption {
  margin-top: 16px;
  color: #68767e;
  font-size: 13px;
  text-align: center;
}

.legacy-book-content {
  max-width: 700px;
}

.legacy-book-content p {
  margin: 22px 0 0;

  color: #68767e;

  line-height: 1.8;
}

.legacy-honours-list {
  display: grid;
  gap: 13px;

  margin: 30px 0 0;
  padding: 0;

  list-style: none;
}

.legacy-honours-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;

  color: #33454f;

  line-height: 1.6;
}

.legacy-honours-list i {
  margin-top: 3px;

  color: var(--logo-orange);
}

/*--------------------------------------------------------------
# Film
--------------------------------------------------------------*/

.legacy-film {
  padding: 110px 0;

  background: #f1eee7;
}

.legacy-film-layout {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  align-items: center;
  gap: 70px;
}

.legacy-film-content p {
  margin: 24px 0 28px;

  color: #68767e;

  line-height: 1.8;
}

.legacy-film-button {
  min-height: 48px;

  display: inline-flex;
  align-items: center;
  gap: 10px;

  padding: 12px 20px;

  color: #ffffff;
  background: var(--logo-orange);

  border-radius: 6px;

  font-size: 13px;
  font-weight: 700;

  transition: var(--transition-fluid);
}

.legacy-film-button:hover {
  color: #ffffff;
  background: #b85d10;

  transform: translateY(-2px);
}

.legacy-outline-button,
.legacy-film-button {
  cursor: pointer;
}

button.legacy-outline-button,
button.legacy-film-button {
  font: inherit;
}

button.legacy-film-button {
  border: 1px solid var(--logo-orange, #d46f14);
}

.legacy-film-modal .modal-dialog {
  max-width: 1080px;
}

.legacy-film-modal .modal-content {
  overflow: hidden;

  color: #ffffff;
  background: #112f3f;

  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;

  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
}

.legacy-film-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  padding: 23px 25px 20px;
}

.legacy-film-modal-header span {
  display: block;

  color: #f0ae6b;

  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.legacy-film-modal-header h2 {
  margin: 6px 0 0;

  color: #ffffff;

  font-family: "Playfair Display", serif;
  font-size: clamp(25px, 3vw, 35px);
  font-weight: 700;
}

.legacy-film-modal-header .btn-close {
  flex: 0 0 auto;

  opacity: 0.9;
}

.legacy-film-modal-video {
  overflow: hidden;

  aspect-ratio: 16 / 9;

  background: #000000;
}

.legacy-film-modal-video iframe {
  width: 100%;
  height: 100%;

  display: block;

  border: 0;
}

.legacy-film-frame {
  position: relative;

  overflow: hidden;

  aspect-ratio: 16 / 9;

  background: #000000;

  border-radius: 10px;

  box-shadow:
    0 25px 60px rgba(31, 44, 51, 0.18);
}

.legacy-film-frame iframe {
  width: 100%;
  height: 100%;

  border: 0;
}

/*--------------------------------------------------------------
# Closing
--------------------------------------------------------------*/

.legacy-closing {
  padding: 120px 0;

  text-align: center;

  background: #ffffff;
}

.legacy-closing blockquote {
  max-width: 900px;

  margin: 0 auto;

  color: #173142;

  font-family: "Playfair Display", serif;
  font-size: clamp(38px, 5vw, 65px);
  font-weight: 700;
  line-height: 1.2;
}

.legacy-closing p {
  max-width: 720px;

  margin: 30px auto 0;

  color: #6a777e;

  font-size: 17px;
  line-height: 1.8;
}

.legacy-back-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;

  margin-top: 32px;

  color: var(--logo-blue);

  font-weight: 800;
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/

.legacy-footer {
  padding: 28px 0;

  color: rgba(255, 255, 255, 0.68);
  background: #0b2230;
}

.legacy-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

.legacy-footer-row div {
  display: flex;
  flex-direction: column;
}

.legacy-footer-row strong {
  color: #ffffff;
}

.legacy-footer-row span,
.legacy-footer-row p {
  margin: 4px 0 0;

  font-size: 13px;
}

/*--------------------------------------------------------------
# Tablet
--------------------------------------------------------------*/

@media (max-width: 991px) {

  .legacy-hero {
    min-height: auto;

    padding: 130px 0 80px;
  }

  .legacy-hero-container {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .legacy-document {
    max-width: 430px;
  }

  .legacy-facts-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .legacy-facts-grid article:nth-child(2) {
    border-right: 0;
  }

  .legacy-facts-grid article:nth-child(-n + 2) {
    border-bottom: 1px solid #e9e6df;
  }

  .legacy-story-layout {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .legacy-story-intro {
    position: static;

    max-width: 680px;
  }

  .legacy-institution-grid {
    grid-template-columns: 1fr;
  }

  .legacy-institution-grid article {
    min-height: auto;
  }

  .legacy-contribution-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .legacy-book-layout {
    grid-template-columns: 1fr;
    gap: 55px;
  }

  .legacy-film-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/*--------------------------------------------------------------
# Mobile
--------------------------------------------------------------*/

@media (max-width: 767px) {

  .legacy-hero {
    padding: 115px 0 65px;
  }

  .legacy-hero h1 {
    font-size: 52px;
    letter-spacing: -1.5px;
  }

  .legacy-hero-description {
    font-size: 16px;
  }

  .legacy-facts {
    margin-top: 0;
    padding-top: 20px;

    background: #f7f5f0;
  }

  .legacy-facts-grid {
    grid-template-columns: 1fr;
  }

  .legacy-facts-grid article {
    min-height: auto;

    border-right: 0;
    border-bottom: 1px solid #e9e6df;
  }

  .legacy-facts-grid article:last-child {
    border-bottom: 0;
  }

  .legacy-story,
  .legacy-institutions,
  .legacy-timeline,
  .legacy-contributions,
  .legacy-book-section,
  .legacy-film,
  .legacy-closing {
    padding: 75px 0;
  }

  .legacy-story-lead {
    font-size: 23px;
  }

  .legacy-story-block {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .legacy-everest {
    min-height: 680px;
  }

  .legacy-everest-card {
    padding: 30px 24px;
  }

  .legacy-everest-stat {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .legacy-timeline-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .legacy-contribution-grid {
    grid-template-columns: 1fr;
  }

  .legacy-contribution-grid article {
    min-height: auto;
  }

  .legacy-contribution-grid h3 {
    margin-top: 28px;
  }

  .legacy-book-cover {
    width: min(100%, 380px);
    min-height: 500px;
    margin-inline: auto;
  }

  .legacy-book-item-primary {
    width: min(72vw, 285px);
  }

  .legacy-book-item-secondary {
    right: 0;
    width: min(50vw, 195px);
  }

  .legacy-footer-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

/*--------------------------------------------------------------
# Small Mobile
--------------------------------------------------------------*/

@media (max-width: 480px) {

  .article-meta {
    flex-wrap: wrap;
  }

  .legacy-hero h1 {
    font-size: 44px;
  }

  .legacy-hero-actions {
    flex-direction: column;
  }

  .legacy-primary-button,
  .legacy-outline-button {
    width: 100%;
  }

  .legacy-story-intro h2,
  .legacy-section-heading h2,
  .legacy-everest-card h2,
  .legacy-book-content h2,
  .legacy-film-content h2 {
    font-size: 36px;
  }

  .legacy-closing blockquote {
    font-size: 34px;
  }
}

/*--------------------------------------------------------------
# Reduced Motion
--------------------------------------------------------------*/

@media (prefers-reduced-motion: reduce) {

  .legacy-about-page *,
  .legacy-about-page *::before,
  .legacy-about-page *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
