/*
 * ByteSphere About Page
 * Add this file to: /assets/css/about-page.css
 */

.about-page {
  background: var(--white);
}

/* Hero */
.about-page-hero {
  position: relative;
  min-height: 820px;
  padding: 178px 0 0;
  overflow: hidden;
  background: var(--black);
  color: var(--white);
}

.about-page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.13) 1px, transparent 1px);
  background-size: 80px 80px;
  -webkit-mask-image: linear-gradient(to left, #000, transparent 62%);
  mask-image: linear-gradient(to left, #000, transparent 62%);
  pointer-events: none;
}

.about-page-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.65fr);
  gap: 100px;
  align-items: center;
}

.about-page-hero .eyebrow,
.about-page-approach .eyebrow {
  color: #929292;
}

.about-page-hero .eyebrow::before,
.about-page-approach .eyebrow::before {
  background: #929292;
}

.about-page-hero h1 {
  max-width: 940px;
  margin-top: 26px;
  font-family: var(--ff-display);
  font-size: clamp(52px, 6.6vw, 94px);
  font-weight: 600;
  line-height: 0.99;
  letter-spacing: -0.045em;
}

.about-page-hero h1 em {
  color: #777;
  font-style: normal;
}

.about-page-lead {
  max-width: 570px;
  margin-top: 34px;
  color: #b9b9b9;
  font-size: 17px;
  line-height: 1.7;
}

.about-page-actions {
  display: flex;
  gap: 30px;
  align-items: center;
  margin-top: 42px;
}

.about-page-text-link {
  padding-bottom: 5px;
  border-bottom: 1px solid #595959;
  color: #b9b9b9;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.about-page-text-link:hover {
  color: var(--white);
  border-color: var(--white);
}

/* Orbit graphic */
.about-page-orbit {
  position: relative;
  width: min(100%, 430px);
  aspect-ratio: 1;
  justify-self: end;
  border: 1px solid #292929;
  border-radius: 50%;
}

.about-orbit-ring,
.about-orbit-axis,
.about-orbit-point,
.about-orbit-core {
  position: absolute;
  display: block;
}

.about-orbit-ring {
  top: 50%;
  left: 50%;
  border: 1px solid #383838;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.about-orbit-ring-outer {
  width: 76%;
  height: 76%;
}

.about-orbit-ring-inner {
  width: 42%;
  height: 42%;
  border-style: dashed;
}

.about-orbit-axis {
  top: 50%;
  left: 50%;
  background: #2f2f2f;
  transform: translate(-50%, -50%);
}

.about-orbit-axis-horizontal {
  width: 100%;
  height: 1px;
}

.about-orbit-axis-vertical {
  width: 1px;
  height: 100%;
}

.about-orbit-core {
  top: 50%;
  left: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 132px;
  height: 132px;
  border: 1px solid #6b6b6b;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  transform: translate(-50%, -50%);
}

.about-orbit-core span {
  color: #777;
}

.about-orbit-point {
  z-index: 3;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 0 7px rgba(255, 255, 255, 0.08);
}

.about-orbit-point-one {
  top: 11%;
  left: 49%;
}

.about-orbit-point-two {
  right: 9%;
  bottom: 34%;
}

.about-orbit-point-three {
  left: 18%;
  bottom: 18%;
}

.about-page-hero-foot {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}

.about-page-hero-foot span {
  padding: 23px 24px;
  border-right: 1px solid var(--line);
  color: #777;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.about-page-hero-foot span:last-child {
  border-right: none;
}

/* Studio introduction */
.about-page-intro {
  padding: 150px 0;
}

.about-page-intro-grid {
  display: grid;
  grid-template-columns: 0.6fr 1.4fr;
  gap: clamp(70px, 11vw, 170px);
  align-items: start;
}

.about-page-side-note {
  margin-top: 42px;
  color: var(--gray);
  font-family: var(--ff-mono);
  font-size: 11px;
  line-height: 1.8;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.about-page-intro-content h2,
.about-page-studio-heading h2 {
  max-width: 830px;
  margin-top: 0;
  font-family: var(--ff-display);
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.about-page-editor-copy {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px 50px;
  max-width: 850px;
  margin-top: 62px;
  color: #444;
  font-size: 15px;
  line-height: 1.8;
}

.about-page-editor-copy > * {
  margin: 0;
}

.about-page-editor-copy > *:first-child {
  color: var(--black);
  font-size: 18px;
}

.about-page-editor-copy h2,
.about-page-editor-copy h3,
.about-page-editor-copy figure,
.about-page-editor-copy blockquote {
  grid-column: 1 / -1;
}

.about-page-editor-copy ul,
.about-page-editor-copy ol {
  padding-left: 20px;
}

/* Principles */
.about-page-principles {
  padding: 140px 0;
  background: var(--off);
}

.about-page-principles .section-head h2,
.about-page-approach .section-head h2 {
  margin-top: 22px;
}

.about-principles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-light);
  border-left: 1px solid var(--line-light);
}

.about-principle-card {
  min-height: 360px;
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
  transition: background 0.3s ease, color 0.3s ease;
}

.about-principle-card:hover {
  background: var(--black);
  color: var(--white);
}

.about-principle-number {
  color: var(--gray);
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.about-principle-card h3 {
  font-family: var(--ff-display);
  font-size: 28px;
  font-weight: 600;
}

.about-principle-card p {
  max-width: 330px;
  margin-top: 16px;
  color: var(--gray);
  font-size: 14px;
  line-height: 1.7;
  transition: color 0.3s ease;
}

.about-principle-card:hover p {
  color: #b9b9b9;
}

/* Working approach */
.about-page-approach {
  padding: 150px 0;
  background: var(--black);
  color: var(--white);
}

.about-page-approach .head-note {
  color: #8e8e8e;
}

.about-approach-list {
  border-top: 1px solid var(--line);
}

.about-approach-row {
  display: grid;
  grid-template-columns: 70px minmax(150px, 0.65fr) minmax(280px, 1fr) 100px;
  gap: 34px;
  align-items: center;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
  transition: padding 0.3s ease, background 0.3s ease;
}

.about-approach-row:hover {
  padding-right: 14px;
  padding-left: 14px;
  background: #111;
}

.about-approach-index,
.about-approach-output {
  color: #6f6f6f;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.about-approach-row h3 {
  font-family: var(--ff-display);
  font-size: 26px;
  font-weight: 500;
}

.about-approach-row p {
  margin: 0;
  color: #999;
  font-size: 14px;
  line-height: 1.7;
}

.about-approach-output {
  text-align: right;
}

/* Small studio section */
.about-page-studio {
  padding: 150px 0;
}

.about-page-studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(400px, 0.8fr);
  gap: clamp(70px, 11vw, 170px);
}

.about-page-studio-heading h2 {
  max-width: 680px;
  margin-top: 24px;
}

.about-page-studio-copy > p {
  color: #484848;
  font-size: 16px;
  line-height: 1.8;
}

.about-page-studio-copy > p + p {
  margin-top: 22px;
  color: var(--gray);
}

.about-page-stats {
  margin-top: 54px;
  border-top: 1px solid var(--line-light);
}

.about-page-stat {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-light);
}

.about-page-stat strong {
  font-family: var(--ff-display);
  font-size: 32px;
  font-weight: 600;
}

.about-page-stat span {
  color: var(--gray);
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-align: right;
  text-transform: uppercase;
}

/* Closing CTA */
.about-page-closing {
  padding: 120px 0;
  background: var(--off);
  border-top: 1px solid var(--line-light);
}

.about-page-closing-grid {
  display: grid;
  grid-template-columns: 0.45fr 1fr auto;
  gap: 50px;
  align-items: end;
}

.about-page-closing h2 {
  font-family: var(--ff-display);
  font-size: clamp(38px, 4.8vw, 64px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

@media (max-width: 860px) {
  .about-page-hero-grid,
  .about-page-intro-grid,
  .about-page-studio-grid {
    grid-template-columns: 1fr;
  }

  .about-page-hero {
    min-height: auto;
    padding: 150px 0 0;
  }

  .about-page-hero-grid {
    gap: 50px;
  }

  .about-page-orbit {
    width: min(72vw, 420px);
    justify-self: center;
    margin-bottom: 120px;
  }

  .about-page-intro-grid,
  .about-page-studio-grid {
    gap: 70px;
  }

  .about-principles-grid {
    grid-template-columns: 1fr;
  }

  .about-principle-card {
    min-height: 290px;
  }

  .about-approach-row {
    grid-template-columns: 48px minmax(120px, 0.55fr) minmax(220px, 1fr);
  }

  .about-approach-output {
    display: none;
  }

  .about-page-closing-grid {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .about-page-closing-grid .button {
    justify-self: start;
  }
}

@media (max-width: 575.98px) {
  .about-page-hero {
    padding-top: 124px;
  }

  .about-page-hero::before {
    background-size: 48px 48px;
  }

  .about-page-hero h1 {
    font-size: clamp(46px, 14.5vw, 66px);
  }

  .about-page-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .about-page-orbit {
    width: min(84vw, 360px);
    margin-bottom: 150px;
  }

  .about-orbit-core {
    width: 108px;
    height: 108px;
  }

  .about-page-hero-foot {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-page-hero-foot span:nth-child(2) {
    border-right: none;
  }

  .about-page-hero-foot span:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }

  .about-page-intro,
  .about-page-principles,
  .about-page-approach,
  .about-page-studio {
    padding: 92px 0;
  }

  .about-page-editor-copy {
    grid-template-columns: 1fr;
    margin-top: 42px;
  }

  .about-page-editor-copy > * {
    grid-column: 1;
  }

  .about-principle-card {
    min-height: 270px;
    padding: 28px;
  }

  .about-approach-row {
    grid-template-columns: 36px 1fr;
    gap: 12px 18px;
    padding: 26px 0;
  }

  .about-approach-row p {
    grid-column: 2;
  }

  .about-page-closing {
    padding: 84px 0;
  }
}


/* Redesigned About introduction */

.about-page-intro {
  padding: 120px 0;
}

.about-page-intro-heading {
  display: grid;
  grid-template-columns:
    minmax(240px, 0.55fr)
    minmax(0, 1.45fr);
  gap: clamp(70px, 10vw, 160px);
  align-items: start;
}

.about-page-intro-heading h2 {
  max-width: 900px;
  margin: 0;
  font-family: var(--ff-display);
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.about-page-intro-label {
  padding-top: 8px;
}

.about-page-intro .about-page-side-note {
  margin-top: 42px;
}

.about-page-intro .about-page-editor-copy {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(35px, 5vw, 70px);
  max-width: none;
  margin-top: 72px;
  padding-top: 42px;
  border-top: 1px solid var(--line-light);
  color: #4a4a4a;
  font-size: 15px;
  line-height: 1.8;
}

.about-page-intro .about-page-editor-copy > * {
  grid-column: auto;
  margin: 0;
}

.about-page-intro .about-page-editor-copy > *:first-child {
  color: var(--black);
  font-size: 17px;
}


/* Tablet */

@media (max-width: 860px) {
  .about-page-intro-heading {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .about-page-intro .about-page-side-note {
    margin-top: 28px;
  }

  .about-page-intro .about-page-editor-copy {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 58px;
  }
}


/* Mobile */

@media (max-width: 575.98px) {
  .about-page-intro {
    padding: 90px 0;
  }

  .about-page-intro .about-page-editor-copy {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 48px;
    padding-top: 34px;
  }

  .about-page-intro .about-page-editor-copy > * {
    grid-column: 1;
  }
}