/* 한국친구 v66 — one stylesheet.
   Palette comes from the mascot (rice-cake ㅎ) and the three classic tteok colors;
   each service keeps its own color everywhere: 美甲=분홍, 眼镜=호박, 韩服=쑥, 头发=흑임자. */
@font-face{font-family:Pretendard;src:url('assets/fonts/Pretendard-subset.woff2') format('woff2');font-weight:100 900;font-display:swap}
@font-face{font-family:Inter;src:url('assets/fonts/Inter-subset.woff2') format('woff2');font-weight:100 900;font-display:swap}

:root{
  --ink:#2B2622;        /* mascot's eyes */
  --muted:#6B625B;
  --rice:#F5EFE6;       /* mascot's body */
  --rice-deep:#E7DCCB;
  --paper:#FFFFFF;
  --pink:#F2B9C4;       /* 분홍 절편 */
  --pumpkin:#F3CB6B;    /* 호박떡 */
  --ssuk:#8BA877;       /* 쑥떡 */
  --sesame:#9C948C;     /* 흑임자 */
  --pink-t:#FBE6EA;--pumpkin-t:#FCF1D4;--ssuk-t:#E6EEDF;--sesame-t:#ECE8E4;
  --wechat:#05843F;     /* WeChat green, darkened to 4.8:1 for white text */
  --bubble:#95EC69;     /* real WeChat outgoing bubble */
  --chat-bg:#EDEDED;
  --line:#ECE5DA;
  --r-s:10px;--r-m:18px;--r-l:28px;
  --font:Pretendard,Inter,'PingFang SC','Hiragino Sans GB','Microsoft YaHei',sans-serif;
}
html:lang(zh-CN){--font:'PingFang SC','Hiragino Sans GB','Microsoft YaHei',Pretendard,Inter,sans-serif}

*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:16px}
body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--font);font-size:16px;line-height:1.65;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
html:lang(ko) body{word-break:keep-all}
h1,h2,h3,p,figure,dl,dd{margin:0}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;border:0;background:none;cursor:pointer;-webkit-tap-highlight-color:transparent}
img,video{max-width:100%}
:focus-visible{outline:3px solid var(--ink);outline-offset:3px;border-radius:6px}
[hidden]{display:none!important}
.wrap{width:calc(100% - 32px);max-width:1120px;margin-inline:auto}
.skip{position:absolute;left:16px;top:-60px;z-index:20;padding:8px 14px;background:var(--ink);color:#fff;border-radius:var(--r-s)}
.skip:focus{top:12px}

/* ---------- header ---------- */
.header{display:flex;align-items:center;gap:24px;height:72px}
.brand{display:flex;align-items:center;gap:10px;flex-shrink:0;white-space:nowrap}
.logo{display:block;width:40px;height:40px;flex:0 0 40px}
.logo picture{display:contents}
.logo img{display:block;width:100%;height:100%}
.brand-name{display:flex;flex-direction:column;line-height:1.1}
.brand-name b{font-size:18px;font-weight:750;letter-spacing:-.03em}
.brand-name small{font-size:12px;color:var(--muted);letter-spacing:.02em;margin-top:2px}
.header nav{display:none;margin-left:auto;gap:28px;font-size:15px}
.header nav a:hover{text-decoration:underline;text-underline-offset:5px}
.language{margin-left:auto;flex-shrink:0;white-space:nowrap;display:flex;align-items:center;gap:2px;padding:4px;background:var(--rice);border-radius:999px;font-size:14px}
.language>span{display:none}
.language a{min-height:36px;padding:0 14px;border-radius:999px;color:var(--muted)}
.language a[aria-current=page]{background:var(--paper);color:var(--ink);font-weight:650;box-shadow:0 1px 3px rgb(43 38 34 / .12)}

/* ---------- hero ---------- */
.hero{display:grid;gap:28px;padding:16px 0 56px}
.agent-intro{display:grid;align-content:start}
.hero-friend{position:relative;width:148px;height:148px;margin:4px 0 22px}
.friend-plate{position:absolute;left:6%;right:6%;bottom:0;height:34%;border-radius:50%;background:var(--rice);box-shadow:inset 0 -6px 0 var(--rice-deep)}
.agent-mascot-pic{display:contents}
.agent-mascot{position:relative;display:block;width:100%;height:auto;transform-origin:50% 92%}
.friend-hello{position:absolute;left:100%;top:10px;margin-left:6px;white-space:nowrap;padding:8px 14px;background:var(--ink);color:#fff;font-size:15px;font-weight:650;border-radius:18px 18px 18px 4px}
.agent-intro h1{white-space:pre-line;font-size:40px;line-height:1.12;font-weight:800;letter-spacing:-.045em}
html:lang(zh-CN) .agent-intro h1{letter-spacing:-.02em;font-weight:700}
.hero-sub{margin-top:14px;font-size:17px;color:var(--muted);max-width:26em}
.contact-entry{display:flex;flex-wrap:wrap;align-items:center;gap:8px 20px;margin-top:28px}
.button{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:58px;padding:0 30px;border-radius:999px;background:var(--wechat);color:#fff;font-size:19px;font-weight:700;letter-spacing:-.01em;box-shadow:inset 0 -4px 0 rgb(0 0 0 / .14);transition:transform .12s ease,box-shadow .12s ease}
.button:hover{background:#04773A}
.button:active{transform:translateY(2px);box-shadow:inset 0 -2px 0 rgb(0 0 0 / .14)}
.intro-contact{width:100%}
.qr-entry{min-height:44px;padding:0 4px;font-size:15px;color:var(--muted);text-decoration:underline;text-underline-offset:5px}
.qr-entry:hover{color:var(--ink)}

/* chat demo */
.agent-interaction{min-width:0}
.case-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:14px}
.case-tabs button{position:relative;display:block;padding:12px 6px 16px;border-radius:var(--r-m);text-align:center;background:transparent;color:var(--muted);transition:background .15s}
.case-tabs button:hover{background:var(--rice)}
.case-tabs button strong{display:block;font-size:15px;font-weight:700;color:var(--ink)}
.case-tabs button .service-items{display:block;margin-top:2px;font-size:12px;line-height:1.45}
.case-tabs button .service-separator{display:none}
.case-tabs button .service-item{display:block}
/* the tteok stick under each tab = the ㅎ stroke, in that service's color */
.case-tabs button::after{content:'';position:absolute;left:50%;bottom:4px;width:28px;height:7px;margin-left:-14px;border-radius:99px;background:var(--tteok);opacity:.35;transition:width .2s ease,margin .2s ease,opacity .2s}
.case-tabs button[aria-selected=true]::after{width:56px;margin-left:-28px;opacity:1}
.case-tabs button[aria-selected=true]{background:var(--rice)}
.case-tabs button:nth-child(1),.agent-flow li:nth-child(1){--tteok:var(--pink)}
.case-tabs button:nth-child(2),.agent-flow li:nth-child(2){--tteok:var(--pumpkin)}
.case-tabs button:nth-child(3),.agent-flow li:nth-child(3){--tteok:var(--ssuk)}

.agent-phone{position:relative;overflow:hidden;border-radius:var(--r-l);background:var(--chat-bg);border:8px solid var(--ink);box-shadow:0 24px 50px -24px rgb(43 38 34 / .45)}
.chat-header{position:relative;display:flex;justify-content:center;align-items:center;min-height:52px;padding:0 48px;background:#F7F7F7;border-bottom:1px solid #DCDCDC}
.chat-back,.chat-menu{position:absolute;top:50%;transform:translateY(-50%);pointer-events:none;color:var(--ink)}
.chat-back{left:14px;font-size:28px;line-height:1}
.chat-menu{right:14px;font-size:20px;font-weight:700;letter-spacing:2px}
.chat-identity{display:flex;align-items:center;gap:6px}
.chat-identity picture{display:contents}
.chat-identity img{width:28px;height:28px}
.chat-identity strong{font-size:16px;font-weight:650}
.chat-body{display:flex;flex-direction:column;gap:12px;padding:16px 12px;font-size:14.5px;line-height:1.55}
.chat-measure{position:absolute!important;left:0;top:0;visibility:hidden!important;pointer-events:none;z-index:-1}
.message-row{display:flex;gap:8px;align-items:flex-start;transition:opacity .2s ease,transform .25s ease}
.message-row.outgoing{flex-direction:row-reverse}
.message-row.is-pending{visibility:hidden;opacity:0;transform:translateY(6px)}
.message-avatar{flex:0 0 36px;width:36px;height:36px;border-radius:8px;overflow:hidden;background:#fff;display:grid;place-items:center;position:relative}
.message-avatar img{width:32px;height:32px;object-fit:contain}
.message-avatar.visitor-avatar img{position:absolute;width:108px;height:72px;max-width:none;left:-14px;top:-6px;object-fit:cover}
.chat-bubble,.chat-result{position:relative;max-width:calc(100% - 52px);padding:9px 12px;border-radius:6px;margin:0}
.chat-bubble.visitor{background:var(--bubble)}
.chat-bubble.friend,.chat-result{background:#fff}
.chat-bubble::before,.chat-result::before{content:'';position:absolute;top:13px;width:9px;height:9px;transform:rotate(45deg);background:inherit}
.chat-bubble.visitor::before{right:-4px}
.chat-bubble.friend::before,.chat-result::before{left:-4px}
.chat-link{display:block;margin-top:6px;padding-top:6px;border-top:1px solid rgb(43 38 34 / .14);font-size:12px;color:#335b23}
.chat-result{padding:12px 14px;border-left:0}
.chat-result small{font-size:12px;color:var(--muted)}
.chat-result h3{margin-top:2px;font-size:16px;line-height:1.4;font-weight:750}
.result-detail{margin-top:6px;display:inline-block;padding:2px 10px;border-radius:99px;background:var(--rice);font-size:13px;font-weight:600}
.result-proof{margin-top:6px;font-size:13px;color:var(--muted)}
.chat-playback{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:0 14px;background:#F7F7F7;border-top:1px solid #DCDCDC}
.chat-progress{font-size:12px;color:var(--muted)}
.chat-playback{min-height:60px}
.chat-progress{flex:1;min-width:0;line-height:1.5}
.chat-replay{flex-shrink:0}
.result-detail{border-radius:12px;white-space:normal;overflow-wrap:anywhere}
.chat-replay{min-height:44px;font-size:13px;font-weight:650;text-decoration:underline;text-underline-offset:4px}

/* steps — a real sequence, so numbered; the number sits in the ㅇ ring */
.agent-flow ol{list-style:none;margin:0;padding:0;display:grid;gap:12px;counter-reset:flow}
.agent-flow li{counter-increment:flow;display:flex;align-items:center;gap:12px;font-size:15px;font-weight:550}
.agent-flow li::before{content:counter(flow);flex:0 0 34px;height:34px;display:grid;place-items:center;border-radius:50%;border:5px solid var(--tteok);font-size:13px;font-weight:800;line-height:1}

/* ---------- film ---------- */
.film{padding-bottom:72px}
.local-scene{margin:0}
.film-stage{position:relative;aspect-ratio:16/9;overflow:hidden;border-radius:var(--r-l);background:var(--rice)}
.film-stage video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.film-stage::after{content:'';position:absolute;inset:auto 0 0 0;height:55%;background:linear-gradient(to top,rgb(20 16 12 / .55),transparent);pointer-events:none;z-index:2}
.postcard-signature{position:absolute;left:20px;bottom:18px;z-index:3;color:#fff;max-width:70%}
.postcard-signature span{display:block;font-size:12px;opacity:.85;letter-spacing:.02em}
.postcard-signature strong{display:block;font-size:22px;line-height:1.25;font-weight:750;letter-spacing:-.02em}
.scene-place{position:absolute;top:14px;left:14px;z-index:3;padding:3px 10px;border-radius:99px;background:rgb(0 0 0 / .4);color:#fff;font-size:11px;font-weight:600}
.film-toggle{position:absolute;right:14px;bottom:14px;z-index:4;width:44px;height:44px;display:grid;place-items:center;border-radius:50%;background:rgb(0 0 0 / .4);color:#fff}
.film-toggle:focus-visible{outline-color:#fff}
.scene-recognition{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px;padding:14px 4px 0}
.scene-recognition strong{font-size:16px;font-weight:700}
.scene-recognition a{font-size:13px;color:var(--muted);text-decoration:underline;text-decoration-color:var(--rice-deep);text-underline-offset:4px}
.scene-recognition a:hover{color:var(--ink)}

/* ---------- a day in Seoul ---------- */
.local-day{display:grid;gap:28px;padding:56px 0;border-top:1px solid var(--line)}
.local-day figure{position:relative}
.local-day img{display:block;width:100%;height:auto;aspect-ratio:4/5;object-fit:cover;border-radius:var(--r-l)}
.local-day figcaption{margin-top:10px;font-size:13px;color:var(--muted)}
.day-eyebrow{font-size:14px;font-weight:600;color:var(--muted)}
.local-day h2{margin-top:8px;white-space:pre-line;font-size:30px;line-height:1.25;font-weight:800;letter-spacing:-.03em}
html:lang(zh-CN) .local-day h2{font-weight:700;letter-spacing:-.01em}
.local-day-copy>p:not(.day-eyebrow){margin-top:14px;color:var(--muted);font-size:16.5px;max-width:30em}
.day-chat{display:grid;gap:8px;margin-top:24px;padding:16px;background:var(--chat-bg);border-radius:var(--r-m);max-width:28em}
.day-request,.day-reply{position:relative;padding:9px 13px;border-radius:6px;font-size:15px;line-height:1.5;max-width:88%}
.day-request{justify-self:end;background:var(--bubble)}
.day-reply{justify-self:start;background:#fff}

/* ---------- use cases: things you'd actually say ---------- */
.use-cases{display:grid;gap:28px;padding:56px 0;border-top:1px solid var(--line)}
.use-cases h2,.faq h2,.closing h2{font-size:30px;line-height:1.25;font-weight:800;letter-spacing:-.03em}
html:lang(zh-CN) .use-cases h2,html:lang(zh-CN) .faq h2,html:lang(zh-CN) .closing h2{font-weight:700;letter-spacing:-.01em}
.use-head p{margin-top:10px;color:var(--muted);max-width:28em}
.use-cases dl{display:grid;gap:14px}
.use-cases dl>div{display:grid;gap:10px;padding:20px;border-radius:var(--r-l);background:var(--rice)}
.use-cases dt{display:flex;align-items:center;gap:10px;font-size:14px;font-weight:650;color:var(--muted)}
.use-cases dt::before{content:'';flex:0 0 26px;height:8px;border-radius:99px;background:var(--tteok)}
.use-cases dd{justify-self:start;position:relative;padding:12px 16px;background:#fff;border-radius:16px 16px 16px 4px;font-size:17px;font-weight:600;line-height:1.45}

/* ---------- faq ---------- */
.faq{display:grid;gap:20px;padding:56px 0;border-top:1px solid var(--line)}
.faq details{border-bottom:1px solid var(--line)}
.faq summary{display:flex;justify-content:space-between;align-items:center;gap:16px;min-height:60px;cursor:pointer;list-style:none;font-size:17px;font-weight:650}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:'';flex:0 0 22px;height:22px;border-radius:50%;background:var(--rice) center/12px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M6 1v10M1 6h10' stroke='%232B2622' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");transition:transform .2s ease}
.faq details[open] summary::after{transform:rotate(45deg)}
.faq details p{padding:0 0 20px;color:var(--muted);max-width:36em}

/* ---------- closing ---------- */
.closing{display:grid;justify-items:center;text-align:center;gap:12px;margin-bottom:56px;padding:48px 20px;border-radius:var(--r-l);background:var(--rice)}
.closing picture{display:contents}
.closing-friend{width:72px;height:72px}
.closing p{color:var(--muted);max-width:24em}
.closing .button{margin-top:10px}

/* ---------- footer ---------- */
.footer{display:flex;flex-wrap:wrap;align-items:center;gap:6px 16px;padding:22px 0 40px;border-top:1px solid var(--line);font-size:13px;color:var(--muted)}
.footer b{color:var(--ink)}
.footer .plain{margin-left:auto;min-height:44px;text-decoration:underline;text-underline-offset:4px;font-size:13px}
.footer-team{display:inline-flex;align-items:center;min-height:44px;color:inherit;text-decoration:underline;text-underline-offset:4px}
.footer-team:hover{color:var(--ink)}

/* ---------- dialogs ---------- */
dialog{width:min(420px,calc(100% - 32px));max-height:calc(100% - 32px);padding:28px 24px;border:0;border-radius:var(--r-l);color:var(--ink);box-shadow:0 30px 80px -20px rgb(43 38 34 / .5)}
dialog::backdrop{background:rgb(43 38 34 / .45)}
dialog h2{font-size:24px;font-weight:800;letter-spacing:-.02em;padding-right:36px}
dialog h2:focus{outline:none}
dialog p{margin-top:8px;color:var(--muted);font-size:15px}
.close-dialog{position:absolute;right:14px;top:14px;width:44px;height:44px;border-radius:50%;background:var(--rice);font-size:22px;line-height:1}
.close-dialog:hover,.wechat-copy:hover{background:var(--rice-deep)}
.wechat-copy:disabled{cursor:wait;opacity:.65}
.wechat-actions{display:grid;gap:8px;margin-top:20px}
.wechat-actions .button{min-height:52px;font-size:17px}
.wechat-copy{min-height:44px;border-radius:999px;background:var(--rice);font-weight:600;font-size:15px}
.wechat-status{min-height:1em;font-size:13px}
.wechat-fallback{display:block;word-break:break-all;font-size:13px;text-decoration:underline}
.wechat-qr-window{margin-top:12px;border-radius:var(--r-m);overflow:hidden;background:#fff;border:1px solid var(--line)}
.wechat-qr{display:block;width:100%;height:auto}
.qr-save{display:inline-block;margin-top:10px;font-size:14px;font-weight:600;text-decoration:underline;text-underline-offset:4px}
.wechat-help,.fine{font-size:13px!important}
@media (max-width:759px){#wechat-dialog .wechat-qr-window{max-width:240px;margin-inline:auto}}

/* ---------- the one orchestrated moment: mascot pops in like mochi, then says hi ---------- */
@media (prefers-reduced-motion:no-preference){
  .agent-mascot{animation:mochi-pop .9s cubic-bezier(.3,1.5,.5,1) both}
  .friend-hello{animation:hello-in .35s ease-out .8s both}
  @keyframes mochi-pop{0%{transform:translateY(14px) scale(.86,.8);opacity:0}45%{transform:translateY(0) scale(1.08,.92);opacity:1}70%{transform:scale(.97,1.04)}100%{transform:none}}
  @keyframes hello-in{from{opacity:0;transform:translateY(6px) scale(.9)}to{opacity:1;transform:none}}
}

/* ---------- wider screens ---------- */
@media (min-width:760px){
  .wrap{width:calc(100% - 64px)}
  .header{height:88px}
  .header nav{display:flex}
  .language{margin-left:8px}
  .hero{grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);grid-template-rows:auto 1fr;column-gap:56px;row-gap:40px;padding:24px 0 80px}
  .agent-intro{grid-column:1;grid-row:1;padding-top:24px}
  .agent-interaction{grid-column:2;grid-row:1 / 3;max-width:430px;width:100%;justify-self:end}
  .agent-flow{grid-column:1;grid-row:2;align-self:end}
  .hero-friend{width:200px;height:200px;margin-bottom:28px}
  .friend-hello{font-size:17px;top:18px}
  .agent-intro h1{font-size:clamp(46px,5.4vw,68px);line-height:1.06}
  .hero-sub{font-size:19px}
  .intro-contact{width:auto}
  .film{padding-bottom:96px}
  .postcard-signature{left:32px;bottom:28px}
  .postcard-signature strong{font-size:32px}
  .local-day{grid-template-columns:minmax(0,.9fr) minmax(0,1fr);align-items:center;column-gap:72px;padding:88px 0}
  .local-day h2,.use-cases h2,.faq h2,.closing h2{font-size:40px}
  .use-cases{padding:88px 0;gap:40px}
  .use-cases dl{grid-template-columns:repeat(3,1fr);gap:16px}
  .use-cases dl>div{padding:24px;align-content:start;min-height:200px}
  .faq{grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);column-gap:72px;padding:88px 0}
  .closing{padding:64px 32px;margin-bottom:72px}
  dialog{padding:36px 32px}
}
@media (min-width:1100px){
  .hero-friend{width:220px;height:220px}
}
@media (max-width:759px){
  .hero{padding-top:4px}
  .agent-flow{order:3}
}
@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

/* v66 pass 2 */
@media (max-width:759px){
  .hero-friend{width:128px;height:128px}
  .agent-intro h1{font-size:38px}
  .agent-phone{border-width:6px}
  .film-stage{aspect-ratio:1/1}
  .film-stage video{object-position:55% 50%}
  .postcard-signature{right:70px;max-width:none}
}
@media (min-width:760px){
  .local-day{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .local-day img{aspect-ratio:4/3.4;object-position:50% 62%}
  .use-cases dl>div{min-height:0}
}


/* ================= v67 ================= */
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
main{overflow-x:clip}
.hero{position:relative}
.hero>*:not(.hero-props){position:relative;z-index:1}

/* rotating service word — the pill takes that service's tteok color */
.hero-sub{color:var(--ink);font-weight:550}
.rotator-line [data-t]{color:var(--muted);font-weight:400}
.rotator{display:inline-block;margin:0 .15em;padding:.05em .55em;border-radius:999px;background:var(--pink);transition:background-color .35s ease;vertical-align:baseline}
.rotator[data-tone=glasses]{background:var(--pumpkin)}
.rotator[data-tone=hanbok]{background:var(--ssuk);color:#fff}
.rotator[data-tone=hair]{background:var(--ink);color:#fff}
.rot-word{display:inline-block;font-weight:750}
.rot-word.rot-in{animation:rot-in .45s cubic-bezier(.3,1.4,.5,1)}
@keyframes rot-in{from{opacity:0;transform:translateY(.6em) scale(.9)}to{opacity:1;transform:none}}
html:lang(ko) .rotator{margin:0 .08em 0 0}
.intro-static{display:none}
.rotator-off .rotator-line{display:none}
.rotator-off .intro-static{display:inline;color:var(--muted);font-weight:400}

/* tabs/steps/scenes share tone colors */
.tone-nail{--tteok:var(--pink);--tint:var(--pink-t)}
.tone-glasses{--tteok:var(--pumpkin);--tint:var(--pumpkin-t)}
.tone-hanbok{--tteok:var(--ssuk);--tint:var(--ssuk-t)}
.tone-hair{--tteok:var(--sesame);--tint:var(--sesame-t)}

/* hero mascot: floats on a soft contact shadow instead of a plate */
.friend-plate{left:18%;right:18%;bottom:2%;height:12%;background:rgb(43 38 34 / .16);box-shadow:none;filter:blur(9px)}

/* ---------- stage: person + trip card + friend ---------- */
.stage-sec{padding:56px 0 64px;border-top:1px solid var(--line)}
.scenes-head h2{white-space:pre-line;font-size:30px;line-height:1.25;font-weight:800;letter-spacing:-.03em}
html:lang(zh-CN) .scenes-head h2{font-weight:700;letter-spacing:-.01em}
.scenes-head p{margin-top:10px;color:var(--muted);max-width:30em;text-wrap:pretty}
.stage{position:relative;margin-top:28px;padding:28px 16px 20px;border-radius:32px;background:linear-gradient(180deg,#F7F2EA 0%,#EFE6D8 100%);overflow:hidden;isolation:isolate}
.stage::before{content:'';position:absolute;inset:auto -10% -30% -10%;height:60%;background:radial-gradient(closest-side,rgb(255 255 255 / .75),transparent);z-index:-1}
.stage-people{position:relative;margin:0 auto;width:78%;max-width:340px}
.stage-people img{display:block;width:100%;height:auto;filter:drop-shadow(0 18px 24px rgb(43 38 34 / .14));-webkit-mask-image:linear-gradient(to right,transparent 0,#000 14%);mask-image:linear-gradient(to right,transparent 0,#000 14%)}
.stage-ask,.stage-reply{text-wrap:balance;position:absolute;margin:0;padding:10px 14px;font-size:14.5px;font-weight:600;line-height:1.45;border-radius:16px;box-shadow:0 8px 24px -10px rgb(43 38 34 / .3)}
.stage-ask{top:-6px;left:-12%;max-width:72%;background:var(--bubble);border-bottom-left-radius:4px}
.stage-reply{background:#fff;border-top-left-radius:4px}

.trip-card{position:relative;z-index:2;margin:-64px auto 0;max-width:380px;background:#fff;border-radius:24px;box-shadow:0 1px 0 rgb(43 38 34 / .04),0 24px 48px -20px rgb(43 38 34 / .35);overflow:hidden}
.trip-head{padding:18px 20px 14px;border-bottom:1px solid var(--line)}
.trip-head small{font-size:12.5px;color:var(--muted);font-weight:600}
.trip-head h3{margin-top:2px;font-size:19px;line-height:1.3;font-weight:800;letter-spacing:-.02em}
.trip-progress{margin-top:12px;height:6px;border-radius:99px;background:var(--rice)}
.trip-progress span{display:block;width:var(--p);height:100%;border-radius:inherit;background:var(--wechat)}
.trip-count{margin-top:8px;font-size:12.5px;color:var(--muted)}
.trip-list{list-style:none;margin:0;padding:6px 8px 10px}
.trip-row{display:grid;grid-template-columns:40px 1fr auto;align-items:center;gap:12px;padding:10px 12px}
.trip-row+.trip-row{box-shadow:inset 0 1px 0 #F3EEE6}
.trip-ic{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:var(--tint)}
.trip-ic svg{width:22px;height:22px;fill:none;stroke:var(--ink);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.trip-txt{display:grid;min-width:0}
.trip-txt b{font-size:15px;font-weight:700;line-height:1.35}
.trip-txt small{font-size:12.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.trip-st{font-size:12px;font-weight:700;padding:4px 10px;border-radius:99px;white-space:nowrap}
.st-ok{background:#E2F4E8;color:#067A3C}
.st-wait{background:var(--rice);color:var(--muted)}

.stage-friend{position:absolute;z-index:3;right:10px;top:14px;width:76px}
.stage-friend picture{display:contents}
.stage-friend img{display:block;width:100%;height:auto;filter:drop-shadow(0 10px 14px rgb(43 38 34 / .18))}
.stage-reply{display:none}
.scenes-note{margin-top:14px;font-size:12.5px;color:var(--muted)}

@media (min-width:760px){
  .stage-sec{padding:88px 0 96px}
  .scenes-head h2{font-size:40px}
  .stage{margin-top:40px}
}
@media (min-width:1000px){
  .stage{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr) minmax(0,.7fr);align-items:end;gap:0 8px;min-height:540px;padding:56px 48px 0;border-radius:40px}
  .stage-people{width:100%;max-width:400px;margin:0;align-self:end}
  .stage-people img{margin-bottom:-6%;-webkit-mask-image:linear-gradient(to right,transparent 0,#000 16%),linear-gradient(to top,transparent 0,#000 30%);-webkit-mask-composite:source-in;mask-image:linear-gradient(to right,transparent 0,#000 16%),linear-gradient(to top,transparent 0,#000 30%);mask-composite:intersect}
  .stage-ask{top:4%;left:-6%;max-width:80%;font-size:15.5px}
  .trip-card{margin:0 0 56px -40px;max-width:400px;width:calc(100% + 40px);align-self:center}
  .stage-friend{position:relative;right:auto;top:auto;width:150px;align-self:center;justify-self:center;margin-bottom:56px}
  .stage-reply{display:block;position:absolute;left:50%;top:-62px;transform:translateX(-50%);width:max-content;max-width:210px;font-size:14.5px;border-top-left-radius:16px;border-bottom-left-radius:4px}
}
@media (prefers-reduced-motion:no-preference){
  .trip-progress span{animation:fill-in 1.1s cubic-bezier(.2,.8,.2,1) both;animation-timeline:view();animation-range:entry 20% cover 45%}
  @keyframes fill-in{from{width:0}}
}
@media (min-width:760px){.agent-intro h1{font-size:clamp(42px,4.4vw,58px)}}
@media (min-width:1000px){.trip-card{margin-left:-64px;width:calc(100% + 64px)}}

/* ================= v69 ================= */
/* Jongno film back on top of the hero; mascot sits beside the headline */
.agent-intro{grid-template-columns:minmax(0,1fr) auto;column-gap:12px}
.agent-intro .local-scene{grid-column:1 / -1;margin:0 0 22px}
.agent-intro .film-stage{aspect-ratio:4/3;border-radius:24px}
.agent-intro .scene-recognition{padding:10px 2px 0}
.agent-intro .scene-recognition strong{font-size:14.5px}
.agent-intro .hero-friend{grid-column:2;grid-row:2;align-self:center;width:92px;height:92px;margin:0}
.agent-intro h1{grid-column:1;grid-row:2;align-self:center}
.agent-intro .hero-sub,.agent-intro .contact-entry{grid-column:1 / -1}
@media (min-width:760px){
  .agent-intro{padding-top:8px}
  .agent-intro .film-stage{aspect-ratio:16/9}
  .agent-intro .hero-friend{width:128px;height:128px}
  .agent-intro h1{font-size:clamp(38px,3.9vw,52px)}
  .agent-interaction{align-self:start;margin-top:8px}
}

/* stage: the walking pair from the Jongno film */
.stage-people picture{display:contents}
.stage-people .stage-walk{display:block;width:100%;height:auto;filter:none;-webkit-mask-image:none;mask-image:none;margin:0}
.stage-shadow{position:absolute;left:14%;right:14%;bottom:-2px;height:16px;border-radius:50%;background:rgb(43 38 34 / .2);filter:blur(8px);z-index:-1}
.stage-people{width:62%;max-width:280px}
.stage-ask{left:-26%;top:2%}
@media (min-width:1000px){
  .stage{align-items:center;padding-bottom:40px}
  .stage-people{max-width:330px;justify-self:center;align-self:end;margin-bottom:-12px}
  .stage-people .stage-walk{margin:0}
  .stage-ask{left:-30%;top:0}
  .trip-card{margin:0 0 0 -40px;width:calc(100% + 40px)}
  .stage-friend{margin-bottom:0}
}

/* small living details — loops are tiny and stop with reduced motion */
@media (prefers-reduced-motion:no-preference){
  .stage-friend img{animation:bob 3.2s ease-in-out infinite}
  @keyframes bob{50%{transform:translateY(-8px) rotate(-2deg)}}
  .st-wait::before{content:'';display:inline-block;width:6px;height:6px;margin-right:6px;border-radius:50%;background:currentColor;vertical-align:1px;animation:pulse 1.4s ease-in-out infinite}
  @keyframes pulse{50%{opacity:.25}}
  .trip-row .st-ok{animation:pop-in .4s cubic-bezier(.3,1.5,.5,1) both;animation-timeline:view();animation-range:entry 40% entry 90%}
  .trip-row:nth-child(2) .st-ok{animation-range:entry 55% entry 100%}
  .trip-row:nth-child(3) .st-ok{animation-range:entry 70% cover 30%}
  @keyframes pop-in{from{opacity:0;transform:scale(.6)}}
}
@media (max-width:759px){
  .agent-intro .hero-friend{grid-column:1 / -1;grid-row:1;justify-self:end;align-self:start;width:78px;height:78px;margin:-12px -4px 0 0;z-index:3}
  .agent-intro h1{grid-column:1 / -1;font-size:clamp(30px,9.4vw,38px)}
}
/* ask bubble floats above the walkers' heads, never over them */
.stage{padding-top:120px}
.stage-people{width:66%}
.stage-ask{top:auto;bottom:calc(100% + 10px);left:-14%;max-width:86%}
@media (min-width:1000px){
  .stage{padding-top:110px;min-height:600px}
  .stage-people{width:100%;max-width:310px}
  .stage-ask{left:-8%;bottom:calc(100% + 14px);max-width:100%}
}
.agent-intro .local-scene{grid-row:1}

/* ================= v70 ================= */
:root{--brand:#F2B9C4;--brand-50:#FDF0F2;--brand-100:#FBE3E8;--brand-200:#F6CCD5}

/* hero: mascot perches on the film's top-right corner, headline gets the full width */
.agent-intro .hero-friend{grid-column:1 / -1;grid-row:1;justify-self:end;align-self:start;z-index:3;width:64px;height:64px;margin:10px 10px 0 0}
.agent-intro h1{grid-column:1 / -1;grid-row:2}
.agent-intro .friend-plate{display:none}
.agent-intro .agent-mascot{filter:drop-shadow(0 8px 12px rgb(43 38 34 / .25))}
@media (min-width:760px){
  .agent-intro .hero-friend{width:120px;height:120px;margin:-44px -26px 0 0}
  .agent-intro h1{font-size:clamp(40px,4.1vw,58px)}
}

/* brand color: tteok pink owns the big surfaces; WeChat green stays on WeChat buttons only */
.stage{background:linear-gradient(180deg,var(--brand-50) 0%,var(--brand-100) 55%,var(--brand-200) 100%)}
.stage::before{background:radial-gradient(closest-side,rgb(255 255 255 / .6),transparent)}
.closing{background:var(--brand-100)}
.trip-progress span{background:var(--ink)}
.case-tabs button[aria-selected=true]{background:var(--brand-50)}

/* stage person: hanbok pair (back view) */
.stage-people{width:58%;max-width:270px}
.stage-people .stage-walk{filter:drop-shadow(0 16px 18px rgb(120 60 70 / .18))}
@media (min-width:1000px){.stage-people{max-width:320px}}

/* ---------- photo gallery: the outcome, not the process ---------- */
.svc-sec{padding:56px 0 64px;border-top:1px solid var(--line)}
.svc-rail{list-style:none;margin:28px 0 0;padding:0 16px 8px;display:grid;grid-auto-flow:column;grid-auto-columns:72%;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-padding-inline:16px;scrollbar-width:none}
.svc-rail::-webkit-scrollbar{display:none}
.svc{position:relative;scroll-snap-align:start;border-radius:24px;overflow:hidden;background:var(--rice);aspect-ratio:4/5;isolation:isolate}
.svc img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2}
.svc::after{content:'';position:absolute;inset:45% 0 0 0;background:linear-gradient(to top,rgb(20 14 12 / .62),transparent);z-index:-1}
.svc-meta{position:absolute;left:18px;right:18px;bottom:16px;color:#fff;display:grid;gap:2px}
.svc-meta b{font-size:22px;font-weight:800;letter-spacing:-.02em;line-height:1.2}
.svc-meta span{font-size:13.5px;opacity:.88}
.svc-chip{position:absolute;left:14px;top:14px;display:flex;align-items:center;gap:7px;margin:0;padding:7px 12px 7px 10px;border-radius:999px;background:rgb(255 255 255 / .92);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);font-size:13px;font-weight:700;box-shadow:0 6px 18px -8px rgb(0 0 0 / .4)}
.svc-dot{width:8px;height:8px;border-radius:50%;background:var(--wechat)}
.tone-hair .svc-dot{background:var(--muted)}
@media (min-width:760px){
  .svc-sec{padding:88px 0 96px}
  .svc-rail{width:calc(100% - 64px);max-width:1120px;margin:40px auto 0;padding:0;grid-auto-flow:row;grid-template-columns:repeat(2,1fr);grid-auto-columns:auto;overflow:visible;gap:16px}
}
@media (min-width:1000px){.svc-rail{grid-template-columns:repeat(4,1fr)}}
@media (prefers-reduced-motion:no-preference){
  .svc-chip{animation:pop-in .45s cubic-bezier(.3,1.5,.5,1) both;animation-timeline:view();animation-range:entry 30% entry 80%}
  .tone-hair .svc-dot{animation:pulse 1.4s ease-in-out infinite}
}

/* ---------- closing: the three steps live here now ---------- */
.closing{gap:18px}
.closing .agent-flow{margin-top:8px}
.closing .agent-flow ol{display:grid;gap:10px;justify-items:start;text-align:left}
.closing .agent-flow li{font-size:15px}
@media (min-width:760px){
  .closing .agent-flow ol{grid-template-columns:repeat(3,auto);gap:28px;justify-content:center}
}
.footer span[data-t=credit]{opacity:.8}
.closing .agent-flow{grid-row:auto;grid-column:auto;order:0;align-self:auto}
.scenes-head p{max-width:36em}
.hero-sub{text-wrap:wrap}

/* Focus the first screen on the brand promise and contact. */
.hero-sub{white-space:pre-line;font-weight:400;line-height:1.6}
.agent-phone{border:2px solid var(--line);box-shadow:0 12px 28px -24px var(--ink)}
.agent-intro .local-scene{margin-bottom:16px}
.agent-intro .film-stage{aspect-ratio:2/1}
.agent-intro h1{font-weight:700;font-size:clamp(32px,3.8vw,48px);line-height:1.16;letter-spacing:-.035em}
.contact-entry{margin-top:20px}
.svc-chip,.svc-dot,.agent-mascot{animation:none!important}
.svc-dot{background:var(--brand)}
@media(max-width:759px){.header{height:64px}.hero{padding-top:8px;gap:24px}.agent-intro{padding-top:0}.agent-intro .film-stage{aspect-ratio:2.2/1}.scene-recognition strong{display:none}.agent-intro .scene-recognition{padding-top:8px}.scene-recognition a{font-size:11px}.agent-intro h1{font-size:32px}.hero-sub{font-size:16px;margin-top:12px}.contact-entry{margin-top:16px}.agent-intro .hero-friend{width:64px;height:64px;margin:8px 8px 0 0}}
@media(min-width:760px){.hero{padding-top:16px;column-gap:48px}.agent-intro .hero-friend{width:96px;height:96px;margin:-20px -12px 0 0}.agent-intro{padding-top:0}}

/* ================= v72 — friend, not a service ================= */
/* the postcard headline over the film was tourism-ad copy; the film speaks for itself */
.postcard-signature{display:none}
.film-stage::after{height:30%}
/* friend greets from the film corner */
.agent-intro .hero-friend{overflow:visible}
.agent-intro .friend-hello{left:auto;right:calc(100% - 6px);top:14px;margin:0;padding:8px 13px;font-size:13.5px;line-height:1.35;border-radius:16px 16px 4px 16px;background:#fff;color:var(--ink);box-shadow:0 8px 22px -10px rgb(0 0 0 / .45)}
@media (min-width:760px){.agent-intro .friend-hello{top:30px;font-size:15px;padding:9px 15px}}
/* menu-like details removed: tab sub-items and location tags */
.case-tabs button .service-items{display:none}
.case-tabs button{padding:12px 6px 18px}
.svc-meta span{display:none}
.svc-chip{font-weight:650}
/* brand name: the language the reader reads comes first */
.brand-name small{font-weight:500}
.scene-recognition strong{display:none}

/* Compact header without wrapping on small phones. */
@media(max-width:350px){.header{gap:8px}.brand{gap:8px}.language a{padding-inline:8px;min-width:44px}}

/* Friend-first brand copy, retaining the tteok palette and compact hero. */
.friend-topics{display:grid;gap:24px;margin-top:24px;margin-bottom:32px}
.friend-topics h3{font-size:17px;margin-bottom:4px}
.friend-topics p{font-size:15px;line-height:1.6}
.friend-topics .help-note{color:var(--muted);grid-column:1/-1}
@media(min-width:760px){.friend-topics{grid-template-columns:repeat(3,1fr)}}
@media(max-width:759px){.brand-name b{font-size:16px}.brand-name small{font-size:10px}.header{gap:8px}.brand{gap:8px}.language a{padding-inline:8px;min-width:44px}.chat-identity strong{font-size:13px}}
@media(max-width:350px){html:lang(zh-CN) .brand-name b{font-size:14px}.agent-intro h1{font-size:28px}.logo{width:36px;height:36px;flex-basis:36px}}

.language a{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}

/* The character introduces itself once; the brand remains the site identity. */
.agent-intro .friend-hello{white-space:pre-line;width:max-content;max-width:144px;line-height:1.4;text-align:left}
@media(max-width:759px){.agent-intro .friend-hello{top:6px;padding:7px 11px;font-size:12px}}

/* Quiet, coordinated motion. Transform-only animation preserves layout. */
:root{--mascot-face:#EADBC2;--motion-ease:cubic-bezier(.22,.7,.25,1);--motion-short:240ms}
.mascot-motion{position:relative;display:block;width:100%;height:100%;transform-origin:50% 90%;padding:0;border:0;background:transparent;color:inherit;cursor:pointer;border-radius:12px;-webkit-tap-highlight-color:transparent}
.mascot-motion:focus-visible{outline:2px solid var(--ink);outline-offset:4px}
.mascot-motion:disabled{cursor:default;opacity:.7}
.mascot-lid{position:absolute;top:63.5%;width:5.2%;height:7%;border-radius:50%;background:var(--mascot-face);opacity:0;pointer-events:none}
.lid-left{left:39.6%}.lid-right{left:55%}
.mascot-lid::after{content:'';position:absolute;left:12%;right:12%;top:50%;height:1px;border-radius:50%;background:var(--ink)}
.message-row{position:relative}
.message-row.is-pending.is-typing{visibility:visible;opacity:1;transform:none}
.message-row.is-typing>*{visibility:hidden}
.message-row.is-typing .message-avatar{visibility:visible}
.message-row.is-typing::after{content:'•••';position:absolute;left:44px;top:0;padding:8px 14px;background:var(--paper);color:var(--muted);border-radius:8px;letter-spacing:4px;font-size:16px;line-height:24px}
.case-tabs{position:relative;--case-index:0;--case-color:var(--pink)}
.case-tabs button::after{opacity:.2;width:28px;margin-left:-14px}
.case-tabs button[aria-selected=true]::after{opacity:0}
.case-tabs::after{content:'';position:absolute;bottom:4px;left:calc((100% - 16px) / 6 - 28px + var(--case-index) * ((100% - 16px) / 3 + 8px));width:56px;height:7px;border-radius:16px;background:var(--case-color);pointer-events:none;transition:left var(--motion-short) var(--motion-ease),background var(--motion-short)}
@media(prefers-reduced-motion:no-preference){
 .hero-friend{animation:friend-arrives 450ms var(--motion-ease) both}
 .mascot-motion{animation:friend-breathes 5.2s ease-in-out infinite;animation-play-state:paused}
 .mascot-lid{animation:friend-blinks 6.8s linear 1.8s infinite;animation-play-state:paused}
 .is-awake .mascot-motion,.is-awake .mascot-lid{animation-play-state:running}
 .is-awake .mascot-motion.is-hop{animation:friend-hop 700ms var(--motion-ease) both}
 @keyframes friend-hop{0%,100%{transform:none}20%{transform:scale(1.05,.94)}48%{transform:translateY(-7px) scale(.98,1.03)}75%{transform:scale(1.03,.98)}}
 .flow-arrived li::before{animation:step-arrives 400ms var(--motion-ease) both}
 .flow-arrived li:nth-child(2)::before{animation-delay:100ms}
 .flow-arrived li:nth-child(3)::before{animation-delay:200ms}
 @keyframes step-arrives{from{transform:translateY(3px) scale(.94)}to{transform:none}}
 .message-row.is-typing::after{animation:friend-types 800ms ease-in-out infinite}
 .message-row:not(.is-pending) .chat-result{animation:result-arrives 320ms var(--motion-ease) both}
 @keyframes friend-arrives{from{opacity:0;transform:translateY(8px) rotate(-3deg)}to{opacity:1;transform:translateY(0) rotate(0)}}
 @keyframes friend-breathes{0%,100%{transform:translateY(0) scale(1)}50%{transform:translateY(-3px) scale(1.025,1.01)}}
 @keyframes friend-blinks{0%,42%,47%,100%{opacity:0}43%,46%{opacity:1}}
 @keyframes friend-types{50%{color:var(--rice-deep)}}
 @keyframes result-arrives{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
}
@media(prefers-reduced-motion:reduce){.hero-friend,.friend-hello,.mascot-motion,.mascot-lid,.chat-result{animation:none!important}.mascot-lid{display:none}.case-tabs::after,.message-row{transition:none}}

/* One story: a Jongno moment, a friend, then the same request in WeChat. */
:root{--story-gap:16px;--story-caption-size:15px}
.story-wish{padding:12px 0 0;color:var(--ink);font-size:var(--story-caption-size);font-weight:600;line-height:1.5}
.story-bridge{margin:0 0 var(--story-gap);color:var(--muted);font-size:14px;line-height:1.5}
.agent-intro .local-scene{margin-bottom:20px}
.hero-sub{max-width:28em}
.friend-topics{margin-bottom:0}
@media(min-width:760px){.agent-interaction{margin-top:0}.story-bridge{padding-top:4px}.svc-sec{padding-block:64px}}
@media(max-width:759px){
 .hero{gap:20px;padding-bottom:40px}
 .agent-intro .local-scene{margin-bottom:16px}
 .story-wish{padding-top:8px;font-size:14px}
 .story-bridge{margin-bottom:12px;font-size:13px}
 .contact-entry{column-gap:12px}
 .svc-sec{padding-block:40px}
 .friend-topics{gap:20px;margin-top:20px}
}

.story-source{display:inline-block;font-size:12px;color:var(--muted);text-underline-offset:3px}
.story-source:hover,.story-source:focus-visible{color:var(--ink)}

/* ================= v84 — brand first ================= */
/* The promise and the friend open the page; the Jongno moment follows the invitation.
   Tteok pink tints the first screen so WeChat green reads as the action, not the brand. */
body{background:linear-gradient(180deg,var(--brand-50) 0,var(--paper) 620px) no-repeat var(--paper)}
.agent-demo .agent-intro{grid-template-columns:minmax(0,1fr) auto;column-gap:16px;padding-top:44px}
.agent-demo .agent-intro .hero-since{grid-column:1 / -1;grid-row:1;margin:0 0 10px;font-size:13px;font-weight:650;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.agent-demo .agent-intro h1{grid-column:1;grid-row:2;align-self:center}
.agent-demo .agent-intro .hero-friend{grid-column:2;grid-row:2;justify-self:end;align-self:center;width:104px;height:104px;margin:0;z-index:3}
.agent-demo .agent-intro .friend-hello{top:auto;bottom:calc(100% + 2px);right:4px;left:auto;border-radius:16px 16px 4px 16px}
.agent-demo .agent-intro .hero-sub{grid-column:1 / -1;grid-row:3}
.agent-demo .agent-intro .contact-entry{grid-column:1 / -1;grid-row:4}
.agent-demo .agent-intro .local-scene{grid-column:1 / -1;grid-row:5;margin:28px 0 0}
@media(min-width:760px){
 .agent-demo .agent-intro{padding-top:56px}
 .agent-demo .agent-intro .hero-friend{width:148px;height:148px}
 .agent-demo .agent-intro .film-stage{aspect-ratio:2.4/1}
}
/* topics: three tteok-coloured cards instead of bare text */
.friend-topics>div{padding:22px 22px 24px;border-radius:24px;background:var(--pink-t)}
.friend-topics>div:nth-child(2){background:var(--pumpkin-t)}
.friend-topics>div:nth-child(3){background:var(--ssuk-t)}
.friend-topics h3{display:flex;align-items:center;gap:10px;font-size:19px;margin-bottom:8px}
.friend-topics h3::before{content:'';flex:none;width:14px;height:14px;border-radius:50%;background:var(--pink)}
.friend-topics>div:nth-child(2) h3::before{background:var(--pumpkin)}
.friend-topics>div:nth-child(3) h3::before{background:var(--ssuk)}
@media(max-width:759px){.friend-topics{gap:12px}.friend-topics>div{padding:18px 18px 20px;border-radius:20px}}

@media(max-width:359px){html:lang(zh-CN) .agent-demo .agent-intro h1{font-size:24px;line-height:1.2}}

/* Keep the story visible without squeezing the brand or language controls. */
.header nav a{display:inline-flex;align-items:center;min-height:44px;white-space:nowrap}
@media(max-width:759px){
 .header{height:auto;min-height:64px;flex-wrap:wrap;row-gap:0}
 .header .brand{min-height:64px}
 .header nav{order:3;display:flex;flex-basis:100%;justify-content:flex-end;margin-left:0;gap:0;font-size:14px}
 .header nav a:not([data-about-link]){display:none}
 .header [data-about-link]{color:var(--ink);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px}
 .header [data-about-link]:hover{color:var(--ink)}
 .agent-demo .agent-intro{padding-top:0}
}

/* v90: a saved place, a request to a friend, a verified result. */
:root{--story-space:16px;--story-radius:16px;--story-border:var(--rice-deep)}
.request-story{row-gap:var(--story-space);padding-bottom:48px}
.request-story .agent-intro{padding-top:24px;column-gap:16px}
.request-story .agent-intro h1{grid-row:1;font-size:clamp(30px,4vw,48px)}
.request-story .agent-intro .hero-friend{grid-row:1;width:96px;height:96px}
.request-story .agent-intro .hero-sub{grid-row:2;margin-top:16px;line-height:1.6;font-size:16px}
.request-story .agent-intro .contact-entry{grid-row:3;margin-top:16px;flex-wrap:nowrap;gap:12px}
.request-story .intro-contact{min-height:48px;font-size:16px;padding:0 16px;flex:1;white-space:nowrap}
.request-story .qr-entry{font-size:14px;white-space:nowrap;padding:0 8px;min-height:48px}
.request-story .agent-intro .friend-hello{right:-4px;bottom:calc(100% + 4px);top:auto;padding:6px 10px;max-width:160px;font-size:12px;line-height:1.4;white-space:nowrap;border-radius:12px 12px 4px 12px}
.request-story .mascot-motion{cursor:default;animation:none;transform-origin:50% 80%}
.request-story .hero-friend,.request-story .friend-hello{animation:none}
.friend-task{position:absolute;left:-6px;bottom:12px;width:28px;height:32px;padding:4px;border-radius:8px;background:var(--pink-t);border:1px solid var(--pink);transform:rotate(-10deg);pointer-events:none}
.friend-task svg{width:100%;height:100%;fill:none;stroke:var(--ink);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.friend-task .task-check{display:none}
.request-story[data-story-phase="4"] .friend-task{background:var(--ssuk-t);border-color:var(--ssuk);transform:rotate(0)}
.request-story[data-story-phase="4"] .task-bookmark{display:none}
.request-story[data-story-phase="4"] .task-check{display:block}
.request-story .story-bridge{font-size:13px;margin:0 0 12px}
.story-rail{list-style:none;padding:0;margin:0 0 12px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.story-rail li{font-size:13px;color:var(--muted);padding:6px 0;border-bottom:2px solid var(--line);text-align:center;white-space:nowrap}
.story-rail li.is-current{color:var(--ink);font-weight:650;border-color:var(--pink)}
.story-rail li.is-done{border-color:var(--ssuk)}
.request-story .agent-phone{border-radius:var(--story-radius);border:1px solid var(--story-border);box-shadow:none}
.request-story .chat-header{min-height:40px;padding:0 40px}
.request-story .chat-identity strong{font-size:14px}
.request-story .chat-identity img{width:24px;height:24px}
.request-story .chat-back{font-size:22px}
.request-story .chat-body{padding:12px;gap:8px;font-size:16px;line-height:1.5}
.request-story .message-row{gap:8px}
.request-story .message-avatar{width:28px;height:28px;flex-basis:28px;border-radius:8px}
.request-story .message-avatar:not(.visitor-avatar) img{width:28px;height:28px}
.request-story .visitor-avatar img{left:-18px;top:-8px}
.request-story .chat-bubble,.request-story .chat-result{max-width:calc(100% - 36px);padding:8px 10px;border-radius:8px}
.request-story .chat-link{display:flex;align-items:center;gap:8px;border-top:0;margin-top:8px;padding-top:0;font-size:12px;line-height:1.35;color:var(--ink)}
.saved-thumb{width:36px;height:36px;flex:0 0 36px;border-radius:8px;object-fit:cover}
.request-story .chat-result small{font-size:12px;line-height:1.3}
.request-story .chat-result h3{font-size:16px;margin-top:2px;line-height:1.4}
.request-story .result-detail{margin-top:4px;padding:0;font-size:14px;background:none;line-height:1.5;display:block}
.request-story .result-proof{font-size:12px;margin-top:4px;line-height:1.4}
.request-story .chat-playback{min-height:44px;padding:0 12px;gap:8px}
.request-story .chat-progress{font-size:12px}
.request-story .chat-replay{font-size:14px;min-height:44px}
.request-story .message-row.is-typing::after{left:36px;padding:4px 12px}
.request-story .case-tabs{margin:12px 0 0;gap:8px}
.request-story .case-tabs button{padding:8px 4px 12px;min-height:44px;border-radius:12px}
.request-story .case-tabs button strong{font-size:14px}
.request-story .case-tabs::after,.request-story .case-tabs button::after{height:4px;bottom:2px}
.local-moment{display:grid;gap:24px;padding-block:32px 48px;border-top:1px solid var(--line)}
.local-moment .film-stage{aspect-ratio:2/1;border-radius:var(--story-radius)}
.local-moment .story-wish{font-size:13px;padding-top:8px}
.moment-copy h2{font-size:28px;line-height:1.3;letter-spacing:-.035em;white-space:pre-line}
.moment-copy p{font-size:16px;color:var(--muted);margin-top:12px;max-width:28em}
@media(min-width:760px){
 .request-story{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:auto;gap:48px;padding-top:24px;align-items:center}
 .request-story .agent-intro{grid-row:1;padding-top:24px;align-self:center}
 .request-story .agent-interaction{grid-row:1;max-width:480px;align-self:start}
 .request-story .agent-intro .hero-friend{width:136px;height:136px}
 .request-story .agent-intro .friend-hello{font-size:14px}
 .request-story .agent-intro h1{font-size:44px}
 .request-story .agent-intro .hero-sub{font-size:18px;margin-top:24px}
 .request-story .agent-intro .contact-entry{margin-top:24px}
 .request-story .intro-contact{flex:0 1 auto;width:auto;padding-inline:24px;min-height:52px;font-size:17px}
 .request-story .chat-body{font-size:16px;padding:16px;gap:10px}
 .request-story .chat-bubble,.request-story .chat-result{padding:9px 12px}
 .request-story .chat-result h3{font-size:16px}
 .request-story .story-rail li{font-size:14px}
 .local-moment{grid-template-columns:1.25fr 1fr;align-items:center;gap:48px;padding-block:48px 64px}
 .local-moment .film-stage{aspect-ratio:16/9}
 .moment-copy h2{font-size:36px}
 .friend-task{width:36px;height:40px;left:-4px;bottom:16px}
}
@media(max-width:759px){
 .header nav{display:flex}
 .request-story .agent-interaction{grid-column:auto;grid-row:auto;width:100%}
 .request-story .agent-intro{padding-top:28px}
 .request-story .agent-intro h1{font-size:30px}
 .request-story .agent-intro .friend-hello{font-size:12px}
}
@media(max-width:359px){
 .request-story .agent-intro .hero-friend{width:76px;height:76px}
 .request-story .agent-intro h1,html:lang(zh-CN) .request-story .agent-intro h1{font-size:26px}
 .request-story .agent-intro .hero-sub{font-size:16px}
 .request-story .intro-contact{font-size:14px;padding-inline:12px}
 .request-story .qr-entry{font-size:12px;padding-inline:4px}
 .story-rail li{font-size:12px}
 .request-story .agent-intro .friend-hello{right:-6px;max-width:156px;font-size:12px}
}
@media(prefers-reduced-motion:no-preference){
 .request-story.story-playing[data-story-phase="1"] .mascot-motion{animation:friend-receives 600ms var(--motion-ease) both}
 .request-story.story-playing[data-story-phase="2"] .mascot-motion{animation:friend-reads 700ms var(--motion-ease) both}
 .request-story.story-playing[data-story-phase="3"] .mascot-motion{animation:friend-reads 700ms var(--motion-ease) both}
 .request-story.story-playing[data-story-phase="4"] .mascot-motion{animation:friend-delivers 650ms var(--motion-ease) both}
 .request-story.story-playing[data-story-phase="1"] .friend-task{animation:request-arrives 600ms var(--motion-ease) both}
 .request-story.story-playing[data-story-phase="4"] .friend-task{animation:receipt-arrives 500ms var(--motion-ease) both}
 .request-story.story-playing[data-story-phase="2"] .message-row:nth-child(2) .message-avatar img{animation:friend-reads 650ms var(--motion-ease) both}
 .request-story.story-playing[data-story-phase="4"] .message-row:nth-child(4) .message-avatar img{animation:friend-delivers 650ms var(--motion-ease) both}
 @keyframes friend-receives{0%,100%{transform:none}45%{transform:translateX(-4px) rotate(-6deg)}}
 @keyframes friend-reads{0%,100%{transform:none}45%{transform:translateY(2px) rotate(-5deg)}}
 @keyframes friend-delivers{0%,100%{transform:none}40%{transform:translateY(-4px) rotate(3deg)}70%{transform:translateY(1px)}}
 @keyframes request-arrives{from{opacity:0;transform:translateX(-16px) rotate(-18deg)}to{opacity:1;transform:rotate(-10deg)}}
 @keyframes receipt-arrives{from{opacity:.4;transform:translateY(5px) scale(.92)}to{opacity:1;transform:none}}
}
@media(prefers-reduced-motion:reduce){.request-story .mascot-motion,.request-story .friend-task,.request-story .message-avatar img{animation:none!important}.request-story .message-row{transition:none}}
