/*======= Global =======*/

.global-img-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;

  background-image: url("../../img/about/about_bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.global-image-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at center,
      rgba(0,0,0,0.5),
      rgba(0,0,0,0.9)
    ),
    linear-gradient(
      to bottom,
      rgba(0,0,0,0.6),
      rgba(0,0,0,0.85)
    );
}

/* ========= Hero ========= */

.hero-section {
  min-height: min(100vh, 900px);
  padding-block: clamp(64px, 12vh, 160px);
  background-color: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
}

.hero-container {
  width: 100%;
  max-width: 1600px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
  padding-top: calc(clamp(32px, 15vh, 180px) + env(safe-area-inset-top));
}

.hero-logo {
  display: block;
  margin: 0 auto 32px;
  width: clamp(64px, 10vw, 100px);
  transform-origin: center;
  animation: spin 12s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .hero-logo { animation: none; }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero-title {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 500;
  line-height: 1.3;
  color: var(--primary-color);
  margin-bottom: 24px;
}

.hero-title span {
  display: block;
}

.hero-subtitle {
  font-size: clamp(16px, 2.2vw, 20px);
  line-height: 1.7;
  color: var(--white-color);
  max-width: 850px;
  margin: 0 auto;
  padding-inline: 16px;
}

.hero-subtitle span {
  display: block;
}
/* ========= History ========= */

.history-section {
  background-color: transparent;
  padding: clamp(48px, 6vw, 80px) 20px;
}

.history-container {
  width: 100%;
  max-width: 1600px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.history-left {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.history-image {
  width: clamp(96px, 14vw, 200px);
  margin-top: clamp(-24px, -3vw, -8px);
  flex-shrink: 0;
}

.history-title {
  font-size: clamp(20px, 4vw, 36px);
  color: var(--primary-color);
  margin-bottom: 20px;
}

.history-title span {
  display: block;
  font-size: clamp(14px, 2vw, 18px);
  opacity: 0.8;
  margin-top: 4px;
}

.history-text {
  font-size: clamp(12px, 2.2vw, 24px);
  line-height: 1.8;
  color: var(--white-color);
  margin-bottom: 16px;
  font-weight: 500;
}

.history-text-secondary {
  margin-left: clamp(0px, 3vw, 64px);
}

.history-highlight { color: var(--primary-color); }

.history-line {
  display: block;
  margin-bottom: 1px;
}

.history-line-offset-sm {
  margin-left: clamp(-250px, -5vw, -200px);
}

.history-no-wrap { white-space: nowrap; }

.history-readmore { margin-top: 16px; }

.history-extra-text {
  display: none;
  margin-top: -40px;
  margin-left: clamp(-200px, -5vw, -125px);
  padding: 16px 20px;
  background-color: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  backdrop-filter: blur(6px);
  font-size: clamp(12px, 2vw, 18px);
  line-height: 1.7;
  color: var(--white-color);
  max-width: 640px;
}

.history-readmore.is-open .history-extra-text {
  display: block;
}

.history-read-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  margin-left: clamp(-205px, -20vw, -190px);
  border: 1px solid var(--primary-color);
  background: transparent;
  color: var(--primary-color);
  font-size: clamp(12px, 2vw, 18px);
  font-weight: 600;
  cursor: pointer;
  transition: background-color .25s, color .25s, transform .15s;
}

.history-read-more-btn:hover {
  background-color: var(--primary-color);
  color: var(--white-color);
}

.history-read-more-btn:active {
  transform: scale(.96);
}

.history-media {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

.history-video-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,.6);
}

.history-video-wrapper iframe {
  width: 100%;
  height: 100%;
}

.history-video-caption {
  max-width: 100%;
  width: 100%;
  font-size: clamp(12px, 1.8vw, 16px);
  line-height: 1.6;
  color: #fff;
  text-align: center;
}

/* ========= Machine Learning ========= */

.ml-section {
  background-color: transparent;
  padding: clamp(48px, 6vw, 80px) 20px;
}

.ml-container {
  width: 100%;
  max-width: 1600px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
  gap: clamp(32px, 5vw, 64px);
}

.ml-media {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  max-width: 520px;
}

.ml-video-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,.6);
}

.ml-video-wrapper iframe {
  width: 100%;
  height: 100%;
}

.ml-right { 
  display: flex; 
  gap: 24px; 
  align-items: flex-start; 
  order: 2; 
  flex-direction: row-reverse; 
  justify-content: flex-start; 
  width: 100%; 
  max-width: 720px; 
  margin-inline: auto; 
}

.ml-icon {
  width: clamp(96px, 14vw, 200px);
  margin-top: clamp(-24px, -3vw, -8px);
  margin-right: clamp(24px, 3vw, 8px);
  flex-shrink: 0;
}

.ml-content { text-align: right; }

.ml-title {
  font-size: clamp(26px, 4vw, 36px);
  color: var(--primary-color);
  margin-bottom: 20px;
}

.ml-title span {
  display: block;
  font-size: clamp(14px, 2vw, 18px);
  opacity: .8;
}

.ml-text {
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.8;
  color: var(--white-color);
  margin-bottom: 16px;
  font-weight: 500;
}

.ml-line {
  display: block;
  margin-bottom: 1px;
}

.ml-highlight { color: var(--primary-color); }

.ml-last-line {
  display: inline-block;
  transform: translateX(200px);
}

.ml-nowrap {
  white-space: nowrap;
}

.ml-readmore { margin-top: 16px; }

.ml-read-more-btn {
  display: inline-flex;
  align-self: flex-end;
  margin-right: -200px;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--primary-color);
  background: transparent;
  color: var(--primary-color);
  font-size: clamp(12px, 2vw, 18px);
  font-weight: 600;
  cursor: pointer;
  transition: background-color .25s, color .25s, transform .15s;
}

.ml-read-more-btn:hover {
  background-color: var(--primary-color);
  color: var(--white-color);
}

.ml-read-more-btn:active {
  transform: scale(.96);
}

.ml-extra-text {
  display: none;
  margin-top: -50px;
  transform: translateX(120px);
  padding: 16px 20px;
  background-color: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  backdrop-filter: blur(6px);
  font-size: clamp(12px, 2vw, 18px);
  line-height: 1.7;
  color: var(--white-color);
  max-width: 600px;
}

.ml-readmore.is-open .ml-extra-text {
  display: block;
}

.ml-video-caption {
  max-width: 100%;
  width: 100%;
  font-size: clamp(12px, 1.8vw, 16px);
  margin-top: 12px;
  line-height: 1.6;
  color: #fff;
  text-align: center;
}

/* ========= Intro ========= */

.intro-section {
  background-color: transparent;
  color: var(--white-color);
  padding: clamp(60px, 8vw, 100px) 20px;
}

.intro-header {
  text-align: center;
  margin-bottom: clamp(40px, 6vw, 70px);
}

.intro-header h2 {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: bold;
  color: #7fd1b9;
}

.intro-header span {
  display: block;
  font-size: clamp(14px, 2vw, 18px);
  opacity: .8;
}

.intro-container {
  width: 100%;
  max-width: 1600px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
  display: grid;
  grid-template-columns: minmax(0,1fr) 1px minmax(0,1fr);
  gap: clamp(24px, 4vw, 60px);
}

.intro-box {
  max-width: 480px;
}

.intro-box.left { justify-self: end; }
.intro-box.right { justify-self: start; }

.intro-title {
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: bold;
  margin-bottom: 16px;
  text-align: center;
}

.intro-title.yellow { color: #ffd54f; }

.intro-text {
  font-size: clamp(16px, 2vw, 22px);
  line-height: 1.8;
}

.intro-divider {
  width: 3px;
  background: rgba(255,255,255,.3);
}

.openai-logo {
  max-width: 300px;
  margin: 40px auto 0;
}

.ai-image {
  max-width: 300px;
  margin: 40px auto 0;
}

/* ========= Benefits ========= */

.benefit-section {
  background-color: transparent;
  padding: clamp(60px, 8vw, 120px) 20px;
}

.benefit-container {
  width: 100%;
  max-width: 1600px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,520px);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.benefit-left { max-width: 620px; }

.benefit-title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 600;
  color: #7fd1b9;
  margin-bottom: 24px;
}

.benefit-title span {
  display: block;
  font-size: clamp(14px, 2vw, 18px);
  opacity: .8;
}

.benefit-text {
  font-size: clamp(16px, 2vw, 22px);
  line-height: 1.8;
  opacity: .9;
  margin-bottom: 32px;
}

.benefit-readmore {
  position: relative;
  margin-top: 24px;
}

.benefit-read-more-btn {
  display: inline-flex;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--primary-color);
  background: transparent;
  color: var(--primary-color);
  cursor: pointer;
}

.benefit-read-more-btn:hover {
  background-color: var(--primary-color);
  color: var(--white-color);
}

.benefit-read-more-btn:active {
  transform: scale(.96);
}

.benefit-extra-text {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  width: 720px;
  max-width: 90vw;
  padding: 16px 20px;
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: .25s;
}

.benefit-readmore.is-open .benefit-extra-text {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.benefit-right img {
  width: 100%;
  max-width: 420px;
}

/* ========= Mobile ========= */

@media (max-width: 767px) {

  .hero-section {
    min-height: auto;
    padding-bottom: 155px;
  }

  .history-section {
    padding-top: 10px;
    padding-bottom: 40px;
  }

  .history-container {
    grid-template-columns: 1fr;
  }

  .history-left {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .history-title {
    text-align: center;
  }

  .history-no-wrap {
    white-space: normal;
  }

  .history-image {
    width: 96px;
  }

  .history-text-secondary,
  .history-line-offset-sm,
  .history-read-more-btn {
    margin-left: 0;
  }

  .history-extra-text {
    margin-left: 0;
    margin-top: 20px;
  }

  .history-media {
    width: 100%;
    max-width: 500px;
    align-items: center;
    margin-inline: auto;
  }

  .history-video-wrapper {
    border-radius: 14px;
  }

  .history-video-caption {
    order: -1;
    margin-bottom: 1px;
    font-size: 0;
    text-align: center;
  }

  .history-video-caption::before {
    content: attr(data-mobile-text);
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255,255,255,0.9);
    display: block;
  }

  .ml-container {
    grid-template-columns: 1fr;
  }

  .ml-right {
    order: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .ml-content {
    order: 2;
    text-align: center;
  }

  .ml-icon {
    order: 1;
    width: 96px;
    margin-bottom: 12px;
    margin-right: 5px;
  }

  .ml-media {
    order: 3;
    width: 100%;
    max-width: 520px;
    align-items: center;
    margin-inline: auto;
  }

  .ml-video-wrapper {
    border-radius: 14px;
  }

  .ml-last-line {
    transform: none;
  }

  .ml-nowrap {
    white-space: normal;
  }

  .ml-read-more-btn {
    margin: 0;
    transform: none;
  }

  .ml-read-more-btn:active {
    transform: scale(0.96);
  }

  .ml-extra-text {
    margin: 20px 0 0;
    transform: none;
  }

  .ml-video-caption {
    order: -1;
    margin-bottom: 1px;
    font-size: 0;
    text-align: center;
  }

  .ml-video-caption::before {
    content: attr(data-mobile-text);
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255,255,255,0.9);
    display: block;
  }

  .intro-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .intro-divider {
    display: none;
  }

  .intro-box {
    max-width: 100%;
    justify-self: center;
  }

  .intro-text {
    text-align: center;
  }

  .openai-logo img {
    margin-top: 10px;
    padding-bottom: 50px;
    max-width: 200px;
    margin: 0 auto;
  }

  .ai-image img {
    margin-top: -20px;
    max-width: 200px;
    margin: 0 auto;
  }

  .benefit-section {
    padding-top: 32px;
    padding-bottom: 80px;
  }

  .benefit-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .benefit-left {
    margin-inline: auto;
  }

  .benefit-title {
    font-size: 26px;
  }

  .benefit-text {
    margin-bottom: 16px;
  }

  .benefit-readmore {
    margin-top: 12px;
  }

  .benefit-read-more-btn {
    font-size: 14px;
    padding: 8px 18px;
    opacity: 0.9;
  }

  .benefit-extra-text {
    position: static;
    width: 100%;
    max-width: 100%;
    margin-top: 16px;
    display: none;
    opacity: 0;
    pointer-events: none;
    transform: none;
  }

  .benefit-readmore.is-open .benefit-extra-text {
    display: block;
    opacity: 1;
    pointer-events: auto;
  }

  .benefit-right {
    margin-top: 24px;
    display: flex;
    justify-content: center;
  }

  .benefit-right img {
    max-width: 260px;
  }
}

/* ========= Tablet / Small Desktop ========= */

@media (min-width: 768px) and (max-width: 1199px) {

  .history-container,
  .ml-container,
  .intro-container,
  .benefit-container {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .history-left {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .history-image {
    width: 120px;
    margin-bottom: 16px;
  }

  .history-title {
    font-size: clamp(26px, 3vw, 32px);
  }

  .history-text {
    white-space: normal;
    text-align: left;
    font-size: 16px;
    line-height: 1.7;
  }

  .history-no-wrap {
    white-space: normal;
  }

  .history-readmore {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .history-read-more-btn {
    margin: 0 0 12px;
  }

  .history-extra-text {
    position: static;
    width: 100%;
    max-width: 100%;
    margin: 0;
    display: none;
  }

  .history-readmore.is-open .history-extra-text {
    display: block;
    margin-top: 16px;
  }

  .history-media {
    max-width: 600px;
    margin-inline: auto;
    align-items: center;
  }

  .history-line-offset-sm {
    margin-left: 0;
  }

  .history-no-wrap {
    white-space: normal;
  }

  .ml-right {
    order: 1;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .ml-icon {
    width: 120px;
    margin-bottom: 16px;
  }

  .ml-content {
    text-align: center;
  }

  .ml-text {
    font-size: clamp(16px, 2vw, 20px);
  }

  .ml-readmore {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .ml-read-more-btn {
    margin: 0 0 12px;
    align-self: center;
  }

  .ml-extra-text {
    transform: none;
    position: static;
    width: 100%;
    max-width: 100%;
    margin: 0;
    display: none;
  }

  .ml-readmore.is-open .ml-extra-text {
    display: block;
    margin-top: 16px;
  }

  .ml-last-line,
  .ml-nowrap {
    transform: none;
    white-space: normal;
  }

  .ml-media {
    order: 2;
    max-width: 600px;
    margin-inline: auto;
    align-items: center;
  }

  .intro-box {
    max-width: 640px;
    margin-inline: auto;
    text-align: center;
  }

  .intro-title {
    font-size: clamp(20px, 2.5vw, 24px);
  }

  .intro-text {
    font-size: clamp(15px, 2vw, 17px);
  }

  .openai-logo {
    max-width: 250px;
    margin-inline: auto;
  }

  .openai-logo img {
    display: block;
    width: 100%;
  }

  .ai-image {
    max-width: 250px;
    margin-inline: auto;
  }

  .ai-image img {
    display: block;
    width: 100%;
  }

  .benefit-left {
    margin-inline: auto;
    text-align: center;
  }

  .benefit-title {
    font-size: clamp(24px, 3vw, 28px);
  }

  .benefit-text {
    font-size: clamp(15px, 2vw, 18px);
  }

  .benefit-readmore {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .benefit-read-more-btn {
    margin-bottom: 12px;
  }

  .benefit-extra-text {
    position: static;
    width: 100%;
    max-width: 100%;
    display: none;
    margin: 0;
  }

  .benefit-readmore.is-open .benefit-extra-text {
    display: block;
    margin-top: 16px;
  }

  .benefit-right {
    max-width: 250px;
    margin-inline: auto;
  }

  .benefit-right img {
    display: block;
    width: 100%;
  }
}

/* ========= Large Desktop ========= */

@media (min-width: 1200px) {

  .history-line-offset-sm {
    margin-left: clamp(-250px, -5vw, -200px);
  }

  .history-read-more-btn {
    margin-left: clamp(-205px, -20vw, -190px);
  }

  .history-text {
    font-size: 20px;
    white-space: nowrap;
  }

  .ml-last-line {
    transform: translateX(200px);
  }

  .ml-read-more-btn {
    margin-right: -200px;
  }
}
