:root {
  --bg: #051624;
  --fg: #fff;
  --blue: #4ab5ff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html.lenis {
  scroll-behavior: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

h1,
h2,
p {
  margin: 0;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 5px;
}

@media (width <=1024px) {
  .hide-1024 {
    display: none;
  }
}

/* ===== 히어로 (숫자 장면 + 입자 포트폴리오 카드) ===== */
.main-page {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--fg);
  font-family: Pretendard, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* 전체 스크롤 길이. 이 높이 안에서 .scene이 sticky로 고정됩니다. */
.main-visual {
  position: relative;
  height: 1400svh;
}

.scene {
  /* position:sticky였던 자리. 이제 GSAP ScrollTrigger의 pin이 고정을 담당합니다(main2026.js). */
  height: 100svh;
  min-height: 650px;
  overflow: hidden;
  isolation: isolate;
}

.scene-background {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 50% 61%, #07325180 0%, #051c3240 36%, transparent 69%),
    #06090e;
}

/* 비주얼 영역이 화면을 실제로 벗어날 때(sticky 고정이 풀리고 스크롤에 딸려 나갈 때) 전체를 어둡게 합니다. */
.scene-exit-dim {
  position: absolute;
  inset: 0;
  /* 아래에서 위로 번지는 와이프. 완전한 단색 구간은 짧게(30%)만 두고 나머지 70%는
     넓은 그라데이션으로 부드럽게 풀어, 단색 느낌이 아니라 은은하게 번지도록 합니다.
     exitDim=0이면 전부 투명합니다. */
  background: linear-gradient(to top,
      var(--bg) 0%,
      var(--bg) calc(var(--exit-dim, 0) * 30%),
      transparent calc(var(--exit-dim, 0) * 100%));
  pointer-events: none;
  /* exitDim이 0보다 커지는 순간에만 다른 콘텐츠 위로 올라오도록 z-index도 0/1로 전환합니다. */
  z-index: var(--exit-z, 0);
}

.scene canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.intro-copy {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.title-top,
.title-bottom {
  position: absolute;
  display: block;
  font-size: clamp(48px, 7.7vw, 152px);
  font-weight: 400;
  line-height: 1.13;
  letter-spacing: -.055em;
  white-space: nowrap;
  text-shadow: 0 2px 20px #05090c44;
}

.title-top {
  top: 15%;
  left: 3%;
}

.title-bottom {
  right: 3%;
  bottom: 12%;
}

.intro-copy p {
  position: absolute;
  top: 51%;
  left: 50%;
  width: max-content;
  max-width: 90%;
  transform: translate(-50%, -50%);
  color: #dce8ec;
  font-size: 24px;
  line-height: 1.55;
  letter-spacing: -.01em;
  text-align: center;
  text-shadow: 0 1px 14px #02070f, 0 0 30px #02070f;
}

.number-copy {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  text-align: center;
}

.number-pre {
  position: absolute;
  top: 17%;
  right: 0;
  left: 0;
  color: #99b7c8;
  font-size: 13px;
  letter-spacing: .16em;
}

.number-copy h2 {
  position: absolute;
  top: 66%;
  right: 4%;
  left: 4%;
  font-size: clamp(32px, 4.5vw, 78px);
  font-weight: 400;
  letter-spacing: -.04em;
}

.number-copy p {
  position: absolute;
  top: 79%;
  right: 5%;
  left: 5%;
  color: #a3b0b7;
  font-size: 16px;
  line-height: 1.6;
}

.fallback-number {
  position: absolute;
  top: 27%;
  right: 0;
  left: 0;
  opacity: 1;
  font-size: clamp(90px, 20vw, 300px);
  line-height: 1;
  letter-spacing: -.05em;
}

.webgl-ready .fallback-number {
  display: none;
}

.outro-copy {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  opacity: 0;
  pointer-events: none;
  text-align: center;
}

.outro-copy>span {
  color: #809eaf;
  font-size: 12px;
  letter-spacing: .12em;
}

.outro-copy h2 {
  font-size: clamp(36px, 5.5vw, 94px);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -.055em;
}

.outro-copy a {
  padding: 15px 0;
  border-bottom: 1px solid #ffffff55;
  font-size: 14px;
}

.scene-footer {
  position: absolute;
  right: 3%;
  bottom: 30px;
  left: 3%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #8fa0a9;
  font-size: 10px;
  letter-spacing: .08em;
  /* z-index: 1; */
}

.scene-dots {
  display: flex;
  gap: 20px;
}

.scene-dots button {
  padding: 12px 0;
  opacity: .4;
  font-size: 11px;
  transition: opacity .3s;
}

.scene-dots button.active {
  opacity: 1;
  color: #fff;
}

.scene-actions {
  display: flex;
  gap: 24px;
}

.scene-actions a,
.scene-actions button {
  padding: 12px 0;
  font-size: 11px;
  letter-spacing: .08em;
}

.scene-skip {
  color: #fff;
}

.cursor {
  display: none;
}

@media (hover: hover) and (pointer: fine) {

  .main-page,
  .main-page a,
  .main-page button,
  .main-page .faq-item summary {
    cursor: none;
  }

  .cursor {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    display: block;
    width: 28px;
    height: 28px;
    margin: -14px 0 0 -14px;
    border: 1px solid #fff;
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    mix-blend-mode: difference;
    transition: transform .15s, opacity .2s;
  }

  .cursor::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 4px;
    margin: -2px 0 0 -2px;
    border-radius: 50%;
    background: #fff;
  }

  .cursor.is-visible {
    opacity: 1;
  }

  .cursor.is-active {
    transform: scale(1.6);
  }
}

.scroll-progress {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: #ffffff0e;
}

.scroll-progress i {
  display: block;
  width: 0;
  height: 100%;
  background: #289ce9;
}

/* 포트폴리오. 입자 장면 안에서 --reveal(0~1)에 따라 이미지가 먼저, 텍스트가 뒤따라 나타납니다. */
.work {
  --reveal: 0;
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 5vw;
  padding: 0 5% 6vh;
  pointer-events: none;
}

.work:nth-of-type(even) .work-image {
  order: 2;
}

.work-image {
  margin: 0;
  overflow: hidden;
  border-radius: 6px;
  max-height: 62vh;
  aspect-ratio: 7 / 5;
  background: #121620;
  box-shadow: 0 30px 80px #02070f99;
  opacity: var(--reveal);
  transform: translateY(calc((1 - var(--reveal)) * 60px));
}

.work-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* WebGL이 살아 있으면 이미지는 입자로 그려지므로 DOM 이미지는 자리만 차지합니다. (픽셀 소스 겸 미지원 대체) */
.webgl-ready .work-image {
  visibility: hidden;
  transform: none;
  box-shadow: none;
}

.work-copy {
  opacity: clamp(0, calc(var(--reveal) * 1.5 - .5), 1);
  transform: translateY(calc((1 - var(--reveal)) * 40px));
  text-shadow: 0 1px 14px #02070f, 0 0 30px #02070f;
}

.work-index {
  display: block;
  color: #99b7c8;
  font-size: 11px;
  letter-spacing: .12em;
}

.work h3 {
  margin: 18px 0 0;
  font-size: clamp(28px, 3vw, 48px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -.04em;
}

.work p {
  margin-top: 20px;
  max-width: 34em;
  color: #a3b0b7;
  font-size: 15px;
  line-height: 1.7;
  word-break: keep-all;
}

.work a {
  display: inline-block;
  margin-top: 28px;
  padding: 12px 0;
  border-bottom: 1px solid #ffffff55;
  font-size: 14px;
}

/* 레이아웃이 구조적으로 바뀌는 지점(그리드→1열, 장식 요소 숨김)은 768px, 크기·위치 미세조정은
   640px로 나눴습니다. 더 넓은 1200/1024px에는 히어로 쪽에 건드릴 만한 게 따로 없어 비웠습니다
   (제목류는 이미 clamp()로 유동 크기라 그 구간에서 자연스럽게 줄어듭니다). */
@media (max-width: 768px) {
  .work {
    /* 좁아지면 이미지+텍스트가 위쪽에 붙어 보여서 세로로 가운데 정렬합니다. */
    align-content: center;
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 0 5% 12vh;
  }

  .work:nth-of-type(even) .work-image {
    order: 0;
  }

  .scene-hint {
    display: none;
  }
}

@media (max-width: 640px) {
  .main-visual {
    height: 1250svh;
  }

  .scene {
    min-height: 600px;
  }

  .title-top {
    top: 20%;
    left: 5%;
    font-size: 11.5vw;
  }

  .title-bottom {
    right: 5%;
    bottom: 19%;
    font-size: 10vw;
  }

  .intro-copy p {
    width: 84%;
    max-width: 450px;
    font-size: 12px;
    line-height: 1.75;
    word-break: keep-all;
  }

  .scene-footer {
    right: 5%;
    bottom: 22px;
    left: 5%;
  }

  .scene-dots {
    gap: 18px;
  }

  .number-pre {
    top: 24%;
    font-size: 10px;
  }

  .number-copy h2 {
    top: 62%;
    font-size: 30px;
  }

  .number-copy p {
    top: 73%;
    font-size: 14px;
    word-break: keep-all;
  }

  .outro-copy {
    padding: 0 5%;
  }

  .outro-copy h2 {
    font-size: 9vw;
  }

  .work-image {
    max-height: 36vh;
    aspect-ratio: 16 / 10;
  }

  .work h3 {
    font-size: 26px;
  }

  .work p {
    font-size: 13px;
    line-height: 1.6;
  }
}

/* ===== 공유 타이틀 (Work Process / Portfolio 두 섹션이 같이 씁니다) ===== */

.title-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
}

/* .title-box는 Work Process/Portfolio 두 섹션이 공유하는 큰 타이틀입니다. */
.title-box span {
  color: #FFF;
  font-size: 5rem;
  font-weight: 400;
  line-height: 100%;
  text-transform: capitalize;
}

.title-box h2 {
  color: #FFF;
  font-family: "Times New Roman";
  font-size: 5rem;
  font-style: italic;
  font-weight: 400;
  line-height: 100%;
  text-transform: capitalize;
}

.title-box h2 span {
  font-family: pretendard;
}

@media (max-width: 1024px) {

  .title-box span,
  .title-box h2 {
    font-size: 3.8rem;
  }
}

@media (max-width: 768px) {

  .title-box span,
  .title-box h2 {
    font-size: 2.6rem;
  }
}

/* ===== Work Process (핀 고정 + 계단식 카드 성장) ===== */

.main-work {
  min-height: 100vh;
  background: var(--bg);
}

.main-work .title-copy p {
  color: #FFF;
  font-size: 1rem;
  font-weight: 400;
  line-height: 150%;
}

/* Work Process 카드는 모바일 포함 모든 화면 크기에서 핀 고정됩니다(reduced-motion 제외).
   641px 이상에서는 카드가 계단식으로 겹치며 자라납니다. 640px 이하에서는 계단식 성장 없이 카드가
   처음부터 다 펼쳐진 채로, 핀 구간 동안 가로로 슬라이드해서 지나갑니다(main2026.js paintProcess). */
.process-pin-wrap {
  position: relative;
  padding: 0 40px;
  height: 500vh;
  box-sizing: border-box;
}

.process-sticky {
  display: flex;
  flex-direction: column;
  /* gap: 100px; */
  padding: 40px 0;
  height: 100svh;
  box-sizing: border-box;
}

@media (max-width: 1200px) {
  .process-pin-wrap {
    padding-right: 28px;
    padding-left: 28px;
  }
}

@media (max-width: 1024px) {
  .process-pin-wrap {
    padding-right: 20px;
    padding-left: 20px;
  }
}

/* Work Process 핀이 걸려있는 동안(카드가 자라나기 시작하면, main2026.js)만 타이틀을 줄입니다. */
.process-sticky .title-box.is-pinned span,
.process-sticky .title-box.is-pinned h2 {
  font-size: 3rem;
}

.process-sticky .title-box span,
.process-sticky .title-box h2 {
  transition: font-size .3s ease;
}

.process-sticky .title-wrap {
  flex: none;
}

.process-list {

  margin-block: auto;
  display: flex;
  align-items: flex-end;
  gap: 20px;
  will-change: transform;
}

.process-card {
  --open: 0;
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  justify-content: flex-end;
  width: min(514px, 82vw);
  height: calc(var(--open) * 100%);
  background: #11212f;
  overflow: hidden;
}

.process-reveal {
  flex: 0 0 auto;
  opacity: var(--open);
}

.process-number {
  display: block;
  padding: 34px 0 0 40px;
  color: #fff;
  font-size: 16px;
}

.process-image {
  display: block;
  width: 100%;
  height: 280px;
  padding: 10px 25px;
  object-fit: contain;
  box-sizing: border-box;
  opacity: var(--image-open, 0);
  animation: process-float var(--float-duration, 4.5s) ease-in-out var(--float-delay, 0s) infinite;
}

/* 이미지가 둥둥 떠 있는 느낌을 주는 완만한 상하 움직임. --float-amp로 카드마다 폭을 다르게 줍니다. */
@keyframes process-float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(var(--float-amp, -14px));
  }
}

/* 카드마다 주기·시작 지점·폭을 다르게 줘서 이미지들이 서로 다른 리듬으로 떠다니게 합니다.
   음수 delay는 이미 그만큼 재생된 상태에서 바로 시작해, 나타나는 순간부터 제각각으로 보입니다. */
.process-card:nth-child(1) .process-image {
  --float-amp: -14px;
  --float-duration: 4.5s;
  --float-delay: 0s;
}

.process-card:nth-child(2) .process-image {
  --float-amp: -10px;
  --float-duration: 5.3s;
  --float-delay: -1.8s;
}

.process-card:nth-child(3) .process-image {
  --float-amp: -17px;
  --float-duration: 3.9s;
  --float-delay: -0.6s;
}

.process-card:nth-child(4) .process-image {
  --float-amp: -12px;
  --float-duration: 5.0s;
  --float-delay: -2.4s;
}

.process-card:nth-child(5) .process-image {
  --float-amp: -16px;
  --float-duration: 4.2s;
  --float-delay: -1.1s;
}

.process-copy {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  padding: 30px 25px;
  box-sizing: border-box;
  opacity: var(--open);
}

.process-title {
  margin: 0;
  color: #fff;
  font-size: clamp(28px, 3vw, 48px);
  line-height: 1;
}

.process-title span {
  display: block;
  font-weight: 400;
}

.process-title em {
  display: block;
  margin-top: 6px;
  font-family: "Times New Roman";
  font-style: italic;
  font-weight: 400;
  text-transform: capitalize;
}

.process-body {
  margin: 0;
  color: rgba(255, 255, 255, .8);
  font-size: 16px;
  line-height: 1.5;
}

.process-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  /* 부모 .process-copy가 이미 --open으로 페이드하므로 여기선 중복으로 곱하지 않습니다. */
}

.process-tags li {
  padding: 6px 16px;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-size: 14px;
}

@media (width <=1024px) {
  .main-work .title-wrap {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

@media (max-width: 768px) {


  .process-sticky {
    gap: 40px;
  }

  .process-sticky .title-box.is-pinned span,
  .process-sticky .title-box.is-pinned h2 {
    font-size: 2.6rem;
  }
}

@media (max-width: 640px) {

  /* .title-copy {
    display: none;
  } */

  /* 이 폭에서는 타이틀이 .process-pin-wrap 밖으로 빠져(main2026.js) 핀과 별개로 흐릅니다. */
  .main-work>.title-wrap {
    padding: 40px 20px 0;
  }

  .process-card {
    justify-content: flex-start;
    width: min(420px, 86vw);
  }

  .process-image {
    height: 220px;
  }
}

/* ===== 포트폴리오 카드 + 상세 모달 ===== */

.main-portfolio {
  padding: 12vh 40px;
  background: var(--bg);
  box-sizing: border-box;
}

.portfolio-all {
  justify-self: end;
  padding: 8px 20px;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 999px;
  color: #fff;
  font-family: "Times New Roman";
  font-size: 20px;
  white-space: nowrap;
  box-sizing: border-box;
  transition: background-color .25s, color .25s, border-color .25s;
}

.portfolio-all:hover,
.portfolio-all:focus-visible {
  background: #fff;
  border-color: #fff;
  color: #111;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 100px;
}

.portfolio-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  aspect-ratio: 600 / 754;
  padding: 34px 29px;
  overflow: hidden;
  border-radius: 6px;
  /* 어드민에서 색상을 안 넣은 경우를 대비한 기본값입니다. */
  background: var(--card-bg, #313131);
}

.portfolio-card .portfolio-box {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  gap: 34px;
  box-sizing: border-box;
}

.portfolio-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 100%;
  padding-inline: 50px;
  box-sizing: border-box;
}

/* 호버(:hover/:focus-visible) 시 카드 전체가 어둡게 블러 처리됩니다. */
.portfolio-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, .60);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  opacity: 0;
  visibility: hidden;
  transition: .35s;
  pointer-events: none;
}

.portfolio-card.is-revealed::after,
.portfolio-card:hover::after,
.portfolio-card:focus-visible::after {
  opacity: 1;
  visibility: visible;
}

/* 프로젝트명 + +/- 버튼. 블러 위에 떠서 호버 여부와 상관없이 항상 보입니다. */
.portfolio-head {
  position: relative;
  z-index: 2;
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;

}

.portfolio-name {
  color: #FFF;
  font-size: 20px;
  font-weight: 600;
  line-height: 100%;
}

.portfolio-icon {
  position: relative;
  width: 24px;
  height: 24px;
  flex: none;
}

.portfolio-icon::before,
.portfolio-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: #fff;
  transition: transform .3s;
}

.portfolio-icon::before {
  width: 14px;
  height: 2px;
  transform: translate(-50%, -50%);
}

.portfolio-icon::after {
  width: 2px;
  height: 14px;
  transform: translate(-50%, -50%);
}

/* 호버하면 세로 막대가 오그라들며 +가 -로 바뀝니다. */
.portfolio-card:hover .portfolio-icon::after,
.portfolio-card:focus-visible .portfolio-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

/* 호버해야 나타나는 태그·링크. 소개글이 길어서 카드 높이를 넘으면(.portfolio-box가 flex:1로
   차지한 공간 안에서) 잘리는 대신 이 안에서만 스크롤됩니다. */
.portfolio-info {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
  overflow-y: auto;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .35s, transform .35s;
  /* 어두운 블러 배경 위라 기본(밝은) 스크롤바 대신 얇고 옅은 흰색으로 맞춥니다. */
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .4) transparent;
}

.portfolio-info::-webkit-scrollbar {
  width: 4px;
}

.portfolio-info::-webkit-scrollbar-track {
  background: transparent;
}

.portfolio-info::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .4);
  border-radius: 2px;
}

.portfolio-info::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, .6);
}

.portfolio-card:hover .portfolio-info,
.portfolio-card:focus-visible .portfolio-info {
  opacity: 1;
  transform: translateY(0);
}

.portfolio-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.portfolio-tag {
  padding: 10px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.10);
  font-size: 14px;
  font-weight: 600;
  line-height: 100%;
}

.portfolio-copy {
  color: rgba(255, 255, 255, 0.80);
  font-size: 16px;
  font-weight: 400;
  line-height: 150%;
}

/* 년도. 태그·링크와 같이 호버해야 우측 하단에 나타납니다. */
.portfolio-year {
  align-self: flex-end;
  position: relative;
  z-index: 2;
  color: rgba(255, 255, 255, .8);
  font-size: 16px;
  opacity: 0;
  transition: opacity .35s;
}

.portfolio-card:hover .portfolio-year,
.portfolio-card:focus-visible .portfolio-year {
  opacity: 1;
}

/* 포트폴리오 카드 클릭 팝업(.portfolio-modal*)은 portfolio_index.css에 정의돼 있습니다 —
   main_new.php와 portfolio_index.php 둘 다 head_new.php에서 main2026.css, portfolio_index.css를
   같이 불러오므로 여기서 중복 정의할 필요가 없습니다(모바일 오버라이드도 같이 옮겼습니다). */

@media (max-width: 1200px) {
  .main-portfolio {
    padding-right: 28px;
    padding-left: 28px;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  .main-portfolio {
    padding-right: 20px;
    padding-left: 20px;
  }


}

@media (max-width: 768px) {
  .portfolio-card {
    aspect-ratio: 2 / 1;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  /* 터치 기기에서는 hover가 탭 후에도 눌어붙어 보이거나 아예 안 먹히기도 해서, 768px 이하에서는
     hover 대신 두 번 눌러 여는 방식으로 바꿉니다: 첫 번째 탭은 카드에 .is-revealed를 붙여
     오버레이·+/- 아이콘·태그/링크·연도만 켜고(main2026.js), 그 상태에서 같은 카드를 다시 누르면
     그때 팝업이 열립니다. */
  .portfolio-card:hover::after {
    opacity: 0;
  }

  .portfolio-card.is-revealed::after {
    opacity: 1;
  }

  .portfolio-card:hover .portfolio-icon::after {
    transform: translate(-50%, -50%);
  }

  .portfolio-card.is-revealed .portfolio-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
  }

  .portfolio-card:hover .portfolio-info {
    opacity: 0;
    transform: translateY(12px);
  }

  .portfolio-card.is-revealed .portfolio-info {
    opacity: 1;
    transform: translateY(0);
  }

  .portfolio-card:hover .portfolio-year {
    opacity: 0;
  }

  .portfolio-card.is-revealed .portfolio-year {
    opacity: 1;
  }
}

/* ===== 흰 배경 → 파란 원형 그라데이션 (Glow) ===== */

/* 흰 배경 → 파란 원형 그라데이션 섹션. 가로 1920px 기준 디자인 좌표를 그대로 vw로 환산해 배치하므로
   섹션 자체를 aspect-ratio로 고정해야 비율이 어긋나지 않습니다. JS(main2026.js)가 스크롤 진행률에 맞춰
   .glow-orb의 --r(원 반지름)과 텍스트 opacity, .glow-float 각각의 --reveal을 올립니다. */
.glow-pin-wrap {
  position: relative;
  /* .main-glow(100vh)가 고정된 채로 머무는 동안 진행률 0→1이 채워질 여유분입니다. 여유분이 클수록
     같은 진행률 구간(예: 사진이 올라오는 0.5~1)을 스크롤하는 데 더 오래 걸려, 애니메이션이
     휘리릭 지나가지 않고 천천히 보입니다.
     320vh(핀 유지 220vh + main-glow 자체 100vh) + 90vh(main2026.js의 glowExitPx, 카드 퇴장·dim
     구간용 추가 핀 시간). 이 여유분이 핀이 실제로 필요한 스크롤 거리보다 짧으면 뒤 내용(main-seo
     spacer)이 흘러넘쳐 다음 섹션과 겹쳐 보입니다 — glowExitPx를 바꾸면 이 값도 맞춰 바꿔야 합니다. */
  height: 410vh;
}


.main-glow {
  /* position:sticky였던 자리. 이제 GSAP ScrollTrigger의 pin이 고정을 담당합니다(main2026.js).
     z-index를 명시해 다음 섹션(.main-seo)보다 항상 위에 그려지도록 고정합니다 — 안 그러면
     같은 z-index:auto라도 DOM 순서상 나중에 오는 .main-seo가 위로 그려져서, 딤드가 끝나기도
     전에 다음 섹션이 그 위로 스크롤되어 올라오는 것처럼 보입니다. */
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  overflow: hidden;
  background: #fff;
}

/* 핀이 풀린 뒤 다음 섹션(.main-seo, #050407)으로 넘어가는 구간을 어둡게 덮어, 흰 배경이 뚝
   끊기지 않고 자연스럽게 이어지도록 합니다. scene-exit-dim과 동일한 방식(main2026.js가 --exit-dim/
   --exit-z를 올림)이며, 아래에서 위로 번지므로 카드들도 하단부터 가려지며 사라지는 것처럼 보입니다. */
.glow-exit-dim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      #050407 0%,
      #050407 calc(var(--exit-dim, 0) * 30%),
      transparent calc(var(--exit-dim, 0) * 100%));
  pointer-events: none;
  z-index: var(--exit-z, 0);
}

/* 실제 요소들은 1920×920 기준 좌표를 vw로 그대로 옮겨 담았으므로, 이 비율을 유지하는 프레임 안에서만
   배치됩니다. 프레임은 sticky 높이(100vh)보다 작을 수 있어 가운데 정렬됩니다. */
.glow-frame {
  position: relative;
  width: 100%;
  max-height: 100%;
  aspect-ratio: 1920 / 920;
}

/* clip-path로 반지름만 키우면 눈에 보이는 조각이 전체 그라데이션 중 중심의 극히 일부(진한 색 한
   덩어리)만 드러나 버립니다. 대신 처음부터 그라데이션을 다 담고 있는 원을 transform:scale로
   키우면, transform은 배경까지 함께 확대하므로 작을 때도 색 단계가 그대로 비율 유지됩니다. */
.glow-orb {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 200vmax;
  height: 200vmax;
  border-radius: 50%;
  background: radial-gradient(70.95% 70.95% at 50% 48.28%, #306BFF 0%, #99E4FF 100%);
  filter: blur(56.099998474121094px);
  transform: translate(-50%, 50%) scale(var(--r, 0));
}

.glow-text {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: 90%;
  margin: 0;
  transform: translate(-50%, -50%);
  color: #fff;
  font-weight: 600;
  font-size: clamp(18px, 1.667vw, 32px);
  line-height: 1.5;
  text-align: center;
}

/* 스크롤에 맞춰 아래에서 회전하며 떠오르는 이미지·색상 박스. --reveal(0~1)은 JS가 올립니다.
   --glow-scale(기본 1)은 768px 이하에서 .glow-photo만 키워 화면이 비어 보이지 않도록 하는 배율입니다.
   각 요소 중심 기준으로 커지므로 top/left 좌표는 그대로 둬도 됩니다.
   --exit(0~1, #main-glow에서 상속)은 핀이 풀린 뒤 카드가 위로 올라가며 사라지는 값입니다. */
.glow-float {
  --reveal: 0;
  position: absolute;
  /* 등장 때 rot deg → 0deg로 돌며 들어오고, 퇴장 때 멈추지 않고 0deg → -rot deg로 같은 방향으로
     계속 돌며 나갑니다(둘 다 같은 var(--rot) 기준이라 방향이 이어집니다). */
  transform: perspective(900px) translateY(calc((1 - var(--reveal)) * 34vw - var(--exit, 0) * 30vw)) rotateY(calc(((1 - var(--reveal)) - var(--exit, 0)) * var(--rot, -80deg))) scale(var(--glow-scale, 1));
  opacity: calc(var(--reveal) * (1 - var(--exit, 0)));
}

.glow-photo {
  margin: 0;
  overflow: hidden;
  border-radius: 1.04vw;
  box-shadow: 0 1vw 2.5vw #0025661a;
}

.glow-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.glow-photo-1 {
  top: 15.94vw;
  left: 5.94vw;
  width: 12.16vw;
  height: 12.16vw;
}

.glow-photo-2 {
  top: 21.46vw;
  left: 58.18vw;
  width: 26.93vw;
  height: 29.11vw;
}

.glow-photo-3 {
  top: -2.92vw;
  left: 76.82vw;
  width: 21.65vw;
  height: 21.65vw;
}

.glow-photo-4 {
  top: -9.22vw;
  left: 25.31vw;
  width: 23.06vw;
  height: 21.65vw;
}

.glow-photo-5 {
  top: 26.61vw;
  left: 21.15vw;
  width: 16.11vw;
  height: 18.43vw;
}

.glow-chip {
  border-radius: 1.4vw;
}

.glow-chip-1 {
  top: 23.96vw;
  left: 28.96vw;
  width: 9.64vw;
  height: 8.51vw;
  background: #456dca;
}

.glow-chip-2 {
  top: 5.1vw;
  left: 70.57vw;
  width: 2.67vw;
  height: 2.61vw;
  border-radius: .28vw;
  background: #48cad3;
}

.glow-chip-3 {
  top: 40.89vw;
  left: 85.42vw;
  width: 3.86vw;
  height: 3.86vw;
  border-radius: .57vw;
  background: #60c2ff;
}

@media (max-width: 768px) {

  /* 1920:920 비율을 그대로 쓰면 세로가 짧은 프레임이 100vh 안에서 가운데 정렬되며 위아래가
     크게 비어 보입니다. 프레임을 화면 높이만큼 채우고, 사진·칩의 top은 원래 프레임(920 기준)
     대비 비율(%)로 다시 잡아 늘어난 높이 전체에 퍼지도록 합니다. left/width/height(vw)는
     화면 폭 기준이라 그대로 둬도 됩니다. 사진은 --glow-scale로 1.4배 키워 화면을 더 채웁니다. */
  .glow-frame {
    height: 100%;
  }

  .glow-photo {
    --glow-scale: 1.4;
  }

  .glow-chip-1 {
    top: 50%;
  }

  .glow-chip-2 {
    top: 11%;
  }

  .glow-chip-3 {
    top: 85%;
  }

  .glow-photo-1 {
    top: 33%;
  }

  .glow-photo-2 {
    top: 44%;
  }

  .glow-photo-3 {
    top: 4%;
  }

  .glow-photo-4 {
    top: 10%;
  }

  .glow-photo-5 {
    top: 55%;
  }
}

/* ===== 검색엔진/AI 대응 소개 (SEO) ===== */

/* 검색엔진/AI 대응 소개. 우상단 이미지 + 타이틀/카피 + 4개 특징 카드. */
.main-seo {
  position: relative;
  padding: 12vh 40px;
  background: #050407;
  overflow: hidden;
  box-sizing: border-box;
}

.main-seo .seo-intro {
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  align-items: center;
}

.seo-media {
  /* position: absolute;
  top: 6vh;
  right: 5%; */
  width: min(747px, 38vw);
  aspect-ratio: 747 / 420;
  border-radius: 20px;
  overflow: hidden;
}

.seo-media img,
.seo-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}



.seo-copy {
  max-width: 40em;
  margin: 36px 0 0;
  color: rgba(255, 255, 255, .8);
  font-size: 16px;
  line-height: 1.6;
  word-break: keep-all;
}

.seo-grid {
  display: flex;
  align-items: flex-start;
  gap: 50px;
  margin-top: 100px;
}

/* 스크롤에 맞춰 카드가 하나씩 순차적으로 나타납니다. --reveal(0~1)은 JS(paintSeo)가 올립니다. */
.seo-card {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 24px;
  padding: 53px 32px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .1);
}

.seo-card:nth-child(2) {
  margin-top: 5.05vw;
}

.seo-card:nth-child(3) {
  margin-top: 10.47vw;
}

.seo-card:nth-child(4) {
  margin-top: 15.05vw;
}

.seo-card>div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.seo-icon {
  width: 58px;
  height: 58px;
}

.seo-card h3 {
  margin: 0;
  color: #fff;
  font-size: 22px;
  font-weight: 600;
}

.seo-card p {
  margin: 0;
  color: rgba(255, 255, 255, .8);
  font-size: 15px;
  line-height: 1.6;
  word-break: keep-all;
}

@media (max-width: 1200px) {
  .main-seo {
    padding-right: 28px;
    padding-left: 28px;
  }
}

@media (max-width: 1024px) {
  .main-seo {
    padding-right: 20px;
    padding-left: 20px;
  }
}

@media (max-width: 768px) {

  .main-seo .seo-intro {
    flex-direction: column;
    gap: 40px;
  }

  .seo-copy-wrap {
    width: 100%;
  }

  .seo-media {
    position: static;
    width: 100%;
    margin-top: 24px;
  }

  .seo-grid {
    flex-direction: column;
  }

  .seo-card:nth-child(2),
  .seo-card:nth-child(3),
  .seo-card:nth-child(4) {
    margin-top: 0;
  }
}

/* ===== 파트너 로고 마퀴 ===== */

/* 파트너 로고 무한 마퀴. 목록이 두 벌 이어붙어 있고(뒤쪽 절반은 aria-hidden), 정확히 그 절반
   너비만큼 translateX하면 끊김 없이 처음으로 되돌아간 것처럼 보입니다. */
.main-partners {
  overflow: hidden;
  padding: 60px 0;
  background: #050407;
}

.partners-track {
  display: flex;
  align-items: center;
  gap: 60px;
  width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
  /* transform은 JS(paintPartners)가 매 프레임 translateX로 갱신합니다. */
  will-change: transform;
}

.partners-track li {
  flex: none;
}

.partners-track img {
  display: block;
  height: 50px;
  width: auto;
}

/* ===== Now In Progress 목록 ===== */

/* 진행 중인 프로젝트 목록. */
.main-progress {
  padding: 12vh 40px;
  background: #050407;
}

.progress-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}



.progress-live {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 16px;
}

.progress-live i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3ecf6a;
  box-shadow: 0 0 0 0 #3ecf6a66;
  animation: progress-live-pulse 1.8s ease-out infinite;
}

@keyframes progress-live-pulse {
  0% {
    box-shadow: 0 0 0 0 #3ecf6a66;
  }

  100% {
    box-shadow: 0 0 0 8px #3ecf6a00;
  }
}

.progress-list {
  display: flex;
  flex-direction: column;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}

.progress-list li {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 24px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.progress-list li.progress-empty {
  justify-content: center;
  padding: 48px 16px;
  color: rgba(255, 255, 255, .6);
}

.progress-date {
  width: 100px;
  flex: none;
  color: rgba(255, 255, 255, .55);
  font-size: 16px;
}

.progress-place {
  width: 180px;
  flex: none;
  text-align: center;
  color: #fff;
  font-weight: 600;
  font-size: 18px;
}

.progress-name {
  flex: 1;
  min-width: 0;
  color: rgba(255, 255, 255, .55);
  font-size: 18px;
}

.progress-badge {
  flex: none;
  padding: 8px 16px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .06);
  color: #fff;
  font-family: "Times New Roman";
  font-weight: 700;
  font-size: 14px;
  text-align: center;
}

.progress-badge.is-new {
  background: #306bff;
}

@media (max-width: 768px) {
  .progress-list li {
    display: grid;
    grid-template-columns: 60px auto 100px;
    gap: 8px 24px;
  }

  .progress-name {
    grid-column: 1 / -1;
    order: 1;
    width: 100%;
  }
}

/* ===== FAQ 아코디언 ===== */

/* FAQ. 네이티브 details/summary — 별도 JS 없이 아코디언으로 동작합니다. */
.main-faq {
  position: relative;
  /* z-index:0을 같이 줘야 position:relative가 실제로 스태킹 컨텍스트를 만들어서, 안의
     z-index:-1 원들이 이 섹션 배경 위 / 본문 아래로만 붙습니다(없으면 더 먼 조상까지
     날아가서 페이지 전체 맨 뒤로 숨어버립니다). */
  z-index: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding: 12vh 40px;
  background: #050407;
}

/* 배경 장식용 흐린 원 두 개. position:absolute만으로는 크기가 0이라 안 보여서 width/height를
   border-radius 값과 맞춰 같이 넣고, z-index를 음수로 줘서 타이틀·FAQ 목록 뒤로 보냈습니다. */
.cicle-bg1,
.cicle-bg2 {
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.cicle-bg1 {
  top: 400px;
  left: 25%;
  width: 500px;
  height: 500px;
  border-radius: 500px;
  opacity: 0.3;
  background: #3D64FF;
  filter: blur(50px);
}

.cicle-bg2 {
  top: 560px;
  left: 3%;
  width: 600px;
  height: 600px;
  border-radius: 600px;
  opacity: 0.5;
  background: #183550;
  filter: blur(50px);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 48px;
}

.faq-item {
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 10px;
  padding: 30px 40px;
}

.faq-item[open] {
  background: #fff;
  border-color: #fff;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #fff;
  font-weight: 600;
  font-size: 20px;
  list-style: none;
}

/* 질문 텍스트는 h3로 감쌉니다(시맨틱 헤딩 — SEO/접근성 아웃라인용). 감싸지 않고 텍스트가
   summary(flex row)에 바로 들어가면 익명 flex item이 되어, 한글은 글자 사이마다 줄바꿈이
   가능해서 좁은 화면에서 한 글자씩 세로로 찌그러질 수 있습니다. flex:1로 남는 폭을 온전히
   차지하게 해서 정상적으로 줄바꿈되게 하고, h3 기본 스타일(margin·font-size·weight)은
   summary 쪽 스타일을 그대로 쓰도록 리셋합니다. */
.faq-item summary h3 {
  flex: 1;
  min-width: 0;
  margin: 0;
  color: inherit;
  font: inherit;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item[open] summary {
  color: #222;
}

.faq-item p {
  max-width: 800px;
  margin: 20px 0 0;
  color: #444;
  font-size: 16px;
  line-height: 1.5;
  word-break: keep-all;
}

.faq-item:not([open]) p {
  display: none;
}

/* Figma에서 추출한 실제 chevron-down 아이콘(흰색 stroke)입니다. 열린 항목은 배경이 흰색이라
   180도 뒤집고 filter:invert로 검게 바꿔 씁니다(자산 하나로 두 배경 다 커버). */
.faq-chevron {
  width: 20px;
  height: 20px;
  flex: none;
  transition: transform .2s;
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
  filter: invert(1);
}

@media (max-width: 1200px) {
  .main-faq {
    grid-template-columns: 1fr;
    padding-right: 28px;
    padding-left: 28px;
  }
}

@media (max-width: 1024px) {
  .main-faq {
    padding-right: 20px;
    padding-left: 20px;
  }
}

@media (max-width: 768px) {
  .main-faq {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .faq-item {
    padding: 20px 20px;
  }
}

@media (max-width: 640px) {
  .faq-item summary {
    font-size: 16px;
  }
}

/* ===== 푸터 (회사 정보 + 문의 폼) ===== */

/* 푸터: 로고·주소 + 문의 폼. */
.site-footer {
  padding: 0 40px 12vh;
  background: #050407;
}

.footer-card {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding: 40px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
}

.footer-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  /* 그리드 아이템 기본값(min-width:auto)이 내용의 최소 폭만큼 트랙을 밀어내 카드 전체가
     가로로 튀어나가는 걸 막습니다. */
  min-width: 0;
}


.footer-logo {
  display: block;
  width: 142px;
  height: auto;
}

.footer-tagline {
  margin: 20px 0 0;
  color: #fff;
  font-size: 16px;
  line-height: 1.5;
}

.footer-address {
  margin: 0;
  color: #fff;
  font-size: 16px;
  font-style: normal;
  line-height: 1.5;
}

.footer-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.footer-form h3 {
  margin: 0;
  color: #fff;
  font-family: "Times New Roman";
  font-style: italic;
  font-weight: 400;
  font-size: 40px;
}

.footer-form-row {
  display: flex;
  gap: 10px;
}

.footer-form label {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 10px;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 6px;
  background: rgba(255, 255, 255, .05);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  white-space: nowrap;
}

.footer-form input,
.footer-form textarea {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  color: #fff;
  font: inherit;
  font-weight: 400;
}

.footer-form input::placeholder,
.footer-form textarea::placeholder {
  color: rgba(255, 255, 255, .5);
}

.footer-form textarea {
  resize: vertical;
  align-self: flex-start;
  margin-top: 3px;
}

.footer-form-message {
  align-items: flex-start;
}

/* .footer-form-captcha {
  flex-direction: column;
  align-items: flex-start;
} */

.footer-form-captcha-img {
  display: flex;
  flex: none;
  align-items: center;
  padding: 0 15px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .05);
}

.footer-form-captcha-img img {
  display: block;
  height: 30px;
}

.footer-form-agree {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 18px;
  color: #fff;
  font-size: 16px;
}

.footer-form-agree label {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
}

.footer-form-agree input {
  flex: none;
}

.footer-form-agree a,
.footer-form-agree .footer-agree-more {
  border: 0;
  border-bottom: 1px solid #fff;
  background: none;
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  cursor: pointer;
}

/* 문의 폼 "전문보기" 팝업. 포트폴리오 모달(portfolio_index.css)과 구조는 비슷하지만
   이 페이지에서만 쓰여서 main2026.css에 둡니다. */
.privacy-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.privacy-modal[aria-hidden="true"] {
  display: none;
}

.privacy-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .7);
}

.privacy-modal-panel {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: min(720px, 100%);
  max-height: 80vh;
  overflow-y: auto;
  padding: 40px;
  border-radius: 8px;
  background: #fff;
  color: #111;
}

.privacy-modal-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 24px;
}

.privacy-modal-heading h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
}

.privacy-modal-close {
  position: relative;
  flex: none;
  width: 24px;
  height: 24px;
  color: #111;
}

.privacy-modal-close::before,
.privacy-modal-close::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 2px;
  background: currentColor;
  transform: translate(-50%, -50%) rotate(45deg);
}

.privacy-modal-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.privacy-modal-body {
  color: rgba(0, 0, 0, .7);
  font-size: 14px;
  line-height: 1.7;
  word-break: keep-all;
}

@media (width <=768px) {
  .privacy-modal-panel {
    padding: 24px;
  }
}

.footer-form button.main-submit {
  padding: 22px;
  border-radius: 6px;
  background: #fff;
  color: #000;
  font-weight: 600;
  font-size: 20px;
}

.footer-copyright {
  margin: 24px 0 0;
  color: #a3a3a3;
  font-size: 16px;
  text-align: center;
}

@media (max-width: 1200px) {
  .site-footer {
    padding-right: 28px;
    padding-left: 28px;
  }

  .footer-card {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 20px;
  }
}

@media (max-width: 1024px) {
  .site-footer {
    padding-right: 20px;
    padding-left: 20px;
  }
}

@media (max-width: 768px) {
  .footer-form-row {
    flex-direction: column;
  }

  .footer-form {
    order: 1;
  }

  .footer-info {
    order: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }

  .main-visual {
    height: auto;
  }

  .scene {
    position: relative;
    height: 760px;
  }

  .scene-dots {
    gap: 22px;
  }

  .work {
    position: relative;
    padding: 24px 5%;
  }

  #motion-toggle {
    display: none;
  }

  .webgl-ready .fallback-number {
    display: block;
  }

  .webgl-ready .work-image {
    visibility: visible;
  }

  .process-pin-wrap {
    height: auto;
  }

  .process-sticky {
    position: relative;
    height: auto;
    overflow-x: auto;
  }

  .process-list {
    padding-bottom: 20px;
  }

  .intro-copy p {
    top: 48%;
  }
}