/**
 * About Speedfest XV — desktop 173:2643; mobile 171:910 (343 artboard). Same zoom breakpoints as home.
 * Same scale pattern as home.css: 1200px + zoom ≥641; 343px + zoom ≤640.
 * Desktop ≥641px: embedded competition stack Figma 105:971 — about-embed.css + mission/cost/marketing/sow CSS.
 */

.tf-about {
  --about-design-width: 1200px;
  --about-mobile-width: 343px;
  --about-gutter: 16px;
  --about-border: 1px solid rgb(255 255 255 / 0.4);
  --about-panel-bg: rgb(0 0 0 / 0.2);

  padding-top: 0;
  padding-bottom: 64px;
}

.tf-about__scale-root {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  overflow-x: clip;
}

.tf-about__shell {
  box-sizing: border-box;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 641px) {
  .tf-about__shell {
    width: var(--about-design-width);
    max-width: var(--about-design-width);
    flex-shrink: 0;
    zoom: min(1, calc((100vw - 32px) / var(--about-design-width)));
  }
}

.tf-about__body {
  box-sizing: border-box;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 77px;
  padding: 48px 64px 64px;
  background: var(--about-panel-bg);
}

.tf-about__title {
  margin: 0;
  font-family: var(--font-family-headline);
  font-weight: var(--font-weight-headline);
  font-size: 80px;
  line-height: 72px;
  color: var(--color-text-default);
  text-transform: uppercase;
}

.tf-about__section-title {
  margin: 0;
  font-family: var(--font-family-headline);
  font-weight: 500;
  font-size: 58px;
  line-height: 1.05;
  color: var(--color-text-accent);
}

.tf-about__link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1 1 0;
  min-width: 0;
}

.tf-about__link-list li {
  margin: 0;
  border-bottom: var(--about-border);
}

.tf-about__link-list li:first-child {
  border-top: var(--about-border);
}

.tf-about__link-list a {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 88px;
  padding: 8px 0;
  box-sizing: border-box;
  font-family: var(--font-family-body);
  font-weight: var(--font-weight-body);
  font-size: var(--type-body-xl);
  line-height: var(--type-body-leading);
  color: var(--color-text-default);
  text-decoration: none;
  transition: color 0.15s ease;
}

.tf-about__link-list a:hover {
  color: var(--color-text-accent);
}

.tf-about__link-list a:focus-visible {
  outline: 2px solid var(--color-text-accent);
  outline-offset: 4px;
}

.tf-about__row-chevron {
  display: block;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  object-fit: contain;
}

.tf-about__logos {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  width: 257px;
  max-width: 100%;
  flex-shrink: 0;
}

.tf-about__logo-wide {
  position: relative;
  width: 100%;
  aspect-ratio: 264 / 142;
  overflow: hidden;
}

.tf-about__logo-wide .tf-lightbox {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.tf-about__logo-wide .tf-lightbox img {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.tf-about__logo-round {
  width: 186px;
  height: 186px;
  max-width: 100%;
  border-radius: 50%;
  background: var(--color-white);
  overflow: hidden;
  flex-shrink: 0;
}

.tf-about__logo-round .tf-lightbox {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
}

.tf-about__logo-round .tf-lightbox img {
  display: block;
  width: 78%;
  height: 78%;
  margin: 11% auto;
  object-fit: cover;
  border-radius: 8px;
}

.tf-about__logo-speedfest {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.tf-about__logo-speedfest .tf-lightbox {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.tf-about__logo-speedfest .tf-lightbox img {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.tf-about__prose-block {
  width: 100%;
  padding: 0;
  background: var(--about-panel-bg);
}

.tf-about__prose-block .tf-about__section-title {
  margin-bottom: 28px;
}

.tf-about__prose {
  margin: 0;
  font-family: var(--font-family-body);
  font-weight: var(--font-weight-body);
  font-size: 29px;
  line-height: var(--type-body-leading);
  color: var(--color-text-default);
}

.tf-about__prose p {
  margin: 0 0 19px;
}

.tf-about__prose p:last-child {
  margin-bottom: 0;
}

.tf-about__slogan {
  margin: 0;
  font-family: var(--font-family-headline);
  font-weight: var(--font-weight-headline);
  font-size: var(--type-headline-xxxl);
  line-height: 1.05;
  color: var(--color-text-default);
  text-transform: uppercase;
}

.tf-about__closing {
  margin: 0;
  font-family: var(--font-family-body);
  font-weight: var(--font-weight-body);
  font-size: 29px;
  line-height: var(--type-body-leading);
  color: var(--color-text-default);
  max-width: 100%;
}

.tf-about__footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding-top: 16px;
  width: 100%;
}

.tf-about__social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 48px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tf-about__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 85px;
  height: 85px;
  box-sizing: border-box;
  aspect-ratio: 1;
  border: 1px solid var(--color-white);
  border-radius: 43px;
  background: var(--color-black);
  transition: background 0.15s ease;
}

.tf-about__social a:hover {
  background: rgb(255 255 255 / 0.08);
}

.tf-about__social img {
  display: block;
  width: auto;
  height: auto;
  max-width: 48px;
  max-height: 32px;
  min-width: 0;
  object-fit: contain;
  object-position: center;
}

.tf-about__legal {
  margin: 0;
  font-family: var(--font-family-body);
  font-size: var(--type-body-s);
  line-height: var(--type-body-leading);
  text-align: center;
  color: var(--color-text-default);
}

.tf-about__legal p {
  margin: 0;
}

@media (max-width: 640px) {
  .tf-about {
    padding-top: 0;
    padding-bottom: 48px;
  }

  .tf-about__shell {
    width: var(--about-mobile-width);
    max-width: var(--about-mobile-width);
    flex-shrink: 0;
    margin-left: auto;
    margin-right: auto;
    padding: 0;
    zoom: calc((100vw - 2 * var(--about-gutter)) / var(--about-mobile-width));
  }

  .tf-about__body {
    gap: 32px;
    padding: 24px;
  }

  .tf-about__title {
    font-size: 42px;
    line-height: 0.914;
    max-width: 305px;
  }

  .tf-about__section-title {
    font-size: 30.8px;
    line-height: 1.1;
  }

  .tf-about__mobile-competition .tf-about__competition-heading {
    margin-bottom: 32px;
    padding-bottom: 0;
  }

  .tf-about__link-list a {
    min-height: 44px;
    padding: 0 12px;
    font-size: var(--type-body-m);
  }

  .tf-about__row-chevron {
    width: 24px;
    height: 24px;
    max-width: 24px;
    max-height: 24px;
    object-fit: contain;
  }

  .tf-about__prose-block {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .tf-about__prose-block .tf-about__section-title {
    margin-bottom: 0;
  }

  .tf-about__prose,
  .tf-about__closing {
    font-size: 15.4px;
  }

  .tf-about__slogan {
    font-size: 34px;
    line-height: 1.12;
  }

  .tf-about__footer {
    gap: 16px;
    padding-top: 8px;
  }

  .tf-about__social {
    gap: 26px;
  }

  .tf-about__social a {
    width: 45px;
    height: 45px;
    border-radius: 23px;
  }

  .tf-about__social img {
    max-width: 24px;
    max-height: 19px;
  }

  .tf-about__legal {
    font-size: var(--type-body-xs);
  }
}
