/* ==========================================================================
   J.I.M - About (Figma frame 169:277, 1728 x 9689)
   Built on home.css; FAQ from faq.css, "obsessed" videos from articles.css.
   ========================================================================== */

/* 2. Hero */
.about-hero-title {
  max-width: 955px;
}

/* 3. Founder quote + intro (title tops at y=1043 / 1042) */
.about-intro {
  padding-top: 107px;
}

.about-intro-row {
  display: grid;
  grid-template-columns: 1012.5px 1fr;
  align-items: start;
}

.about-intro-left {
  padding: 1px 0 0 60.5px;
}

.about-intro-quote {
  max-width: 580px;
  margin: 0;
  font-family: "Futura", sans-serif;
  font-weight: 700;
  font-size: 60px;
  line-height: 62px;
  color: #ffffff;
  text-transform: uppercase;
}

.about-intro-author {
  max-width: 360px;
  margin: 31px 0 0 3px;
  font-family: "Futura", sans-serif;
  font-weight: 700;
  font-size: 30px;
  line-height: 32px;
  color: #f04e36;
}

.about-intro-author span {
  color: rgba(240, 78, 54, 0.5);
}

.about-intro-sub {
  text-transform: none;
}

.about-intro-desc {
  max-width: 504px;
  margin: 43px 0 0;
  font-family: "Futura", sans-serif;
  font-weight: 500;
  font-size: 15px;
  line-height: 17px;
  letter-spacing: var(--ls-futura-medium);
  color: rgba(255, 255, 255, 0.5);
}

.about-intro-btn {
  width: 157px;
  height: 46px;
  margin-top: 47px;
  border-radius: 100px;
  background-color: #f04e36;
  color: #000000;
  font-family: "Futura", sans-serif;
  font-weight: 700;
  font-size: 15px;
  line-height: 17px;
  letter-spacing: var(--ls-futura-bold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

/* 4. Pillars: #242424 card (r30) with a 1012x614 photo (r22) on the right */
.about-pillars {
  margin-top: 47px;
}

.about-pillar {
  position: relative;
  height: 614px;
}

.about-pillar--joy {
  margin-top: 47px;
}

.about-pillar--infrared {
  margin-top: 34px;
}

.about-pillar-card {
  position: absolute;
  inset: 0;
  border-radius: 30px;
  background-color: #242424;
}

.about-pillar--convenience .about-pillar-card {
  right: 163px;
}

.about-pillar-img {
  position: absolute;
  top: 0;
  right: 0;
  width: 1012px;
  height: 614px;
  border-radius: 22px;
  object-fit: cover;
}

.about-pillar-title {
  position: absolute;
  left: 61px;
  top: 78px;
  max-width: 642px;
  font-family: "Futura", sans-serif;
  font-weight: 700;
  font-size: 60px;
  line-height: 62px;
  color: #ffffff;
  text-transform: uppercase;
  margin: 0;
}

.about-pillar--joy .about-pillar-title {
  max-width: 400px;
}

.about-pillar-sub {
  position: absolute;
  left: 64px;
  top: 173px;
  max-width: 350px;
  font-family: "Futura", sans-serif;
  font-weight: 700;
  font-size: 30px;
  line-height: 32px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

.about-pillar--joy .about-pillar-sub {
  top: 230px;
}

.about-pillar--infrared .about-pillar-sub {
  max-width: 238px;
}

.about-pillar-desc {
  position: absolute;
  left: 959px;
  top: 239px;
  max-width: 504px;
  font-family: "Futura", sans-serif;
  font-weight: 500;
  font-size: 15px;
  line-height: 17px;
  letter-spacing: var(--ls-futura-medium);
  color: rgba(255, 255, 255, 0.6);
}

.about-pillar-desc p,
.about-pillar-desc ul {
  margin: 0;
}

.about-pillar-desc ul {
  margin-top: 17px;
  padding-left: 22px;
}

/* White circle with a black plus (open state shows a cross) */
.about-pillar-icon {
  position: absolute;
  left: 61px;
  top: 497px;
  width: 53px;
  height: 53px;
  border-radius: 50%;
  background-color: #ffffff;
}

.about-pillar-icon::before,
.about-pillar-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 33px;
  height: 3px;
  margin: -1.5px 0 0 -16.5px;
  background-color: #000000;
}

.about-pillar-icon::after {
  transform: rotate(90deg);
}

.about-pillar--infrared .about-pillar-icon {
  top: 517px;
}

.is-open .about-pillar-icon {
  left: 49px;
  top: 509px;
  width: 75px;
  height: 75px;
}

.is-open .about-pillar-icon::before,
.is-open .about-pillar-icon::after {
  width: 32px;
  margin-left: -16px;
  transform: rotate(45deg);
}

.is-open .about-pillar-icon::after {
  transform: rotate(-45deg);
}

/* 5. Founder story */
.about-founder {
  margin-top: 186px;
}

.about-founder-inner {
  /* absolute children are offset from the padding box (container padding 20px) */
  position: relative;
  height: 852px;
}

.about-founder-photo {
  position: absolute;
  left: 80.5px;
  top: 0;
  width: 665px;
  height: 852px;
  border-radius: 22px;
  object-fit: cover;
}

.about-founder-quote {
  position: absolute;
  left: 860.5px;
  top: 206px;
  max-width: 642px;
  margin: 0;
  font-family: "Futura", sans-serif;
  font-weight: 700;
  font-size: 60px;
  line-height: 62px;
  color: #f04e36;
  text-transform: uppercase;
}

.about-founder-pill {
  position: absolute;
  left: 860.5px;
  top: 600px;
  width: 690px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 19px 0 27px;
  border: 1px solid #ffffff;
  border-radius: 100px;
  color: #ffffff;
  font-family: "Futura", sans-serif;
  font-weight: 500;
  font-size: 15px;
  line-height: 17px;
  letter-spacing: var(--ls-futura-medium);
  text-decoration: none;
}

/* 6. Video band */
.about-video-band {
  margin-top: 186px;
  padding: 134px 0 49px;
  background-color: #242424;
}

.about-video-head {
  display: grid;
  grid-template-columns: 1012.5px 1fr;
  align-items: start;
  height: 124px; /* copy column may run past the title */
}

.about-video-title {
  padding-left: 60.5px;
  font-family: "Futura", sans-serif;
  font-weight: 700;
  font-size: 60px;
  line-height: 62px;
  color: #ffffff;
  margin: 0;
}

.about-video-sub {
  text-transform: none;
  padding-left: 0;
}

.about-video-desc {
  max-width: 471px;
  margin: 21px 0 0;
  font-family: "Futura", sans-serif;
  font-weight: 500;
  font-size: 15px;
  line-height: 17px;
  letter-spacing: var(--ls-futura-medium);
  color: rgba(255, 255, 255, 0.6);
}

.about-video-frame {
  position: relative;
  height: 649px;
  margin-top: 145px;
  border-radius: 22px;
  overflow: hidden;
}

.about-video-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-video-play {
  position: absolute;
  left: 802px;
  top: 282px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.about-video-play svg {
  display: block;
}

/* 7. FAQ on black with a portrait on the right (shared FAQ shifted 6px left) */
.about-faq {
  padding: 190px 0 47px;
}

.about-faq-inner {
  position: relative;
}

.about-faq-photo {
  position: absolute;
  left: 961.5px;
  top: -59px;
  width: 665px;
  height: 852px;
  border-radius: 22px;
  object-fit: cover;
}

.about-faq .faq-section-title,
.about-faq .faq-tabs,
.about-faq .faqs-groups-container {
  margin-left: -6px;
}

.about-faq .faq-tabs {
  margin-top: 71px;
}

/* 8. Obsessed videos sit 8px further left than on the articles page */
.about-obsessed {
  padding-top: 147px;
}

.about-obsessed .obsessed-heading,
.about-obsessed .obsessed-track {
  margin-left: -8px;
}

/* Footer: divider at Figma x=36 */
.jim-footer--about {
  margin-top: 210px;
  padding-bottom: 207px;
}

.jim-footer--about .content-container {
  padding: 0 21.5px 0 18.5px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1500px) {
  .about-intro-row,
  .about-video-head {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .about-pillar-img {
    width: 58%;
  }
  .about-pillar-desc {
    left: auto;
    right: 61px;
    max-width: 40%;
  }
  .about-founder-quote,
  .about-founder-pill {
    left: 50%;
    max-width: 45%;
  }
  .about-faq-photo {
    left: auto;
    right: 0;
    width: 38%;
  }
}

@media (max-width: 992px) {
  .about-intro-row,
  .about-video-head {
    grid-template-columns: 1fr;
    height: auto;
  }
  .about-intro-left,
  .about-video-title {
    padding-left: 0;
  }
  .about-intro-quote,
  .about-founder-quote {
    font-size: 40px;
    line-height: 44px;
  }
  .about-pillar {
    height: auto;
  }
  .about-pillar-card {
    position: relative;
    min-height: 360px;
  }
  .about-pillar--convenience .about-pillar-card {
    right: 0;
  }
  .about-pillar-img {
    position: static;
    display: block;
    width: 100%;
    height: 360px;
    margin-top: 16px;
  }
  .about-pillar--joy .about-pillar-card {
    min-height: 640px;
  }
  .about-pillar-desc {
    left: 61px;
    right: 32px;
    top: 330px;
    max-width: none;
  }
  .about-pillar--joy .about-pillar-icon {
    top: auto;
    bottom: 32px;
  }
  .about-pillar-icon,
  .about-pillar--infrared .about-pillar-icon {
    top: auto;
    bottom: 32px;
  }
  .about-founder-inner {
    height: auto;
  }
  .about-founder-photo,
  .about-founder-quote,
  .about-founder-pill {
    position: static;
    max-width: 100%;
  }
  .about-founder-photo {
    display: block;
    width: 100%;
    height: 560px;
  }
  .about-founder-quote {
    margin-top: 40px;
  }
  .about-founder-pill {
    width: 100%;
    margin-top: 32px;
  }
  .about-video-band {
    margin-top: 80px;
    padding: 64px 0 40px;
  }
  .about-video-frame {
    height: 360px;
    margin-top: 40px;
  }
  .about-video-play {
    left: calc(50% - 37px);
    top: calc(50% - 43px);
  }
  .about-faq {
    padding-top: 80px;
  }
  .about-faq-photo {
    display: none;
  }
  .about-faq .faq-section-title,
  .about-faq .faq-tabs,
  .about-faq .faqs-groups-container,
  .about-obsessed .obsessed-heading,
  .about-obsessed .obsessed-track {
    margin-left: 0;
  }
  .jim-footer--about {
    margin-top: 80px;
    padding-bottom: 80px;
  }
  .jim-footer--about .content-container {
    padding: 0 20px;
  }
}

@media (max-width: 768px) {
  .about-pillar-title {
    max-width: none;
    right: 24px;
    font-size: 40px;
    line-height: 44px;
  }
  .about-pillar-sub {
    top: 140px;
    right: 24px;
  }
  .about-pillar--joy .about-pillar-sub {
    top: 180px;
  }
}

/* ==========================================================================
   Openable pillar cards (js/about.js): the + button turns into a cross, the photo
   fades out and the card's text fades in. Both cards open the same way.
   ========================================================================== */
.about-pillar-icon {
  appearance: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  transition:
    left 0.35s ease,
    top 0.35s ease,
    width 0.35s ease,
    height 0.35s ease;
}

.about-pillar-icon:focus-visible {
  outline: 3px solid #f04e36;
  outline-offset: 4px;
}

.about-pillar-icon::before,
.about-pillar-icon::after {
  transition:
    transform 0.35s ease,
    width 0.35s ease,
    margin 0.35s ease;
}

/* 135deg looks the same as -45deg, but both bars now turn the same way */
.is-open .about-pillar-icon::after {
  transform: rotate(135deg);
}

.about-pillar-desc,
.about-pillar-img {
  transition:
    opacity 0.4s ease,
    visibility 0.4s ease;
}

.about-pillar:not(.is-open) .about-pillar-desc {
  opacity: 0;
  visibility: hidden;
}

.about-pillar.is-open .about-pillar-img {
  opacity: 0;
  visibility: hidden;
}

/* Full width like the Infrared card, so opening is only a fade. When closed, the extra
   163px sits behind the photo, so the closed design is unchanged. */
.about-pillar--convenience .about-pillar-card {
  right: 0;
}

/* Two pillar cards now (Joy removed): same 47px gap the design uses after Convenience */
.about-pillar--infrared {
  margin-top: 47px;
}

/* Tablet / phone: one rounded card - title on top, round button top-right, photo below.
   Opening slides the photo shut and slides the text open. */
@media (max-width: 992px) {
  .about-pillar {
    height: auto;
    display: flex;
    flex-direction: column;
    background-color: #242424;
    border-radius: 24px;
    overflow: hidden;
  }
  .about-pillar--infrared {
    margin-top: 24px;
  }
  .about-pillar .about-pillar-card {
    position: relative;
    inset: auto;
    min-height: 0;
    padding: 28px 96px 28px 28px;
    border-radius: 0;
    background: transparent;
  }
  .about-pillar .about-pillar-title,
  .about-pillar .about-pillar-sub {
    position: static;
    max-width: none;
  }
  .about-pillar .about-pillar-title {
    font-size: 44px;
    line-height: 48px;
  }
  .about-pillar .about-pillar-sub {
    margin-top: 10px;
    font-size: 24px;
    line-height: 28px;
  }
  .about-pillar .about-pillar-icon,
  .about-pillar.is-open .about-pillar-icon {
    top: 26px;
    right: 26px;
    bottom: auto;
    left: auto;
    width: 52px;
    height: 52px;
  }
  .about-pillar .about-pillar-desc {
    position: static;
    max-width: none;
    max-height: 0;
    margin-top: 0;
    overflow: hidden;
    transition:
      max-height 0.45s ease,
      margin-top 0.45s ease,
      opacity 0.35s ease,
      visibility 0.45s ease;
  }
  .about-pillar.is-open .about-pillar-desc {
    max-height: 480px;
    margin-top: 22px;
  }
  .about-pillar .about-pillar-img {
    position: static;
    display: block;
    width: 100%;
    height: 340px;
    margin: 0;
    border-radius: 0;
    transition:
      height 0.45s ease,
      opacity 0.35s ease,
      visibility 0.45s ease;
  }
  .about-pillar.is-open .about-pillar-img {
    height: 0;
  }
}

@media (max-width: 480px) {
  .about-pillar .about-pillar-card {
    padding: 24px 80px 24px 22px;
  }
  .about-pillar .about-pillar-title {
    font-size: 30px;
    line-height: 34px;
  }
  .about-pillar .about-pillar-sub {
    font-size: 20px;
    line-height: 24px;
  }
  .about-pillar .about-pillar-icon,
  .about-pillar.is-open .about-pillar-icon {
    top: 22px;
    right: 22px;
    width: 46px;
    height: 46px;
  }
  .about-pillar .about-pillar-icon::before,
  .about-pillar .about-pillar-icon::after {
    width: 26px;
    margin-left: -13px;
  }
  .about-pillar .about-pillar-img {
    height: 260px;
  }
}

@media (max-width: 360px) {
  /* Keep CONVENIENCE on one line next to the button */
  .about-pillar .about-pillar-card {
    padding-right: 70px;
  }
  .about-pillar .about-pillar-title {
    font-size: 23px;
    line-height: 28px;
  }
  .about-pillar .about-pillar-sub {
    font-size: 18px;
    line-height: 22px;
  }
  .about-pillar .about-pillar-icon,
  .about-pillar.is-open .about-pillar-icon {
    width: 42px;
    height: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-pillar-icon,
  .about-pillar-icon::before,
  .about-pillar-icon::after,
  .about-pillar-desc,
  .about-pillar-img {
    transition: none !important;
  }
}

/* ==========================================================================
   Responsive fixes (About)
   ========================================================================== */
@media (max-width: 1500px) {
  /* Fixed 124px header let a wrapped title run into the video image */
  .about-video-head {
    height: auto;
  }
  .about-video-frame {
    margin-top: 64px;
  }
}

@media (min-width: 993px) and (max-width: 1500px) {
  /* Founder quote sits in a narrower column here; scale it so it stays above the pill */
  .about-founder-quote {
    font-size: clamp(40px, 3.6vw, 60px);
    line-height: 1.04;
  }
}

@media (min-width: 993px) and (max-width: 1300px) {
  /* Hero title wrapped to three lines and ran into the LOCATIONS pill */
  .about-hero-title {
    font-size: 64px;
    line-height: 68px;
    max-width: 760px;
  }
}

@media (max-width: 992px) {
  /* Let single columns shrink to the screen instead of to their longest word */
  .about-intro-row,
  .about-video-head {
    grid-template-columns: minmax(0, 1fr);
  }
  .about-video-title {
    font-size: 48px;
    line-height: 52px;
  }
  .about-intro-quote,
  .about-founder-quote,
  .about-video-title,
  .about-pillar-title {
    overflow-wrap: break-word;
  }
}

@media (max-width: 768px) {
  .about-video-title {
    font-size: 40px;
    line-height: 44px;
  }
}

@media (max-width: 480px) {
  .about-intro-quote,
  .about-founder-quote {
    font-size: 34px;
    line-height: 38px;
  }
  .about-founder-photo {
    height: 440px;
  }
}

@media (max-width: 360px) {
  .about-video-title,
  .about-intro-quote,
  .about-founder-quote {
    font-size: 30px;
    line-height: 34px;
  }
}
