/* ============================================================
   Studio LaCà — warm Vietnamese lifestyle studio
   Fashion & bedding · Made in Việt Nam
   Cream + black + signal red · bold Hanken Grotesk
   ============================================================ */

:root {
  --cream:   #f4efe1;   /* warm paper cream (from logo) */
  --cream-2: #ece4d1;
  --paper:   #faf6ec;   /* lifted card */
  --ink:     #1a1a16;   /* logo black */
  --soft:    #6b6555;
  --red:     #dd3b2d;   /* logo underline red */
  --red-dk:  #b92c20;
  --line:    rgba(26,26,22,.16);
  --line-2:  rgba(26,26,22,.09);

  --sans: "Hanken Grotesk", system-ui, sans-serif;

  --ease: cubic-bezier(.22,1,.36,1);
  --gut:  clamp(1.15rem, 4vw, 4.5rem);
  --maxw: 1480px;

  /* hand-drawn red underline */
  --squiggle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='14' viewBox='0 0 140 14' preserveAspectRatio='none'%3E%3Cpath d='M3 9 Q 22 3 45 8 T 90 7 T 137 8' stroke='%23dd3b2d' stroke-width='4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--cream); color: var(--ink);
  font-family: var(--sans); font-weight: 400; font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::selection { background: var(--red); color: var(--cream); }

h1, h2, h3, h4 { font-weight: 800; letter-spacing: -.02em; line-height: 1.02; }

.kicker { display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--soft); margin-bottom: 1.2rem; }
.u-red { position: relative; display: inline-block; padding-bottom: .12em; background: var(--squiggle) no-repeat center bottom; background-size: 100% .4em; }
.link-underline { font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; border-bottom: 2px solid var(--red); padding-bottom: 3px; transition: color .3s; }
.link-underline:hover { color: var(--red); }

/* ============ Top bar ============ */
.topbar { background: var(--ink); color: var(--cream); overflow: hidden; }
.topbar__t { display: flex; gap: 1.6rem; align-items: center; white-space: nowrap; width: max-content; padding: .5rem 0; font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; animation: marquee 40s linear infinite; }
.topbar__t i { color: var(--red); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ Header ============ */
.hdr { position: sticky; top: 0; z-index: 100; display: flex; align-items: center; gap: 1.5rem;
  padding: .9rem var(--gut); background: color-mix(in srgb, var(--cream) 92%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); transition: padding .4s var(--ease); }
.logo { display: flex; flex-direction: column; line-height: .92; margin-right: auto; }
.logo__sub { font-size: .82rem; font-weight: 800; letter-spacing: .02em; align-self: flex-start; background: var(--squiggle) no-repeat center bottom; background-size: 100% .32em; padding-bottom: .18em; }
.logo__name { font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; }
.hdr__nav { display: flex; gap: 1.9rem; }
.hdr__nav a { font-size: .82rem; font-weight: 700; letter-spacing: .04em; position: relative; padding: .2rem 0; }
.hdr__nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px; background: var(--red); transition: right .3s var(--ease); }
.hdr__nav a:hover::after { right: 0; }
.hdr__bag { display: inline-flex; align-items: center; gap: .5rem; font-size: .82rem; font-weight: 700; border: 2px solid var(--ink); border-radius: 100px; padding: .45rem .95rem; transition: background .25s, color .25s; }
.hdr__bag:hover { background: var(--ink); color: var(--cream); }
.hdr__count { min-width: 21px; height: 21px; padding: 0 6px; background: var(--red); color: #fff; border-radius: 100px; display: inline-grid; place-items: center; font-size: .7rem; transition: transform .3s var(--ease); }
.hdr__count.pop { transform: scale(1.4); }
.hdr__burger { display: none; flex-direction: column; gap: 5px; width: 26px; }
.hdr__burger span { height: 2.5px; background: var(--ink); border-radius: 2px; transition: .35s var(--ease); }
.hdr__burger.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hdr__burger.is-open span:nth-child(2) { opacity: 0; }
.hdr__burger.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mnav { position: fixed; inset: 0; z-index: 90; background: var(--ink); color: var(--cream); display: flex; align-items: center; padding: var(--gut); clip-path: inset(0 0 100% 0); transition: clip-path .55s var(--ease); }
.mnav.is-open { clip-path: inset(0 0 0 0); }
.mnav nav { display: flex; flex-direction: column; gap: .5rem; width: 100%; }
.mnav a { font-size: clamp(2.2rem, 12vw, 4rem); font-weight: 800; letter-spacing: -.02em; display: flex; align-items: baseline; gap: 1rem; }
.mnav a span { font-size: .8rem; font-weight: 700; color: var(--red); }
.mnav a:active { color: var(--red); }

/* ============ Hero (split) ============ */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem,4vw,4rem); align-items: center; max-width: var(--maxw); margin: 0 auto; padding: clamp(2rem,5vw,4.5rem) var(--gut) clamp(3rem,6vw,5rem); min-height: 82vh; }
.hero__eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--soft); margin-bottom: 1.4rem; }
.hero__eyebrow b { color: var(--red); }
.hero__title { font-size: clamp(2.6rem, 6.5vw, 5.6rem); }
.hero__title .mask { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .reveal-up { display: inline-block; }
.hero__sub { margin-top: 1.6rem; max-width: 42ch; font-size: clamp(1rem, 1.4vw, 1.15rem); color: var(--soft); }
.hero__cta { display: inline-flex; align-items: center; gap: .7rem; margin-top: 2.2rem; background: var(--ink); color: var(--cream); padding: 1rem 1.7rem; border-radius: 100px; font-weight: 700; font-size: .88rem; letter-spacing: .04em; transition: background .3s, transform .3s var(--ease); }
.hero__cta:hover { background: var(--red); transform: translateY(-2px); }
.hero__media { position: relative; }
.hero__media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 4px; }
.hero__badge { position: absolute; bottom: -22px; left: -22px; width: 118px; height: 118px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; text-align: center; font-weight: 800; font-size: .82rem; line-height: 1.15; letter-spacing: .02em; box-shadow: 0 16px 34px -14px rgba(221,59,45,.7); animation: spin 22s linear infinite; }
.hero__badge span { transform: rotate(-8deg); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 2rem; }
  .hero__media { order: -1; }
  .hero__badge { width: 92px; height: 92px; font-size: .72rem; left: auto; right: 12px; bottom: -18px; }
}

/* mask reveal */
.reveal-up { transform: translateY(110%); opacity: 0; transition: transform .9s var(--ease), opacity .9s var(--ease); }
.is-ready .reveal-up { transform: none; opacity: 1; }
[data-d="1"] { transition-delay: .1s !important; }
[data-d="2"] { transition-delay: .22s !important; }
[data-d="3"] { transition-delay: .34s !important; }
[data-d="4"] { transition-delay: .46s !important; }
[data-d="5"] { transition-delay: .6s  !important; }

/* ============ Band ============ */
.band { background: var(--red); color: var(--cream); overflow: hidden; padding: .9rem 0; }
.band__t { display: flex; gap: 1.6rem; align-items: center; white-space: nowrap; width: max-content; animation: marquee 32s linear infinite; font-size: clamp(1.1rem,2.4vw,1.7rem); font-weight: 800; letter-spacing: -.01em; }
.band__t i { font-style: normal; opacity: .6; }

/* ============ Intro / manifesto ============ */
.intro { max-width: 1150px; margin: 0 auto; padding: clamp(4.5rem,10vw,9rem) var(--gut); text-align: center; }
.intro__line { font-size: clamp(1.6rem, 4vw, 3rem); font-weight: 800; line-height: 1.18; letter-spacing: -.02em; }
.intro__line span { display: block; }

/* ============ Collections (2 worlds) ============ */
.coll { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut) clamp(3rem,6vw,5rem); }
.coll__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem,2.5vw,2rem); }
.coll__card { display: block; position: relative; }
.coll__img { overflow: hidden; aspect-ratio: 5/6; border-radius: 4px; background: var(--cream-2); }
.coll__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.coll__card:hover .coll__img img { transform: scale(1.05); }
.coll__meta { display: flex; align-items: baseline; gap: 1rem; padding-top: 1.2rem; }
.coll__no { font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--soft); }
.coll__meta h3 { font-size: clamp(1.6rem, 3vw, 2.6rem); }
.coll__go { margin-left: auto; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--red); opacity: 0; transform: translateX(-8px); transition: .4s var(--ease); }
.coll__card:hover .coll__go { opacity: 1; transform: none; }
@media (max-width: 700px) { .coll__grid { grid-template-columns: 1fr; gap: 2rem; } }

/* ============ Shop ============ */
.shop { max-width: var(--maxw); margin: 0 auto; padding: clamp(3rem,6vw,5rem) var(--gut) clamp(5rem,9vw,8rem); }
.shop__head { text-align: center; }
.shop__head h2 { font-size: clamp(2.2rem, 6vw, 4rem); }
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 2rem; }
.filter { font-size: .82rem; font-weight: 700; letter-spacing: .04em; padding: .6rem 1.3rem; border: 2px solid var(--line); border-radius: 100px; color: var(--soft); transition: .25s var(--ease); }
.filter:hover { border-color: var(--ink); color: var(--ink); }
.filter.is-active { background: var(--ink); border-color: var(--ink); color: var(--cream); }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.4rem,2.5vw,2.4rem) clamp(1rem,2vw,1.6rem); margin-top: clamp(2.5rem,5vw,3.5rem); }
.prod { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.prod.is-in { opacity: 1; transform: none; }
.prod__media { position: relative; overflow: hidden; aspect-ratio: 4/5; border-radius: 4px; background: var(--cream-2); }
.prod__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.prod:hover .prod__media img { transform: scale(1.05); }
.prod__media.img-fail { background: repeating-linear-gradient(135deg, var(--cream-2), var(--cream-2) 14px, var(--cream) 14px, var(--cream) 28px); }
.prod__media.img-fail img { display: none; }
.prod__tag { position: absolute; top: .8rem; left: .8rem; z-index: 2; font-size: .64rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; background: var(--paper); color: var(--ink); padding: .32rem .6rem; border-radius: 100px; }
.prod__tag--hot { background: var(--red); color: #fff; }
.prod__add { position: absolute; left: .8rem; right: .8rem; bottom: .8rem; z-index: 2; background: var(--ink); color: var(--cream); border-radius: 100px; padding: .8rem; font-size: .74rem; font-weight: 700; letter-spacing: .06em; opacity: 0; transform: translateY(10px); transition: .4s var(--ease), background .25s; }
.prod:hover .prod__add { opacity: 1; transform: none; }
.prod__add:hover { background: var(--red); }
.prod__info { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; padding-top: .9rem; }
.prod__name { font-size: 1.02rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
.prod__cat { font-size: .68rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); margin-top: .3rem; }
.prod__price { font-size: .95rem; font-weight: 700; white-space: nowrap; }
@media (max-width: 1040px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 680px) { .grid { grid-template-columns: 1fr 1fr; gap: 1.4rem 1rem; } .prod__add { opacity: 1; transform: none; padding: .65rem; } }

/* ============ Story ============ */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,6vw,6rem); align-items: center; max-width: var(--maxw); margin: 0 auto; padding: clamp(4rem,9vw,9rem) var(--gut); }
.story__img { overflow: hidden; aspect-ratio: 4/5; border-radius: 4px; background: var(--cream-2); position: relative; }
.story__img img { width: 100%; height: 100%; object-fit: cover; }
.story__img.img-fail { background: repeating-linear-gradient(135deg, var(--cream-2), var(--cream-2) 16px, var(--cream) 16px, var(--cream) 32px); }
.story__img.img-fail img { display: none; }
.story__txt h2 { font-size: clamp(1.9rem, 4vw, 3.2rem); margin-bottom: 1.4rem; }
.story__txt p { color: var(--soft); max-width: 46ch; margin-bottom: 1.2rem; }
.story__txt p:last-of-type { margin-bottom: 1.8rem; }
@media (max-width: 860px) { .story { grid-template-columns: 1fr; } }

/* ============ Info ============ */
.info { background: var(--paper); border-block: 1px solid var(--line); padding: clamp(4rem,9vw,8rem) var(--gut); }
.info__head { max-width: var(--maxw); margin: 0 auto; text-align: center; }
.info__head h2 { font-size: clamp(2rem, 5vw, 3.4rem); }
.info__grid { max-width: var(--maxw); margin: clamp(2.5rem,5vw,4rem) auto 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.5rem,3vw,2.4rem); }
.info__card h3 { font-size: 1.3rem; padding-top: 1.1rem; border-top: 3px solid var(--red); margin-bottom: .7rem; }
.info__card p { font-size: .92rem; color: var(--soft); }
@media (max-width: 860px) { .info__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .info__grid { grid-template-columns: 1fr; } }

/* ============ Newsletter ============ */
.news { padding: clamp(5rem,11vw,10rem) var(--gut); text-align: center; }
.news__in { max-width: 620px; margin: 0 auto; }
.news__in h2 { font-size: clamp(2.4rem, 7vw, 4.6rem); margin-bottom: 1.2rem; }
.news__in > p { color: var(--soft); max-width: 44ch; margin: 0 auto 2.2rem; }
.news__form { display: flex; gap: .5rem; max-width: 460px; margin: 0 auto; flex-wrap: wrap; }
.news__form input { flex: 1; min-width: 200px; background: var(--paper); border: 2px solid var(--line); border-radius: 100px; padding: .9rem 1.3rem; font-family: inherit; font-size: 1rem; color: var(--ink); }
.news__form input:focus { outline: none; border-color: var(--ink); }
.news__form button { background: var(--ink); color: var(--cream); border-radius: 100px; padding: .9rem 1.6rem; font-weight: 700; font-size: .88rem; transition: background .3s; }
.news__form button:hover { background: var(--red); }
.news__ok { margin-top: 1.3rem; font-weight: 700; color: var(--red); }

/* ============ Footer ============ */
.ftr { background: var(--ink); color: var(--cream); padding: clamp(3rem,6vw,5rem) var(--gut) 2rem; }
.ftr__top { max-width: var(--maxw); margin: 0 auto; display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; padding-bottom: clamp(2rem,4vw,3rem); border-bottom: 1px solid color-mix(in srgb, var(--cream) 22%, transparent); }
.ftr__logo { line-height: .85; }
.ftr__logo .l1 { display: block; font-size: .9rem; font-weight: 800; }
.ftr__logo .l2 { display: block; font-size: clamp(3.5rem, 12vw, 8rem); font-weight: 800; letter-spacing: -.03em; }
.ftr__logo .l2 span { color: var(--red); }
.ftr__made { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: color-mix(in srgb, var(--cream) 70%, transparent); }
.ftr__cols { max-width: var(--maxw); margin: clamp(2rem,4vw,3rem) auto 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.ftr__cols h4 { font-size: .74rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--red); margin-bottom: 1rem; }
.ftr__cols a, .ftr__cols span { display: block; font-size: .92rem; color: color-mix(in srgb, var(--cream) 80%, transparent); padding: .25rem 0; transition: color .3s; }
.ftr__cols a:hover { color: var(--cream); }
.ftr__base { max-width: var(--maxw); margin: 2.5rem auto 0; padding-top: 1.3rem; border-top: 1px solid color-mix(in srgb, var(--cream) 18%, transparent); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .78rem; color: color-mix(in srgb, var(--cream) 55%, transparent); }
@media (max-width: 680px) { .ftr__cols { grid-template-columns: 1fr 1fr; } }

/* ============ Bag drawer ============ */
.scrim { position: fixed; inset: 0; z-index: 200; background: rgba(26,26,22,.5); backdrop-filter: blur(2px); animation: fade .35s; }
@keyframes fade { from { opacity: 0; } }
.bag { position: fixed; top: 0; right: 0; z-index: 201; height: 100dvh; width: min(450px, 100vw); background: var(--paper); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .5s var(--ease); box-shadow: -30px 0 70px -30px rgba(26,26,22,.4); }
.bag.is-open { transform: none; }
.bag__head { display: flex; justify-content: space-between; align-items: center; padding: 1.4rem var(--gut); border-bottom: 1px solid var(--line); }
.bag__head h2 { font-size: 1.4rem; }
.bag__x { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.bag__x:hover { color: var(--red); }
.bag__items { flex: 1; overflow-y: auto; }
.bln { display: grid; grid-template-columns: 66px 1fr auto; gap: 1rem; padding: 1.2rem var(--gut); border-bottom: 1px solid var(--line-2); animation: blnIn .35s var(--ease) both; }
@keyframes blnIn { from { opacity: 0; transform: translateY(10px); } }
.bln img { width: 66px; height: 84px; object-fit: cover; border-radius: 3px; background: var(--cream-2); }
.bln__name { font-weight: 700; font-size: .98rem; line-height: 1.2; }
.bln__cat { font-size: .66rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); margin-top: .2rem; }
.qty { display: inline-flex; align-items: center; gap: .9rem; margin-top: .6rem; border: 1px solid var(--line); border-radius: 100px; padding: .25rem .7rem; }
.qty button { color: var(--red); font-size: 1rem; line-height: 1; font-weight: 700; }
.qty span { font-size: .85rem; min-width: 12px; text-align: center; }
.bln__r { text-align: right; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; }
.bln__price { font-size: .9rem; font-weight: 700; }
.bln__rm { font-size: .66rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); border-bottom: 1px solid var(--line); }
.bln__rm:hover { color: var(--red); border-color: var(--red); }
.bag__empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .7rem; text-align: center; color: var(--soft); padding: var(--gut); }
.bag__empty-h { font-size: 1.3rem; font-weight: 800; color: var(--ink); }
.bag__empty[hidden], .bag__foot[hidden] { display: none; }
.bag__foot { border-top: 1px solid var(--line); padding: 1.4rem var(--gut) 1.7rem; }
.bag__row { display: flex; justify-content: space-between; font-size: 1.25rem; font-weight: 800; }
.bag__note { font-size: .78rem; color: var(--soft); margin: .5rem 0 1.2rem; }
.bag__pay { width: 100%; background: var(--ink); color: var(--cream); border-radius: 100px; padding:1.05rem; font-weight: 700; font-size: .88rem; letter-spacing: .04em; transition: background .3s; }
.bag__pay:hover { background: var(--red); }

/* ============ Toast ============ */
.toast { position: fixed; left: 50%; bottom: 1.6rem; z-index: 300; transform: translate(-50%, 200%); background: var(--ink); color: var(--cream); padding: .85rem 1.4rem; border-radius: 100px; font-size: .82rem; font-weight: 600; transition: transform .5s var(--ease); display: flex; align-items: center; gap: .6rem; }
.toast::before { content: ""; width: 7px; height: 7px; background: var(--red); border-radius: 50%; }
.toast.is-show { transform: translate(-50%, 0); }

/* ============ Reveal ============ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .hdr__nav { display: none; }
  .hdr__burger { display: flex; order: -1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal, .reveal-up, .prod { opacity: 1 !important; transform: none !important; }
}
