/* ==========================================================================
   BRAND · 브랜드 이야기(/about/), Ether & Xync(/ai/), 404
   ========================================================================== */

:where(.brand) p { text-wrap: pretty; }

/* ======================= /about/ : 긴 글 ======================= */
.story { position: relative; isolation: isolate; padding: clamp(72px, 10vw, 136px) 0 clamp(80px, 10vw, 140px); }
.story-lines { position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; overflow: visible; }
.story-lines path { fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.story > :not(svg) { position: relative; width: min(100% - 64px, 660px); margin-inline: auto; }
@media (max-width: 600px) { .story > :not(svg) { width: calc(100% - 60px); } }

.story-title { font-family: var(--f-display); font-weight: var(--w-display); font-size: var(--t-h1); line-height: 1.14; letter-spacing: -0.02em; text-wrap: balance; }
.story-lead { margin-top: 22px; font-size: clamp(1.1rem, 1.6vw, 1.26rem); line-height: 1.8; color: var(--text-2); max-width: 30em; }

.story-sec { margin-top: clamp(72px, 9vw, 120px); }
.story-sec h2 { font-family: var(--f-display); font-weight: var(--w-display); font-size: clamp(1.65rem, 2.6vw, 2.1rem); letter-spacing: -0.02em; line-height: 1.3; }
.story-sec > p { margin-top: 18px; font-size: 1.08rem; line-height: 1.9; color: #C5CFDB; }

.story-name { margin: 30px 0 0; display: grid; gap: 30px; }
.sn { display: grid; grid-template-columns: 5.2rem 1fr; gap: 20px; align-items: baseline; padding-top: 22px; border-top: 1px solid var(--line); }
.sn dt { font-family: var(--f-serif); font-size: 2.3rem; line-height: 1; letter-spacing: -0.01em; }
.sn dd { margin: 0; font-size: 1.05rem; line-height: 1.88; color: #C5CFDB; }
.sn-ether dt { color: var(--ether); }
.sn-x dt { color: var(--spark); }
.sn-xync dt { color: var(--xync); }
@media (max-width: 520px) { .sn { grid-template-columns: 1fr; gap: 10px; } }

/* 두 줄기가 자리를 바꾸는 곳: 두 낱말 사이의 불꽃 */
.story-key { margin-top: clamp(120px, 14vw, 190px); margin-bottom: clamp(40px, 6vw, 80px); text-align: center; }
.story > .story-key { width: min(100% - 32px, 1100px); }
.key-motto {
  font-family: var(--f-display-latin); font-weight: 400; letter-spacing: -0.02em; line-height: 1.2;
  font-size: clamp(2.8rem, 6vw, 4.6rem); white-space: nowrap;
}
.key-gap { display: inline-block; position: relative; width: 1em; height: 0; vertical-align: 0.3em; }
.key-spark {
  position: absolute; left: 50%; top: 0; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.06), 0 0 18px 4px rgba(255, 255, 255, 0.35), 0 0 60px 16px rgba(190, 255, 240, 0.1);
}
.key-ko { margin-top: clamp(64px, 7vw, 92px); font-size: 1.2rem; font-weight: 700; letter-spacing: -0.02em; }
.key-body { margin: 14px auto 0; max-width: 31em; color: var(--text-2); font-size: 1.05rem; line-height: 1.85; text-wrap: balance; }
@media (max-width: 700px) {
  .key-motto { white-space: normal; font-size: clamp(2.6rem, 12.5vw, 3.4rem); }
  .key-motto .km { display: block; }
  .key-gap { display: block; width: auto; height: 64px; }
  .key-spark { top: 50%; }
  .key-ko { margin-top: 56px; }
}

.make { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.make h3 { font-size: 1.14rem; font-weight: 720; letter-spacing: -0.02em; }
.make h3 a { text-decoration: underline; text-decoration-color: var(--line-input); text-decoration-thickness: 1px; text-underline-offset: 6px; transition: text-decoration-color var(--d-2); }
.make h3 a:hover { text-decoration-color: currentColor; }
.make p { margin-top: 10px; font-size: 1.04rem; line-height: 1.88; color: #C5CFDB; }
.story-link { color: var(--ether); font-weight: 650; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.story-link:hover { color: var(--ether-2); }

.story-end { margin-top: clamp(80px, 10vw, 128px); padding-top: 40px; border-top: 1px solid var(--line); }
.end-line { font-size: clamp(1.2rem, 2vw, 1.45rem); font-weight: 720; letter-spacing: -0.025em; line-height: 1.5; }
.end-cta { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; }

/* ======================= /ai/ : 두 성격 ======================= */
.duo { width: min(100% - 32px, var(--wrap-wide)); margin-inline: auto; padding: clamp(64px, 9vw, 120px) 0 clamp(72px, 9vw, 120px); }
.duo-names {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: clamp(22px, 4.4vw, 72px);
  font-family: var(--f-serif); font-weight: 400; font-size: clamp(4.2rem, 16vw, 14rem); line-height: .92; letter-spacing: -0.03em;
}
.dn-ether { color: var(--ether); justify-self: end; }
.dn-xync { color: var(--xync); justify-self: start; }
.dn-spark {
  width: 11px; height: 11px; border-radius: 50%; background: #fff; align-self: center; margin-top: 0.06em;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.05), 0 0 24px 6px rgba(255, 255, 255, 0.32), -40px 0 60px -18px rgba(99, 242, 210, 0.7), 40px 0 60px -18px rgba(255, 138, 102, 0.7);
}
.duo-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 8vw, 150px); margin-top: clamp(28px, 4vw, 48px); }
.duo-col { max-width: 25rem; }
.duo-ether { justify-self: end; text-align: right; }
.duo-xync { justify-self: start; }
.duo-type { font-size: 1rem; font-weight: 750; letter-spacing: 0.01em; display: flex; gap: 14px; align-items: baseline; }
.duo-ether .duo-type { color: var(--ether); justify-content: flex-end; }
.duo-xync .duo-type { color: var(--xync); }
.duo-type span { letter-spacing: -0.01em; font-size: .92rem; font-weight: 600; color: var(--text-2); }
.duo-desc { margin-top: 12px; font-size: 1.08rem; line-height: 1.8; color: #C5CFDB; }
.duo-status { margin-top: clamp(48px, 6vw, 72px); display: grid; justify-items: center; gap: 22px; text-align: center; }
.duo-note { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px 12px; color: var(--text-2); font-size: .98rem; }
@media (max-width: 700px) {
  .duo-names { font-size: clamp(3.6rem, 19vw, 6rem); gap: 18px; }
  .duo-cols { grid-template-columns: 1fr; gap: 26px; margin-top: 36px; }
  .duo-col, .duo-ether { justify-self: stretch; text-align: left; max-width: none; padding-left: 16px; border-left: 1px solid; }
  .duo-ether { border-color: var(--ether); }
  .duo-xync { border-color: var(--xync); }
  .duo-ether .duo-type { justify-content: flex-start; }
  .duo-status { justify-items: start; text-align: left; }
  .duo-note { justify-content: flex-start; }
}

/* 알림 신청 */
.wait { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px 14px; min-height: 56px; }
.wait-on { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px 0 14px; border-radius: var(--r-pill);
  color: var(--ether); background: var(--ether-dim); border: 1px solid rgba(99, 242, 210, 0.35); font-weight: 650; }
.wait-on svg { flex: none; }
.wait-count { margin-top: 16px; color: var(--text-2); font-size: .95rem; }
.wait-count .n { color: var(--text); font-weight: 650; font-variant-numeric: tabular-nums; }
@media (max-width: 700px) { .duo-status .wait { justify-content: flex-start; } }

/* 같은 고민, 두 가지 대답 */
.talk { width: min(100% - 32px, 1080px); margin-inline: auto; padding: clamp(72px, 9vw, 120px) 0; border-top: 1px solid var(--line); }
.talk-head { text-align: center; display: grid; gap: 14px; justify-items: center; }
.talk-title { font-family: var(--f-display); font-weight: var(--w-display); font-size: var(--t-h2); letter-spacing: -0.02em; line-height: 1.2; }
.talk-lead { color: var(--text-2); font-size: 1.02rem; max-width: 32em; }
.talk-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.talk-tabs .chip { height: 44px; padding: 0 18px; font-size: .94rem; }
.talk-panel { margin-top: clamp(36px, 5vw, 56px); }
.talk-panel.is-in { animation: talk-in var(--d-3) var(--ease-out); }
@keyframes talk-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.talk-q { margin: 0 auto; max-width: 24em; text-align: center; font-size: clamp(1.25rem, 2.2vw, 1.65rem); font-weight: 680; letter-spacing: -0.028em; line-height: 1.5; text-wrap: balance; }
.talk-q::before { content: "\201C"; } .talk-q::after { content: "\201D"; }
.talk-answers { display: grid; grid-template-columns: 1fr 1fr; margin-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--line); }
.ta { padding: clamp(24px, 3vw, 36px) clamp(4px, 3vw, 40px) 8px; }
.ta-ether { border-right: 1px solid var(--line); padding-left: 0; }
.ta-xync { padding-right: 0; }
.ta .ta-who { font-family: var(--f-serif); font-size: 2.2rem; line-height: 1; margin-bottom: 18px; }
.ta-ether .ta-who { color: var(--ether); }
.ta-xync .ta-who { color: var(--xync); }
.ta p { font-size: 1.06rem; line-height: 1.8; color: var(--text); }
.ta p + p { margin-top: 10px; }
.ta ol { list-style: none; counter-reset: step; margin: 14px 0; display: grid; gap: 8px; }
.ta ol li { counter-increment: step; display: grid; grid-template-columns: 2em 1fr; font-size: 1.02rem; line-height: 1.7; color: #C5CFDB; }
.ta ol li::before { content: counter(step); font-family: var(--f-mono); font-size: .9rem; color: var(--ether); padding-top: .1em; }
.ta-xync p { color: #F1E6E1; }
@media (max-width: 700px) {
  .talk-answers { grid-template-columns: 1fr; }
  .ta, .ta-ether, .ta-xync { padding: 26px 0 8px; border-right: 0; }
  .ta-xync { border-top: 1px solid var(--line); margin-top: 18px; }
}

.ai-end { width: min(100% - 32px, 720px); margin-inline: auto; padding: clamp(72px, 9vw, 120px) 0 clamp(88px, 10vw, 140px); text-align: center; border-top: 1px solid var(--line); }
.end-title { font-family: var(--f-display); font-weight: var(--w-display); font-size: var(--t-h2); letter-spacing: -0.02em; line-height: 1.2; }
.end-text { margin: 16px auto 30px; color: var(--text-2); font-size: 1.04rem; line-height: 1.8; max-width: 30em; }
@media (min-width: 560px) { .end-text span { display: block; } }

/* ======================= 404 : 닿지 못한 두 줄기 ======================= */
.lost { position: relative; padding-bottom: clamp(72px, 9vw, 120px); }
.lost-field { position: relative; height: clamp(260px, 44vh, 440px); margin-top: 8px; }
.lost-field canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.lost-copy { width: min(100% - 32px, 680px); margin: 0 auto; text-align: center; display: grid; justify-items: center; }
/* 영어 표어는 제목 다음의 둘째 목소리 */
.lost-title { font-family: var(--f-display); font-weight: var(--w-display); font-size: var(--t-h1); line-height: 1.16; letter-spacing: -0.02em; text-wrap: balance; }
.lost-motto { margin-top: 12px; font-family: var(--f-serif); font-style: italic; font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.2; color: var(--text-2); letter-spacing: -0.01em; }
.lost-text { margin-top: 18px; color: var(--text-2); font-size: 1.06rem; line-height: 1.8; max-width: 30em; }
@media (min-width: 560px) { .lost-text span { display: block; } }
.lost-code { margin-top: 14px; font-size: .9rem; font-weight: 600; color: var(--text-3); font-variant-numeric: tabular-nums; }
.lost-links { margin-top: 30px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
@media (max-width: 520px) { .lost-links .btn { flex: 1 1 100%; } }
