/* 큐올즈 소개 페이지 — main.css의 색·글꼴·헤더·바닥글을 쓰고, 이 페이지에만 필요한 것 */
.ab .nav a.is-here { color: var(--accent); font-weight: 700; }
.ab main { overflow-x: clip; }
.ab .wrap { max-width: 1240px; }
.ab main { word-break: keep-all; }
.ab-center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.ab-kicker { font: 700 13px/1 var(--latin); letter-spacing: .24em; color: var(--accent); }
.ab-h2 { margin-top: 18px; font-size: clamp(34px, 4.2vw, 64px); font-weight: 800; line-height: 1.2; letter-spacing: -.045em; text-wrap: balance; }
.ab-h2 b { color: var(--accent); }
.ab-body { margin-top: 22px; max-width: 680px; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.8; color: var(--text-sub); text-wrap: balance; }

/* 1. 첫 화면: 꽉 찬 초록 그라데이션 위 가운데 문장 */
.ab-hero { padding: calc(var(--header-h) + 8px) clamp(12px, 1.6vw, 24px) 0; }
.ab-hero-box { position: relative; isolation: isolate; overflow: hidden; min-height: calc(100svh - var(--header-h) - 24px); display: grid; place-items: center; border-radius: clamp(20px, 2.4vw, 36px); background: linear-gradient(160deg, #0f5a3d 0%, #16754F 45%, #2f9a6e 100%); color: #fff; text-align: center; padding: 80px 24px; }
.ab-blob { position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); opacity: .7; animation: ab-float 16s ease-in-out infinite alternate; }
.ab-blob.b1 { width: 52vw; height: 52vw; left: -14vw; top: -18vw; background: #0b3f2b; }
.ab-blob.b2 { width: 44vw; height: 44vw; right: -12vw; bottom: -20vw; background: #4fd69c; opacity: .55; animation-duration: 20s; }
.ab-blob.b3 { width: 30vw; height: 30vw; right: 18vw; top: -8vw; background: #9fe1cb; opacity: .35; animation-duration: 24s; }
@keyframes ab-float { to { transform: translate(6vw, 4vw) scale(1.12); } }
.ab-title { font-size: clamp(36px, 5.4vw, 84px); font-weight: 500; line-height: 1.22; letter-spacing: -.045em; }
.ab-title b { font-weight: 800; }
.ab-lead { margin-top: 32px; font-size: clamp(16px, 1.3vw, 20px); line-height: 1.8; color: rgba(255, 255, 255, .82); }
.ab-scroll { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); font: 600 11px/1 var(--latin); letter-spacing: .3em; color: rgba(255, 255, 255, .6); }
.ab-scroll::after { content: ''; display: block; width: 1px; height: 36px; margin: 12px auto 0; background: linear-gradient(rgba(255, 255, 255, .7), transparent); }

/* 2. 이름: Question + Owls 가 접히며 QOWLS 가 됨 */
.ab-name { padding-block: clamp(110px, 13vw, 190px) clamp(70px, 8vw, 120px); }
.ab-word { font-family: var(--latin); font-size: clamp(32px, 10vw, 124px); font-weight: 900; letter-spacing: -.05em; line-height: 1.05; white-space: nowrap; cursor: default; -webkit-tap-highlight-color: transparent; }
.ab-word > span { display: inline-block; }
.ab-word > span > span { display: inline-block; vertical-align: top; }
.w-k { color: var(--accent); }
.w-sw { color: var(--accent); }
.w-c { color: var(--text); }
.w-plus { margin: 0 .18em; font-weight: 300; color: var(--text-sub); }
.w-sw > span { display: inline-block; overflow: hidden; vertical-align: top; }
.w-up { max-width: 0; opacity: 0; transform: translateY(-40%); }
.w-lo { max-width: .8em; }
/* 들어올 때: 글자가 차례로 올라옴 */
.js .ab-word > span > span { opacity: 0; transform: translateY(60%); }
.ab-word.is-in > span > span { opacity: 1; transform: none; transition: opacity .5s calc(var(--i) * 40ms) ease, transform .9s calc(var(--i) * 40ms) var(--ease); }
/* 합쳐질 때: uestion 과 + 가 접히고 wls 가 WLS 로 */
.ab-word.is-ready .w-c, .ab-word.is-ready .w-plus, .ab-word.is-ready .w-lo, .ab-word.is-ready .w-up { transition: max-width .8s var(--ease), margin .8s var(--ease), opacity .45s ease, transform .8s var(--ease), color .4s; }
.w-c, .w-plus { max-width: 1em; overflow: hidden; }
.ab-word.is-merge .w-c { max-width: 0; opacity: 0; transform: translateY(30%); }
.ab-word.is-merge .w-plus { max-width: 0; margin: 0; opacity: 0; transform: rotate(90deg) scale(.4); }
.ab-word.is-merge .w-lo { max-width: 0; opacity: 0; transform: translateY(40%); }
.ab-word.is-merge .w-up { max-width: 1.1em; opacity: 1; transform: none; transition-delay: .15s; }
.ab-motto { margin-top: 36px; font: 800 14px/1 var(--latin); letter-spacing: .24em; color: var(--text-sub); }
.ab-motto b { color: var(--accent); }

/* 3. 배움 → 창작: 유리 카드 두 장과 연결선 */
.ab-brands { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(90px, 10vw, 150px); background: linear-gradient(180deg, #fff 0%, #f1f8f4 30%, #f1f8f4 70%, #fff 100%); }
.ab-glow { position: absolute; z-index: -1; border-radius: 50%; filter: blur(80px); pointer-events: none; }
.ab-glow.g1 { width: 46vw; height: 46vw; left: -8vw; top: 38%; background: rgba(79, 214, 156, .38); }
.ab-glow.g2 { width: 40vw; height: 40vw; right: -6vw; top: 30%; background: rgba(22, 117, 79, .32); }
.ab-flow { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 1.6vw, 24px); align-items: stretch; margin-top: clamp(44px, 5vw, 72px); }
.ab-brand { display: flex; flex-direction: column; min-height: clamp(340px, 30vw, 400px); padding: clamp(30px, 3.2vw, 48px); border-radius: clamp(22px, 2vw, 30px); backdrop-filter: blur(22px) saturate(1.3); -webkit-backdrop-filter: blur(22px) saturate(1.3); }
.ab-brand-q { background: rgba(255, 255, 255, .55); border: 1px solid rgba(255, 255, 255, .9); box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 24px 60px -32px rgba(15, 70, 45, .35); }
.ab-brand-m { background: rgba(14, 40, 29, .78); border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 1px 0 rgba(255, 255, 255, .12) inset, 0 24px 60px -28px rgba(10, 40, 28, .55); color: #fff; }
.ab-brand-k { font: 700 12px/1 var(--latin); letter-spacing: .24em; color: var(--accent); }
.ab-brand-k span { margin-right: 6px; opacity: .55; }
.ab-brand-m .ab-brand-k { color: var(--mint); }
.ab-brand-name { margin-top: 16px; font: 900 clamp(34px, 3.8vw, 60px)/1 var(--latin); letter-spacing: -.04em; white-space: nowrap; }
.ab-brand-q .ab-brand-name { color: var(--accent); }
.ab-brand-line { margin-top: 20px; font-size: clamp(18px, 1.5vw, 21px); font-weight: 800; letter-spacing: -.03em; }
.ab-brand-desc { margin-top: 10px; font-size: 15.5px; line-height: 1.75; color: var(--text-sub); }
.ab-brand-m .ab-brand-desc { color: rgba(255, 255, 255, .7); }
.ab-brand-go { align-self: flex-start; margin-top: auto; padding-top: 28px; font-size: 15px; font-weight: 700; color: var(--accent); text-decoration: none; }
.ab-brand-m .ab-brand-go { color: var(--mint); }
.ab-brand-go:hover { text-decoration: underline; text-underline-offset: 4px; }


/* 4. 마무리 */
.ab-cta { padding-block: clamp(80px, 9vw, 140px) clamp(100px, 11vw, 170px); border-top: 1px solid var(--border); }
.ab-cta-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 32px; }

/* 첫 화면 브랜드명 */
.ab-group { margin-bottom: 28px; font: 700 clamp(12px, 1vw, 14px)/1 var(--latin); letter-spacing: .32em; color: rgba(255, 255, 255, .72); }


@media (max-width: 900px) {
  .ab-flow { grid-template-columns: 1fr; }
  .ab-brand { min-height: 0; padding: 28px 24px; }
  .ab-title { font-size: clamp(28px, 7.6vw, 48px); }
  .ab-brand-name { font-size: clamp(34px, 10vw, 56px); }
  .ab-s { text-wrap: balance; }
  .ab-lead, .ab-body, .ab-brand-desc { text-wrap: balance; }
}
@media (prefers-reduced-motion: reduce) { .ab-blob { animation: none; } }

/* ---- 움직임 더하기 ---- */
/* 첫 화면 제목: 줄마다 아래에서 올라옴 */
.ab-ln { display: block; overflow: hidden; padding-bottom: .06em; }
.ab-ln > * { display: inline-block; animation: ab-rise 1.1s var(--ease) both; }
.ab-ln + .ab-ln > * { animation-delay: .14s; }
@keyframes ab-rise { from { transform: translateY(105%); } }
.ab-hero .ab-group { animation: ab-fade 1s .1s ease both; }
.ab-hero .ab-lead { animation: ab-fade 1s .45s ease both; }
@keyframes ab-fade { from { opacity: 0; transform: translateY(12px); } }

/* 두 카드: 양옆에서 들어오고, 선이 그려지고, 마우스를 따라 빛 */
.js .ab-brand-q[data-reveal] { transform: translateX(-48px); }
.js .ab-brand-m[data-reveal] { transform: translateX(48px); }
.js .ab-brand[data-reveal].is-in { transform: none; }
.ab-brand { position: relative; overflow: hidden; }
.ab-brand::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .55), transparent 60%); }
.ab-brand-m::before { background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(79, 214, 156, .18), transparent 60%); }
.ab-brand:hover::before { opacity: 1; }
.ab-brand > * { position: relative; }

@media (max-width: 900px) {
  .js .ab-brand-q[data-reveal], .js .ab-brand-m[data-reveal] { transform: translateY(26px); }
}
@media (prefers-reduced-motion: reduce) {
  .ab-ln > *, .ab-hero .ab-group, .ab-hero .ab-lead { animation: none !important; }
}

/* 여백 넉넉하게 */
.ab .wrap { max-width: 1080px; }
.ab-h2 { margin-top: 22px; }
.ab-body { margin-top: 26px; line-height: 1.9; }
.ab-hero { padding-inline: clamp(16px, 3vw, 44px); }
.ab-hero-box { min-height: calc(100svh - var(--header-h) - 40px); }
.ab-lead { margin-top: 40px; line-height: 1.9; }
.ab-group { margin-bottom: 34px; }
.ab-name { padding-block: clamp(140px, 16vw, 240px) clamp(120px, 13vw, 200px); }
.ab-word { font-size: clamp(32px, 9vw, 112px); }
.ab-name .ab-body { margin-top: clamp(40px, 4vw, 56px); }
.ab-motto { margin-top: 48px; }
.ab-brands { padding-block: clamp(120px, 13vw, 200px) clamp(160px, 16vw, 240px); }
.ab-flow { gap: clamp(16px, 2.6vw, 36px); margin-top: clamp(64px, 7vw, 100px); }
.ab-brand { min-height: clamp(360px, 32vw, 440px); padding: clamp(36px, 4.2vw, 60px); }
.ab-brand-line { margin-top: 26px; }
.ab-brand-desc { margin-top: 14px; line-height: 1.85; }
@media (max-width: 900px) {
  .ab-brand { min-height: 0; padding: 36px 28px; }
  .ab-flow { gap: 16px; }
}
.ab-s { display: block; }
.ab-c { display: inline-block; }

/* WHY QOWLS: 한 글자씩 써지듯 등장 */
.ab-type .k-ch { display: inline-block; }
.ab-type .k-sp { width: .5em; }
.js .ab-type .k-ch { opacity: 0; transform: translateY(6px); }
.ab-type.is-in .k-ch { opacity: 1; transform: none; transition: opacity .35s calc(var(--r) * 1ms) ease, transform .5s calc(var(--r) * 1ms) var(--ease); }

/* Question + Owls: 한 글자씩 또렷하게 등장 */
.ab-word.is-in > span > span { transition: opacity .5s calc(var(--r) * 1ms) ease, transform .7s calc(var(--r) * 1ms) cubic-bezier(.34, 1.4, .64, 1); }
/* 합쳐질 때: uestion 은 뒤(n)부터 하나씩 사라지고, + 가 접힌 뒤 wls 가 WLS 로 */
.ab-word.is-ready.is-merge .w-c, .ab-word.is-ready.is-merge .w-plus { transition-delay: calc(var(--q) * 1ms); }
.ab-word.is-ready.is-merge .w-lo { transition-delay: .35s; }
.ab-word.is-ready.is-merge .w-up { transition-delay: .45s; }
@media (prefers-reduced-motion: reduce) { .ab-type .k-ch { opacity: 1 !important; transform: none !important; } }

/* ---- 첫 화면 감각: 부엉이 시야 ---- */
/* 커서(휴대폰은 천천히 떠도는) 둘레만 밝아지고, 그 빛 안에서만 점 무늬가 드러남 */
.ab-hero-box { --sx: 50%; --sy: 42%; --hp: 0; transform: scale(calc(1 - var(--hp) * .05)); border-radius: calc(clamp(20px, 2.4vw, 36px) + var(--hp) * 16px); transform-origin: 50% 0; will-change: transform; }
.ab-hero-copy { opacity: calc(1 - var(--hp) * .9); transform: translateY(calc(var(--hp) * -40px)); }
.ab-spot { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(clamp(260px, 30vw, 460px) circle at var(--sx) var(--sy), rgba(159, 225, 203, .26), rgba(79, 214, 156, .08) 45%, transparent 70%); }
.ab-grain { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .14; mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); }
@media (prefers-reduced-motion: reduce) { .ab-hero-box { transform: none; } .ab-hero-copy { opacity: 1; transform: none; } }
.ab-spot, .ab-grain { z-index: 0; }
.ab-hero-copy, .ab-scroll { position: relative; z-index: 1; }
.ab-scroll { position: absolute; }
.ab-spot { background: radial-gradient(clamp(240px, 26vw, 420px) circle at var(--sx) var(--sy), rgba(190, 240, 215, .32), rgba(79, 214, 156, .12) 42%, transparent 70%); mix-blend-mode: screen; }

/* 더 어둡게: 밤의 숲 같은 짙은 초록, 빛은 그대로라 대비가 커짐 */
.ab-hero-box { background: linear-gradient(160deg, #06190f 0%, #0b2f20 50%, #134a33 100%); }
.ab-blob.b1 { background: #030d08; opacity: .8; }
.ab-blob.b2 { background: #1f7a52; opacity: .35; }
.ab-blob.b3 { background: #2c8c62; opacity: .18; }
.ab-spot { background: radial-gradient(clamp(240px, 26vw, 420px) circle at var(--sx) var(--sy), rgba(170, 235, 205, .26), rgba(79, 214, 156, .1) 42%, transparent 70%); }
.ab-lead { color: rgba(255, 255, 255, .72); }
.ab-group { color: rgba(159, 225, 203, .75); }

/* 브랜드 이름: 카드 너비에 맞춰 크기를 정해 MOMANENCE가 잘리지 않게 */
.ab-brand { container-type: inline-size; }
.ab-brand-name, .ab-brand .ab-brand-name { font-size: min(60px, 14.5cqi); }

/* 브랜드 이름 아래: 이름을 이룬 두 단어를 작게 */
.ab-brand-root { margin-top: 10px; font: 500 13px/1.2 var(--latin); letter-spacing: .04em; color: var(--text-sub); opacity: .75; }
.ab-brand-m .ab-brand-root { color: rgba(255, 255, 255, .6); opacity: 1; }
.ab-brand-root + .ab-brand-line { margin-top: 22px; }

/* 브랜드 카드: 가운데 정렬 */
.ab-brand { align-items: center; text-align: center; }
.ab-brand .ab-brand-go { align-self: center; }

/* 합쳐진 QOWLS: 글자 간격을 좁혀 오른쪽 끝(S)이 잘리던 것 — 잘라내는 상자만 살짝 넓힘 */
.w-sw > span { padding-right: .08em; margin-right: -.08em; }
.ab-word.is-merge .w-up { max-width: 1.2em; }
