/* ==========================================================================
   Innovation AI LAB
   Site-specific styles
   ========================================================================== */

:root {
  --color-ink: #17202a;
  --color-muted: #66717d;
  --color-border: #d7dee5;
  --color-panel: #f7f9fb;
  --color-accent: #0b5ed7;
  --color-accent-dark: #084298;
  --color-footer: #343434;
  --color-footer-bottom: #000;
  --content-width: 72rem;
  --reading-width: 42rem;
}

/* Layout and shared components ------------------------------------------- */

html {
  scroll-behavior: smooth;
}

body {
  color: var(--color-ink);
  background: #fff;
  font-size: 1rem;
  line-height: 1.7;
  white-space: normal;
  word-break: normal;
  overflow-wrap: anywhere;
  line-break: strict;
}

a {
  color: var(--color-accent-dark);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #ffbf47;
  outline-offset: 3px;
}

/* Keep anchored headings visible below the fixed navigation bar. */
:where([id]) {
  scroll-margin-top: 6rem;
}

.navbar-toggler .navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255,255,255,1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E");
}

.brand-logo {
  width: auto;
  height: 3.5em;
}

.text_brack {
  color: black;
}

.head_set {
  background: rgb(15 23 42 / 10%);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 0.25rem 1rem rgb(0 0 0 / 18%);
}

.hero-section {
  padding: clamp(5.5rem, 10vw, 8rem) 1rem clamp(3rem, 7vw, 5rem);
}

.hero-brand-logo {
  display: block;
  width: min(18rem, 70vw);
  height: auto;
  margin: 0 auto 1.25rem;
}

.hero-section h1 {
  max-width: 42rem;
  margin: 0 auto 1rem;
  color: #101820;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.2;
}

.eyebrow {
  color: var(--color-accent-dark);
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
}

.hero-lead {
  max-width: 38rem;
  margin: 0 auto 1.5rem;
  line-height: 1.9;
  white-space: normal;
  word-break: normal;
  overflow-wrap: anywhere;
  line-break: strict;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  transition: opacity 260ms ease, transform 260ms ease;
}

.hero-actions .btn {
  min-width: 11rem;
  min-height: 3rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.hero-actions .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.5rem 1rem rgb(15 23 42 / 15%);
}

.hero-actions.is-floating {
  position: fixed;
  right: auto;
  bottom: 1.25rem;
  left: 50%;
  z-index: 1020;
  width: min(100% - 2rem, 38rem);
  padding: 0.5rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: rgb(255 255 255 / 94%);
  box-shadow: 0 0.75rem 1.75rem rgb(15 23 42 / 18%);
  opacity: 1;
  transform: translate(-50%, 0);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.hero-actions.is-floating.is-hidden {
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 1rem);
}

.hero-actions.is-floating .btn {
  flex: 1 1 0;
  min-width: 0;
}

.community-fields,
.info-panel {
  max-width: var(--content-width);
  margin: clamp(3rem, 7vw, 6rem) auto;
}

.section-title,
.info-panel > h2 {
  margin-bottom: 1.5rem;
  color: #101820;
  font-weight: 800;
}

.field-card {
  height: 100%;
  padding: 1.25rem;
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: 0 0.5rem 1.5rem rgb(15 23 42 / 6%);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.field-card:hover,
.field-card:focus-within {
  border-color: #91b9ed;
  box-shadow: 0 0.75rem 2rem rgb(15 23 42 / 12%);
  transform: translateY(-3px);
}

.field-card h3 {
  color: var(--color-accent-dark);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.field-card p,
.info-panel p,
.info-panel dd {
  line-height: 1.8;
}

.field-card,
.field-card p,
.info-panel,
.info-panel p,
.info-panel dt,
.info-panel dd,
.info-panel summary,
.content-copy,
.footer-links a {
  white-space: normal;
  word-break: normal;
  overflow-wrap: anywhere;
  line-break: strict;
}

.info-panel small {
  line-height: 0.9;
  font-size: 75%;
}

.info-panel {
  padding: 2rem;
  background: var(--color-panel);
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  box-shadow: 0 0.75rem 2rem rgb(15 23 42 / 5%);
}

.info-panel details {
  padding: 1rem 0;
  border-top: 1px solid var(--color-muted);
}

.info-panel summary {
  cursor: pointer;
  font-weight: 700;
  color: #101820;
  transition: color 180ms ease;
}

.info-panel summary:hover {
  color: var(--color-accent-dark);
}

.info-panel form {
  max-width: var(--reading-width);
}

.info-panel table {
  margin-top: 1rem;
  border-color: var(--color-border);
}

.content-copy {
  font-size: 1em;
  line-height: 2;
}

.content-copy a,
.info-panel a,
.footer-links a {
  overflow-wrap: anywhere;
}

.table {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.content-block {
  text-align: left;
}

.content-block--intro {
  margin-top: 2em;
}

.content-block h2 {
  color: #101820;
  font-weight: 800;
}

.section-heading {
  padding-top: 4em;
  margin-top: -4em;
  font-size: 1.5em;
}

.section-heading--center {
  text-align: center;
}

.media-column {
  text-align: right;
}

.fluid-image {
  width: 100%;
  border-radius: 0.75rem;
  box-shadow: 0 0.75rem 2rem rgb(15 23 42 / 10%);
}

.section-spacer {
  height: 6em;
}

.section-spacer--small {
  height: 0.5em;
}

.section-spacer--medium {
  height: 4em;
}

.section-spacer--large {
  height: 5em;
}

.section-spacer--heading {
  height: 3em;
}

.video-frame {
  width: 100%;
  margin-bottom: 1em;
  aspect-ratio: 16 / 9;
}

.movies-row {
  margin-left: 0;
}

.sponsors-row {
  margin: 0;
  text-align: center;
}

.sponsors-column {
  margin: auto;
}

/* Tables ------------------------------------------------------------------ */

.table {
  background-color: transparent !important;
}

.table th,
.table td {
  background-color: transparent !important;
}

.table.table-striped tbody tr:nth-of-type(odd) {
  background-color: transparent !important;
}

.table.custom-border {
  --bs-table-border-color: #bbbbbb;
}

/* News cards -------------------------------------------------------------- */

.news-img {
  object-fit: cover;
  object-position: center;
}

.card-desc {
  overflow: hidden;
}

.line-clamp-1 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

/* Footer ------------------------------------------------------------------ */

.footer-links {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  padding: 1.5rem 1rem;
  background: #17202a;
}

.footer-links a  {
  color: #fff;
  text-decoration-line: underline;
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.2em;
  transition: color 180ms ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: #9ec5fe;
}

.footer-sns {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
}

.footer-sns__label {
  color: #fff;
}

.footer-sns a {
  display: inline-flex;
  align-items: center;
  min-height: 1.5em;
  padding: 0 0.2rem;
  border-bottom: 1px solid currentColor;
  text-decoration: none;
}

.site-footer {
  margin: 0;
  color: #fff;
}

.site-footer__social {
  height: 5em;
  background-color: var(--color-footer);
}

.site-footer__copyright {
  height: 3em;
  background-color: var(--color-footer-bottom);
}

.site-footer__full-height {
  height: 100%;
}

.site-footer__row {
  height: 100%;
}

.site-footer__column {
  margin: auto;
}

.site-footer__column--start {
  text-align: left;
  margin-left: 1em;
}

.site-footer__column--end {
  text-align: right;
  margin-right: 1em;
}

.site-footer__column--center {
  text-align: center;
}

.site-footer__label {
  margin: 0;
  color: #fff;
  display: inline;
}

.site-footer__icon {
  width: 2.5em;
}

.site-footer__icon--spaced {
  margin-right: 0.3em;
}

.site-footer__icon--first {
  margin-left: 1em;
}

.site-footer__copyright-text {
  margin: 0;
  color: #fff;
  text-align: center;
}

.sponsor-logo {
  margin: 2em;
}

.sponsor-logo--st {
  width: 8em;
}

.sponsor-logo--bambu {
  width: 10em;
}

/* Slider ------------------------------------------------------------------ */

.s_image_slide {
  position: relative;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0;
  overflow: hidden;
  color: black;
}

/* Keep the particle canvas behind page content and out of the hit area. */
#particles-js {
  z-index: 0;
  pointer-events: none;
}

#particles-js canvas {
  pointer-events: none;
}

/* Responsive adjustments -------------------------------------------------- */

@media (max-width: 767.98px) {
  .hero-section {
    padding-top: 3rem;
  }

  .news-img {
    width: 40%;
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .card-desc {
    -webkit-mask-image: linear-gradient(
      black 0%,
      black calc(100% - 3em),
      transparent 100%
    );
    mask-image: linear-gradient(
      black 0%,
      black calc(100% - 3em),
      transparent 100%
    );
  }

  .site-footer__social {
    height: 6.5em;
  }

  .site-footer__column--start,
  .site-footer__column--end {
    margin: auto;
    text-align: center;
  }

  .site-footer__column-content {
    display: inline-block;
    text-align: center;
  }

  .site-footer__icon--first {
    margin-left: 0;
  }
}

@media (min-width: 768px) {
  .news-img {
    width: 100%;
    height: 200px;
  }
}

/* Hero gallery ------------------------------------------------------------ */

.hero-gallery {
  max-width: var(--content-width);
  margin: 0 auto;
  overflow: hidden;
  border-radius: 1rem;
  background: #111;
  color: #fff;
  box-shadow: 0 1rem 2.5rem rgb(0 0 0 / 18%);
}

.hero-gallery__main {
  position: relative;
  min-height: clamp(22rem, 62vw, 38rem);
  isolation: isolate;
  touch-action: pan-y;
}

.hero-gallery__image {
  display: block;
  width: 100%;
  height: clamp(22rem, 62vw, 38rem);
  object-fit: cover;
  object-position: center;
}

.hero-gallery__main::after {
  position: absolute;
  inset: 35% 0 0;
  z-index: 0;
  background: linear-gradient(transparent, rgb(0 0 0 / 82%));
  content: "";
  pointer-events: none;
}

.hero-gallery__caption {
  position: absolute;
  right: clamp(1rem, 5vw, 4rem);
  bottom: clamp(4.5rem, 9vw, 6rem);
  left: clamp(1rem, 5vw, 4rem);
  z-index: 1;
  max-width: 42rem;
}

.hero-gallery__caption h1 {
  margin: 0.2rem 0 0.5rem;
  font-size: clamp(1.7rem, 4vw, 3.4rem);
}

.hero-gallery__caption p {
  margin: 0;
  line-height: 1.7;
}

.hero-gallery__count {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-gallery__controls {
  position: absolute;
  right: clamp(1rem, 5vw, 4rem);
  bottom: 1rem;
  left: clamp(1rem, 5vw, 4rem);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.gallery-control {
  min-height: 2.75rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid rgb(255 255 255 / 55%);
  border-radius: 999px;
  background: rgb(0 0 0 / 35%);
  color: #fff;
  cursor: pointer;
}

.gallery-control:hover,
.gallery-control:focus-visible {
  background: #fff;
  color: #111;
}

.hero-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(7, minmax(5rem, 1fr));
  gap: 0.5rem;
  padding: 0.75rem;
  background: #1b1b1b;
}

.hero-gallery__thumbnail {
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 0.5rem;
  background: transparent;
  cursor: pointer;
  opacity: 0.6;
}

.hero-gallery__thumbnail img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.hero-gallery__thumbnail:hover,
.hero-gallery__thumbnail:focus-visible,
.hero-gallery__thumbnail.is-active {
  border-color: #fff;
  opacity: 1;
}

/* Masonry galleries ------------------------------------------------------- */

.image-gallery {
  column-count: 3;
  column-gap: clamp(0.75rem, 2vw, 1.25rem);
  margin: 0;
  padding: 0 1rem;
  list-style: none;
}

.image-gallery li {
  break-inside: avoid;
  margin: 0 0 clamp(0.75rem, 2vw, 1.25rem);
}

.image-gallery img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: opacity 180ms ease, box-shadow 180ms ease;
}

.image-gallery img:hover,
.image-gallery img:focus-visible {
  opacity: 0.84;
  box-shadow: 0 0.5rem 1.25rem rgb(15 23 42 / 16%);
}

.image-gallery--facility {
  column-count: 3;
}

.image-lightbox[hidden] {
  display: none;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 1rem;
  align-items: stretch;
}

.image-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 82%);
}

.image-lightbox__content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 80rem);
  height: min(100%, 90vh);
}

.image-lightbox__image {
  display: block;
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0.5rem;
}

.image-lightbox__machine-card {
  flex: 0 1 18rem;
  margin: 0;
  padding: 1rem;
  border-radius: 0.75rem;
  background: rgb(255 255 255 / 94%);
  box-shadow: 0 0.75rem 2rem rgb(0 0 0 / 25%);
  color: #101820;
  text-align: center;
}

.image-lightbox__content.is-machine {
  gap: clamp(1rem, 3vw, 2rem);
}

.image-lightbox__content.is-machine .image-lightbox__image {
  max-width: min(100%, 58rem);
}

.image-lightbox__close {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  min-width: 5rem;
  min-height: 2.75rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid rgb(255 255 255 / 60%);
  border-radius: 999px;
  background: rgb(0 0 0 / 60%);
  color: #fff;
  cursor: pointer;
}

.image-lightbox__close:hover,
.image-lightbox__close:focus-visible {
  background: #fff;
  color: #111;
}

@media (max-width: 767.98px) {
  .hero-gallery__thumbs {
    display: flex;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .hero-gallery__thumbnail {
    flex: 0 0 6.5rem;
  }

  .image-gallery,
  .image-gallery--facility {
    column-count: 2;
    column-gap: 0.75rem;
    padding-right: 0;
    padding-left: 0;
  }

  .info-panel {
    padding: 1.25rem;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 22rem;
  }

  .hero-actions.is-floating {
    bottom: 0.75rem;
    width: calc(100% - 1.5rem);
    border-radius: 1rem;
  }

  .hero-actions.is-floating .btn {
    width: auto;
    max-width: none;
    padding-right: 0.75rem;
    padding-left: 0.75rem;
    font-size: 0.875rem;
  }

  .image-gallery li {
    margin-bottom: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-actions .btn,
  .field-card,
  .footer-links a,
  .image-gallery img,
  .image-lightbox__close {
    transition: none;
  }
}

@media (max-width: 767.98px) {
  .image-lightbox__content {
    height: auto;
    max-height: 90vh;
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
  }

  .image-lightbox__content.is-machine {
    gap: 1rem;
  }

  .image-lightbox__content.is-machine .image-lightbox__image {
    max-height: 65vh;
    max-width: 100%;
  }

  .image-lightbox__machine-card {
    flex-basis: auto;
  }
}

@media (max-width: 420px) {
  .image-gallery,
  .image-gallery--facility {
    column-count: 1;
  }
}

.is-lightbox-open {
  overflow: hidden;
}

#offcanvasDarkNavbar {
  bottom: auto !important;
}

#player-controls > ytm-custom-control > ytm-watch-player-controls > cued-overlay > button{
  display: none !important;
}
.ytmCuedOverlayPlayButton  {
    display: none !important;
}
.ytmCuedOverlayPlayButtonIcon{
  display: none !important;
}
