@import url("https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;500;600;700;800;900&display=swap");

.page-home,
.page-home html {
  background: #0c0c0c;
}

.page-home {
  font-family: "Paperozi", "Pretendard", sans-serif;
  color: #d7e2ea;
  overflow-x: clip;
}

.page-home .jack-hero-tagline,
.page-home .about-text,
.page-home .about-emphasis,
.page-home .service-name,
.page-home .service-desc {
  font-family: "Paperozi", "Pretendard", sans-serif;
}

.page-home #site-header-mount {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.page-home .site-header--dark {
  background: transparent;
  box-shadow: none;
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.4s ease,
    box-shadow 0.4s ease;
}

.page-home .site-header--dark .logo-mark,
.page-home .site-header--dark .logo-sub,
.page-home .site-header--dark .nav-link {
  color: #d7e2ea;
}

.page-home .site-header--dark .logo-sub {
  color: rgba(215, 226, 234, 0.65);
}

.page-home .site-header--dark .nav-toggle span {
  background: #d7e2ea;
}

.page-home .site-header--dark.is-scrolled {
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.page-home .site-header.is-header-hidden {
  transform: translateY(-110%);
  pointer-events: none;
}

.jack-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  flex-shrink: 0;
  padding: 1.5rem 1.5rem 0;
  position: relative;
  z-index: 40;
  opacity: 0;
  transform: translateY(-20px);
}

@media (min-width: 768px) {
  .jack-nav {
    padding: 2rem 2.5rem 0;
  }
}

.jack-nav a {
  color: #d7e2ea;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.875rem;
  transition: opacity 0.2s;
  flex: 1;
  text-align: center;
}

.jack-nav a:first-child {
  text-align: left;
}
.jack-nav a:last-child {
  text-align: right;
}

@media (min-width: 768px) {
  .jack-nav a {
    font-size: 1.125rem;
  }
}

@media (min-width: 1024px) {
  .jack-nav a {
    font-size: 1.4rem;
  }
}

.jack-nav a:hover {
  opacity: 0.7;
}

.home-landing {
  position: relative;
  z-index: 2;
  background: #0c0c0c;
  margin-top: -100vh;
  margin-top: -100dvh;
  opacity: 1;
  transform: none;
  /* scroll-video-scrub.css 의 flex 가로 배치 덮어쓰기 */
  display: block !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  min-height: auto !important;
  padding: 0 !important;
  text-align: left;
  width: 100%;
  overflow-x: clip;
}

.home-landing > section {
  width: 100%;
  display: block;
}

.page-home main {
  width: 100%;
  overflow-x: clip;
}

.page-home html,
.page-home body {
  overflow-x: clip;
  max-width: 100%;
}

.home-landing.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.feature-scroll-stack {
  position: relative;
  z-index: 2;
  background: #0c0c0c;
  min-height: 300vh;
}

.feature-panel {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.feature-panel + .feature-panel {
  margin-top: -1px;
}

.feature-panel-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
}

.feature-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(12, 12, 12, 0.08) 0%, rgba(12, 12, 12, 0.12) 42%, rgba(12, 12, 12, 0.58) 100%),
    linear-gradient(90deg, rgba(12, 12, 12, 0.18), transparent 34%, rgba(12, 12, 12, 0.18));
}

.feature-panel--impact .feature-panel-bg {
  background-image: url("../images/background-fixed1.png");
}

.feature-panel--safety .feature-panel-bg {
  background-image: url("../images/background-fixed2.png");
}

.feature-panel--light .feature-panel-bg {
  background-image: url("../images/background-fixed3.png");
}

.feature-panel-content {
  width: min(100% - 3rem, 1100px);
  margin-inline: auto;
  text-align: center;
  color: #fff;
  /* transform: translateY(6vh); */
}

.feature-panel-kicker {
  margin-bottom: 1.25rem;
  color: #50afd9;
  font-family: "Paperozi", "Pretendard", sans-serif;
  font-size: clamp(0.75rem, 1.15vw, 1rem);
  font-weight: 800;
  letter-spacing: 0.42em;
  text-transform: uppercase;
}

.feature-panel h2 {
  font-family: "Paperozi", "Pretendard", sans-serif;
  font-size: clamp(2.5rem, 7.2vw, 7rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.06em;
  text-shadow: 0 12px 48px rgba(0, 0, 0, 0.35);
  word-break: keep-all;
}

.feature-panel-progress {
  position: absolute;
  right: clamp(1.25rem, 4vw, 3.5rem);
  bottom: clamp(1.25rem, 4vw, 3.5rem);
  color: rgba(255, 255, 255, 0.7);
  font-family: "Paperozi", "Pretendard", sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

@media (max-width: 767px) {
  .feature-panel-content {
    width: min(100% - 2rem, 520px);
    transform: translateY(4vh);
  }

  .feature-panel-kicker {
    letter-spacing: 0.24em;
  }

  .feature-panel h2 {
    font-size: clamp(2.35rem, 12vw, 4.25rem);
  }
}

/* .hero-heading {
  background: linear-gradient(180deg, #646973 0%, #bbccd7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
} */

.jack-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
}

.jack-hero-title {
  font-family: "Paperozi", "Pretendard", sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.055em;
  line-height: 1;
  padding: 0;
  overflow: hidden;
  text-align: center;
  opacity: 0;
  transform: translateY(40px);
  width: 100%;
  margin-top: 20px;
}

.jack-hero-title span {
  display: inline-block;
  background: linear-gradient(180deg, #646973 0%, #bbccd7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transform-origin: center center;
  will-change: transform;
  font-size: clamp(3.8rem, 8.2vw, 10rem);
  word-break: keep-all;
}

@media (min-width: 640px) {
}

@media (min-width: 768px) {
}

@media (min-width: 1024px) {
}

.jack-hero-center {
  position: static;
  z-index: auto;
  flex: 1;
  width: 100%;
  min-height: 0;
}

.jack-hero-product {
  position: absolute;
  left: 50%;
  top: clamp(13rem, 30vh, 17rem);
  z-index: 5;
  width: min(70vw, 320px);
  max-height: 54vh;
  opacity: 0;
  transform: translateX(-50%) translateY(30px);
  will-change: transform;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 640px) {
  .jack-hero-product {
    top: clamp(14rem, 31vh, 18rem);
    bottom: auto;
    width: min(46vw, 430px);
    max-height: 56vh;
    transform: translateX(-50%) translateY(30px);
  }
}

@media (min-width: 768px) {
  .jack-hero-product {
    top: clamp(14.5rem, 32vh, 19rem);
    width: min(42vw, 500px);
  }
}

@media (min-width: 1024px) {
  .jack-hero-product {
    top: clamp(14.5rem, 31vh, 18.5rem);
    width: min(36vw, 560px);
  }
}

.jack-hero-product img {
  width: 100%;
  max-height: inherit;
  height: auto;
  display: block;
  pointer-events: none;
  object-fit: contain;
  opacity: 0.92;
}

.jack-hero-tagline {
  position: absolute;
  left: clamp(1.5rem, 6vw, 5rem);
  bottom: clamp(1.75rem, 5vw, 2.5rem);
  z-index: 35;
  color: #d7e2ea;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.5;
  font-size: clamp(0.75rem, 1.4vw, 1.15rem);
  /* max-width: min(300px, calc(100vw - 3rem)); */
  margin: 0;
  text-align: left;
  opacity: 0;
  transform: translateY(20px);
  word-break: keep-all;
}

.jack-hero-cta {
  position: absolute;
  right: clamp(1.5rem, 6vw, 5rem);
  bottom: clamp(1.75rem, 5vw, 2.5rem);
  z-index: 35;
}

@media (max-width: 767px) {
  .jack-hero-product {
    top: clamp(12rem, 34vh, 16rem);
    width: min(74vw, 320px);
  }

  .jack-hero-tagline {
    max-width: min(240px, calc(100vw - 3rem));
    font-size: 0.75rem;
  }

  .jack-hero-cta {
    right: 1.5rem;
    padding: 0.7rem 1.25rem;
    font-size: 0.68rem;
  }
}

@media (max-height: 620px) and (min-width: 768px) {
  .jack-hero-product {
    top: 10.5rem;
    bottom: auto;
    width: min(30vw, 420px);
    max-height: 44vh;
  }

  .jack-hero-tagline {
    font-size: 0.8rem;
    max-width: 280px;
  }
}

.btn-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  background: linear-gradient(
    123deg,
    #2f86d8 0%,
    #50afd9 36%,
    #5dd6f2 68%,
    #78b7ff 100%
  );
  box-shadow:
    0 10px 24px rgba(80, 175, 217, 0.36),
    inset 0 1px 12px rgba(255, 255, 255, 0.32);
  outline: 2px solid #fff;
  outline-offset: -3px;
  color: #fff;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.75rem;
  font-family: inherit;
  border: none;
  cursor: pointer;
  text-decoration: none;
  opacity: 0;
  transform: translateY(20px);
}

@media (min-width: 768px) {
  .btn-contact {
    padding: 1rem 3rem;
    font-size: 1rem;
  }
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  border: 2px solid #d7e2ea;
  color: #d7e2ea;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.875rem;
  font-family: inherit;
  background: transparent;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-ghost:hover {
  background: rgba(215, 226, 234, 0.1);
}

.btn-ghost.is-disabled {
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
}

.marquee-section {
  background: #0c0c0c;
  padding: 0 0 6rem;
  overflow: hidden;
}

@media (min-width: 768px) {
  /* .marquee-section {
    padding-top: 10rem;
  } */
}

.marquee-row {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  will-change: transform;
}

.marquee-row img {
  width: 420px;
  height: 270px;
  object-fit: cover;
  border-radius: 1rem;
  flex-shrink: 0;
}

.about-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5rem 1.25rem;
  text-align: center;
  background-image: url("../images/water.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.about-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  pointer-events: none;
}

.about-section > * {
  position: relative;
  z-index: 1;
}

.about-deco {
  position: absolute;
  pointer-events: none;
}

.about-deco--moon {
  top: 4%;
  left: 1%;
  width: 120px;
}
.about-deco--p59 {
  bottom: 8%;
  left: 3%;
  width: 100px;
}
.about-deco--lego {
  top: 4%;
  right: 1%;
  width: 120px;
}
.about-deco--group {
  bottom: 8%;
  right: 3%;
  width: 130px;
}

@media (min-width: 768px) {
  .about-deco--moon {
    left: 4%;
    width: 210px;
  }
  .about-deco--lego {
    right: 4%;
    width: 210px;
  }
  .about-deco--p59 {
    left: 10%;
    width: 180px;
  }
  .about-deco--group {
    right: 10%;
    width: 220px;
  }
}

.about-heading {
  font-size: clamp(3rem, 12vw, 160px);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.about-text {
  color: #d7e2ea;
  font-weight: 500;
  line-height: 1.7;
  max-width: 850px;
  font-size: clamp(1rem, 2vw, 2rem);
  margin-bottom: clamp(2rem, 8vw, 3rem);
  margin-left: auto;
  margin-right: auto;
  word-break: keep-all;
}

.about-text .char {
  opacity: 0.2;
  display: inline-block;
}
.about-text .char.is-lit {
  opacity: 1;
}

.about-emphasis {
  font-family: "Paperozi", "Pretendard", sans-serif;
  font-size: clamp(1.125rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: #d7e2ea;
  margin-bottom: clamp(3rem, 6vw, 5rem);
  max-width: 560px;
  line-height: 1.5;
  letter-spacing: -0.02em;
}

.about-emphasis::before {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, #646973, #bbccd7);
  margin: 0 auto 1.25rem;
}

.services-section {
  background: #fff;
  color: #0c0c0c;
  border-radius: 40px 40px 0 0;
  padding: 5rem 1.25rem;
}

@media (min-width: 768px) {
  .services-section {
    border-radius: 60px 60px 0 0;
    padding: 3rem 2.5rem 10rem;
  }
}

.services-heading {
  font-size: clamp(3rem, 12vw, 160px);
  font-weight: 900;
  text-transform: uppercase;
  text-align: center;
  color: #0c0c0c;
  /* margin-bottom: clamp(4rem, 8vw, 7rem); */
}

.services-list {
  max-width: 64rem;
  margin: 0 auto;
}

.service-item {
  display: flex;
  gap: clamp(1rem, 4vw, 3rem);
  padding: clamp(2rem, 4vw, 3rem) 0;
  border-bottom: 1px solid rgba(12, 12, 12, 0.15);
  opacity: 0;
  transform: translateY(30px);
}

.service-item.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.7s,
    transform 0.7s;
}

.service-num {
  font-size: clamp(3rem, 10vw, 140px);
  font-weight: 900;
  line-height: 1;
  flex-shrink: 0;
}

.service-name {
  font-weight: 500;
  text-transform: uppercase;
  font-size: clamp(1rem, 2.2vw, 2.1rem);
  margin-bottom: 0.5rem;
}

.service-desc {
  font-weight: 300;
  line-height: 1.65;
  font-size: clamp(0.85rem, 1.6vw, 1.25rem);
  opacity: 0.6;
}

.projects-section {
  background: #0c0c0c;
  border-radius: 40px 40px 0 0;
  margin-top: -2.5rem;
  position: relative;
  z-index: 10;
  padding: 5rem 1.25rem 4rem;
  overflow: clip;
}

@media (min-width: 768px) {
  .projects-section {
    border-radius: 60px 60px 0 0;
    margin-top: -3.5rem;
    padding-bottom: 6rem;
  }
}

.projects-heading {
  font-size: clamp(3rem, 12vw, 160px);
  font-weight: 900;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  z-index: 1;
}

.project-stack {
  max-width: 78rem;
  margin: 0 auto;
  position: relative;
}

.project-card {
  position: sticky;
  top: 5rem;
  border: 2px solid #d7e2ea;
  background: #0c0c0c;
  border-radius: 40px;
  padding: 1rem;
  transform-origin: center top;
  will-change: transform, filter;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.45), 0 28px 90px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  isolation: isolate;
  margin-bottom: clamp(1rem, 2.5vh, 2rem);
}

.project-card:last-child {
  margin-bottom: 0;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background:
    radial-gradient(
      circle at 18% 0%,
      rgba(215, 226, 234, 0.16),
      transparent 32%
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent 28%);
  pointer-events: none;
}

@media (min-width: 768px) {
  .project-card {
    border-radius: 60px;
    padding: 1.5rem 2rem 2rem;
    top: 5rem;
  }
}

.project-card-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: end;
  gap: 1rem 1.5rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 768px) {
  .project-card-top {
    gap: 1rem 2.5rem;
    margin-bottom: 1.5rem;
  }
}

.project-card-num {
  font-size: clamp(4rem, 12vw, 10rem);
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: -0.04em;
}

.project-card-meta {
  padding-bottom: 0.25rem;
}

.project-card-cat {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  opacity: 0.55;
  margin-bottom: 0.35rem;
}

.project-card-name {
  font-size: clamp(1.1rem, 2.8vw, 2.25rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.project-card .btn-ghost {
  white-space: nowrap;
  font-size: 0.7rem;
  padding: 0.65rem 1.25rem;
}

@media (min-width: 640px) {
  .project-card .btn-ghost {
    font-size: 0.875rem;
    padding: 0.75rem 2rem;
  }
}

.project-images {
  display: grid;
  grid-template-columns: 40% 1fr;
  gap: clamp(0.75rem, 1.2vw, 1rem);
}

.project-col-left {
  display: flex;
  flex-direction: column;
  gap: clamp(0.75rem, 1.2vw, 1rem);
}

.project-images img {
  width: 100%;
  object-fit: cover;
  border-radius: 40px;
}

.project-img-sm-top {
  height: clamp(130px, 16vw, 230px);
}
.project-img-sm-bot {
  height: clamp(160px, 22vw, 340px);
}
.project-img-tall {
  min-height: 320px;
  height: 100%;
}

@media (max-width: 767px) {
  .project-stack {
    padding-bottom: calc(82vh - 4.25rem);
  }

  .project-card-top {
    grid-template-columns: auto 1fr;
  }

  .project-card .btn-ghost {
    grid-column: 1 / -1;
    width: max-content;
  }

  .project-images {
    grid-template-columns: 1fr;
  }

  .project-col-left {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .project-images img {
    border-radius: 24px;
  }

  .project-img-sm-top,
  .project-img-sm-bot {
    height: 150px;
  }

  .project-img-tall {
    min-height: 240px;
  }
}

.page-home .site-footer {
  background: #0c0c0c;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.page-home .hero-overlay {
  display: none;
}

.page-home .svs-progress-fill {
  background: linear-gradient(
    to top,
    #bbccd7 0%,
    rgba(187, 204, 215, 0.5) 100%
  );
}

.about-section .btn-contact {
  opacity: 1;
  transform: none;
}
