/* =====================================================================
   TRANG "HỢP TÁC CÙNG THE MUSE" — templates/page.hop-tac.liquid
   Mọi selector có tiền tố .hop-tac để không đè CSS theme.
   3 class trùng tên với theme.css (.hero/.card/.btn) đã đổi thành
   .ht-hero/.ht-card/.ht-btn để CSS theme không rò vào.
   Font: dùng Google Sans Flex tự host của theme + Pinyon Script theme đã nạp.
   ===================================================================== */
.hop-tac{
  --sand:#D4C9AD;--linen:#E8E1D8;--ink:#2B3A55;--lagoon:#609B9E;--bg:#FAF7F2;
  --night:#1B2436;--ember:#E8C99B;--cream:#F3EDE4;--mist:#B9C1CE;--ink-soft:#56627A;--brass:#8A6A3A;
  --hair-d:rgba(232,225,216,.16);--hair-l:#D6CCBB;
  --sans:"Google Sans Flex",system-ui,sans-serif;--script:"Pinyon Script",cursive;
  --gut:16px;--max:1280px;--rad:16px;
  display:block;background:var(--night);color:var(--linen);font-family:var(--sans);font-size:18px;line-height:1.7;overflow-x:clip
}
.hop-tac *{box-sizing:border-box}
/* theme.css có `section{padding:...}` toàn cục: xoá về 0, từng khối tự đặt padding riêng */
.hop-tac section{padding:0}
.hop-tac img{display:block;max-width:100%}
.hop-tac a{color:inherit}
.hop-tac p{margin:0 0 1em}
.hop-tac h1,.hop-tac h2,.hop-tac h3{margin:0;font-weight:300;letter-spacing:-.025em;line-height:1.05;font-family:var(--sans)}
.hop-tac .wrap{max-width:var(--max);margin:0 auto;padding:0 var(--gut)}
.hop-tac .script{font-family:var(--script);font-weight:400;letter-spacing:0;color:var(--ember)}
.hop-tac .label{font-size:13px;letter-spacing:.18em;text-transform:uppercase;font-weight:500;color:var(--ember);margin:0 0 24px}
.hop-tac .light .label{color:var(--brass)}
.hop-tac .ht-btn{display:inline-flex;align-items:center;justify-content:center;background:var(--ember);color:var(--night);text-decoration:none;border:0;border-radius:999px;padding:20px 34px;font:500 14px/1 var(--sans);letter-spacing:.16em;text-transform:uppercase;cursor:pointer;transition:background .2s}
.hop-tac .ht-btn:hover{background:#F1D6AE}
.hop-tac .ht-btn.dark{background:var(--ink);color:var(--bg)}
.hop-tac .ht-btn.dark:hover{background:var(--night)}
.hop-tac a:focus-visible,.hop-tac button:focus-visible,.hop-tac input:focus-visible,.hop-tac select:focus-visible,.hop-tac textarea:focus-visible,.hop-tac summary:focus-visible{outline:2px solid var(--ember);outline-offset:3px}
.hop-tac .light a:focus-visible,.hop-tac .fcard :focus-visible{outline-color:var(--lagoon)}
.hop-tac .ulink{font-size:16px;text-decoration:underline;text-underline-offset:6px;text-decoration-color:var(--ember);text-decoration-thickness:1px}
.hop-tac .light{background:var(--cream);color:var(--ink)}
.hop-tac section{scroll-margin-top:72px}

/* 1. HERO */
.hop-tac .ht-hero{position:relative;display:grid;background:var(--night);overflow:hidden}
.hop-tac .ht-hero .ph{position:relative;height:36vh;min-height:260px;max-height:440px;margin:12px var(--gut) 0;border-radius:var(--rad);overflow:hidden}
.hop-tac .ht-hero .ph img{width:100%;height:100%;object-fit:cover;object-position:50% 62%}
.hop-tac .ht-hero .tx{position:relative;z-index:2;padding:28px var(--gut) 64px}
.hop-tac .ht-hero h1{font-size:clamp(48px,8.4vw,108px);line-height:.98;color:var(--bg)}
.hop-tac .ht-hero h1 .script{display:block;font-size:1.2em;line-height:1.05;margin-top:.12em}
.hop-tac .ht-hero .lead{font-size:clamp(19px,1.9vw,24px);line-height:1.5;color:var(--linen);font-weight:300;max-width:29ch;margin:22px 0 32px;text-wrap:pretty}
.hop-tac .ht-hero .act{display:flex;flex-wrap:wrap;gap:20px 32px;align-items:center}

/* 2. KHOẢNH KHẮC: lời nhắn hiện ra khi lớp sáp tan */
.hop-tac .reveal{padding:72px 0 104px}
.hop-tac .reveal-grid{display:grid;gap:56px;align-items:center}
.hop-tac .disc{position:relative;width:min(84vw,540px);aspect-ratio:1;margin:0 auto;border-radius:50%;overflow:hidden;box-shadow:0 0 0 1px rgba(232,201,155,.45),0 0 60px -10px rgba(232,170,110,.35)}
.hop-tac .disc img{width:100%;height:100%;object-fit:cover}
.hop-tac .disc .wax{position:absolute;inset:0;background:#F4DCC0;opacity:0;pointer-events:none}
/* Chỉ trình duyệt hỗ trợ scroll-driven animation mới phủ lớp sáp; trình duyệt cũ thấy ảnh rõ */
@supports (animation-timeline: view()){
  /* timeline đặt trên .disc (vì .disc overflow:hidden là scroll container, view() trên con sẽ đứng yên) */
  .hop-tac .disc{view-timeline-name:--ht-disc}
  .hop-tac .disc .wax{opacity:.94;animation:ht-melt linear both;animation-timeline:--ht-disc;animation-range:entry 30% cover 55%}
  .hop-tac .disc img{filter:blur(14px);animation:ht-focus linear both;animation-timeline:--ht-disc;animation-range:entry 30% cover 55%}
}
@keyframes ht-melt{from{opacity:.94}to{opacity:0}}
@keyframes ht-focus{from{filter:blur(14px)}to{filter:blur(0)}}
@media (prefers-reduced-motion:reduce){.hop-tac .disc .wax{animation:none!important;opacity:0}.hop-tac .disc img{animation:none!important;filter:none}}
html.chup .hop-tac .disc .wax{animation:none;opacity:0} html.chup .hop-tac .disc img{animation:none;filter:none}
.hop-tac .reveal h2{font-size:clamp(36px,5vw,68px);color:var(--bg);max-width:14ch}
.hop-tac .reveal h2 em{font-style:normal;color:var(--ember)}
/* theme.css có `h1 em,h2 em{font-family:Pinyon...;font-size:1.15em}` toàn cục: trả về chữ thường của tiêu đề */
.hop-tac h1 em,.hop-tac h2 em{font-family:inherit;font-weight:inherit;font-size:inherit;line-height:inherit;letter-spacing:inherit}
.hop-tac .reveal p{color:var(--mist);font-size:20px;max-width:32ch;margin-top:28px}
.hop-tac .reveal .note{font-family:var(--script);font-size:46px;color:var(--ember);line-height:1.2;margin:4px 0 0;padding-left:16px}

/* 3. VỀ SẢN PHẨM (kem) */
.hop-tac .about{padding:112px 0}
.hop-tac .about-grid{display:grid;gap:48px}
.hop-tac .about .body p{font-size:20px;line-height:1.75}
.hop-tac .about .body .muted{color:var(--ink-soft)}
.hop-tac .pics{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.hop-tac .pics img{width:100%;aspect-ratio:3/4;object-fit:cover;border-radius:var(--rad)}
.hop-tac .pics img:last-child{margin-top:48px}
.hop-tac .facts{display:grid;margin-top:80px;border-top:1px solid var(--ink)}
.hop-tac .facts > div{padding:28px 0;border-bottom:1px solid var(--hair-l)}
.hop-tac .facts .big{font-size:clamp(40px,4.6vw,64px);font-weight:200;letter-spacing:-.04em;line-height:1;white-space:nowrap}
.hop-tac .facts h3{font-size:19px;font-weight:500;letter-spacing:0;margin:14px 0 4px;line-height:1.35}
.hop-tac .facts p{margin:0;color:var(--ink-soft);font-size:17px}

/* 4. HAI CÁCH */
.hop-tac .ways{padding:120px 0}
.hop-tac .head{margin-bottom:56px}
.hop-tac .head h2{font-size:clamp(40px,5.6vw,76px);color:var(--bg)}
.hop-tac .cards{display:grid;gap:20px}
.hop-tac .ht-card{border:1px solid rgba(232,201,155,.35);padding:36px 24px}
.hop-tac .ht-card .n{font-size:clamp(64px,7vw,96px);font-weight:200;line-height:.8;color:var(--ember);letter-spacing:-.04em}
.hop-tac .ht-card h3{font-size:clamp(28px,3vw,40px);color:var(--bg);margin:28px 0 18px;line-height:1.1}
.hop-tac .ht-card p{color:var(--linen);font-size:18px}
.hop-tac .ht-card ul{list-style:none;margin:24px 0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.hop-tac .ht-card li{border:1px solid rgba(232,201,155,.45);color:var(--bg);border-radius:999px;padding:8px 16px;font-size:15px;line-height:1.4}
.hop-tac .ht-card .fit{color:var(--mist);font-size:16px;margin:0;padding-top:18px;border-top:1px solid var(--hair-d)}
.hop-tac .ways .after{margin:48px 0 0;font-size:20px;color:var(--linen)}

/* 4b. DẢI SET QUÀ (trong khối Hai cách) */
.hop-tac .sets{margin-top:80px;padding-top:56px;border-top:1px solid var(--hair-d)}
.hop-tac .sets-title{font-size:clamp(26px,2.8vw,36px);color:var(--bg);font-weight:300;margin-bottom:32px;line-height:1.2}
.hop-tac .sets-row{list-style:none;margin:0 calc(var(--gut) * -1);padding:0 var(--gut) 8px;display:grid;grid-auto-flow:column;grid-auto-columns:68%;gap:14px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-padding-inline:var(--gut);scrollbar-width:none}
.hop-tac .sets-row::-webkit-scrollbar{display:none}
.hop-tac .sets-row li{scroll-snap-align:start;margin:0}
.hop-tac .sets-row img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:var(--rad)}
.hop-tac .sets-row span{display:block;margin-top:14px;font-size:16px;color:var(--linen);line-height:1.4}

/* 5. CHIA VIỆC (kem) */
.hop-tac .split{padding:112px 0}
.hop-tac .split-grid{display:grid;gap:48px}
.hop-tac .split h2{font-size:clamp(36px,4.6vw,64px);max-width:13ch}
.hop-tac .lists{display:grid;gap:40px;margin-top:48px}
.hop-tac .lists h3{font-size:13px;letter-spacing:.18em;text-transform:uppercase;font-weight:500;color:var(--brass);margin-bottom:10px;line-height:1.4}
.hop-tac .lists ul{list-style:none;margin:0;padding:0}
.hop-tac .lists li{padding:13px 0;border-bottom:1px solid var(--hair-l);font-size:18px;line-height:1.5}
.hop-tac .lists .end{border:0;font-size:clamp(40px,4.4vw,60px);font-weight:200;letter-spacing:-.03em;padding-top:24px;line-height:1;white-space:nowrap}
.hop-tac .split figure{margin:0}
.hop-tac .split figure img{width:100%;height:100%;min-height:420px;max-height:820px;object-fit:cover;border-radius:var(--rad)}

/* 6. AI HỢP */
.hop-tac .who{padding:120px 0}
.hop-tac .who-grid{display:grid;gap:56px;align-items:center}
.hop-tac .who h2{font-size:clamp(32px,4.2vw,56px);color:var(--bg);max-width:18ch;line-height:1.1}
.hop-tac .tags{list-style:none;margin:40px 0;padding:0;display:flex;flex-wrap:wrap;gap:10px}
.hop-tac .tags li{border:1px solid rgba(232,201,155,.45);border-radius:999px;padding:12px 22px;font-size:clamp(17px,1.6vw,20px);color:var(--bg);line-height:1.3}
.hop-tac .who .end{color:var(--mist);font-size:20px;max-width:30ch;margin:0}
.hop-tac .who figure{margin:0}
.hop-tac .who figure img{width:100%;aspect-ratio:4/5;object-fit:cover;border-radius:var(--rad)}

/* 7. QUY TRÌNH */
.hop-tac .steps{padding:120px 0;background:var(--ink)}
.hop-tac .steps .head h2{max-width:14ch}
.hop-tac .sgrid{list-style:none;margin:0;padding:0;display:grid}
.hop-tac .sgrid li{align-content:start;padding:28px 0;border-top:1px solid var(--hair-d);display:grid;grid-template-columns:88px 1fr;gap:0 16px}
.hop-tac .sgrid .n{font-size:60px;font-weight:200;line-height:.85;color:var(--ember);letter-spacing:-.04em;grid-row:span 2}
.hop-tac .sgrid h3{font-size:clamp(22px,2.2vw,28px);color:var(--bg);font-weight:400;letter-spacing:-.01em;line-height:1.25}
.hop-tac .sgrid p{margin:8px 0 0;color:var(--mist);font-size:17px;line-height:1.6}

/* 8. CAM KẾT (kem) */
.hop-tac .prom{padding:112px 0}
.hop-tac .prom h2{font-size:clamp(36px,5vw,68px);max-width:14ch}
.hop-tac .pgrid{display:grid;grid-template-columns:1fr 1fr;margin-top:56px;border-top:1px solid var(--ink)}
.hop-tac .pgrid > div{padding:28px 16px 28px 0;border-bottom:1px solid var(--hair-l)}
.hop-tac .pgrid > div:nth-child(even){padding-left:16px;border-left:1px solid var(--hair-l)}
.hop-tac .pgrid .k{font-size:clamp(34px,5vw,68px);font-weight:200;letter-spacing:-.04em;line-height:1;white-space:nowrap}
.hop-tac .pgrid p{margin:14px 0 0;color:var(--ink-soft);font-size:16px;line-height:1.6}

/* 9. FORM */
.hop-tac .form-sec{padding:120px 0}
.hop-tac .form-grid{display:grid;gap:40px}
.hop-tac .form-sec h2{font-size:clamp(42px,5.6vw,80px);color:var(--bg)}
.hop-tac .form-sec .lead{color:var(--linen);font-size:20px;font-weight:300;max-width:26ch;margin:24px 0 0}
.hop-tac .fcard{background:var(--bg);color:var(--ink);padding:28px 20px;border-radius:4px;box-shadow:0 0 0 1px rgba(232,201,155,.4)}
.hop-tac form{display:grid;gap:22px;margin:0}
.hop-tac label,.hop-tac legend{display:block;font-size:15px;font-weight:500;margin-bottom:8px;padding:0;color:var(--ink);line-height:1.45}
.hop-tac label small{font-weight:400;color:var(--ink-soft)}
.hop-tac input,.hop-tac select,.hop-tac textarea{width:100%;font:400 17px/1.4 var(--sans);color:var(--ink);background:#fff;border:1px solid #CFC4B0;border-radius:10px;padding:15px 16px;min-height:54px;-webkit-appearance:none;appearance:none;margin:0}
.hop-tac input::placeholder,.hop-tac textarea::placeholder{color:#8B93A3}
.hop-tac select{background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%232B3A55' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 18px center;padding-right:44px}
.hop-tac input:focus,.hop-tac select:focus,.hop-tac textarea:focus{border-color:var(--ink)}
.hop-tac textarea{min-height:110px;resize:vertical}
.hop-tac fieldset{border:0;margin:0;padding:0;min-width:0}
.hop-tac .radios{display:grid;gap:8px}
.hop-tac .radios label{display:flex;gap:14px;align-items:center;font-weight:400;font-size:17px;border:1px solid #CFC4B0;border-radius:10px;background:#fff;padding:14px 16px;margin:0;cursor:pointer}
.hop-tac .radios label:has(input:checked){border-color:var(--ink);background:#F6F1E8}
.hop-tac .radios input{width:20px;height:20px;min-height:0;margin:0;padding:0;flex-shrink:0;accent-color:var(--ink);-webkit-appearance:radio;appearance:radio}
.hop-tac form .ht-btn{width:100%;padding:22px}
.hop-tac .fine{font-size:14px;color:var(--ink-soft);margin:0;text-align:center}
.hop-tac .sent{display:none;text-align:center;padding:32px 0}
.hop-tac .sent h3{font-size:36px;color:var(--ink);margin-bottom:12px}

/* 9b. TRẠNG THÁI FORM (đang gửi / lỗi / báo thiếu trường) */
.hop-tac .ht-hp{position:absolute!important;left:-10000px!important;top:auto;width:1px;height:1px;overflow:hidden}
.hop-tac .ht-err{display:none;margin:8px 0 0;font-size:14px;line-height:1.45;color:var(--brass)}
.hop-tac .is-invalid input{border-color:var(--brass)}
.hop-tac .is-invalid .ht-err{display:block}
.hop-tac form .ht-btn[disabled]{opacity:.6;cursor:progress}
.hop-tac .ht-loi{display:none;text-align:center;border-top:1px solid var(--hair-l);padding-top:22px}
.hop-tac .ht-loi.is-on{display:block}
.hop-tac .ht-loi p{margin:0 0 16px;font-size:16px;line-height:1.55;color:var(--ink)}
.hop-tac .ht-loi .ht-btn{width:100%;padding:20px;background:transparent;color:var(--ink);box-shadow:inset 0 0 0 1px var(--ink)}
.hop-tac .ht-loi .ht-btn:hover{background:#F6F1E8}

/* 10. FAQ */
.hop-tac .faq{padding:0 0 112px}
.hop-tac .faq-grid{display:grid;gap:40px;border-top:1px solid var(--hair-d);padding-top:64px}
.hop-tac .faq h2{font-size:clamp(34px,4.2vw,56px);color:var(--bg)}
.hop-tac details{border-bottom:1px solid var(--hair-d)}
.hop-tac details:first-of-type{border-top:1px solid var(--hair-d)}
.hop-tac summary{list-style:none;cursor:pointer;padding:22px 44px 22px 0;font-size:clamp(19px,1.8vw,22px);position:relative;color:var(--bg);line-height:1.4}
.hop-tac summary::-webkit-details-marker{display:none}
.hop-tac summary::before,.hop-tac summary::after{content:"";position:absolute;right:8px;top:50%;width:16px;height:1.5px;background:var(--ember);transition:transform .25s}
.hop-tac summary::after{transform:rotate(90deg)}
.hop-tac details[open] summary::after{transform:rotate(0)}
.hop-tac details p{color:var(--mist);padding-right:44px;margin:0 0 24px;font-size:18px}

/* 11. CÂU KẾT */
.hop-tac .close{padding:96px 0 104px;text-align:center;border-top:1px solid var(--hair-d)}
.hop-tac .close .q{font-size:clamp(26px,3vw,40px);font-weight:300;color:var(--bg);max-width:22ch;margin:0 auto 36px;line-height:1.3;letter-spacing:-.015em}

@media (min-width:760px){
  .hop-tac{--gut:40px;--rad:20px}
  .hop-tac .about-grid{grid-template-columns:1fr 1fr;gap:72px;align-items:center}
  .hop-tac .facts{grid-template-columns:repeat(3,1fr);border-bottom:1px solid var(--hair-l)}
  .hop-tac .facts > div{padding:32px 28px 32px 0;border-bottom:0;border-right:1px solid var(--hair-l)}
  .hop-tac .facts > div + div{padding-left:28px}
  .hop-tac .facts > div:last-child{border-right:0}
  .hop-tac .cards{grid-template-columns:1fr 1fr;gap:24px}
  .hop-tac .ht-card{padding:48px 44px}
  .hop-tac .lists{grid-template-columns:1fr 1fr}
  .hop-tac .sets-row{grid-auto-columns:38%}
  .hop-tac .pgrid{grid-template-columns:repeat(4,1fr)}
  .hop-tac .pgrid > div,.hop-tac .pgrid > div:nth-child(even){padding:32px 24px;border-bottom:0;border-left:1px solid var(--hair-l)}
  .hop-tac .pgrid > div:first-child{border-left:0;padding-left:0}
  .hop-tac .fcard{padding:44px 40px}
  .hop-tac .sgrid{grid-template-columns:1fr 1fr;gap:0 48px}
}
@media (min-width:1080px){
  .hop-tac .ht-hero{grid-template-columns:1fr 1fr;align-items:stretch;min-height:calc(100vh - 98px)}
  .hop-tac .ht-hero .ph{order:2;height:auto;max-height:none;min-height:0;margin:24px 24px 24px 0}
  .hop-tac .ht-hero .ph img{position:absolute;inset:0;-webkit-mask-image:none;mask-image:none;object-position:50% 60%}
  .hop-tac .ht-hero h1{font-size:clamp(64px,6.6vw,100px)}
  .hop-tac .ht-hero .tx{order:1;margin:0;padding:72px 56px 72px max(var(--gut),calc((100vw - var(--max))/2 + var(--gut)));display:flex;flex-direction:column;justify-content:center}
  .hop-tac .reveal{padding:120px 0 128px}
  .hop-tac .reveal-grid{grid-template-columns:1fr 1fr;gap:96px}
  .hop-tac .split-grid{grid-template-columns:7fr 5fr;gap:80px;align-items:stretch}
  .hop-tac .who-grid{grid-template-columns:7fr 5fr;gap:96px}
  .hop-tac .sgrid{grid-template-columns:repeat(4,1fr);gap:0 32px}
  .hop-tac .sgrid li{grid-template-columns:1fr;padding-top:32px}
  .hop-tac .sgrid .n{grid-row:auto;font-size:88px;margin-bottom:28px}
  .hop-tac .form-grid{grid-template-columns:5fr 6fr;gap:96px;align-items:start}
  .hop-tac .form-intro{position:sticky;top:112px}
  .hop-tac .faq-grid{grid-template-columns:4fr 7fr;gap:96px}
  .hop-tac .sets-row{grid-auto-flow:row;grid-template-columns:repeat(5,1fr);margin:0;padding:0;overflow:visible;gap:20px}
}
