/* =========================================================================
   MIRTILLA — Theme stylesheet (design system, sections, catalog, product)
   Palette: avorio, bianco, salvia, cipria, accenti pastello
   ========================================================================= */

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .28s ease both; }
::view-transition-new(root) { animation: vt-in .38s ease both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }

:root {
  --ivory: #FFFFFF;
  --ivory-2: #F7F6F4;
  --ivory-3: #EFEDE9;
  --white: #FFFFFF;
  --sage-50: #F0F4EC;
  --sage-100: #E1E9DB;
  --sage-200: #CBD8C3;
  --sage-300: #B2C3A8;
  --sage-500: #849A7A;
  --sage-700: #566B50;
  --sage-800: #43553E;
  --blush-50: #FCF1EE;
  --blush-100: #F7E0DA;
  --blush-200: #F0CBC2;
  --blush-300: #E8B4A8;
  --blush-500: #D58C7C;
  --lilac-100: #ECE6F3;
  --sky-100: #E3EEF4;
  --butter-100: #F8EDD3;
  --ink: #2B2724;
  --ink-2: #5C5550;
  --ink-3: #8A827A;
  --line: #ECE8E2;
  --line-2: #F4F1ED;
  --danger: #B5523F;
  --ok: #4F7A55;

  --f-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --f-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 34px;
  --r-pill: 999px;

  --sh-1: 0 1px 2px rgba(60, 45, 30, .05), 0 4px 14px rgba(60, 45, 30, .05);
  --sh-2: 0 10px 30px -10px rgba(60, 45, 30, .18);
  --sh-3: 0 24px 60px -20px rgba(60, 45, 30, .25);

  --ease: cubic-bezier(.22, .8, .24, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);

  --container: 1320px;
  --gutter: clamp(16px, 4vw, 40px);
  --hdr-h: 128px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 110px; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2.5px solid var(--sage-700); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--blush-200); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 999; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; transition: top .2s; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section--tight { padding: clamp(44px, 6vw, 80px) 0; }
.bg-white { background: var(--white); }
.bg-ivory-2 { background: var(--ivory-2); }
.bg-sage { background: var(--sage-50); }
.bg-blush { background: var(--blush-50); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 500; line-height: 1.08; margin: 0; letter-spacing: -.01em; font-variation-settings: 'SOFT' 100, 'opsz' 96; }
h1 { font-size: clamp(40px, 6vw, 82px); }
h2 { font-size: clamp(32px, 4.2vw, 56px); }
h3 { font-size: clamp(21px, 2vw, 26px); }
p { margin: 0 0 1em; }
.lead { font-size: clamp(17px, 1.4vw, 19px); color: var(--ink-2); line-height: 1.65; }
.muted { color: var(--ink-3); }
em.accent, .accent-i { font-style: italic; color: var(--sage-700); font-variation-settings: 'SOFT' 100, 'WONK' 1; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--sage-700); margin-bottom: 18px;
}
.eyebrow::before { content: ''; width: 28px; height: 1.5px; background: currentColor; border-radius: 2px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(32px, 4vw, 52px); flex-wrap: wrap; }
.section-head .lead { max-width: 560px; margin: 14px 0 0; }
.section-head--center { flex-direction: column; align-items: center; text-align: center; }
.section-head--center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--sage-700); --fg: #fff; --bd: var(--sage-700);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border-radius: var(--r-pill);
  background: var(--bg); color: var(--fg); border: 1.5px solid var(--bd);
  font-weight: 700; font-size: 15px; letter-spacing: .01em; white-space: nowrap;
  overflow: hidden; isolation: isolate;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, color .3s, border-color .3s;
}
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--sage-800); transform: translateY(101%); border-radius: inherit;
  transition: transform .45s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -12px rgba(67, 85, 62, .55); }
.btn:hover::before { transform: translateY(0); }
.btn:active { transform: translateY(0) scale(.98); }
.btn .arr { transition: transform .35s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn--ghost { --bg: transparent; --fg: var(--ink); --bd: var(--ink); }
.btn--ghost::before { background: var(--ink); }
.btn--ghost:hover { color: #fff; box-shadow: none; }
.btn--soft { --bg: var(--white); --fg: var(--ink); --bd: var(--line); }
.btn--soft::before { background: var(--sage-50); }
.btn--soft:hover { box-shadow: var(--sh-2); }
.btn--blush { --bg: var(--blush-300); --fg: var(--ink); --bd: var(--blush-300); }
.btn--blush::before { background: var(--blush-500); }
.btn--blush:hover { color: #fff; }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 14px; }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .45; pointer-events: none; }
.btn.is-loading { pointer-events: none; }
.btn.is-loading .btn-label { opacity: 0; }
.btn.is-loading::after { content: ''; position: absolute; width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.btn.is-done { --bg: var(--ok); --bd: var(--ok); }
@keyframes spin { to { transform: rotate(360deg); } }

.link-thread { position: relative; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }
.link-thread::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 6px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 6'%3E%3Cpath d='M0 3 Q5 0 10 3 T20 3 T30 3 T40 3' fill='none' stroke='%23849A7A' stroke-width='1.5'/%3E%3C/svg%3E") repeat-x 0 0 / 20px 6px;
  clip-path: inset(0 100% 0 0); transition: clip-path .5s var(--ease);
}
.link-thread:hover::after, .link-thread:focus-visible::after { clip-path: inset(0 0 0 0); animation: thread-run 1.2s linear infinite; }
@keyframes thread-run { to { background-position: 20px 0; } }

.icon { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon--sm { width: 18px; height: 18px; }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: var(--r-pill); font-size: 12px; font-weight: 700; letter-spacing: .02em; background: var(--sage-100); color: var(--sage-800); }
.pill--blush { background: var(--blush-100); color: #8A4A3D; }
.pill--soon { background: var(--white); border: 1px dashed var(--sage-300); color: var(--sage-700); }

/* ---------- Header ---------- */
.util-bar { background: var(--sage-50); color: var(--sage-800); font-size: 13px; font-weight: 600; text-align: center; height: 36px; overflow: hidden; position: relative; z-index: 51; }
.util-bar .util-track { display: flex; flex-direction: column; animation: util-roll 9s var(--ease) infinite; }
.util-bar .util-track span { height: 36px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.util-bar a { text-decoration: underline; text-underline-offset: 3px; }
@keyframes util-roll { 0%, 42% { transform: translateY(0); } 50%, 92% { transform: translateY(-36px); } 100% { transform: translateY(0); } }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .4s var(--ease), border-color .4s, background .4s, margin-bottom .4s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 8px 30px -18px rgba(60, 45, 30, .35); border-color: var(--line-2); background: rgba(255, 255, 255, .9); margin-bottom: var(--hdr-shrink, 0px); }
/* every height that changes in the compact state uses the same .4s ease, so height + margin-bottom stays constant */
.hdr-measure, .hdr-measure * { transition: none !important; }
.hdr-main { display: grid; grid-template-columns: 1fr minmax(280px, 520px) 1fr; align-items: center; gap: 24px; height: 84px; transition: height .4s var(--ease); }
.site-header.is-scrolled .hdr-main { height: 66px; }
.logo { display: inline-flex; align-items: center; gap: 10px; justify-self: start; }
.logo img { height: 52px; width: auto; mix-blend-mode: multiply; transition: height .4s var(--ease), transform .5s var(--ease); }
.site-header.is-scrolled .logo img { height: 42px; }
.logo:hover img { transform: rotate(-2deg) scale(1.03); }
.logo .logo-shop { font-family: var(--f-display); font-style: italic; font-size: 15px; color: var(--sage-700); margin-top: 18px; letter-spacing: .02em; }

.hdr-search { position: relative; }
.hdr-search form { position: relative; }
.search-input {
  width: 100%; height: 50px; padding: 0 54px 0 50px;
  border-radius: var(--r-pill); border: 1.5px solid var(--line); background: var(--white);
  font-size: 15px; transition: border-color .3s, box-shadow .3s;
}
.search-input::placeholder { color: var(--ink-3); }
.search-input:focus { outline: none; border-color: var(--sage-500); box-shadow: 0 0 0 5px rgba(132, 154, 122, .16); }
.hdr-search .s-ico { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.hdr-search .s-kbd { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 11px; font-weight: 700; color: var(--ink-3); border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px; }

.hdr-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.icon-btn {
  position: relative; width: 46px; height: 46px; border-radius: 50%; display: inline-grid; place-items: center;
  transition: background .3s, transform .3s var(--ease);
}
.icon-btn:hover { background: var(--sage-50); }
.icon-btn:active { transform: scale(.92); }
.icon-btn .label { position: absolute; top: 100%; font-size: 11px; font-weight: 700; white-space: nowrap; opacity: 0; pointer-events: none; transform: translateY(-4px); transition: .25s; }
.cart-btn { width: auto; padding: 0 16px 0 12px; gap: 8px; display: inline-flex; border-radius: var(--r-pill); background: var(--sage-700); color: #fff; height: 46px; }
.cart-btn:hover { background: var(--sage-800); }
.cart-btn .cart-total { font-weight: 700; font-size: 14px; }
.cart-count {
  position: absolute; top: -3px; left: 28px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 10px; background: var(--blush-300); color: var(--ink); font-size: 11px; font-weight: 800;
  display: grid; place-items: center; border: 2px solid var(--ivory);
}
.cart-btn.bump { animation: bump .6s var(--ease-spring); }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.14) rotate(-4deg); } 70% { transform: scale(.96); } 100% { transform: scale(1); } }

.hdr-nav { border-top: 1px solid var(--line-2); }
.hdr-nav > .container > ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: clamp(4px, 1.4vw, 22px); }
.nav-item { position: relative; }
.nav-link {
  position: relative; display: inline-flex; align-items: center; gap: 5px;
  height: 46px; padding: 0 10px; font-size: 14.5px; font-weight: 600; color: var(--ink-2);
  transition: color .25s, height .4s var(--ease);
}
.nav-link .chev { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.nav-link::after {
  content: ''; position: absolute; left: 10px; right: 10px; bottom: 8px; height: 2px; border-radius: 2px;
  background: var(--blush-300); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.nav-link:hover, .nav-item:focus-within .nav-link, .nav-link[aria-current="page"] { color: var(--ink); }
.nav-link:hover::after, .nav-link[aria-current="page"]::after { transform: scaleX(1); }
.nav-item:hover .chev, .nav-item.open .chev { transform: rotate(180deg); }
.site-header.is-scrolled .nav-link { height: 42px; }

.dropdown {
  position: absolute; top: calc(100% - 4px); left: 50%; z-index: 60;
  width: 520px; padding: 22px; border-radius: var(--r-lg); background: var(--white); box-shadow: var(--sh-3); border: 1px solid var(--line-2);
  display: grid; grid-template-columns: 1fr 190px; gap: 20px;
  opacity: 0; visibility: hidden; transform: translate(-50%, 10px); transition: opacity .3s var(--ease), transform .35s var(--ease), visibility .3s;
}
.nav-item:hover .dropdown, .nav-item.open .dropdown, .nav-item:focus-within .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.dropdown ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.dropdown li a { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: 10px; font-weight: 600; font-size: 14.5px; transition: background .2s, padding .3s var(--ease); }
.dropdown li a:hover { background: var(--sage-50); padding-left: 18px; }
.dropdown li a .icon { opacity: 0; transition: .3s; width: 16px; height: 16px; }
.dropdown li a:hover .icon { opacity: 1; }
.dropdown .dd-all { margin-top: 8px; border-top: 1px solid var(--line-2); padding-top: 8px; }
.dropdown .dd-all a { color: var(--sage-700); }
.dd-feature { position: relative; border-radius: var(--r-md); overflow: hidden; min-height: 210px; display: flex; align-items: flex-end; color: #fff; }
.dd-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.dd-feature:hover img { transform: scale(1.06); }
.dd-feature::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(43, 39, 36, .55)); }
.dd-feature span { position: relative; z-index: 1; padding: 14px; font-family: var(--f-display); font-size: 19px; line-height: 1.15; }

.menu-toggle { display: none; }
.mobile-search-btn { display: none; }

/* Search suggestions */
.suggest {
  position: absolute; top: calc(100% + 10px); left: 0; right: 0; z-index: 70;
  background: var(--white); border-radius: var(--r-lg); box-shadow: var(--sh-3); border: 1px solid var(--line-2);
  padding: 10px; max-height: min(70vh, 560px); overflow: auto;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: .3s var(--ease);
}
.suggest.open { opacity: 1; visibility: visible; transform: translateY(0); }
.suggest h4 { font-family: var(--f-body); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; padding: 10px 10px 6px; }
.sg-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; padding: 8px 10px; border-radius: 12px; transition: background .2s; }
.sg-item:hover, .sg-item.active { background: var(--sage-50); }
.sg-item img { width: 56px; height: 56px; border-radius: 10px; object-fit: contain; background: #fff; }
.sg-item .sg-name { font-weight: 700; font-size: 14.5px; line-height: 1.3; }
.sg-item .sg-name mark { background: var(--blush-100); color: inherit; border-radius: 3px; padding: 0 2px; }
.sg-item .sg-cat { font-size: 12.5px; color: var(--ink-3); }
.sg-item .sg-price { font-weight: 800; font-size: 14.5px; }
.sg-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 10px 10px; }
.sg-chip { padding: 7px 14px; border-radius: var(--r-pill); background: var(--ivory); border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; transition: .2s; }
.sg-chip:hover { background: var(--sage-100); border-color: var(--sage-200); }
.sg-empty { padding: 22px 14px; text-align: center; color: var(--ink-2); }
.sg-all { display: block; text-align: center; padding: 12px; margin-top: 6px; border-top: 1px solid var(--line-2); font-weight: 700; color: var(--sage-700); }

/* Mobile drawers */
.overlay { position: fixed; inset: 0; z-index: 90; background: rgba(43, 39, 36, .32); backdrop-filter: blur(3px); opacity: 0; visibility: hidden; transition: .35s var(--ease); }
.overlay.open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; bottom: 0; z-index: 100; width: min(440px, 100%);
  background: var(--ivory); display: flex; flex-direction: column;
  transition: transform .5s var(--ease); box-shadow: var(--sh-3);
}
.drawer--right { right: 0; transform: translateX(105%); }
.drawer--left { left: 0; transform: translateX(-105%); }
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 24px; }
.drawer-body { flex: 1; overflow: auto; padding: 18px 22px; overscroll-behavior: contain; }
.drawer-foot { padding: 18px 22px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--white); }

.m-nav { list-style: none; margin: 0; padding: 0; }
.m-nav > li { border-bottom: 1px solid var(--line-2); }
.m-nav a, .m-nav button.m-acc { display: flex; width: 100%; align-items: center; justify-content: space-between; padding: 16px 4px; font-family: var(--f-display); font-size: 22px; text-align: left; }
.m-nav .m-sub { list-style: none; padding: 0 0 12px 8px; margin: 0; display: none; }
.m-nav .m-sub a { font-family: var(--f-body); font-size: 16px; padding: 10px 4px; color: var(--ink-2); font-weight: 600; }
.m-nav li.open .m-sub { display: block; animation: fade-down .35s var(--ease); }
.m-nav li.open .chev { transform: rotate(180deg); }
.m-nav .chev { transition: transform .3s; }
@keyframes fade-down { from { opacity: 0; transform: translateY(-6px); } }
.m-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.m-cats a { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 1/1.15; display: flex; align-items: flex-end; color: #fff; font-weight: 700; font-size: 14px; }
.m-cats img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.m-cats a::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 45%, rgba(43, 39, 36, .6)); }
.m-cats span { position: relative; z-index: 1; padding: 10px; }
.m-contact { display: grid; gap: 10px; margin-top: 22px; }

.search-overlay { position: fixed; inset: 0; z-index: 110; background: var(--ivory); padding: 16px; display: flex; flex-direction: column; transform: translateY(-100%); transition: transform .5s var(--ease); }
.search-overlay.open { transform: translateY(0); }
.search-overlay .so-row { display: flex; gap: 10px; align-items: center; }
.search-overlay .so-row form { flex: 1; position: relative; }
.search-overlay .s-ico { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--ink-3); }
.search-overlay .suggest { position: static; box-shadow: none; border: 0; background: transparent; padding: 10px 0; max-height: none; flex: 1; opacity: 1; visibility: visible; transform: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--white); border-top: 1px solid var(--line-2); position: relative; overflow: hidden; }
.footer-thread { position: absolute; top: 0; left: 0; width: 100%; height: 80px; pointer-events: none; opacity: .7; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding: 90px 0 50px; }
.footer-brand img { height: 64px; mix-blend-mode: multiply; margin-bottom: 18px; }
.footer-brand p { color: var(--ink-2); max-width: 300px; }
.site-footer h3 { font-family: var(--f-body); font-size: 12px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--sage-700); margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer ul a { color: var(--ink-2); font-weight: 500; transition: color .2s, padding .3s var(--ease); }
.site-footer ul a:hover { color: var(--ink); padding-left: 4px; }
.f-contact a { display: inline-flex; align-items: center; gap: 10px; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); transition: .3s var(--ease); }
.socials a:hover { background: var(--sage-700); color: #fff; border-color: var(--sage-700); transform: translateY(-3px); }
.footer-bottom { border-top: 1px solid var(--line-2); padding: 22px 0 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--ink-3); }
.footer-bottom .pay { display: flex; gap: 8px; align-items: center; }
.footer-bottom .pay > span:not(.pay-card) { border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px; font-weight: 700; font-size: 11px; color: var(--ink-2); }
.footer-bottom { align-items: center; }
.footer-bottom .fb-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
.footer-bottom .fb-legal a { color: var(--ink-3); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; transition: color .2s; }
.footer-bottom .fb-legal a:hover { color: var(--ink); }
.footer-bottom .pay { flex-wrap: wrap; }
.footer-bottom .pay .pay-card { display: inline-flex; align-items: center; justify-content: center; gap: 5px; height: 26px; min-width: 42px; padding: 0 7px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink-2); font-size: 11px; font-weight: 700; line-height: 1; }
.footer-bottom .pay .pay-card svg { display: block; width: auto; flex: none; }
.footer-bottom .pay .pay-card--klarna { background: #FFB3C7; border-color: #FFB3C7; }
.footer-credit { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-3); }
.footer-credit img { width: 18px; height: auto; flex: none; }
.footer-credit a { color: var(--ink-2); transition: color .2s; }
.footer-credit a:hover { color: var(--sage-700); }
@media (max-width: 900px) { .footer-bottom { flex-direction: column; justify-content: center; text-align: center; gap: 14px; } .footer-bottom .fb-legal, .footer-bottom .pay { justify-content: center; } }

/* ---------- Living thread / yarn decor ---------- */
.living-thread { position: absolute; pointer-events: none; overflow: visible; }
.living-thread path { fill: none; stroke-linecap: round; }
.thread-main { stroke: var(--blush-300); stroke-width: 2.4; }
.thread-ghost { stroke: var(--sage-300); stroke-width: 1.4; opacity: .7; }
.yarn-ball { position: absolute; pointer-events: none; filter: drop-shadow(0 18px 24px rgba(60, 45, 30, .16)); }
.yarn-ball svg { width: 100%; height: 100%; animation: yarn-spin 28s linear infinite; }
@keyframes yarn-spin { to { transform: rotate(360deg); } }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; pointer-events: none; animation: blob 18s ease-in-out infinite alternate; }
@keyframes blob { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(30px, -20px) scale(1.08); } 100% { transform: translate(-20px, 25px) scale(.95); } }
.knit-texture { position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='20' viewBox='0 0 24 20'%3E%3Cpath d='M2 4 L6 12 L10 4 M14 4 L18 12 L22 4' fill='none' stroke='%23E8DFD2' stroke-width='1.2' stroke-linecap='round'/%3E%3C/svg%3E");
  mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%); }

/* ---------- HOME HERO ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(36px, 5vw, 70px) 0 clamp(70px, 8vw, 110px); }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(30px, 5vw, 80px); align-items: center; min-height: min(72vh, 700px); }
.hero h1 { font-size: clamp(46px, 6.6vw, 96px); line-height: .98; letter-spacing: -.025em; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .08em; }
.hero h1 .line > span { display: inline-block; animation: line-up 1s var(--ease) both; }
.hero h1 .line:nth-child(2) > span { animation-delay: .08s; }
.hero h1 .line:nth-child(3) > span { animation-delay: .16s; }
@keyframes line-up { from { transform: translateY(70%); } to { transform: translateY(0); } }
.hero .lead { max-width: 500px; margin: 26px 0 34px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-quick { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; align-items: center; }
.hero-quick small { font-weight: 700; color: var(--ink-3); font-size: 13px; margin-right: 4px; }
.hero-quick a { padding: 8px 16px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .7); border: 1px solid var(--line); font-size: 14px; font-weight: 600; transition: .3s var(--ease); }
.hero-quick a:hover { background: var(--white); border-color: var(--sage-300); transform: translateY(-2px); }

.hero-art { position: relative; height: clamp(440px, 46vw, 640px); }
.hero-art .frame { position: absolute; overflow: hidden; box-shadow: var(--sh-3); background: var(--ivory-2); will-change: transform; }
.hero-art .frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); }
.frame--arch { width: 58%; height: 82%; right: 14%; top: 4%; border-radius: 999px 999px var(--r-xl) var(--r-xl); animation: float-a 9s ease-in-out infinite; }
.frame--circle { width: 34%; aspect-ratio: 1; left: 0; bottom: 6%; border-radius: 50%; border: 8px solid var(--white); animation: float-b 11s ease-in-out infinite; }
.frame--card { width: 30%; height: 34%; right: 0; bottom: 0; border-radius: var(--r-lg); border: 8px solid var(--white); animation: float-c 10s ease-in-out infinite; }
@keyframes float-a { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }
@keyframes float-b { 0%, 100% { translate: 0 0; rotate: 0deg; } 50% { translate: 8px -18px; rotate: -3deg; } }
@keyframes float-c { 0%, 100% { translate: 0 0; rotate: 0deg; } 50% { translate: -6px 12px; rotate: 2deg; } }
.hero-chip {
  position: absolute; z-index: 4; display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 18px; background: rgba(255, 255, 255, .88); backdrop-filter: blur(10px);
  box-shadow: var(--sh-2); font-size: 13.5px; font-weight: 700;
  animation: float-b 8s ease-in-out infinite;
}
.hero-chip small { display: block; font-weight: 500; color: var(--ink-3); font-size: 12px; }
.hero-chip .dots { display: flex; }
.hero-chip .dots i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #fff; margin-left: -6px; }
.hero-chip .dots i:first-child { margin-left: 0; }
.chip-a { left: 6%; top: 10%; }
.chip-b { right: -2%; top: 42%; animation-delay: -3s; }
.hero-chip .ch-ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--blush-100); color: #8A4A3D; }

.hero-scroll { position: absolute; left: 50%; bottom: 22px; z-index: 3; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }
.hero-scroll i { width: 1.5px; height: 34px; background: linear-gradient(var(--ink-3), transparent); position: relative; overflow: hidden; }
.hero-scroll i::after { content: ''; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--blush-500); animation: drip 2s var(--ease) infinite; }
@keyframes drip { to { top: 110%; } }

/* marquee */
.marquee { border-block: 1px solid var(--line); background: var(--white); overflow: hidden; padding: 18px 0; }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; font-family: var(--f-display); font-size: clamp(22px, 2.6vw, 34px); font-style: italic; color: var(--ink-2); white-space: nowrap; }
.marquee-track span svg { width: 26px; height: 26px; color: var(--blush-300); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Category cards ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
.cat-card {
  position: relative; display: flex; flex-direction: column; border-radius: var(--r-xl); overflow: hidden;
  background: var(--white); box-shadow: var(--sh-1); isolation: isolate;
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.cat-card:hover { transform: translateY(-8px); box-shadow: var(--sh-3); }
.cat-card .cc-media { position: relative; aspect-ratio: 4/4.4; overflow: hidden; margin: 10px 10px 0; border-radius: calc(var(--r-xl) - 8px); }
.cat-card .cc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.cat-card:hover .cc-media img { transform: scale(1.08); }
.cat-card .cc-num { position: absolute; top: 16px; left: 16px; z-index: 2; font-family: var(--f-display); font-style: italic; font-size: 15px; background: rgba(255, 255, 255, .85); backdrop-filter: blur(6px); padding: 4px 12px; border-radius: var(--r-pill); }
.cat-card .cc-swatch { position: absolute; bottom: 16px; left: 16px; z-index: 2; display: flex; gap: 6px; opacity: 0; transform: translateY(10px); transition: .5s var(--ease); }
.cat-card .cc-swatch i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .15); }
.cat-card:hover .cc-swatch { opacity: 1; transform: none; }
.cat-card .cc-body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.cat-card h3 { font-size: clamp(28px, 2.6vw, 36px); }
.cat-card p { color: var(--ink-2); margin: 0 0 12px; }
.cat-card .cc-cta { margin-top: auto; display: flex; align-items: center; justify-content: space-between; font-weight: 700; color: var(--sage-700); }
.cc-arrow { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--sage-50); position: relative; overflow: hidden; transition: background .4s; }
.cc-arrow svg { transition: transform .5s var(--ease); }
.cc-arrow svg + svg { position: absolute; transform: translateX(-200%); }
.cat-card:hover .cc-arrow { background: var(--sage-700); color: #fff; }
.cat-card:hover .cc-arrow svg:first-child { transform: translateX(200%); }
.cat-card:hover .cc-arrow svg + svg { transform: translateX(0); }
.cat-card .cc-thread { position: absolute; left: 26px; right: 26px; bottom: 16px; height: 8px; }
.cat-card .cc-thread path { stroke: var(--blush-300); stroke-width: 1.6; fill: none; stroke-dasharray: 400; stroke-dashoffset: 400; transition: stroke-dashoffset 1.1s var(--ease); }
.cat-card:hover .cc-thread path { stroke-dashoffset: 0; }
.cat-card--blush { background: var(--blush-50); }
.cat-card--sage { background: var(--sage-50); }

/* ---------- Carousel ---------- */
.carousel { position: relative; }
.carousel-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 24px) / 4); gap: 24px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 6px 2px 26px;
  scrollbar-width: none; cursor: grab;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track.dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.carousel-track.dragging * { pointer-events: none; }
.carousel-track > * { scroll-snap-align: start; }
.carousel.is-static .carousel-track { justify-content: center; cursor: default; }
.carousel.is-static .carousel-nav, .carousel.is-static .c-progress { display: none; }
.carousel-nav { display: flex; gap: 10px; align-items: center; }
.c-btn { width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--white); display: grid; place-items: center; transition: .3s var(--ease); }
.c-btn:hover:not(:disabled) { background: var(--ink); color: #fff; border-color: var(--ink); transform: scale(1.06); }
.c-btn:disabled { opacity: .35; cursor: default; }
.c-progress { height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; max-width: 260px; margin: 6px auto 0; }
.c-progress i { display: block; height: 100%; width: 20%; background: var(--sage-500); border-radius: 3px; transition: transform .4s var(--ease), width .3s; transform-origin: left; }

/* ---------- Product card ---------- */
.p-card { position: relative; display: flex; flex-direction: column; background: var(--white); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-1); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.p-card:hover { transform: translateY(-6px); box-shadow: var(--sh-2); }
.p-media { position: relative; display: block; aspect-ratio: 4/4.6; overflow: hidden; background: #fff; }
.p-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: transform 1s var(--ease), opacity .6s var(--ease); } /* whole photo, never cropped */
/* trimmed product photos (inc/image-fit.php): the same inner margin for every product, so they all look the same size */
.p-media img.is-fit { padding: 7% 9%; box-sizing: border-box; }
/* photos with a real background fill the card frame: every card photo is the same size, no bands */
.p-media img.is-photo { object-fit: cover; }
.p-media .img-2 { opacity: 0; }
.p-card:hover .p-media img { transform: scale(1.06); }
.p-card:hover .p-media .img-2 { opacity: 1; }
.p-card.is-cover .p-media { background: linear-gradient(160deg, var(--ivory-2), var(--ivory-3)); }
.p-card.is-cover .p-media img { object-fit: contain; padding: 17% 14% 7%; filter: drop-shadow(0 14px 18px rgba(60, 45, 30, .2)); }
.p-card.is-cover .p-badges { flex-direction: row; flex-wrap: wrap; right: 12px; } /* badges in a row above the cover, never on its title */
.p-card.is-cover:hover .p-media img { transform: scale(1.04) rotate(-1.5deg); }
.p-badges { position: absolute; top: 12px; left: 12px; z-index: 2; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.badge { padding: 4px 10px; border-radius: var(--r-pill); font-size: 11.5px; font-weight: 800; letter-spacing: .02em; background: var(--white); box-shadow: 0 2px 8px rgba(0, 0, 0, .06); }
.badge--sale { background: var(--blush-300); }
.badge--new { background: var(--sage-100); color: var(--sage-800); }
.badge--digital { background: var(--sky-100); color: #2E5670; }
.p-quick { position: absolute; right: 12px; bottom: 12px; z-index: 2; display: flex; gap: 8px; opacity: 0; transform: translateY(10px); transition: .4s var(--ease); }
.p-card:hover .p-quick, .p-card:focus-within .p-quick { opacity: 1; transform: none; }
.p-quick a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--white); box-shadow: var(--sh-1); transition: .3s; }
.p-quick a:hover { background: var(--ink); color: #fff; }
.p-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.p-cat { font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.p-name { font-family: var(--f-display); font-size: 19px; line-height: 1.2; font-weight: 500; }
.p-name a:hover { color: var(--sage-700); }
.p-price { display: flex; align-items: baseline; gap: 8px; font-weight: 800; font-size: 17px; }
.p-price del { color: var(--ink-3); font-weight: 600; font-size: 14px; }
.p-price ins { text-decoration: none; color: #A2523F; }
.p-price .from { font-size: 12px; font-weight: 600; color: var(--ink-3); }
.p-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.stock { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--ok); }
.stock::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 18%, transparent); }
.stock--low { color: #B07A1E; }
.stock--out { color: var(--danger); }
.swatches { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.sw {
  --c: #ccc; position: relative; width: 22px; height: 22px; border-radius: 50%; background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); transition: transform .3s var(--ease-spring);
}
.sw::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid transparent; transition: .25s; }
.sw:hover { transform: scale(1.15); }
.sw.active::after { border-color: var(--ink); }
.sw.out { opacity: .4; }
.sw.out::before { content: ''; position: absolute; left: 50%; top: -2px; bottom: -2px; width: 1.5px; background: var(--ink-2); transform: rotate(45deg); }
.sw-more { font-size: 12px; font-weight: 800; color: var(--ink-2); padding: 0 4px; }
.p-sel { font-size: 12.5px; color: var(--ink-2); min-height: 18px; transition: opacity .3s; }
.p-sel b { color: var(--ink); }
.p-card .btn { margin-top: auto; min-height: 46px; font-size: 14px; }
.p-actions { margin-top: auto; display: flex; gap: 8px; padding-top: 6px; }
.p-actions .btn { flex: 1; padding: 0 14px; }

/* fly to cart */
.fly-img { position: fixed; z-index: 200; border-radius: 14px; object-fit: contain; background: #fff; pointer-events: none; box-shadow: var(--sh-3); transition: transform .8s cubic-bezier(.6, -.1, .4, 1), opacity .8s, width .8s, height .8s; }

/* ---------- Kit showcase ---------- */
.kit-show { position: relative; overflow: hidden; }
.kit-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(30px, 6vw, 96px); align-items: center; }
.kit-collage { position: relative; height: clamp(460px, 52vw, 680px); }
.kit-collage .k-main { position: absolute; left: 0; top: 0; width: 72%; height: 88%; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-3); }
.kit-collage .k-main img { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity 1.4s var(--ease), transform 6s linear; }
.kit-collage .k-main img.on { opacity: 1; transform: scale(1); }
.kit-collage .k-side { position: absolute; right: 0; bottom: 0; width: 42%; aspect-ratio: 3/4; border-radius: 200px 200px var(--r-lg) var(--r-lg); overflow: hidden; border: 10px solid var(--ivory); box-shadow: var(--sh-2); }
.kit-collage .k-side img { width: 100%; height: 120%; object-fit: cover; }
.kit-collage .k-badge { position: absolute; left: 60%; top: 8%; z-index: 3; width: 128px; height: 128px; border-radius: 50%; background: var(--blush-200); display: grid; place-items: center; text-align: center; font-family: var(--f-display); font-style: italic; font-size: 17px; line-height: 1.1; animation: yarn-spin 30s linear infinite; }
.kit-collage .k-badge svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.kit-collage .k-badge span { animation: yarn-spin 30s linear infinite reverse; }
.k-dots { position: absolute; left: 24px; bottom: calc(12% + 22px); z-index: 3; display: flex; gap: 8px; }
.k-dots button { width: 34px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .55); overflow: hidden; position: relative; }
.k-dots button.on::after { content: ''; position: absolute; inset: 0; background: #fff; transform-origin: left; animation: kprog 5s linear both; }
@keyframes kprog { from { transform: scaleX(0); } }
.kit-copy h2 { margin-bottom: 22px; }
.kit-steps { list-style: none; padding: 0; margin: 28px 0 34px; display: grid; gap: 14px; counter-reset: s; }
.kit-steps li { display: flex; gap: 16px; align-items: center; font-weight: 600; color: var(--ink-2); counter-increment: s; }
.kit-steps li::before { content: counter(s, decimal-leading-zero); width: 46px; height: 46px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--white); border: 1px solid var(--line); font-family: var(--f-display); font-style: italic; color: var(--sage-700); }

/* ---------- Inspiration ---------- */
.inspo { position: relative; border-radius: var(--r-xl); overflow: hidden; min-height: clamp(460px, 48vw, 620px); display: flex; align-items: flex-end; isolation: isolate; clip-path: inset(var(--clip, 6%) round var(--r-xl)); transition: clip-path .1s linear; }
.inspo > img { position: absolute; inset: -10% 0; width: 100%; height: 120%; object-fit: cover; z-index: -2; }
.inspo::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(255, 255, 255, .96) 0%, rgba(255, 255, 255, .82) 38%, rgba(255, 255, 255, 0) 70%); }
.inspo-copy { padding: clamp(28px, 5vw, 70px); max-width: 620px; }
.inspo-copy .lead { margin: 18px 0 26px; }

/* ---------- Publications (home) ---------- */
.pubs-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.covers-fan { position: relative; height: clamp(380px, 38vw, 500px); }
/* The <a> only places the cover in the fan; the hover lift is on the inner .cv, so the hover area never moves away from the cursor (no hover flicker). */
.covers-fan a { position: absolute; top: 50%; left: 50%; width: 46%; aspect-ratio: 3/4; transition: transform .7s var(--ease), z-index 0s .25s; }
.covers-fan .cv { position: absolute; inset: 0; display: block; border-radius: 6px 14px 14px 6px; overflow: hidden; box-shadow: var(--sh-3); background: #fff; transition: transform .5s var(--ease), box-shadow .5s var(--ease); will-change: transform; }
.covers-fan .cv img { display: block; width: 100%; height: 100%; object-fit: cover; }
.covers-fan .cv::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 8px; background: linear-gradient(90deg, rgba(0, 0, 0, .12), transparent); z-index: 1; }
.covers-fan a:nth-child(1) { transform: translate(-108%, -50%) rotate(-10deg); }
.covers-fan a:nth-child(2) { transform: translate(-50%, -54%) rotate(0deg); z-index: 2; }
.covers-fan a:nth-child(3) { transform: translate(8%, -50%) rotate(10deg); }
.covers-fan:hover a:nth-child(1) { transform: translate(-122%, -52%) rotate(-13deg); }
.covers-fan:hover a:nth-child(3) { transform: translate(22%, -52%) rotate(13deg); }
.covers-fan a:hover, .covers-fan a:focus-visible { z-index: 5; transition: transform .7s var(--ease), z-index 0s; }
.covers-fan a:hover .cv, .covers-fan a:focus-visible .cv { transform: translateY(-5%) scale(1.05); box-shadow: 0 30px 60px -24px rgba(60, 45, 30, .45); }
.pub-links { display: flex; gap: 10px; flex-wrap: wrap; margin: 26px 0 30px; }
.pub-links a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: var(--r-pill); background: var(--white); border: 1px solid var(--line); font-weight: 700; transition: .3s var(--ease); }
.pub-links a:hover { border-color: var(--sage-300); background: var(--sage-50); transform: translateY(-2px); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.about-media { position: relative; height: clamp(420px, 44vw, 580px); }
.about-media .a1 { position: absolute; left: 0; top: 0; width: 70%; height: 82%; border-radius: var(--r-xl); overflow: hidden; }
.about-media .a2 { position: absolute; right: 0; bottom: 0; width: 48%; height: 52%; border-radius: var(--r-xl); overflow: hidden; border: 10px solid var(--white); box-shadow: var(--sh-2); }
.about-media img { width: 100%; height: 100%; object-fit: cover; }
.about-media .a-script { position: absolute; left: 4%; bottom: 4%; z-index: 3; width: 150px; mix-blend-mode: multiply; opacity: .9; transform: rotate(-6deg); }
.about-copy blockquote { margin: 0 0 24px; padding-left: 20px; border-left: 2px solid var(--blush-300); font-family: var(--f-display); font-style: italic; font-size: 20px; color: var(--ink-2); }

/* ---------- Benefits ---------- */
.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.benefit { display: flex; gap: 16px; align-items: flex-start; padding: 24px; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line-2); transition: .4s var(--ease); }
.benefit:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.benefit .b-ico { width: 52px; height: 52px; flex: none; border-radius: 16px; display: grid; place-items: center; background: var(--sage-50); color: var(--sage-700); }
.benefit:nth-child(even) .b-ico { background: var(--blush-50); color: #9A5646; }
.benefit h3 { font-family: var(--f-body); font-size: 16px; font-weight: 800; margin-bottom: 4px; letter-spacing: 0; }
.benefit p { margin: 0; font-size: 14px; color: var(--ink-2); line-height: 1.5; }

/* ---------- Final CTA ---------- */
.final-cta { position: relative; overflow: hidden; text-align: center; border-radius: var(--r-xl); padding: clamp(60px, 9vw, 120px) var(--gutter); background: radial-gradient(ellipse at 20% 20%, var(--blush-100), transparent 60%), radial-gradient(ellipse at 80% 80%, var(--sage-100), transparent 60%), var(--white); isolation: isolate; }
.final-cta h2 { max-width: 820px; margin: 0 auto 18px; font-size: clamp(36px, 5vw, 68px); }
.final-cta .lead { max-width: 560px; margin: 0 auto 34px; }
.final-cta .hero-ctas { justify-content: center; }
.final-cta .living-thread { inset: 0; width: 100%; height: 100%; z-index: -1; }

/* ---------- Scroll thread (home) ---------- */
.scroll-thread { position: absolute; top: 0; left: 0; width: 100%; pointer-events: none; z-index: 0; }
.home main > section, .home main > .marquee { position: relative; z-index: 1; }
.scroll-thread path { fill: none; stroke: var(--blush-200); stroke-width: 2; stroke-linecap: round; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: 13px; color: var(--ink-3); padding-top: 18px; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.breadcrumb li + li::before { content: '/'; margin-right: 6px; opacity: .6; }
.breadcrumb a { font-weight: 600; color: var(--ink-2); }
.breadcrumb a:hover { color: var(--sage-700); }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 600; }

/* ---------- Hero 3D: real-time WebGL yarn scene (assets/js/hero3d.js, three.js) ----------
   The canvas covers the whole hero (so the loose cord can run under the text); the scene is framed into .h3-stage. */
.hero3d { --h3-ink: #241F1B; --h3-hot: #EE5E1C; background: radial-gradient(120% 95% at 74% 42%, #FFFFFF 0%, #FFFFFF 55%, #F6F5F3 100%); isolation: isolate; }
.hero3d::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: linear-gradient(rgba(255, 255, 255, 0), #fff); pointer-events: none; z-index: 1; }
.hero3d .h3-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; display: block; pointer-events: none; opacity: 0; transition: opacity 1s var(--ease); }
.hero3d .h3-canvas.is-ready { opacity: 1; }
.hero3d.is-over-cone { cursor: pointer; }
.hero3d .hero-grid { z-index: 2; min-height: min(70vh, 640px); min-height: min(70svh, 640px); } /* svh: stable while the mobile address bar moves */
.hero3d .hero-copy { position: relative; z-index: 3; }
.hero3d .eyebrow { color: var(--h3-ink); }
.hero3d h1 .accent-i {
  background: linear-gradient(100deg, #B9B62A 0%, #DC961E 22%, #EE5E1C 44%, #7A3A22 66%, #DC961E 84%, #B9B62A 100%);
  background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  animation: h3-shine 10s linear infinite; padding-right: .08em;
}
@keyframes h3-shine { to { background-position: -300% 0; } }
.hero3d .btn:not(.btn--ghost):not(.btn--soft) { --bg: var(--h3-ink); --bd: var(--h3-ink); }
.hero3d .btn:not(.btn--ghost):not(.btn--soft)::before { background: var(--h3-hot); }
.hero3d .btn:not(.btn--ghost):not(.btn--soft):hover { border-color: var(--h3-hot); box-shadow: 0 16px 30px -14px rgba(238, 94, 28, .6); }
.hero3d .hero-quick a:hover { border-color: #DC961E; }
.hero3d .hero-scroll i::after { background: var(--h3-hot); }
.h3-stage { position: relative; height: clamp(440px, 40vw, 580px); pointer-events: none; }
.h3-label { position: absolute; left: 0; top: 0; z-index: 5; pointer-events: none; display: flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .97); box-shadow: var(--sh-2); will-change: translate; font-size: 12.5px; color: var(--h3-ink); white-space: nowrap; opacity: 0; transform: translate(-50%, -100%) translateY(8px); transition: opacity .3s var(--ease), transform .35s var(--ease); }
.h3-label.show { opacity: 1; transform: translate(-50%, -100%); }
.h3-label i { width: 14px; height: 14px; border-radius: 50%; background: var(--c, #DC961E); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .7); }
.h3-chip { position: absolute; z-index: 4; pointer-events: none; }
.h3-chip--a { left: -6%; top: 4%; }
.h3-chip--b { right: -2%; top: 44%; }
.h3-chip .hero-chip { position: relative; opacity: 0; animation: h3-chip-in .9s var(--ease) forwards, float-b 8s ease-in-out 1s infinite; animation-delay: var(--cd, 1.2s), calc(var(--cd, 1.2s) + .9s); }
@keyframes h3-chip-in { from { opacity: 0; transform: translateY(16px) scale(.92); } to { opacity: 1; transform: none; } }
.hero3d .hero-chip .ch-ico { background: #FDE9DC; color: #C2410C; }
/* no glass blur over the live 3D canvas: a backdrop-filter would re-blur it on every frame */
.hero3d .hero-chip { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(255, 255, 255, .96); }
/* the shimmering accent repaints the headline every frame: keep it static on touch devices */
@media (hover: none), (pointer: coarse) { .hero3d h1 .accent-i { animation: none; background-position: 30% 0; } }
@media (max-width: 900px) {
  .h3-stage { height: 420px; max-width: 520px; width: 100%; margin: 0 auto; }
  .h3-chip--a { left: 0; top: 0; }
  .h3-chip--b { left: 0; right: auto; top: auto; bottom: 0; }
}
@media (max-width: 560px) {
  .h3-stage { height: 360px; }
  .h3-chip .hero-chip { font-size: 12px; padding: 9px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .h3-chip .hero-chip { animation: none !important; opacity: 1 !important; }
  .hero3d h1 .accent-i { animation: none; }
}

/* ---------- Compact hero (shop pages) ---------- */
.c-hero { position: relative; overflow: hidden; }
.c-hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 30px; min-height: 260px; padding-top: 18px; padding-bottom: 28px; }
.c-hero h1 { font-size: clamp(32px, 4vw, 54px); line-height: 1.04; max-width: 680px; }
.c-hero h1 .w { display: inline-block; animation: line-up .9s var(--ease) both; }
.c-hero p { margin: 14px 0 0; max-width: 600px; color: var(--ink-2); font-size: 16.5px; }
.c-hero .eyebrow { margin-bottom: 12px; }
.c-hero-art { position: relative; height: 240px; }
.c-hero-art .ch-1 { position: absolute; right: 22%; top: 0; width: 46%; height: 100%; border-radius: 999px 999px 24px 24px; overflow: hidden; box-shadow: var(--sh-2); animation: float-a 9s ease-in-out infinite; }
.c-hero-art .ch-2 { position: absolute; right: 0; bottom: 6%; width: 32%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 6px solid var(--white); box-shadow: var(--sh-2); animation: float-b 10s ease-in-out infinite; }
.c-hero-art img { width: 100%; height: 100%; object-fit: cover; }
.c-hero-art .yarn-ball { left: 4%; bottom: 4%; width: 74px; height: 74px; }
.c-hero .living-thread { left: 0; right: 0; bottom: 0; width: 100%; height: 100%; }
.c-hero--tall .c-hero-inner { min-height: clamp(420px, 56vh, 600px); }
.c-hero--tall h1 { font-size: clamp(40px, 5.4vw, 76px); }
.c-hero--tall p { font-size: 18px; }
.c-hero--tall .c-hero-art { height: clamp(320px, 42vw, 520px); }

/* ---------- Catalog ---------- */
.cat-toolbar { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; margin-bottom: 20px; }
.local-search { position: relative; max-width: 520px; }
.local-search .s-ico { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.local-search .suggest { z-index: 40; }
.toolbar-right { display: flex; align-items: center; gap: 14px; }
.result-count { font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.result-count b { color: var(--ink); }
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; height: 48px; padding: 0 44px 0 18px; border-radius: var(--r-pill); border: 1.5px solid var(--line); background: var(--white); font-weight: 600; font-size: 14px; cursor: pointer; }
.select select:focus { outline: none; border-color: var(--sage-500); }
.select::after { content: ''; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; border-right: 1.8px solid var(--ink-2); border-bottom: 1.8px solid var(--ink-2); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.filter-btn { display: none; }

.catalog { display: grid; grid-template-columns: 270px 1fr; gap: 36px; align-items: start; }
.filters { position: sticky; top: 130px; max-height: calc(100vh - 150px); overflow: auto; padding-right: 6px; scrollbar-width: thin; }
.filters-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.filters-head h2 { font-family: var(--f-body); font-size: 13px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.f-clear { font-size: 13px; font-weight: 700; color: var(--sage-700); text-decoration: underline; text-underline-offset: 3px; }
.f-group { border-bottom: 1px solid var(--line); }
.f-group > button { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 16px 0; font-weight: 800; font-size: 15px; }
.f-group > button .chev { transition: transform .3s var(--ease); }
.f-group.closed > button .chev { transform: rotate(-90deg); }
.f-body { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .4s var(--ease); }
.f-group.closed .f-body { grid-template-rows: 0fr; }
.f-body > div { overflow: hidden; }
.f-opts { display: grid; gap: 2px; padding-bottom: 16px; }
.f-check { display: flex; align-items: center; gap: 12px; padding: 7px 6px; border-radius: 10px; cursor: pointer; font-size: 14.5px; transition: background .2s; }
.f-check:hover { background: var(--white); }
.f-check input { position: absolute; opacity: 0; pointer-events: none; }
.f-check .box { width: 20px; height: 20px; flex: none; border-radius: 6px; border: 1.6px solid var(--ink-3); display: grid; place-items: center; transition: .25s var(--ease); background: var(--white); }
.f-check .box svg { width: 12px; height: 12px; stroke: #fff; stroke-width: 3; fill: none; transform: scale(0); transition: transform .3s var(--ease-spring); }
.f-check input:checked + .box { background: var(--sage-700); border-color: var(--sage-700); }
.f-check input:checked + .box svg { transform: scale(1); }
.f-check input:focus-visible + .box { outline: 2px solid var(--sage-700); outline-offset: 2px; }
.f-check .cnt { margin-left: auto; font-size: 12px; color: var(--ink-3); font-weight: 700; }
.f-check.disabled { opacity: .4; pointer-events: none; }
.f-colors { display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); gap: 10px; padding-bottom: 18px; }
.f-color { display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; font-size: 10.5px; color: var(--ink-2); text-align: center; line-height: 1.1; }
.f-color input { position: absolute; opacity: 0; }
.f-color .sw { width: 30px; height: 30px; }
.f-color input:checked + .sw::after { border-color: var(--ink); }
.f-color input:focus-visible + .sw { outline: 2px solid var(--sage-700); outline-offset: 3px; }
.price-range { padding: 4px 4px 22px; }
.range-wrap { position: relative; height: 30px; }
.range-wrap input[type=range] { position: absolute; left: 0; right: 0; top: 50%; width: 100%; transform: translateY(-50%); -webkit-appearance: none; appearance: none; background: transparent; pointer-events: none; margin: 0; }
.range-wrap input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--white); border: 2px solid var(--sage-700); box-shadow: var(--sh-1); pointer-events: auto; cursor: pointer; }
.range-wrap input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--white); border: 2px solid var(--sage-700); pointer-events: auto; cursor: pointer; }
.range-track { position: absolute; left: 0; right: 0; top: 50%; height: 4px; transform: translateY(-50%); background: var(--line); border-radius: 4px; }
.range-track i { position: absolute; top: 0; bottom: 0; background: var(--sage-500); border-radius: 4px; }
.range-vals { display: flex; justify-content: space-between; font-weight: 700; font-size: 14px; margin-top: 6px; }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 6px 18px; cursor: pointer; font-size: 14.5px; }
.toggle input { position: absolute; opacity: 0; }
.toggle .tr { width: 44px; height: 26px; border-radius: 13px; background: var(--line); position: relative; transition: .3s; flex: none; }
.toggle .tr::after { content: ''; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .2); transition: transform .35s var(--ease-spring); }
.toggle input:checked + .tr { background: var(--sage-700); }
.toggle input:checked + .tr::after { transform: translateX(18px); }
.toggle input:focus-visible + .tr { outline: 2px solid var(--sage-700); outline-offset: 2px; }

.active-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; min-height: 0; }
.chip-x { display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px 7px 14px; border-radius: var(--r-pill); background: var(--sage-100); color: var(--sage-800); font-size: 13px; font-weight: 700; animation: chip-in .35s var(--ease-spring); }
.chip-x:hover { background: var(--sage-200); }
.chip-x svg { width: 14px; height: 14px; }
.chip-x i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
@keyframes chip-in { from { opacity: 0; transform: scale(.8); } }

.p-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; transition: opacity .25s; }
.p-grid.is-loading { opacity: .35; pointer-events: none; }
.p-grid > .p-card { animation: card-in .6s var(--ease) both; }
@keyframes card-in { from { opacity: 0; transform: translateY(18px); } }
.load-more { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 40px; }
.load-more .lm-bar { width: 220px; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.load-more .lm-bar i { display: block; height: 100%; background: var(--sage-500); transition: width .4s var(--ease); }
.load-more small { color: var(--ink-3); font-weight: 600; }
.empty-state { grid-column: 1 / -1; text-align: center; padding: 60px 20px; border-radius: var(--r-xl); background: var(--white); border: 1px dashed var(--line); }
.empty-state h3 { margin-bottom: 8px; }
.empty-state p { color: var(--ink-2); }

.seo-block { max-width: 820px; }
.seo-block h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 16px; }
.seo-block p { color: var(--ink-2); }

/* subcategory nav (Accessori) */
.subcat-nav h2 { font-size: clamp(22px, 2.4vw, 30px); margin-bottom: 18px; }
.subcat-row { scroll-padding: 0 4px; display: grid; grid-auto-flow: column; grid-auto-columns: max-content; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 14px; scrollbar-width: none; }
.subcat-row::-webkit-scrollbar { display: none; }
.subcat {
  scroll-snap-align: start; position: relative; display: flex; align-items: center; gap: 12px;
  padding: 8px 18px 8px 8px; border-radius: var(--r-pill); background: var(--white); border: 1.5px solid var(--line-2); white-space: nowrap;
  font-weight: 700; font-size: 14.5px; transition: .35s var(--ease); text-align: left;
}
.subcat img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; transition: transform .6s var(--ease); flex: none; }
.subcat .sc-count { display: block; font-size: 12px; color: var(--ink-3); font-weight: 600; }
.subcat:hover { border-color: var(--sage-300); transform: translateY(-3px); box-shadow: var(--sh-1); }
.subcat:hover img { transform: scale(1.1) rotate(-4deg); }
.subcat.active { border-color: var(--sage-700); background: var(--sage-50); }
.subcat--all .sc-all-ico { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--blush-100); flex: none; }

/* Pub tabs */
.pub-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.pub-tab {
  position: relative; display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: var(--r-lg);
  background: var(--white); border: 1.5px solid var(--line-2); text-align: left; transition: .4s var(--ease); overflow: hidden;
}
.pub-tab .pt-img { width: 64px; height: 80px; flex: none; border-radius: 6px 10px 10px 6px; overflow: hidden; box-shadow: var(--sh-1); transition: transform .5s var(--ease); background: var(--ivory-2); display: grid; place-items: center; }
.pub-tab .pt-img img { width: 100%; height: 100%; object-fit: cover; }
.pub-tab h3 { font-size: 22px; }
.pub-tab p { margin: 2px 0 0; font-size: 13px; color: var(--ink-2); line-height: 1.4; }
.pub-tab .pt-count { position: absolute; top: 10px; right: 12px; font-size: 12px; font-weight: 800; color: var(--ink-3); }
.pub-tab:hover { transform: translateY(-3px); box-shadow: var(--sh-1); }
.pub-tab:hover .pt-img { transform: rotate(-4deg) scale(1.05); }
.pub-tab[aria-selected="true"] { border-color: var(--sage-700); background: var(--sage-50); }
.pub-tab[aria-selected="true"]::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--sage-700); animation: grow .5s var(--ease); }
@keyframes grow { from { transform: scaleX(0); } }

/* Kit empty */
.coming { position: relative; overflow: hidden; text-align: center; padding: clamp(56px, 8vw, 100px) 24px; border-radius: var(--r-xl); background: var(--white); border: 1px solid var(--line-2); isolation: isolate; }
.coming h2 { font-size: clamp(30px, 4vw, 50px); margin-bottom: 14px; }
.coming p { color: var(--ink-2); max-width: 520px; margin: 0 auto 28px; font-size: 18px; }
.coming .living-thread { inset: 0; width: 100%; height: 100%; z-index: -1; }
.coming .yarn-ball { width: 110px; height: 110px; position: relative; margin: 0 auto 26px; }
.coming .hero-ctas { justify-content: center; }

/* ---------- Product page ---------- */
.pdp > *, .cart-layout > *, .catalog > *, .kit-grid > *, .editorial > * { min-width: 0; }
.pdp { display: grid; grid-template-columns: 57fr 43fr; gap: clamp(28px, 4vw, 64px); align-items: start; padding-top: 18px; }
.gallery { position: sticky; top: 130px; display: grid; grid-template-columns: 86px 1fr; gap: 14px; }
.g-thumbs { display: flex; flex-direction: column; gap: 10px; }
.g-thumb { width: 86px; aspect-ratio: 1; border-radius: 14px; overflow: hidden; border: 2px solid transparent; opacity: .65; transition: .3s var(--ease); background: #fff; }
.g-thumb img { width: 100%; height: 100%; object-fit: contain; }
.g-thumb:hover { opacity: 1; }
.g-thumb.active { border-color: var(--ink); opacity: 1; }
.g-main { position: relative; border-radius: var(--r-xl); overflow: hidden; background: var(--white); aspect-ratio: 1/1.08; cursor: zoom-in; }
.g-slides { display: flex; height: 100%; transition: transform .6s var(--ease); }
.g-slide { flex: 0 0 100%; height: 100%; position: relative; overflow: hidden; }
.g-slide img { width: 100%; height: 100%; object-fit: contain; transition: transform .4s ease; transform-origin: var(--zx, 50%) var(--zy, 50%); }
.g-main.zooming .g-slide.active img { transform: scale(2); }
.g-main.is-cover { background: linear-gradient(160deg, var(--ivory-2), var(--ivory-3)); }
.g-main.is-cover .g-slide img { object-fit: contain; padding: 8% 16%; filter: drop-shadow(0 20px 26px rgba(60, 45, 30, .25)); }
.g-expand { position: absolute; right: 16px; top: 16px; z-index: 2; width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, .9); display: grid; place-items: center; box-shadow: var(--sh-1); transition: .3s; }
.g-expand:hover { transform: scale(1.08); }
.g-arrows button { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .9); display: grid; place-items: center; opacity: 0; transition: .3s; }
.g-main:hover .g-arrows button { opacity: 1; }
.g-arrows .prev { left: 14px; }
.g-arrows .next { right: 14px; }
.g-dots { display: none; position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); gap: 6px; z-index: 2; }
.g-dots i { width: 7px; height: 7px; border-radius: 4px; background: rgba(43, 39, 36, .25); transition: .3s; }
.g-dots i.on { width: 22px; background: var(--ink); }
.g-color-tag { position: absolute; left: 16px; bottom: 16px; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .92); font-size: 13px; font-weight: 700; box-shadow: var(--sh-1); transition: .4s var(--ease); }
.g-color-tag i { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.g-color-tag:empty { opacity: 0; }

.pdp-info .breadcrumb { padding-top: 0; margin-bottom: 16px; }
.pdp-info h1 { font-size: clamp(32px, 3.4vw, 46px); margin-bottom: 14px; }
.pdp-price { display: flex; align-items: baseline; gap: 12px; font-size: 28px; font-weight: 800; margin-bottom: 16px; }
.pdp-price del { font-size: 18px; color: var(--ink-3); font-weight: 600; }
.pdp-price ins { text-decoration: none; color: #A2523F; }
.pdp-price .save { font-size: 13px; padding: 4px 10px; border-radius: var(--r-pill); background: var(--blush-100); color: #8A4A3D; align-self: center; }
.pdp-short { color: var(--ink-2); font-size: 16.5px; margin-bottom: 24px; }
.opt-block { padding: 20px 0; border-top: 1px solid var(--line); }
.opt-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; gap: 10px; }
.opt-head .lbl { font-weight: 800; font-size: 15px; }
.opt-head .sel-name { font-size: 14.5px; color: var(--ink-2); }
.opt-head .sel-name b { color: var(--ink); }
.opt-head .sel-name.warn { color: var(--danger); font-weight: 700; }
.swatch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 10px; }
.swatch-grid.collapsed { max-height: 112px; overflow: hidden; mask-image: linear-gradient(#000 70%, transparent); -webkit-mask-image: linear-gradient(#000 70%, transparent); }
.swatch-grid .sw { width: 46px; height: 46px; }
.swatch-grid .sw .code { position: absolute; left: 50%; bottom: -18px; transform: translateX(-50%); font-size: 10px; font-weight: 700; color: var(--ink-3); opacity: 0; transition: .2s; }
.swatch-grid .sw:hover .code, .swatch-grid .sw.active .code { opacity: 1; }
.swatch-grid { padding-bottom: 14px; }
.sw-toggle { margin-top: 6px; font-weight: 700; font-size: 14px; color: var(--sage-700); text-decoration: underline; text-underline-offset: 3px; }
.size-opts { display: flex; flex-wrap: wrap; gap: 10px; }
.size-opt { min-width: 64px; height: 46px; padding: 0 18px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--white); font-weight: 700; font-size: 14.5px; transition: .25s var(--ease); position: relative; }
.size-opt:hover { border-color: var(--ink-3); }
.size-opt.active { border-color: var(--ink); background: var(--ink); color: #fff; }
.size-opt.out { color: var(--ink-3); background: repeating-linear-gradient(135deg, transparent 0 6px, var(--line-2) 6px 7px); text-decoration: line-through; }
.buy-row { display: flex; gap: 12px; align-items: stretch; margin-top: 4px; }
.qty-box { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: var(--r-pill); background: var(--white); height: 56px; }
.qty-box button { width: 46px; height: 100%; display: grid; place-items: center; font-size: 20px; border-radius: var(--r-pill); transition: background .2s; }
.qty-box button:hover { background: var(--sage-50); }
.qty-box input { width: 44px; text-align: center; border: 0; background: transparent; font-weight: 800; font-size: 16px; -moz-appearance: textfield; }
.qty-box input::-webkit-outer-spin-button, .qty-box input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty--sm { height: 40px; }
.qty--sm button { width: 34px; font-size: 16px; }
.qty--sm input { width: 30px; font-size: 14px; }
.buy-row .btn { flex: 1; min-width: 0; min-height: 56px; font-size: 16px; white-space: normal; line-height: 1.2; text-align: center; padding: 0 18px; }
.avail-line { display: flex; align-items: center; justify-content: space-between; margin: 0 0 14px; font-size: 14px; }
.var-msg { font-size: 13.5px; color: var(--danger); font-weight: 600; min-height: 20px; margin-top: 10px; }
.pdp-perks { display: grid; gap: 10px; margin-top: 22px; padding: 18px; border-radius: var(--r-md); background: var(--white); border: 1px solid var(--line-2); }
.pdp-perks div { display: flex; gap: 12px; align-items: center; font-size: 14px; color: var(--ink-2); }
.pdp-perks div .icon { color: var(--sage-700); }
.pdp-perks a { font-weight: 700; color: var(--sage-700); text-decoration: underline; text-underline-offset: 3px; }
.kit-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.kit-facts div { padding: 14px; border-radius: var(--r-md); background: var(--sage-50); }
.kit-facts small { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--sage-700); margin-bottom: 4px; }
.kit-facts span { font-weight: 700; font-size: 14.5px; }

.pdp-tabs { margin-top: clamp(50px, 7vw, 90px); }
.tablist { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 30px; overflow-x: auto; }
.tablist button { position: relative; padding: 16px 20px; font-weight: 700; font-size: 16px; color: var(--ink-3); white-space: nowrap; transition: color .25s; }
.tablist button[aria-selected="true"] { color: var(--ink); }
.tablist button::after { content: ''; position: absolute; left: 20px; right: 20px; bottom: -1px; height: 2.5px; background: var(--ink); border-radius: 2px; transform: scaleX(0); transition: transform .4s var(--ease); }
.tablist button[aria-selected="true"]::after { transform: scaleX(1); }
.tabpanel { max-width: 860px; animation: fade-down .45s var(--ease); }
.tabpanel[hidden] { display: none; }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td { text-align: left; padding: 14px 0; border-bottom: 1px solid var(--line-2); font-size: 15px; vertical-align: top; }
.spec-table th { width: 40%; color: var(--ink-3); font-weight: 600; }
.spec-table td { font-weight: 600; }
.kit-list { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; }
.kit-list li { display: flex; gap: 10px; align-items: center; }
.kit-list li::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--blush-300); flex: none; }

.complete-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mini-card { display: grid; grid-template-columns: 84px 1fr; gap: 14px; align-items: center; padding: 12px; border-radius: var(--r-md); background: var(--white); border: 1px solid var(--line-2); transition: .35s var(--ease); }
.mini-card:hover { box-shadow: var(--sh-2); transform: translateY(-3px); }
.mini-card img { width: 84px; height: 84px; border-radius: 12px; object-fit: contain; background: #fff; }
.mini-card h3 { font-family: var(--f-body); font-size: 14.5px; font-weight: 700; line-height: 1.3; margin-bottom: 4px; }
.mini-card .mc-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mini-card .mc-add { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--sage-700); color: #fff; transition: .3s var(--ease); flex: none; }
.mini-card .mc-add:hover { background: var(--sage-800); transform: rotate(90deg); }

.sticky-buy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: none; align-items: center; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .45s var(--ease); }
.sticky-buy.show { transform: none; }
.sticky-buy img { width: 46px; height: 46px; border-radius: 10px; object-fit: contain; background: #fff; }
.sticky-buy .sb-info { flex: 1; min-width: 0; }
.sticky-buy .sb-name { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-buy .sb-price { font-weight: 800; font-size: 14px; }
.sticky-buy .sb-var { font-size: 12px; color: var(--ink-3); }
.sticky-buy .btn { min-height: 46px; padding: 0 18px; font-size: 14px; }

.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(255, 255, 255, .97); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: .35s var(--ease); }
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 92vw; max-height: 86vh; object-fit: contain; border-radius: 12px; box-shadow: var(--sh-3); animation: lb-in .5s var(--ease); }
@keyframes lb-in { from { opacity: 0; transform: scale(.94); } }
.lightbox .lb-btn { position: absolute; width: 54px; height: 54px; border-radius: 50%; background: var(--white); display: grid; place-items: center; box-shadow: var(--sh-1); transition: .3s; }
.lightbox .lb-btn:hover { transform: scale(1.08); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lb-prev:hover, .lb-next:hover { transform: translateY(-50%) scale(1.08) !important; }
.lb-count { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); font-weight: 700; color: var(--ink-2); }

/* ---------- Cart drawer & toast ---------- */
.cd-added { display: none; margin: -18px -22px 16px; padding: 14px 22px; background: var(--sage-50); border-bottom: 1px solid var(--sage-100); }
.cd-added.show { display: block; animation: fade-down .4s var(--ease); }
.cd-added p { margin: 0 0 10px; display: flex; gap: 8px; align-items: center; font-weight: 700; color: var(--sage-800); }
.cd-added .row { display: flex; gap: 8px; }
.cd-added .btn { flex: 1; min-height: 40px; font-size: 13.5px; padding: 0 12px; }
.cart-item { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line-2); animation: card-in .45s var(--ease) both; }
.cart-item img { width: 76px; height: 90px; border-radius: 12px; object-fit: contain; background: #fff; }
.cart-item.is-cover img { object-fit: contain; padding: 6px; }
.ci-name { font-weight: 700; font-size: 15px; line-height: 1.3; }
.ci-var { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); margin: 4px 0 10px; }
.ci-var i { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.ci-right { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; }
.ci-price { font-weight: 800; }
.ci-remove { font-size: 12.5px; color: var(--ink-3); text-decoration: underline; text-underline-offset: 3px; }
.ci-remove:hover { color: var(--danger); }
.cart-item.removing { animation: remove .35s var(--ease) forwards; }
@keyframes remove { to { opacity: 0; transform: translateX(30px); } }
.cd-sub { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; font-size: 15px; }
.cd-sub b { font-size: 22px; }
.cd-note { font-size: 12.5px; color: var(--ink-3); margin-bottom: 14px; }
.cd-actions { display: grid; gap: 10px; }
.cart-empty { text-align: center; padding: 40px 10px; }
.cart-empty .yarn-ball { position: relative; width: 90px; height: 90px; margin: 0 auto 18px; }
.cart-empty h3 { margin-bottom: 8px; }
.cart-empty p { color: var(--ink-2); }
.cart-empty .m-cats { margin-top: 20px; }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 250; width: min(460px, calc(100% - 32px));
  display: grid; grid-template-columns: 58px 1fr; gap: 14px; align-items: center;
  padding: 14px; border-radius: var(--r-lg); background: var(--white); box-shadow: var(--sh-3); border: 1px solid var(--line-2);
  transform: translate(-50%, 140%); transition: transform .55s var(--ease);
}
.toast.show { transform: translate(-50%, 0); }
.toast img { width: 58px; height: 58px; border-radius: 12px; object-fit: contain; background: #fff; }
.toast .t-title { display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: 14.5px; color: var(--sage-800); }
.toast .t-name { font-size: 13.5px; color: var(--ink-2); margin: 2px 0 10px; }
.toast .t-actions { display: flex; gap: 8px; grid-column: 1 / -1; }
.toast .t-actions .btn { flex: 1; min-height: 40px; font-size: 13.5px; }
.toast .t-bar { position: absolute; left: 18px; right: 18px; bottom: 6px; height: 2px; background: var(--line-2); border-radius: 2px; overflow: hidden; }
.toast .t-bar i { display: block; height: 100%; background: var(--sage-300); transform-origin: left; }
.toast.show .t-bar i { animation: tbar 5s linear forwards; }
.toast:hover .t-bar i { animation-play-state: paused; }
@keyframes tbar { to { transform: scaleX(0); } }

/* ---------- Cart / checkout / account pages ---------- */
.page-head { padding-top: 26px; padding-bottom: 30px; }
.page-head h1 { font-size: clamp(34px, 4.4vw, 58px); }
.steps { display: flex; gap: 8px; align-items: center; margin-top: 18px; font-size: 13.5px; font-weight: 700; color: var(--ink-3); flex-wrap: wrap; }
.steps span { display: inline-flex; align-items: center; gap: 8px; }
.steps span i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-style: normal; border: 1.5px solid var(--line); background: var(--white); font-size: 12px; }
.steps span.on { color: var(--ink); }
.steps span.on i { background: var(--sage-700); color: #fff; border-color: var(--sage-700); }
.steps .sep { width: 30px; height: 1.5px; background: var(--line); }
.cart-layout { display: grid; grid-template-columns: 1fr 400px; gap: 40px; align-items: start; }
.cart-table { background: var(--white); border-radius: var(--r-xl); padding: 8px 28px; border: 1px solid var(--line-2); }
.cart-table .cart-item { grid-template-columns: 100px 1fr auto; }
.cart-table .cart-item img { width: 100px; height: 118px; }
.summary { position: sticky; top: 130px; background: var(--white); border-radius: var(--r-xl); padding: 28px; border: 1px solid var(--line-2); }
.summary h2 { font-size: 26px; margin-bottom: 18px; }
.sum-row { display: flex; justify-content: space-between; padding: 10px 0; font-size: 15px; color: var(--ink-2); }
.sum-row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 18px; color: var(--ink); font-weight: 800; font-size: 20px; }
.coupon { display: flex; gap: 8px; margin: 14px 0; }
.coupon input { flex: 1; }
.trust-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; font-size: 12.5px; color: var(--ink-3); }
.trust-row span { display: inline-flex; align-items: center; gap: 6px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13.5px; font-weight: 700; }
.field label .req { color: var(--danger); }
.input, .field input, .field select, .field textarea { width: 100%; height: 52px; padding: 0 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--white); font-size: 15px; transition: border-color .25s, box-shadow .25s; }
.field textarea { height: 140px; padding: 14px 16px; resize: vertical; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sage-500); box-shadow: 0 0 0 4px rgba(132, 154, 122, .15); }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: var(--danger); }
.field .err { font-size: 12.5px; color: var(--danger); font-weight: 600; display: none; }
.field.invalid .err { display: block; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.grid-3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 0 14px; }
.co-card { background: var(--white); border-radius: var(--r-xl); padding: 28px; border: 1px solid var(--line-2); margin-bottom: 18px; }
.co-card h2 { font-size: 24px; margin-bottom: 18px; display: flex; align-items: center; gap: 12px; }
.co-card h2 i { width: 32px; height: 32px; border-radius: 50%; background: var(--sage-50); color: var(--sage-700); font-style: normal; display: grid; place-items: center; font-family: var(--f-body); font-size: 14px; font-weight: 800; }
.radio-card { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 14px; border: 1.5px solid var(--line); margin-bottom: 10px; cursor: pointer; transition: .25s; }
.radio-card:hover { border-color: var(--ink-3); }
.radio-card input { accent-color: var(--sage-700); width: 18px; height: 18px; }
.radio-card:has(input:checked) { border-color: var(--sage-700); background: var(--sage-50); }
.radio-card .rc-main { flex: 1; }
.radio-card .rc-main b { display: block; font-size: 15px; }
.radio-card .rc-main small { color: var(--ink-3); }
.check-line { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); margin: 12px 0; cursor: pointer; }
.check-line input { accent-color: var(--sage-700); width: 18px; height: 18px; margin-top: 2px; flex: none; }
.check-line a { text-decoration: underline; }
.sum-items { display: grid; gap: 12px; margin-bottom: 14px; max-height: 320px; overflow: auto; }
.sum-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; font-size: 14px; }
.sum-item .si-img { position: relative; }
.sum-item img { width: 56px; height: 56px; border-radius: 10px; object-fit: contain; background: #fff; }
.sum-item .si-q { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; border-radius: 10px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.sum-item small { display: block; color: var(--ink-3); }
.success-box { text-align: center; padding: clamp(50px, 7vw, 90px) 24px; background: var(--white); border-radius: var(--r-xl); border: 1px solid var(--line-2); }
.success-box .ok-ico { width: 84px; height: 84px; border-radius: 50%; background: var(--sage-100); color: var(--sage-800); display: grid; place-items: center; margin: 0 auto 22px; animation: pop .7s var(--ease-spring); }
@keyframes pop { from { transform: scale(0); } }
.success-box .ok-ico svg { width: 40px; height: 40px; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw 0.8s .3s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.auth-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: var(--white); border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line-2); max-width: 1040px; margin: 0 auto; }
.auth-art { position: relative; min-height: 560px; }
.auth-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.auth-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(43, 39, 36, .5)); }
.auth-art blockquote { position: absolute; left: 30px; right: 30px; bottom: 30px; z-index: 1; color: #fff; font-family: var(--f-display); font-style: italic; font-size: 24px; line-height: 1.25; margin: 0; }
.auth-form { padding: clamp(28px, 4vw, 52px); }
.seg { display: inline-flex; padding: 5px; border-radius: var(--r-pill); background: var(--ivory-2); margin-bottom: 26px; position: relative; }
.seg button { position: relative; z-index: 1; padding: 10px 22px; border-radius: var(--r-pill); font-weight: 700; font-size: 14.5px; color: var(--ink-2); transition: color .3s; }
.seg button[aria-selected="true"] { color: var(--ink); }
.seg .seg-ind { position: absolute; top: 5px; bottom: 5px; border-radius: var(--r-pill); background: var(--white); box-shadow: var(--sh-1); transition: left .45s var(--ease), width .45s var(--ease); }

/* legal */
.legal-wrap { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: start; }
.legal-nav { position: sticky; top: 130px; display: grid; gap: 4px; }
.legal-nav a { padding: 12px 16px; border-radius: 12px; font-weight: 700; color: var(--ink-2); transition: .25s; }
.legal-nav a:hover { background: var(--white); }
.legal-nav a.active { background: var(--sage-700); color: #fff; }
.legal-doc { background: var(--white); border-radius: var(--r-xl); padding: clamp(26px, 4vw, 56px); border: 1px solid var(--line-2); }
.legal-doc h2 { font-size: clamp(28px, 3vw, 40px); margin-bottom: 18px; }
.legal-doc h3 { font-family: var(--f-body); font-size: 17px; font-weight: 800; margin: 26px 0 8px; letter-spacing: 0; }
.legal-doc p, .legal-doc li { color: var(--ink-2); }
.legal-doc section[hidden] { display: none; }
.note-box { padding: 14px 18px; border-radius: 14px; background: var(--butter-100); color: #6E5420; font-size: 14px; margin-bottom: 22px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.contact-grid.has-3 { grid-template-columns: repeat(3, 1fr); }
.contact-card {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 10px;
  padding: clamp(28px, 3.4vw, 44px); border-radius: var(--r-xl); background: var(--white); border: 1px solid var(--line-2);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease); isolation: isolate;
}
.contact-card:hover { transform: translateY(-6px); box-shadow: var(--sh-3); }
.contact-card .cc-ico { width: 72px; height: 72px; border-radius: 22px; display: grid; place-items: center; background: var(--sage-50); color: var(--sage-700); margin-bottom: 12px; transition: transform .6s var(--ease-spring); }
.contact-card:hover .cc-ico { transform: rotate(-8deg) scale(1.08); }
.contact-card .cc-ico svg { width: 34px; height: 34px; }
.contact-card.wa .cc-ico { background: #E4F4E8; color: #2C8A4B; }
.contact-card.mail .cc-ico { background: var(--blush-50); color: #9A5646; }
.contact-card h3 { font-size: clamp(26px, 2.4vw, 32px); }
.contact-card p { color: var(--ink-2); margin: 0; }
.contact-card .cc-val { font-weight: 800; font-size: 19px; margin: 8px 0 16px; }
.contact-card .btn { align-self: flex-start; }
.contact-card .cc-bg { position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; border-radius: 50%; background: var(--ivory-2); z-index: -1; transition: transform .8s var(--ease); }
.contact-card:hover .cc-bg { transform: scale(1.4); }
.btn--wa { --bg: #2C8A4B; --bd: #2C8A4B; }
.btn--wa::before { background: #1F6E3A; }
.form-card { background: var(--white); border-radius: var(--r-xl); padding: clamp(26px, 4vw, 48px); border: 1px solid var(--line-2); }
.form-msg { display: none; padding: 14px 18px; border-radius: 14px; font-weight: 600; margin-top: 14px; }
.form-msg.ok { display: block; background: var(--sage-50); color: var(--sage-800); }
.form-msg.ko { display: block; background: var(--blush-50); color: #8A4A3D; }
.hp { position: absolute; left: -9999px; }
.support-band { display: grid; grid-template-columns: auto 1fr; gap: 30px; align-items: center; padding: clamp(28px, 4vw, 50px); border-radius: var(--r-xl); background: var(--blush-50); position: relative; overflow: hidden; }
.support-band .yarn-ball { position: relative; width: 110px; height: 110px; }
.support-band h2 { font-size: clamp(26px, 3vw, 38px); margin-bottom: 10px; }
.support-band p { margin: 0; color: var(--ink-2); max-width: 640px; }

/* ---------- Chi siamo ---------- */
.editorial { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 100px); align-items: center; }
.editorial--rev .ed-media { order: 2; }
.ed-media { position: relative; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 4/4.6; }
.ed-media img { width: 100%; height: 120%; object-fit: cover; position: absolute; top: -10%; }
.ed-media.mask-reveal { clip-path: inset(100% 0 0 0 round var(--r-xl)); transition: clip-path 1.4s var(--ease); }
.ed-media.mask-reveal.in { clip-path: inset(0 0 0 0 round var(--r-xl)); }
.ed-copy p { color: var(--ink-2); font-size: 17px; }
.ed-copy h2 { margin-bottom: 24px; }
.big-quote { font-family: var(--f-display); font-size: clamp(28px, 3.6vw, 50px); line-height: 1.18; text-align: center; max-width: 980px; margin: 0 auto; font-weight: 400; }
.big-quote .w { opacity: .15; transition: opacity .4s; }
.big-quote .w.lit { opacity: 1; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
.trust-item { text-align: center; padding: 30px 20px; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line-2); transition: .4s var(--ease); }
.trust-item:hover { transform: translateY(-5px); box-shadow: var(--sh-2); }
.trust-item .b-ico { width: 60px; height: 60px; border-radius: 50%; margin: 0 auto 14px; display: grid; place-items: center; background: var(--sage-50); color: var(--sage-700); }
.trust-item:nth-child(even) .b-ico { background: var(--blush-50); color: #9A5646; }
.trust-item h3 { font-family: var(--f-body); font-size: 16px; font-weight: 800; letter-spacing: 0; }

/* ---------- Tutorial ---------- */
.tut-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.tut-slot { border-radius: var(--r-lg); border: 1.5px dashed var(--line); padding: 26px; min-height: 180px; display: flex; flex-direction: column; justify-content: space-between; background: rgba(255, 255, 255, .5); }
.tut-slot .bar { height: 10px; border-radius: 6px; background: linear-gradient(90deg, var(--line-2), var(--ivory-3), var(--line-2)); background-size: 200% 100%; animation: shimmer 2s linear infinite; margin-bottom: 10px; }
.tut-slot .bar.s { width: 60%; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Cookie / popup / demo ---------- */
.cookie { position: fixed; left: 16px; bottom: 16px; z-index: 260; width: min(420px, calc(100% - 32px)); padding: 22px; border-radius: var(--r-lg); background: var(--white); box-shadow: var(--sh-3); border: 1px solid var(--line-2); transform: translateY(140%); transition: transform .6s var(--ease); }
.cookie.show { transform: none; }
.cookie h3 { font-family: var(--f-body); font-size: 16px; font-weight: 800; margin-bottom: 6px; letter-spacing: 0; }
.cookie p { font-size: 13.5px; color: var(--ink-2); margin-bottom: 14px; }
.cookie p a { text-decoration: underline; }
.cookie .row { display: flex; gap: 8px; flex-wrap: wrap; }
.cookie .btn { min-height: 42px; font-size: 13.5px; padding: 0 16px; flex: 1; }
.cookie .ck-prefs { display: none; margin-bottom: 14px; }
.cookie.prefs .ck-prefs { display: block; }

.modal { position: fixed; inset: 0; z-index: 280; display: grid; place-items: center; padding: 16px; background: rgba(43, 39, 36, .35); backdrop-filter: blur(4px); opacity: 0; visibility: hidden; transition: .4s var(--ease); }
.modal.open { opacity: 1; visibility: visible; }
.modal-box { position: relative; width: min(760px, 100%); display: grid; grid-template-columns: 1fr 1fr; background: var(--white); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-3); transform: translateY(20px) scale(.97); transition: transform .5s var(--ease); }
.modal.open .modal-box { transform: none; }
.modal-box .mb-img { min-height: 340px; position: relative; }
.modal-box .mb-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.modal-box .mb-body { padding: 36px 30px; display: flex; flex-direction: column; justify-content: center; }
.modal-box h2 { font-size: 34px; margin-bottom: 10px; }
.modal-box .mb-close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 42px; height: 42px; border-radius: 50%; background: var(--white); display: grid; place-items: center; box-shadow: var(--sh-1); }
.ev-meta { display: grid; gap: 8px; margin: 14px 0 22px; font-weight: 600; font-size: 14.5px; }
.ev-meta span { display: flex; align-items: center; gap: 10px; }

.demo-fab { position: fixed; right: 16px; bottom: 16px; z-index: 85; height: 44px; padding: 0 16px 0 12px; border-radius: var(--r-pill); background: var(--ink); color: #fff; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; box-shadow: var(--sh-2); transition: transform .3s var(--ease); }
.demo-fab:hover { transform: translateY(-2px); }
.demo-panel { position: fixed; right: 16px; bottom: 70px; z-index: 86; width: min(340px, calc(100% - 32px)); padding: 20px; border-radius: var(--r-lg); background: var(--white); box-shadow: var(--sh-3); border: 1px solid var(--line-2); opacity: 0; visibility: hidden; transform: translateY(10px); transition: .35s var(--ease); }
.demo-panel.open { opacity: 1; visibility: visible; transform: none; }
.demo-panel h3 { font-family: var(--f-body); font-size: 15px; font-weight: 800; letter-spacing: 0; margin-bottom: 4px; }
.demo-panel > p { font-size: 12.5px; color: var(--ink-3); margin-bottom: 12px; }
.demo-panel .toggle { padding: 9px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; font-weight: 600; }
.demo-panel .toggle small { display: block; color: var(--ink-3); font-weight: 500; font-size: 12px; }
.demo-panel .btn { margin-top: 12px; }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.reveal-l { opacity: 0; transform: translateX(-40px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal-l.in { opacity: 1; transform: none; }
.reveal-scale { opacity: 0; transform: scale(.94); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.reveal-scale.in { opacity: 1; transform: none; }
.no-js .reveal, .no-js .reveal-l, .no-js .reveal-scale { opacity: 1; transform: none; }

/* image fallback */
img.img-fallback { object-fit: cover; }

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
  .carousel-track { grid-auto-columns: calc((100% - 2 * 24px) / 3); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .benefits { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1100px) {
  .p-grid { grid-template-columns: repeat(2, 1fr); }
  .catalog { grid-template-columns: 240px 1fr; gap: 26px; }
  .pub-tabs { grid-template-columns: repeat(2, 1fr); }
  .hdr-main { grid-template-columns: auto 1fr auto; }
  .nav-link { font-size: 13.5px; padding: 0 7px; }
}
@media (max-width: 960px) {
  :root { --hdr-h: 64px; }
  .util-bar { display: none; }
  .hdr-nav { display: none; }
  .hdr-main { grid-template-columns: auto 1fr auto; height: 64px !important; gap: 8px; }
  .hdr-search { display: none; }
  .menu-toggle, .mobile-search-btn { display: inline-grid; }
  .logo { justify-self: center; }
  .logo img { height: 40px !important; }
  .logo .logo-shop { display: none; }
  .hdr-left { display: flex; gap: 2px; }
  .cart-btn .cart-total { display: none; }
  .cart-btn { width: 46px; padding: 0; justify-content: center; }
  .cart-count { left: 26px; }
  .icon-btn.acc-btn { display: none; }

  .hero-grid { grid-template-columns: 1fr; min-height: 0; gap: 26px; }
  .hero-art { height: 380px; max-width: 520px; width: 100%; margin: 0 auto; }
  .hero-chip.chip-b { right: 0; }
  .hero-scroll { display: none; }
  .hero > .living-thread { opacity: .35; }
  .cat-grid { grid-template-columns: 1fr; }
  .cat-card { flex-direction: row; align-items: stretch; }
  .cat-card .cc-media { width: 42%; aspect-ratio: auto; margin: 8px 0 8px 8px; min-height: 180px; }
  .cat-card .cc-body { padding: 18px 18px 20px; }
  .cat-card .cc-swatch { display: none; }
  .carousel-track { grid-auto-columns: calc((100% - 16px) / 2.15); gap: 16px; }
  .kit-grid, .pubs-grid, .about-grid, .editorial { grid-template-columns: 1fr; }
  .editorial--rev .ed-media { order: 0; }
  .kit-collage { height: 440px; }
  .covers-fan { height: 340px; }
  .about-media { height: 400px; }
  .scroll-thread { display: none; }

  .c-hero-inner { grid-template-columns: 1fr 120px; min-height: 0; padding-top: 10px; padding-bottom: 20px; gap: 16px; }
  .c-hero-art { height: 130px; }
  .c-hero-art .ch-1 { right: 0; width: 100%; }
  .c-hero-art .ch-2, .c-hero-art .yarn-ball { display: none; }
  .c-hero h1 { font-size: clamp(28px, 7vw, 40px); }
  .c-hero p { font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .c-hero--tall .c-hero-inner { grid-template-columns: 1fr; min-height: 0; }
  .c-hero--tall .c-hero-art { height: 320px; }
  .c-hero--tall .c-hero-art .ch-1 { right: 26%; width: 56%; }
  .c-hero--tall .c-hero-art .ch-2 { display: block; }

  .catalog { grid-template-columns: 1fr; }
  .filters { position: fixed; top: 0; bottom: 0; left: 0; z-index: 100; width: min(400px, 100%); max-height: none; background: var(--ivory); padding: 0; transform: translateX(-105%); transition: transform .5s var(--ease); display: flex; flex-direction: column; box-shadow: var(--sh-3); }
  .filters.open { transform: none; }
  .filters .filters-head { padding: 18px 20px; border-bottom: 1px solid var(--line); margin: 0; }
  .filters .filters-scroll { flex: 1; overflow: auto; padding: 0 20px; }
  .filters .filters-foot { display: flex !important; }
  .cat-toolbar { grid-template-columns: 1fr; }
  .local-search { max-width: none; }
  .toolbar-right { justify-content: space-between; flex-wrap: wrap; }
  .filter-btn { display: inline-flex; }
  .result-count { order: 3; width: 100%; }
  .toolbar-right { flex-wrap: wrap; gap: 10px; }
  .toolbar-right > .filter-btn, .toolbar-right > .select { flex: 1 1 0; min-width: 0; }
  .toolbar-right .select select { width: 100%; min-height: 42px; height: 42px; }
  .p-grid { gap: 14px; }

  .pdp { grid-template-columns: 1fr; padding-top: 6px; }
  .gallery { position: static; grid-template-columns: 1fr; margin: 0 calc(-1 * var(--gutter)); }
  .g-main { border-radius: 0; aspect-ratio: 1/1.05; cursor: default; }
  .g-thumbs { display: none; }
  .g-dots { display: flex; }
  .g-arrows { display: none; }
  .sticky-buy { display: flex; }
  .complete-row { grid-template-columns: 1fr; }
  .cart-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-art { min-height: 220px; }
  .legal-wrap { grid-template-columns: 1fr; }
  .legal-nav { position: static; grid-auto-flow: column; overflow-x: auto; }
  .legal-nav a { white-space: nowrap; }
  .contact-grid, .contact-grid.has-3 { grid-template-columns: 1fr; }
  .support-band { grid-template-columns: 1fr; text-align: center; }
  .support-band .yarn-ball { margin: 0 auto; }
  .modal-box { grid-template-columns: 1fr; }
  .modal-box .mb-img { min-height: 180px; }
  .tut-slots { grid-template-columns: 1fr; }
  .demo-fab span { display: none; }
  .demo-fab { padding: 0; width: 44px; justify-content: center; bottom: 16px; }
  body.has-sticky .demo-fab { bottom: 84px; }
  body.has-sticky .toast { bottom: 84px; }
}
@media (max-width: 640px) {
  .section { padding: 60px 0; }
  .hero { padding-top: 22px; }
  .hero h1 { font-size: clamp(42px, 12vw, 58px); }
  .hero .lead { margin: 18px 0 24px; font-size: 16.5px; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .hero-art { height: 320px; }
  .hero-chip { padding: 9px 12px; font-size: 12px; }
  .hero-chip .ch-ico { width: 30px; height: 30px; }
  .chip-a { top: 2%; left: 0; }
  .cat-card .cc-media { width: 38%; min-height: 150px; }
  .cat-card h3 { font-size: 24px; }
  .cat-card p { font-size: 14px; margin-bottom: 6px; }
  .cc-arrow { width: 40px; height: 40px; }
  .carousel-track { grid-auto-columns: 72%; }
  .p-body { padding: 12px 12px 14px; gap: 6px; }
  .p-name { font-size: 16px; }
  .p-price { font-size: 15px; }
  .p-card .btn { min-height: 42px; font-size: 13px; padding: 0 10px; }
  .p-quick { display: none; }
  .sw { width: 18px; height: 18px; }
  .p-cat { font-size: 10px; }
  .benefits { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 30px; padding-top: 70px; }
  .pub-tabs { grid-template-columns: repeat(4, minmax(130px, 1fr)); overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 6px; scroll-padding: 0 var(--gutter); }
  .pub-tab { scroll-snap-align: start; flex-direction: column; align-items: flex-start; padding: 10px; }
  .pub-tab .pt-img { width: 48px; height: 60px; }
  .pub-tab p { display: none; }
  .pub-tab h3 { font-size: 18px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .cart-table { padding: 4px 16px; }
  .cart-table .cart-item { grid-template-columns: 76px 1fr auto; }
  .cart-table .cart-item img { width: 76px; height: 90px; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .kit-facts { grid-template-columns: 1fr; }
  .kit-collage .k-badge { width: 96px; height: 96px; font-size: 14px; }
  .inspo::before { background: linear-gradient(0deg, rgba(255, 255, 255, .97) 0%, rgba(255, 255, 255, .88) 50%, rgba(255, 255, 255, .1) 100%); }
  .inspo { min-height: 560px; }
  .cookie { left: 8px; right: 8px; bottom: 8px; width: auto; }
}

/* ---------- ElementsKit Header / Footer templates ---------- */
.site-header--ekit .elementor-section, .site-header--ekit .e-con, .site-footer--ekit .elementor-section, .site-footer--ekit .e-con { background-color: transparent; }
.site-header--ekit .util-bar { transition: height .4s var(--ease), opacity .3s; }
.site-header--ekit.is-scrolled .util-bar { height: 0; opacity: 0; }
.site-header--ekit .elementor-widget:not(:last-child) { margin-bottom: 0; }
.site-header--ekit .elementor-column-gap-default > .elementor-column > .elementor-element-populated { padding: 0; }
.site-footer--ekit { padding-top: 0; }
.site-footer--ekit .footer-bottom { margin-top: 0; }
.util-track--static { animation: none; }
.cart-btn--compact { width: 46px; padding: 0; justify-content: center; }
.hdr-main--nosearch { grid-template-columns: 1fr auto; }
.hdr-nav--left > .container > ul { justify-content: flex-start; }
.hdr-nav--right > .container > ul { justify-content: flex-end; }
.m-hdr-part { display: flex; align-items: center; min-height: 64px; }
.m-hdr-part--center { justify-content: center; }
.m-hdr-part--right { justify-content: flex-end; }
.m-hdr-part .hdr-search { width: 100%; }
/* footer parts also styled inside the Elementor editor (template preview without .site-footer) */
.m-fpart h3 { font-family: var(--f-body); font-size: 12px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--sage-700); margin-bottom: 18px; }
.m-fpart ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.m-fpart ul a { color: var(--ink-2); font-weight: 500; transition: color .2s, padding .3s var(--ease); }
.m-fpart ul a:hover { color: var(--ink); padding-left: 4px; }
.m-fpart.footer-brand p { color: var(--ink-2); max-width: 300px; }
.footer-bottom.m-fpart { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--ink-3); }
.sg-cat mark { background: var(--blush-100); color: inherit; border-radius: 3px; padding: 0 3px; }

/* =========================================================================
   WordPress / Elementor integration
   ========================================================================= */
.m-sec { position: relative; z-index: 1; }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
.kit-grid--rev .kit-collage { order: 2; }
.about-grid--rev .about-media { order: 2; }
.m-rich p { margin: 0 0 1em; }
.m-rich p:last-child { margin-bottom: 28px; }
.editorial .ed-copy .m-rich p:last-child { margin-bottom: 20px; }
.modal-box--noimg { grid-template-columns: 1fr; width: min(520px, 100%); }
.inspo > img { position: absolute; inset: -10% 0; width: 100%; height: 120%; object-fit: cover; z-index: -2; }
.k-main img { max-width: none; }

.site-main { position: relative; display: block; }
.site-footer > .living-thread { top: 0; left: 0; width: 100%; height: 80px; opacity: .7; }
.footer-logo { display: inline-block; }
.footer-logo img { height: 64px; width: auto; mix-blend-mode: multiply; margin-bottom: 18px; }
.logo--drawer img { height: 40px; width: auto; mix-blend-mode: multiply; }
.dropdown--simple { width: 300px; grid-template-columns: 1fr; }
.btn--icon { flex: 0 0 46px !important; padding: 0 !important; }
.p-more { display: block; text-align: center; font-size: 13px; font-weight: 700; color: var(--sage-700); margin-top: 8px; text-decoration: underline; text-underline-offset: 3px; }
.catalog--full { grid-template-columns: 1fr; }
.cat-heading { font-size: clamp(26px, 3vw, 38px); margin-bottom: 22px; }
.filters-close { display: none; }
.filters-foot { display: none; gap: 10px; }
.filters-foot .btn { flex: 1; }
.filters-foot .btn:last-child { flex: 1.4; }
.f-color.disabled { opacity: .35; }
.p-grid > .m-loop-item { list-style: none; }
ul.products { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.cd-loading { display: flex; justify-content: center; gap: 8px; padding: 40px 0; }
.cd-loading span { width: 10px; height: 10px; border-radius: 50%; background: var(--sage-300); animation: cdl 1s var(--ease) infinite alternate; }
.cd-loading span:nth-child(2) { animation-delay: .15s; }
.cd-loading span:nth-child(3) { animation-delay: .3s; }
@keyframes cdl { from { transform: translateY(0); opacity: .4; } to { transform: translateY(-8px); opacity: 1; } }
.cart-item .ci-var { flex-wrap: wrap; }
.p-price .woocommerce-Price-amount { white-space: nowrap; }
.p-price ins { text-decoration: none; color: #A2523F; }
.p-price del { color: var(--ink-3); font-weight: 600; font-size: 14px; }
.p-price .from, .pdp-price .from { font-size: 13px; font-weight: 600; color: var(--ink-3); margin-right: 2px; }
.pdp-price del { font-size: 18px; color: var(--ink-3); font-weight: 600; }
.pdp-price ins { text-decoration: none; color: #A2523F; }
.pdp-short p { margin: 0 0 .6em; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { background: var(--white); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-1); }
.post-card__media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.post-card__body { padding: 20px; }
.post-card__body h2 { font-size: 22px; margin-bottom: 8px; }
.page-body { padding-bottom: clamp(60px, 8vw, 100px); }
.entry-content > * + * { margin-top: 1em; }
.entry-content h2 { font-size: clamp(26px, 3vw, 36px); margin-top: 1.4em; }
.entry-content h3 { font-family: var(--f-body); font-size: 17px; font-weight: 800; margin-top: 1.4em; letter-spacing: 0; }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; color: var(--sage-700); }
/* Elementor: sezioni a tutta larghezza senza spazi */
.elementor-widget-container > .m-sec:first-child { margin-top: 0; }
.elementor-section.m-wrap > .elementor-container, .e-con.m-wrap { max-width: none !important; }
.elementor-element.m-wrap .elementor-widget-wrap, .elementor-element.m-wrap > .elementor-column > .elementor-widget-wrap { padding: 0 !important; }
.elementor-widget[class*="elementor-widget-mirtilla-"] { margin-bottom: 0 !important; }
.elementor-widget[class*="elementor-widget-mirtilla-"] > .elementor-widget-container { margin: 0; padding: 0; }
.m-hidden-note { padding: 18px; margin: 10px; border: 1.5px dashed var(--sage-300); border-radius: 14px; background: var(--sage-50); color: var(--sage-800); font-size: 14px; text-align: center; }
@media (max-width: 960px) {
  .filters-close { display: inline-grid; }
  .filters .filters-foot { display: flex !important; }
  ul.products { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .post-grid { grid-template-columns: 1fr; }
  .kit-grid--rev .kit-collage, .about-grid--rev .about-media { order: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal, .reveal-l, .reveal-scale { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}

/* =========================================================================
   Motion & graphics layer
   - white base, animated graphic backgrounds per section (threads / knit dots / colour glows)
   - entrance animations on every section: words, text, images, cards, buttons (added by JS as [data-ar])
   - ghost words behind section titles, reading progress bar
   Animations use the individual translate/scale/rotate properties and keyframes, so they never clash with
   the components' own transform/transition (hover effects keep working).
   ========================================================================= */
:root { --c-lime: #C9C62C; --c-ocra: #DC961E; --c-arancio: #EE5E1C; --c-cacao: #6B3423; }
.bg-ivory-2, .bg-sage, .bg-blush { background: var(--white); }
.section { overflow-x: clip; }
.section > .container, .m-sec > .container { position: relative; z-index: 1; }

/* reading progress */
.m-progress { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 400; pointer-events: none; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--c-lime), var(--c-ocra), var(--c-arancio), var(--c-cacao)); }

/* graphic backgrounds */
.m-gfx { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.m-gfx * { animation-play-state: paused; }
.m-gfx.gfx-on * { animation-play-state: running; }
.m-gfx svg { position: absolute; width: 120%; height: 100%; left: -10%; top: 0; overflow: visible; animation: gfx-drift 22s ease-in-out infinite alternate; }
.m-gfx path { fill: none; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.6s cubic-bezier(.6, 0, .2, 1); }
.m-gfx.gfx-seen path { stroke-dashoffset: 0; }
.m-gfx path:nth-child(2) { transition-delay: .35s; }
.m-gfx path:nth-child(3) { transition-delay: .7s; }
.m-gfx .gfx-dots { position: absolute; width: 560px; height: 560px; background: radial-gradient(circle, rgba(36, 31, 27, .16) 1.1px, transparent 1.6px) 0 0 / 20px 20px;
  -webkit-mask: radial-gradient(closest-side, #000 20%, transparent); mask: radial-gradient(closest-side, #000 20%, transparent); animation: gfx-float 26s ease-in-out infinite alternate; }
.m-gfx .gfx-dots + .gfx-dots { width: 380px; height: 380px; animation-duration: 32s; animation-direction: alternate-reverse; opacity: .7; }
.m-gfx .gfx-orb { position: absolute; width: 440px; height: 440px; border-radius: 50%; filter: blur(70px); opacity: .2; animation: gfx-float 24s ease-in-out infinite alternate; }
.m-gfx .gfx-orb + .gfx-orb { width: 320px; height: 320px; opacity: .16; animation-duration: 30s; animation-direction: alternate-reverse; }
.m-gfx .gfx-ring { position: absolute; width: 300px; height: 300px; border-radius: 50%; border: 1.5px dashed rgba(36, 31, 27, .12); animation: gfx-spin 60s linear infinite; }
@keyframes gfx-drift { from { transform: translate3d(-3%, 0, 0); } to { transform: translate3d(3%, -12px, 0); } }
@keyframes gfx-float { 0% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(60px, -40px, 0) scale(1.08); } 100% { transform: translate3d(-40px, 30px, 0) scale(.96); } }
@keyframes gfx-spin { to { transform: rotate(360deg); } }

/* ghost words behind section titles */
.ghost-word { position: absolute; left: 0; top: clamp(20px, 4vw, 56px); z-index: 0; pointer-events: none; white-space: nowrap; font-family: var(--f-display); font-style: italic; font-weight: 400; line-height: 1;
  font-size: clamp(90px, 15vw, 240px); letter-spacing: -.03em; color: transparent; -webkit-text-stroke: 1px rgba(36, 31, 27, .045); will-change: transform; user-select: none; }
.ghost-word:not(.is-center) { left: 42%; }
.section-head--center ~ .ghost-word, .ghost-word.is-center { left: 50%; }

/* entrance animations */
[data-ar]:not(.ar-in) { opacity: 0; }
[data-ar="img"]:not(.ar-in) { opacity: 1; clip-path: inset(100% 0 0 0); }
[data-ar="words"]:not(.ar-in) { opacity: 1; }
[data-ar="words"]:not(.ar-in) .arw > span { translate: 0 110%; }
.ar-in[data-ar="up"] { animation: ar-up .95s var(--ease) var(--ard, 0s) both; }
.ar-in[data-ar="blur"] { animation: ar-blur 1.1s var(--ease) var(--ard, 0s) both; }
.ar-in[data-ar="pop"] { animation: ar-pop 1.05s var(--ease) var(--ard, 0s) both; }
.ar-in[data-ar="side"] { animation: ar-side 1.1s var(--ease) var(--ard, 0s) both; }
.ar-in[data-ar="img"] { animation: ar-img 1.5s cubic-bezier(.7, 0, .2, 1) var(--ard, 0s) both; }
.arw { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.arw > span { display: inline-block; }
.ar-in[data-ar="words"] .arw > span { animation: ar-word 1.05s var(--ease) both; animation-delay: calc(var(--ard, 0s) + var(--wi, 0) * 55ms); }
@keyframes ar-up { from { opacity: 0; translate: 0 32px; } to { opacity: 1; translate: 0 0; } }
@keyframes ar-blur { from { opacity: 0; translate: 0 18px; filter: blur(10px); } to { opacity: 1; translate: 0 0; filter: blur(0); } }
@keyframes ar-pop { from { opacity: 0; translate: 0 46px; scale: .94; } to { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes ar-side { from { opacity: 0; translate: -40px 0; } to { opacity: 1; translate: 0 0; } }
@keyframes ar-img { from { clip-path: inset(100% 0 0 0); scale: 1.14; } to { clip-path: inset(0 0 0 0); scale: 1; } }
@keyframes ar-word { from { translate: 0 110%; rotate: 6deg; } to { translate: 0 0; rotate: 0deg; } }

@media (max-width: 900px) {
  .m-gfx .gfx-orb { width: 300px; height: 300px; }
  .m-gfx .gfx-dots { width: 360px; height: 360px; }
  .ghost-word { font-size: clamp(70px, 22vw, 120px); }
}
@media (prefers-reduced-motion: reduce) {
  [data-ar] { opacity: 1 !important; clip-path: none !important; animation: none !important; }
  [data-ar] .arw > span { translate: none !important; animation: none !important; }
  .m-gfx *, .m-gfx svg { animation: none !important; }
  .m-gfx path { stroke-dashoffset: 0; transition: none; }
}

/* ---------- Motion layer 2: dividers, kinetic marquee, 3D tilt, floating cones, yarn cursor ---------- */
.m-gfx path { stroke-width: 2.6; }
.m-gfx .gfx-orb { opacity: .28; }
.m-gfx .gfx-orb + .gfx-orb { opacity: .22; }

/* flowing yarn divider at the top of a section */
.m-divider { position: absolute; left: 0; right: 0; top: -34px; height: 68px; z-index: 2; pointer-events: none; overflow: hidden; }
.m-divider svg { position: absolute; left: 0; top: 0; width: 200%; height: 100%; animation: div-flow 14s linear infinite; animation-play-state: paused; }
.m-divider.gfx-on svg { animation-play-state: running; }
.m-divider path { fill: none; stroke-linecap: round; stroke-width: 3; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.2s cubic-bezier(.6, 0, .2, 1); }
.m-divider path + path { stroke-width: 1.4; opacity: .55; transition-delay: .3s; }
.m-divider.gfx-seen path { stroke-dashoffset: 0; }
@keyframes div-flow { to { transform: translate3d(-50%, 0, 0); } }

/* kinetic marquee: speed + skew follow the scroll velocity (JS sets --mv) */
.marquee-track > span { transform: skewX(calc(var(--mv, 0) * -1deg)); transition: transform .3s var(--ease); }
.marquee-track span:nth-child(even) { color: transparent; -webkit-text-stroke: 1.2px var(--ink); }
.marquee-track span:nth-child(4n+1) svg { color: var(--c-arancio); }
.marquee-track span:nth-child(4n+3) svg { color: var(--c-lime); }

/* 3D tilt + glare (desktop pointer only, JS adds .m-tilt) */
.m-tilt { will-change: transform; transform-style: preserve-3d; }
.m-tilt-parent { perspective: 1100px; }
.m-glare { position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit; opacity: 0; transition: opacity .4s var(--ease);
  background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 55%); mix-blend-mode: soft-light; }
.m-tilt:hover .m-glare { opacity: 1; }


@media (max-width: 900px) { .m-divider { height: 48px; top: -24px; } }
@media (prefers-reduced-motion: reduce) {
  .m-divider svg { animation: none !important; }
  .m-divider path { stroke-dashoffset: 0; transition: none; }
  .marquee-track > span { transform: none !important; }
}
