/*!
 * Adapted from "Endless" by Weblisy
 * https://21st.dev/@helloweblisy/components/endless
 * Ported to plain JavaScript/CSS (no React) and modified for choicedoc.

MIT License

Copyright (c) Weblisy

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/
/* 초이스닥 홈 — 원본 'Endless' 스타일 그대로(11/21 밤 「모양 아무것도 바꾸지 말고 사진만 바꿔」). 글자 하나 고치지 않음. */
.endless-root,
.endless-root *,
.endless-root *::before,
.endless-root *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.endless-root {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background-color: #000000;
  color: #ffffff;
  font-family: inherit;
  user-select: none;
  pointer-events: none;
}

.endless-root .endless-scene {
  position: absolute;
  inset: 0;
  -webkit-perspective: 1100px;
  perspective: 1100px;
  -webkit-perspective-origin: 50% 50%;
  perspective-origin: 50% 50%;
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
}

.endless-root .endless-world {
  position: absolute;
  inset: 0;
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
}

.endless-root .endless-plane {
  position: absolute;
  top: 50%;
  left: 50%;
  background-color: #000000;
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
  transform-origin: 50% 50%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: transform;
}

.endless-root .endless-plane img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.endless-root .endless-title {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 50;
  transform: translate(-50%, -50%);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .endless-root .endless-title {
    font-size: 1.375rem;
  }
}

@media (min-width: 1200px) {
  .endless-root .endless-title {
    font-size: 1.875rem;
  }
}

.endless-root .endless-footer {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  transform: translateX(-50%);
  color: #707070;
}

@media (min-width: 768px) {
  .endless-root .endless-footer {
    bottom: 2rem;
  }
}

.endless-root .endless-globe {
  display: block;
  flex-shrink: 0;
}

.endless-root .endless-caption {
  color: #707070;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.3;
  text-align: center;
  white-space: nowrap;
}

/* iOS WebKit flattens nested 3D when an ancestor uses overflow: hidden. */
@supports (-webkit-touch-callout: none) {
  .endless-root {
    overflow: visible;
    -webkit-clip-path: inset(0);
    clip-path: inset(0);
  }
}

/* 11/21 밤 사장님 「내용을 이렇게 변경해줘」 — 가운데 글만 남색 칸 시절처럼(금색 Our works. + 흰 큰 제목 + 안내 한 줄). 바탕·화면 움직임은 원본 그대로 */
.endless-root .endless-copy { position: absolute; top: 50%; left: 50%; z-index: 50; transform: translate(-50%, -50%); width: min(92%, 820px); text-align: center; }
.endless-root .endless-copy::before { content: ""; position: absolute; inset: -60px -90px; z-index: -1; background: radial-gradient(closest-side, rgba(7, 13, 34, .88), rgba(7, 13, 34, 0)); }
/* 11/21 밤 「영문을 진하게, 흐려 보이지 않게」 → 굵은 기울임(700)·획 두꺼운 광학 크기·밝은 금색·곤색 그림자 */
.endless-root .endless-copy .en { font-family: var(--serif-en); font-style: italic; font-weight: 700; font-variation-settings: "opsz" 18; font-size: clamp(56px, 7.4vw, 128px); line-height: 1; letter-spacing: -.02em; color: #f0dcae; margin: 0 0 14px; text-shadow: 0 2px 20px rgba(7, 13, 34, .95), 0 0 3px rgba(7, 13, 34, .8); }
.endless-root .endless-copy h2 { color: #fff; font-size: clamp(28px, 3.4vw, 52px); font-weight: 800; line-height: 1.25; letter-spacing: -.042em; margin: 0; text-shadow: 0 2px 18px rgba(7, 13, 34, .9); }
.endless-root .endless-copy .sub { margin: 18px 0 0; font-size: 15px; color: #c3cad9; text-shadow: 0 1px 10px rgba(7, 13, 34, .95); }
.endless-root .endless-copy a { color: var(--gold-soft); font-weight: 600; white-space: nowrap; pointer-events: auto; }
@media (max-width: 760px) { .endless-root .endless-copy::before { inset: -30px -20px; } }

/* 11/21 밤 사장님 「색깔은 검정색 말고 곤색으로」 → 바탕을 사이트 남색 칸과 같은 곤색(은은한 금빛)으로, 화면 뒷면도 곤색 */
.endless-root { background: var(--glow), var(--night); }
.endless-root .endless-plane { background-color: var(--night); }

/* 11/21 밤 「글자가 또렷하게, 작은 글씨는 안 보여」 → 안내 한 줄을 키우고 곤색 둥근 판 위에 올림 */
.endless-root .endless-copy .sub { display: inline-block; margin: 24px 0 0; font-size: clamp(15px, 1.25vw, 18px); font-weight: 500; line-height: 1.5; color: #eef1f6; background: rgba(7, 13, 34, .86); border: 1px solid rgba(220, 201, 163, .4); border-radius: 999px; padding: 11px 24px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); text-shadow: none; }
.endless-root .endless-copy .sub a { color: #f0dcae; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 760px) { .endless-root .endless-copy .sub { font-size: 15px; padding: 10px 16px; border-radius: 16px; } }

/* 11/22 사장님 「(보내 준 글을) 첫 번째 이미지 자리에 넣어줘, 「직접 설계하고 만든 화면들」을 빼고」
   → 큰 제목 3줄(앞 두 줄은 흐린 회청색, 마지막 줄은 흰색 + 붉은 밑줄) + 곤색 판에 세 문장·뒤 화면 안내 (도구/insert_home_bridge.cjs) */
.endless-root .ec-ai { width: min(92%, 860px); }
.endless-root .ec-ai::before { inset: -110px -160px; background: radial-gradient(closest-side, rgba(7, 13, 34, .93), rgba(7, 13, 34, .55) 62%, rgba(7, 13, 34, 0)); }
.endless-root .ec-ai h2 { font-size: clamp(36px, 4.6vw, 68px); line-height: 1.14; letter-spacing: -.048em; text-shadow: 0 2px 22px rgba(7, 13, 34, .95), 0 0 4px rgba(7, 13, 34, .8); }
.endless-root .ec-ai .b-old { color: #b6bfd3; font-weight: 700; }
.endless-root .ec-ai .b-no { color: #fff; background: linear-gradient(90deg, rgba(214,110,102,.75), rgba(214,110,102,.25)) no-repeat 0 94% / 100% .13em; padding-bottom: .05em; }
.endless-root .ec-card { margin: 34px auto 0; max-width: 680px; padding: 24px 32px 0; border-radius: 22px; background: rgba(7, 13, 34, .84); border: 1px solid rgba(220, 201, 163, .42); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.endless-root .ec-card p { margin: 0; text-shadow: none; }
.endless-root .ec-card .b1 { font-size: clamp(16px, 1.35vw, 19px); color: #c9d0de; }
.endless-root .ec-card .b2 { margin-top: 6px; font-size: clamp(22px, 2.2vw, 30px); font-weight: 800; letter-spacing: -.035em; line-height: 1.3; color: #fff; }
.endless-root .ec-card .b2 em { font-style: normal; color: #f0dcae; }
.endless-root .ec-card .b3 { margin-top: 12px; font-size: clamp(15.5px, 1.3vw, 18px); line-height: 1.65; color: #c9d0de; }
.endless-root .ec-card .b3 b { color: #fff; }
.endless-root .ec-card .ec-foot { margin: 20px -32px 0; padding: 13px 20px 15px; border-top: 1px solid rgba(220, 201, 163, .22); font-size: 14.5px; color: #aab3c6; }
.endless-root .ec-card .ec-foot a { color: #f0dcae; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 760px) {
  .endless-root .ec-ai { width: calc(100% - 32px); }
  .endless-root .ec-ai::before { inset: -40px -16px; }
  .endless-root .ec-ai h2 { font-size: clamp(32px, 9vw, 40px); }
  .endless-root .ec-card { margin-top: 24px; padding: 20px 18px 0; border-radius: 18px; }
  .endless-root .ec-card .ec-foot { margin: 16px -18px 0; padding: 12px 14px 14px; font-size: 13.5px; }
}
.endless-root .ec-card .nw { white-space: nowrap; }
