
/* =========================================================
   IORIX — ABOUT PAGE
   ========================================================= */

:root {
  --about-black: #050505;
  --about-white: #ffffff;
  --about-muted: rgba(255, 255, 255, 0.68);
  --about-line: rgba(255, 255, 255, 0.2);
  --about-gutter: clamp(24px, 7.5vw, 120px);
}

/* Reset local to the About page */

.about-page,
.about-header,
.about-footer {
  box-sizing: border-box;
}

.about-page *,
.about-header *,
.about-footer * {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--about-black);
  color: var(--about-white);
  font-family: Arial, Helvetica, sans-serif;
}

body.about-menu-open {
  overflow: hidden;
}

.about-page {
  width: 100%;
  overflow: clip;
  background: var(--about-black);
}

.about-page a,
.about-header a,
.about-footer a {
  color: inherit;
  text-decoration: none;
}

/* =========================================================
   HEADER / NAVIGATION
   ========================================================= */

.about-header {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 28px var(--about-gutter);
}

.about-logo {
  position: relative;
  z-index: 102;
  display: inline-flex;
  align-items: center;
}

.about-logo img {
  display: block;
  width: 112px;
  max-width: 35vw;
  height: auto;
  object-fit: contain;
}

.about-navigation {
  display: flex;
  align-items: center;
  gap: clamp(22px, 3vw, 48px);
}

.about-navigation a {
  position: relative;
  padding: 8px 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.13em;
  transition: color 180ms ease;
}

.about-navigation a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--about-white);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}

.about-navigation a:hover,
.about-navigation a[aria-current="page"] {
  color: var(--about-white);
}

.about-navigation a:hover::after,
.about-navigation a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.about-menu-toggle {
  display: none;
}

/* =========================================================
   FULL-SCREEN SECTIONS
   ========================================================= */

.about-section {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100svh;
  min-height: 100vh;
  padding: 150px var(--about-gutter) 100px;
  isolation: isolate;
  overflow: hidden;
  background: var(--about-black);
}

.about-background,
.about-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.about-background {
  z-index: -2;
  background-color: #111;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  transform: scale(1.015);
  transition: transform 1.2s ease;
}

.about-section:hover .about-background {
  transform: scale(1.045);
}

.about-shade {
  z-index: -1;
  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.78) 0%,
      rgba(0, 0, 0, 0.52) 44%,
      rgba(0, 0, 0, 0.12) 100%
    ),
    linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.55) 0%,
      transparent 70%
    );
}

/* Replace these image paths with your actual files */

.about-background-intro {
  background-image: url("../media/Image7.jpeg");
  background-position: center;
}

.about-background-mission {
  background-image: url("../media/Image6.jpeg");
  background-position: center;
}

.about-background-vision {
  background-image: url("../media/Image7.jpeg");
  background-position: center;
}

/* =========================================================
   SECTION CONTENT
   ========================================================= */

.about-content {
  position: relative;
  z-index: 1;
  width: min(100%, 760px);
}

.about-content-wide {
  width: min(100%, 900px);
}

.about-eyebrow {
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  line-height: 1.6;
  text-transform: uppercase;
}

.about-heading {
  max-width: 100%;
  margin: 0 0 28px;
  font-size: clamp(3.25rem, 7.3vw, 7.5rem);
  font-weight: 600;
  letter-spacing: -0.075em;
  line-height: 0.92;
  text-transform: uppercase;
  text-wrap: balance;
}

.about-heading span {
  display: block;
  color: rgba(255, 255, 255, 0.67);
}

.about-description {
  max-width: 610px;
  margin: 0 0 16px;
  color: var(--about-muted);
  font-size: clamp(14px, 1.2vw, 17px);
  font-weight: 400;
  line-height: 1.85;
}

/* =========================================================
   TEXT LINKS
   ========================================================= */

.about-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-width: 210px;
  margin-top: 22px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: var(--about-white);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  transition:
    color 220ms ease,
    background-color 220ms ease,
    border-color 220ms ease;
}

.about-link:hover {
  border-color: var(--about-white);
  background: var(--about-white);
  color: var(--about-black);
}

.about-link-arrow {
  display: inline-block;
  font-size: 16px;
  transition: transform 220ms ease;
}

.about-link:hover .about-link-arrow {
  transform: translate(3px, -3px);
}

/* =========================================================
   SCROLL INDICATOR
   ========================================================= */

.about-scroll {
  position: absolute;
  right: var(--about-gutter);
  bottom: 40px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.15em;
}

.about-scroll span {
  display: inline-block;
  width: 34px;
  height: 1px;
  background: rgba(255, 255, 255, 0.65);
}

/* =========================================================
   OUR APPROACH
   ========================================================= */

.about-approach {
  padding: clamp(90px, 12vw, 170px) var(--about-gutter);
  background: #080808;
}

.about-approach-heading {
  max-width: 850px;
  margin-bottom: clamp(55px, 8vw, 100px);
}

.about-approach-heading h2 {
  margin: 0 0 25px;
  font-size: clamp(2.8rem, 6.5vw, 6.4rem);
  font-weight: 600;
  letter-spacing: -0.075em;
  line-height: 0.96;
  text-transform: uppercase;
}

.about-approach-heading h2 span {
  display: block;
  color: rgba(255, 255, 255, 0.55);
}

.about-approach-heading > p:last-child {
  max-width: 570px;
  margin: 0;
  color: var(--about-muted);
  font-size: clamp(14px, 1.2vw, 17px);
  line-height: 1.85;
}

.about-principles {
  border-top: 1px solid var(--about-line);
}

.about-principle {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: clamp(20px, 5vw, 80px);
  padding: 34px 0 40px;
  border-bottom: 1px solid var(--about-line);
}

.about-principle-number {
  padding-top: 4px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.about-principle h3 {
  margin: 0 0 14px;
  font-size: clamp(16px, 1.7vw, 22px);
  font-weight: 500;
  letter-spacing: -0.025em;
}

.about-principle p {
  max-width: 650px;
  margin: 0;
  color: var(--about-muted);
  font-size: 14px;
  line-height: 1.9;
}

/* =========================================================
   FOOTER
   ========================================================= */

.about-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding: 35px var(--about-gutter);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: #050505;
}

.about-footer-brand {
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.08em;
}

.about-footer p,
.about-footer > span {
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.8;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1024px) {
  :root {
    --about-gutter: 6vw;
  }

  .about-header {
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .about-section {
    min-height: 90vh;
    padding-top: 140px;
    padding-bottom: 100px;
  }

  .about-heading {
    font-size: clamp(3.3rem, 8vw, 6.3rem);
  }

  .about-shade {
    background:
      linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.75),
        rgba(0, 0, 0, 0.32)
      ),
      linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.55),
        transparent 75%
      );
  }

  .about-footer {
    flex-wrap: wrap;
  }
}

/* =========================================================
   MOBILE NAVIGATION
   ========================================================= */

@media (max-width: 768px) {
  .about-header {
    padding: 22px 6%;
  }

  .about-logo img {
    width: 94px;
  }

  .about-menu-toggle {
    position: relative;
    z-index: 102;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(0, 0, 0, 0.25);
    cursor: pointer;
  }

  .about-menu-toggle span {
    display: block;
    width: 100%;
    height: 1px;
    background: var(--about-white);
    transition:
      transform 200ms ease,
      width 200ms ease;
  }

  .about-menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(3.5px) rotate(45deg);
  }

  .about-menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  .about-navigation {
    position: fixed;
    inset: 0;
    z-index: 101;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 24px;
    padding: 90px 9%;
    background: rgba(5, 5, 5, 0.98);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition:
      opacity 220ms ease,
      visibility 220ms ease,
      transform 220ms ease;
  }

  .about-navigation.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .about-navigation a {
    font-size: clamp(23px, 7vw, 38px);
    font-weight: 500;
    letter-spacing: -0.04em;
  }

  .about-navigation a::after {
    display: none;
  }

  /* Full-screen content */

  .about-section {
    min-height: 100svh;
    padding: 130px 6% 90px;
  }

  .about-background {
    background-position: center;
  }

  .about-heading {
    margin-bottom: 23px;
    font-size: clamp(2.8rem, 10vw, 5rem);
    letter-spacing: -0.07em;
    line-height: 0.98;
  }

  .about-eyebrow {
    margin-bottom: 21px;
    font-size: 9px;
    letter-spacing: 0.17em;
  }

  .about-description {
    max-width: 540px;
    font-size: 14px;
    line-height: 1.8;
  }

  .about-link {
    min-width: 200px;
    margin-top: 18px;
    padding: 15px;
    font-size: 9px;
  }

  .about-scroll {
    right: 6%;
    bottom: 30px;
    font-size: 8px;
  }

  /* Approach section */

  .about-approach {
    padding: 95px 6%;
  }

  .about-approach-heading h2 {
    font-size: clamp(2.7rem, 9vw, 4.5rem);
  }

  .about-principle {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 18px;
    padding: 28px 0 32px;
  }

  .about-principle h3 {
    font-size: 16px;
    line-height: 1.5;
  }

  .about-principle p {
    font-size: 13px;
    line-height: 1.85;
  }

  /* Footer */

  .about-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding: 30px 6%;
  }
}

/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 420px) {
  .about-section {
    padding-top: 115px;
    padding-bottom: 85px;
  }

  .about-heading {
    font-size: clamp(2.5rem, 10.5vw, 3.3rem);
  }

  .about-description {
    font-size: 13px;
  }

  .about-approach {
    padding-top: 75px;
    padding-bottom: 75px;
  }

  .about-principle {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 13px;
  }

  .about-scroll {
    bottom: 24px;
  }
}

/* =========================================================
   REDUCED MOTION ACCESSIBILITY
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .about-page *,
  .about-header *,
  .about-footer * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
