/* Tailwell — rules in DESIGN.md. Three colours: wine, sand, white. One family: Inter Tight. */
:root {
  --wine: #4A1512; --sand: #E7E2DC; --white: #FFFFFF;
  --soft: rgba(74, 21, 18, 0.7); --line: rgba(74, 21, 18, 0.25);
  --font: 'Inter Tight', system-ui, sans-serif;
  --gut: 18px; --max: 1280px; --r: 18px; --ease: cubic-bezier(0.23, 1, 0.32, 1);
}
@media (min-width: 768px) { :root { --gut: 32px; } }
@media (min-width: 1280px) { :root { --gut: 48px; } }
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; background: var(--white); }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body { background: var(--white); color: var(--wine); font-family: var(--font); font-size: 1.0625rem; line-height: 1.45; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
h1, h2, h3 { font-weight: 400; letter-spacing: -0.035em; }
.h2 { text-align: center; font-size: clamp(2.25rem, 4.4vw, 3.5rem); line-height: 1.05; }

/* Mask reveal */
.m { display: block; overflow: clip; overflow-clip-margin: 0.04em; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.m > span { display: block; transform: translateY(115%); transition: transform 0.9s var(--ease); }
.is-in .m > span, .is-go .hero__copy .m > span { transform: none; }
.rv-c { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.9s var(--ease); }
.rv-c.is-in { opacity: 1; transform: none; }

/* Ghost word */
.ghost { position: absolute; font-weight: 500; line-height: 0.8; letter-spacing: -0.05em; white-space: nowrap; color: var(--white); pointer-events: none; -webkit-mask-image: linear-gradient(#000 45%, transparent 92%); mask-image: linear-gradient(#000 45%, transparent 92%); will-change: transform; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 999px; background: var(--wine); color: var(--white); font-weight: 500; transition: transform 0.16s ease-out, background 0.25s; }
.btn:active { transform: scale(0.97); }
.btn--ghost { background: var(--white); color: var(--wine); }
.btn--full { width: 100%; }

/* Nav: a white floating bar */
.nav { position: fixed; z-index: 40; left: var(--gut); right: var(--gut); top: 14px; max-width: var(--max); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 16px; border-radius: 16px; background: var(--white); box-shadow: 0 10px 30px -18px rgba(74, 21, 18, 0.5); transition: transform 0.5s var(--ease); }
.nav.is-hidden { transform: translateY(-140%); }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 1.1rem; letter-spacing: -0.03em; }
.logo i { width: 22px; height: 22px; border-radius: 7px; background: var(--wine); }
.nav__links { display: none; gap: 4px; font-size: 0.94rem; }
.nav__links a { padding: 8px 14px; border-radius: 999px; transition: background 0.2s; }
.nav__links a.is-on { background: var(--sand); }
@media (hover: hover) { .nav__links a:hover { background: var(--sand); } }
@media (min-width: 820px) { .nav__links { display: flex; } }
.bagbtn { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 8px 0 16px; border-radius: 999px; background: var(--wine); color: var(--white); font-weight: 500; font-size: 0.94rem; transition: transform 0.16s ease-out; }
.bagbtn:active { transform: scale(0.97); }
.bagbtn b { display: grid; place-items: center; min-width: 26px; height: 26px; border-radius: 50%; background: var(--white); color: var(--wine); font-weight: 500; font-size: 0.82rem; }
.bagbtn.is-bump b { animation: bump 0.45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.3); } }

/* HERO */
.hero { position: relative; height: 100svh; min-height: 640px; overflow: hidden; background: var(--sand); }
.hero__ghost { left: 50%; translate: -50% 0; top: 21svh; font-size: clamp(6rem, 29vw, 30rem); }
.hero__dog { position: absolute; z-index: 1; left: 50%; bottom: -3svh; height: 90svh; transform: translate3d(-50%, 0, 0); will-change: transform; }
.hero__dog img { height: 100%; width: auto; max-width: none; }
.hero__dog { opacity: 0; translate: 0 40px; }
.is-go .hero__dog { animation: dogIn 1.3s var(--ease) both; }
@keyframes dogIn { to { opacity: 1; translate: 0 0; } }
.hero__copy { position: absolute; z-index: 3; left: var(--gut); bottom: 30px; max-width: min(46vw, 620px); }
.hero__lead { max-width: 30ch; font-size: 0.96rem; line-height: 1.32; margin-bottom: 14px; opacity: 0; }
.hero__copy h1 { font-size: clamp(2.5rem, 4.3vw, 4rem); line-height: 1.02; }
.m--soft { color: var(--soft); }
.m--soft > span { transition-delay: 0.08s; }
.hero__btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; opacity: 0; }
.is-go .hero__lead, .is-go .hero__btns { animation: rise 0.9s 0.25s var(--ease) both; }
@keyframes rise { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }
.hero__float { position: absolute; z-index: 3; right: var(--gut); bottom: 30px; display: flex; gap: 10px; will-change: transform; }
.fc { width: clamp(150px, 13.5vw, 190px); padding: 8px; border-radius: var(--r); background: var(--white); box-shadow: 0 18px 40px -24px rgba(74, 21, 18, 0.55); opacity: 0; }
.is-go .fc { animation: rise 0.9s calc(0.4s + var(--i) * 0.1s) var(--ease) both; }
.fc__i { aspect-ratio: 1; display: grid; place-items: center; padding: 8px; }
.fc__i img { max-height: 100%; object-fit: contain; }
.fc__b, .pc__b { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 4px 2px; }
.fc__n, .pc h3 { font-size: 0.94rem; line-height: 1.15; letter-spacing: -0.015em; font-weight: 500; }
.fc span, .pc span { font-size: 0.875rem; color: var(--soft); }
.fc button, .pc button { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--sand); font-size: 1.1rem; transition: transform 0.16s ease-out; }
.fc button:active, .pc button:active { transform: scale(0.9); }
@media (max-width: 767px) {
  .hero { min-height: 680px; }
  .hero__ghost { top: 15svh; font-size: 29vw; }
  .hero__dog { bottom: 240px; height: 52svh; }
  .hero__copy { left: var(--gut); right: var(--gut); max-width: none; bottom: 18px; }
  .hero__copy h1 { font-size: 2.4rem; }
  .hero__float { display: none; }
  .hero__lead { max-width: none; }
  .hero::after { content: ''; position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 300px; background: linear-gradient(transparent, var(--sand) 26%); }
}

/* CATEGORIES */
.cats, .shop, .news { padding: clamp(72px, 9vw, 130px) var(--gut); }
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; max-width: var(--max); margin: clamp(28px, 4vw, 48px) auto 0; }
@media (min-width: 900px) { .tiles { grid-template-columns: repeat(4, 1fr); gap: 14px; } }
.tile { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); padding: 16px; }
.tile b { position: relative; z-index: 1; font-weight: 500; font-size: clamp(1.05rem, 1.7vw, 1.5rem); letter-spacing: -0.025em; line-height: 1.1; }
.tile img { position: absolute; right: 0; bottom: 0; width: 76%; height: 76%; object-fit: contain; object-position: 100% 100%; transition: transform 0.5s var(--ease); }
@media (hover: hover) { .tile:hover img { transform: translateY(-4%) scale(1.04); } }
.tile:active { transform: scale(0.98); }

/* BENEFITS */
.band { overflow: hidden; padding: 14px 0; border-block: 1px solid var(--line); }
.band__in { display: flex; align-items: center; gap: 28px; width: max-content; font-size: clamp(1rem, 1.5vw, 1.25rem); letter-spacing: -0.02em; will-change: transform; }
.band__in i { width: 9px; height: 9px; border-radius: 50%; background: var(--wine); }

/* TWO BANNERS */
.duo { display: grid; gap: 10px; padding: clamp(40px, 5vw, 72px) var(--gut) 0; max-width: calc(var(--max) + 2 * var(--gut)); margin: 0 auto; }
@media (min-width: 768px) { .duo { grid-template-columns: 1fr 1fr; } }
.duo__c { position: relative; display: block; aspect-ratio: 1 / 0.86; overflow: hidden; border-radius: var(--r); background: var(--wine); color: var(--white); }
.duo__c img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
@media (hover: hover) { .duo__c:hover img { transform: scale(1.04); } }
.duo__c::after { content: ''; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(74, 21, 18, 0.82)); }
.ghost--w { z-index: 1; left: 18px; top: 16px; font-size: clamp(4.5rem, 11vw, 11rem); opacity: 0.85; }
.duo__t { position: absolute; z-index: 2; left: 18px; right: 18px; bottom: 16px; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.duo__t b { font-weight: 400; font-size: clamp(1.45rem, 2.6vw, 2.2rem); line-height: 1.05; letter-spacing: -0.03em; max-width: 13ch; }
.duo__t i { flex: none; font-style: normal; font-size: 0.94rem; }

/* SHOP */
.cat-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 22px auto 0; }
.cat-tabs button { min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); font-size: 0.94rem; transition: background 0.25s, color 0.25s; }
.cat-tabs button[aria-selected='true'] { background: var(--wine); color: var(--white); border-color: var(--wine); }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; max-width: var(--max); margin: 28px auto 0; }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(4, 1fr); gap: 14px; } }
.pc[hidden] { display: none; }
.pc__i { aspect-ratio: 1; display: grid; place-items: center; padding: 10%; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.pc__i img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.4s var(--ease); }
@media (hover: hover) { .pc:hover .pc__i img { transform: translateY(-4%); } }

/* FILM: from the second reference */
.film { position: relative; height: clamp(320px, 62vh, 640px); overflow: hidden; display: grid; place-items: center; background: var(--wine); }
.film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(var(--z, 1.1)); }
.film::after { content: ''; position: absolute; inset: 0; background: rgba(74, 21, 18, 0.3); }
.film__t { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: clamp(14px, calc(var(--gap, 20vw) / 6), 40px); color: var(--white); font-size: clamp(2.5rem, 7vw, 6.6rem); letter-spacing: -0.04em; line-height: 1; }
.play { position: relative; width: clamp(56px, 6vw, 84px); aspect-ratio: 1; border-radius: 50%; background: var(--white); transition: transform 0.16s ease-out; }
.play:active { transform: scale(0.94); }
.play i { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 26%; height: 30%; border-inline: 5px solid var(--wine); }
.play[aria-pressed='false'] i { width: 0; height: 0; translate: -36% -50%; border: 0; border-left: 16px solid var(--wine); border-block: 11px solid transparent; }

/* CARE */
.care { background: var(--sand); padding: clamp(72px, 9vw, 130px) 0 0; overflow: hidden; }
.care__row { display: flex; gap: 12px; overflow-x: auto; margin: clamp(28px, 4vw, 48px) 0 0; padding: 0 var(--gut); cursor: grab; scrollbar-width: none; }
.care__row::-webkit-scrollbar { display: none; }
.care__row.is-drag { cursor: grabbing; user-select: none; }
.cc { flex: none; width: clamp(250px, 31vw, 430px); }
.cc__i { aspect-ratio: 5 / 4; overflow: hidden; border-radius: var(--r); }
.cc__i img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.tag { display: inline-block; margin-top: 12px; padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.8125rem; }
.cc h3 { margin-top: 8px; font-size: clamp(1.2rem, 1.8vw, 1.55rem); line-height: 1.1; }
.say { position: relative; display: grid; gap: 20px; padding: clamp(50px, 7vw, 100px) var(--gut) 0; max-width: calc(var(--max) + 2 * var(--gut)); margin: 0 auto; }
@media (min-width: 900px) { .say { grid-template-columns: 0.9fr 1.1fr; align-items: end; } }
.say__dog { align-self: end; height: clamp(300px, 46vw, 600px); display: flex; justify-content: center; }
.say__dog img { height: 100%; width: auto; max-width: none; object-fit: contain; }
.say__txt { position: relative; padding-bottom: clamp(50px, 7vw, 90px); }
.say__ghost { left: 0; top: -0.36em; font-size: clamp(5.5rem, 15vw, 15rem); }
.say__txt .h2 { position: relative; text-align: left; }
.say blockquote { position: relative; margin-top: 18px; max-width: 34ch; min-height: 5.6em; font-size: clamp(1.35rem, 2vw, 1.7rem); line-height: 1.22; letter-spacing: -0.025em; }
.say__who { margin-top: 12px; font-size: 0.875rem; color: var(--soft); }
.say__btn { display: flex; gap: 6px; margin-top: 14px; }
.say__btn button { width: 46px; height: 46px; border-radius: 50%; background: var(--white); transition: transform 0.16s ease-out; }
.say__btn button:active { transform: scale(0.94); }

/* JOURNAL */
.ngrid { display: grid; gap: 22px; max-width: var(--max); margin: clamp(28px, 4vw, 48px) auto 0; }
@media (min-width: 820px) { .ngrid { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
.n__i { aspect-ratio: 5 / 3.6; overflow: hidden; border-radius: var(--r); }
.n__i img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
@media (hover: hover) { .n:hover .n__i img { transform: scale(1.04); } }
.n__m { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; margin-top: 12px; }
.n__m b { font-weight: 400; font-size: 3.1rem; line-height: 0.95; letter-spacing: -0.05em; }
.n h3 { font-size: 1.15rem; line-height: 1.15; }
.n span { font-size: 0.875rem; color: var(--soft); }

/* JOIN */
.join { display: grid; justify-items: center; gap: 22px; background: var(--sand); padding: clamp(70px, 8vw, 110px) var(--gut); }
.join__f { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; width: min(560px, 100%); }
.join__f input { flex: 1 1 220px; min-height: 48px; padding: 0 20px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--wine); font: inherit; }
.join__f input::placeholder { color: var(--soft); }

/* FOOTER */
.foot { background: var(--wine); color: var(--white); padding: 34px var(--gut) 24px; overflow: hidden; }
.foot__big { font-size: clamp(4.5rem, 20vw, 21rem); font-weight: 500; line-height: 0.95; letter-spacing: -0.055em; text-align: center; }
.foot__row { display: grid; gap: 10px; margin-top: 18px; font-size: 0.9rem; }
@media (min-width: 900px) { .foot__row { grid-template-columns: 1fr 1fr; gap: 40px; } }

/* Cart */
.drawer { position: fixed; inset: 0; z-index: 60; }
.drawer[hidden] { display: none; }
.drawer__s { position: absolute; inset: 0; background: rgba(74, 21, 18, 0.45); animation: fade 0.3s; }
@keyframes fade { from { opacity: 0; } }
.drawer__p { position: absolute; right: 0; top: 0; bottom: 0; width: min(440px, 100%); display: flex; flex-direction: column; background: var(--white); animation: slide 0.45s cubic-bezier(0.32, 0.72, 0, 1); }
@keyframes slide { from { transform: translateX(100%); } }
.drawer__p > header { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; }
.drawer__p h2 { font-size: 1.6rem; }
.drawer__p > header button { width: 44px; height: 44px; border-radius: 50%; background: var(--sand); font-size: 1.3rem; }
.lines { flex: 1; overflow-y: auto; padding: 0 20px; }
.line { display: grid; grid-template-columns: 70px 1fr auto; gap: 12px; align-items: center; padding: 8px; margin-bottom: 6px; border-radius: 14px; border: 1px solid var(--line); }
.line__i { display: block; width: 70px; height: 70px; }
.line__i img { width: 100%; height: 100%; object-fit: contain; }
.line b { font-weight: 500; display: block; line-height: 1.15; }
.qty { display: inline-flex; align-items: center; gap: 2px; margin-top: 4px; }
.qty button { width: 32px; height: 32px; border-radius: 50%; background: var(--sand); }
.qty span { min-width: 24px; text-align: center; }
.empty { padding: 40px 0; text-align: center; color: var(--soft); }
.drawer__p > footer { display: grid; gap: 10px; padding: 14px 20px 18px; }
.drawer__p > footer p { display: flex; justify-content: space-between; font-size: 1.1rem; }
.drawer__p > footer b { font-weight: 500; }
.drawer__p > footer small { text-align: center; color: var(--soft); }
.toast { position: fixed; z-index: 70; left: 50%; bottom: 20px; translate: -50% 0; padding: 10px 18px; border-radius: 999px; background: var(--wine); color: var(--white); font-size: 0.94rem; opacity: 0; transform: translateY(14px); transition: opacity 0.2s ease, transform 0.3s var(--ease); pointer-events: none; white-space: nowrap; }
.toast.is-on { opacity: 1; transform: none; }
.badge { position: fixed; z-index: 30; right: 6px; top: 50%; translate: 0 -50%; writing-mode: vertical-rl; padding: 12px 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.86); font-size: 0.8125rem; font-weight: 500; }
@media (max-width: 767px) { .badge { font-size: 0.6875rem; padding: 10px 4px; right: 2px; } }

/* ---------- Extra motion ---------- */
.flyer { position: fixed; z-index: 80; object-fit: contain; pointer-events: none; will-change: transform; }
.fc button.is-ok, .pc button.is-ok { background: var(--wine); color: var(--white); }
.fc button, .pc button { transition: transform 0.16s ease-out, background 0.2s ease, color 0.2s ease; }

.gl { display: inline-block; will-change: transform; }
.hero__ghost { overflow: visible; }
.gl { opacity: 0; translate: 0 40%; }
.is-go .gl { animation: glUp 1.1s calc(var(--i) * 45ms) var(--ease) both; }
@keyframes glUp { to { opacity: 1; translate: 0 0; } }

.spin { position: absolute; z-index: 3; right: calc(var(--gut) + 12px); top: 118px; width: clamp(96px, 9vw, 132px); aspect-ratio: 1; border-radius: 50%; background: var(--wine); color: var(--white); display: grid; place-items: center; opacity: 0; transition: scale 0.16s ease-out; }
.is-go .spin { animation: rise 0.9s 0.55s var(--ease) both; }
.spin:active { scale: 0.95; }
.spin svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.spin text { fill: var(--white); font: 500 10.6px var(--font); letter-spacing: 0.06em; }
.spin > span { width: 36%; }
.spin > span svg { position: static; display: block; fill: var(--white); }
@media (max-width: 767px) { .spin { right: var(--gut); top: 96px; width: 84px; } }

.nav { overflow: hidden; }
.nav__links { position: relative; }
.nav__links a { position: relative; z-index: 1; }
@media (hover: hover) { .nav__links a:hover { background: none; } }
.nav__pill { position: absolute; left: 0; top: 0; bottom: 0; width: 60px; border-radius: 999px; background: var(--sand); transition: transform 0.45s var(--ease), width 0.45s var(--ease); }
.nav__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--wine); transform: scaleX(0); transform-origin: left; }

.cats { position: relative; overflow: hidden; }
.cats > .h2, .cats > .tiles { position: relative; z-index: 1; }
.paws { position: absolute; left: 0; right: 0; top: 0; height: 180px; pointer-events: none; }
.paws span { position: absolute; width: clamp(20px, 2.4vw, 34px); opacity: 0; }
.paws svg { display: block; fill: var(--wine); }

.clipin { clip-path: inset(100% 0 0 0 round var(--r)); transition: clip-path 1.1s var(--ease); }
.clipin.is-in { clip-path: inset(0 0 0 0 round var(--r)); }
.clipin img { scale: 1.16; transition: scale 1.3s var(--ease), transform 1s var(--ease); }
.clipin.is-in img { scale: 1; }

.tilt { transition: transform 0.35s var(--ease); will-change: transform; }

.fl { display: inline-block; overflow: clip; overflow-clip-margin: 0.03em; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.fl > span { display: inline-block; transition: transform 0.45s var(--ease); }
.foot__big .fl > span { translate: 0 105%; transition: translate 1s calc(var(--i, 0) * 50ms) var(--ease), transform 0.45s var(--ease); }
.fl { --_: 0; }
.foot__big.is-in .fl > span { translate: 0 0; }
.fl:nth-child(1) > span { --i: 0; } .fl:nth-child(2) > span { --i: 1; } .fl:nth-child(3) > span { --i: 2; } .fl:nth-child(4) > span { --i: 3; } .fl:nth-child(5) > span { --i: 4; } .fl:nth-child(6) > span { --i: 5; } .fl:nth-child(7) > span { --i: 6; } .fl:nth-child(8) > span { --i: 7; }

.qw { display: inline-block; animation: rise 0.55s calc(var(--i) * 26ms) var(--ease) both; }
.line { animation: lineIn 0.4s var(--ease) both; }
@keyframes lineIn { from { opacity: 0; translate: 16px 0; } }

.join { position: relative; overflow: hidden; }
.join > .h2, .join > .join__f { position: relative; z-index: 2; }
.trail { position: absolute; z-index: 1; width: clamp(130px, 13vw, 190px); height: auto; pointer-events: none; }
