/* =========================================================
   Fancy Stitches — stylesheet
   Every colour, type and spacing value is a token at :root.
   ========================================================= */
:root {
  /* colour (logo colours used unaltered) */
  --c-green: #007336;
  --c-green-deep: #00552a;
  --c-purple: #5b4699;
  --c-purple-deep: #46357a;
  --c-lavender: #a79bd0;
  --c-muslin: #f7f4ee;
  --c-cotton: #efeae1;
  --c-paper: #fffdf9;
  --c-ink: #1a1520;
  --c-ink-2: #2a2331;
  --c-muted: #5c5566;
  --c-line: #e3ddd2;
  --c-gold: #b8914a;
  --c-gold-soft: #d9bf8c;
  --c-white: #fffdf9;
  --c-wa: #1f9e55;
  --c-error: #a12a2a;
  --c-on-dark: #f3eef7;
  --c-on-dark-muted: #c9c0d4;
  --c-glass: rgb(255 253 249 / .72);
  --c-glass-dark: rgb(26 21 32 / .62);
  --c-glass-line: rgb(255 255 255 / .55);
  --c-shadow: 26 21 32;
  --c-shadow-p: 91 70 153;
  --c-overlay: rgb(26 21 32 / .62);

  /* type */
  --f-display: "Fraunces", Georgia, "Times New Roman", serif;
  --f-body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-d1: clamp(2.75rem, 1.6rem + 4.6vw, 6rem);
  --fs-d2: clamp(2.1rem, 1.4rem + 2.8vw, 4rem);
  --fs-d3: clamp(1.75rem, 1.3rem + 1.6vw, 2.75rem);
  --fs-h3: clamp(1.3rem, 1.15rem + .6vw, 1.75rem);
  --fs-lead: clamp(1.125rem, 1.05rem + .35vw, 1.3rem);
  --fs-body: 1.0625rem;
  --fs-small: .9375rem;
  --fs-label: .78rem;
  --lh-body: 1.7;
  --measure: 66ch;

  /* space (8px base) */
  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-5: 1.5rem;
  --s-6: 2rem; --s-7: 3rem; --s-8: 4rem; --s-9: 6rem; --s-10: 8rem; --s-11: 10rem;
  --section: clamp(5.5rem, 3rem + 7vw, 9rem);
  --gutter: clamp(1.25rem, .5rem + 3vw, 3rem);
  --container: 77.5rem;

  /* shape */
  --r-card: 6px;
  --r-pill: 999px;

  /* depth: tight contact shadow + wide ambient */
  --sh-1: 0 1px 2px rgb(var(--c-shadow) / .08), 0 4px 12px rgb(var(--c-shadow) / .06);
  --sh-2: 0 1px 2px rgb(var(--c-shadow) / .08), 0 10px 24px rgb(var(--c-shadow) / .08), 0 30px 60px rgb(var(--c-shadow-p) / .10);
  --sh-3: 0 2px 4px rgb(var(--c-shadow) / .08), 0 16px 32px rgb(var(--c-shadow) / .10), 0 48px 96px rgb(var(--c-shadow-p) / .16);

  /* motion: "thread pulled taut" */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-micro: cubic-bezier(.33, 1, .68, 1);
  --ease-mask: cubic-bezier(.76, 0, .24, 1);
  --t-micro: 240ms;
  --t-reveal: 960ms;
  --t-mask: 1200ms;

  /* layers */
  --z-base: 0; --z-raise: 10; --z-dropdown: 100; --z-sticky: 200; --z-bar: 250;
  --z-overlay: 300; --z-modal: 400; --z-toast: 500;

  --header-h: 92px;
  --header-h-small: 68px;
  --topbar-h: 40px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--c-muslin); color: var(--c-ink);
  font-family: var(--f-body); font-size: var(--fs-body); line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--c-green); text-underline-offset: .2em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 400; line-height: 1.04; letter-spacing: -.03em; margin: 0 0 var(--s-5); font-variation-settings: "SOFT" 50, "WONK" 0; }
h1 { font-size: var(--fs-d1); }
h2 { font-size: var(--fs-d2); }
h3 { font-size: var(--fs-h3); line-height: 1.15; letter-spacing: -.015em; margin-bottom: var(--s-3); }
p { margin: 0 0 var(--s-4); max-width: var(--measure); }
em.accent, .accent { font-style: italic; color: var(--c-purple); font-variation-settings: "SOFT" 100, "WONK" 1; }
.on-dark .accent { color: var(--c-gold-soft); }
ul { padding-left: 1.1em; }
:focus-visible { outline: 3px solid var(--c-purple); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible { outline-color: var(--c-gold-soft); }
::selection { background: var(--c-purple); color: var(--c-white); }

.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: var(--s-4); top: -100px; z-index: var(--z-toast); background: var(--c-ink); color: var(--c-white); padding: var(--s-3) var(--s-5); border-radius: var(--r-pill); }
.skip-link:focus { top: var(--s-4); }

/* ---------- layout ---------- */
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: calc(var(--section) * .6); }
.section--cotton { background: var(--c-cotton); }
.section--dark { background: var(--c-ink); color: var(--c-on-dark); }
.section--dark p { color: var(--c-on-dark-muted); }
.grid-75 { display: grid; gap: var(--s-7) var(--gutter); }
@media (min-width: 960px) { .grid-75 { grid-template-columns: 5fr 7fr; } .grid-57 { grid-template-columns: 7fr 5fr; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-3);
  font-size: var(--fs-label); font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--c-purple); margin: 0 0 var(--s-5);
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: repeating-linear-gradient(90deg, currentColor 0 7px, transparent 7px 12px); }
.on-dark .eyebrow { color: var(--c-gold-soft); }
.lead { font-size: var(--fs-lead); line-height: 1.6; color: var(--c-muted); }
.on-dark .lead { color: var(--c-on-dark-muted); }
.section-head { max-width: 46rem; margin-bottom: var(--s-8); }
.section-head p { color: var(--c-muted); }

/* ---------- buttons ---------- */
.btn {
  --btn-bg: var(--c-green); --btn-fg: var(--c-white); --btn-bd: var(--c-green);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--s-3);
  min-height: 52px; padding: 0 var(--s-6); border-radius: var(--r-pill);
  background: var(--btn-bg); color: var(--btn-fg); border: 1.5px solid var(--btn-bd);
  font-weight: 600; font-size: 1rem; letter-spacing: .01em; text-decoration: none; white-space: nowrap;
  box-shadow: var(--sh-1);
  transition: background-color var(--t-micro) var(--ease-micro), color var(--t-micro) var(--ease-micro), border-color var(--t-micro) var(--ease-micro), transform var(--t-micro) var(--ease-micro);
  overflow: hidden; isolation: isolate;
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform var(--t-micro) var(--ease-micro); }
.btn:hover { --btn-bg: var(--c-green-deep); --btn-bd: var(--c-green-deep); }
.btn:hover svg.i-arrow { transform: translateX(4px); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--c-ink); --btn-bd: var(--c-ink); box-shadow: none; }
.btn--ghost:hover { --btn-bg: var(--c-ink); --btn-fg: var(--c-white); --btn-bd: var(--c-ink); }
.btn--light { --btn-bg: var(--c-white); --btn-fg: var(--c-purple-deep); --btn-bd: var(--c-white); }
.btn--light:hover { --btn-bg: var(--c-muslin); --btn-fg: var(--c-ink); --btn-bd: var(--c-muslin); }
.btn--ghost-light { --btn-bg: transparent; --btn-fg: var(--c-white); --btn-bd: rgb(255 255 255 / .7); box-shadow: none; }
.btn--ghost-light:hover { --btn-bg: var(--c-white); --btn-fg: var(--c-ink); --btn-bd: var(--c-white); }
.btn--sm { min-height: 44px; padding: 0 var(--s-5); font-size: .9375rem; }
.ripple { position: absolute; border-radius: 50%; background: rgb(255 255 255 / .35); transform: scale(0); animation: ripple 600ms var(--ease-out); pointer-events: none; z-index: -1; }
@keyframes ripple { to { transform: scale(2.6); opacity: 0; } }

.link-thread { color: var(--c-ink); font-weight: 600; text-decoration: none; display: inline-flex; gap: var(--s-2); align-items: center; padding-block: var(--s-2); background: linear-gradient(var(--c-green), var(--c-green)) 0 100% / 0 2px no-repeat; transition: background-size var(--t-micro) var(--ease-micro), color var(--t-micro) var(--ease-micro); }
.link-thread:hover { background-size: 100% 2px; color: var(--c-green-deep); }
.link-thread svg { width: 16px; height: 16px; }
.on-dark .link-thread { color: var(--c-on-dark); background-image: linear-gradient(var(--c-gold-soft), var(--c-gold-soft)); }

/* ---------- top bar + header ---------- */
.site-top { position: sticky; top: 0; z-index: var(--z-sticky); }
.topbar { background: var(--c-ink); color: var(--c-on-dark-muted); font-size: .84rem; height: var(--topbar-h); overflow: hidden; transition: height var(--t-micro) var(--ease-micro); }
.topbar .container { display: flex; align-items: center; justify-content: space-between; height: var(--topbar-h); gap: var(--s-5); }
.topbar ul { display: flex; gap: var(--s-6); list-style: none; margin: 0; padding: 0; align-items: center; }
.topbar a { color: var(--c-on-dark); text-decoration: none; display: inline-flex; align-items: center; gap: var(--s-2); min-height: 40px; }
.topbar a:hover { color: var(--c-gold-soft); }
.topbar svg { width: 15px; height: 15px; color: var(--c-gold-soft); }
.topbar .social a { width: 32px; height: 32px; min-height: 32px; justify-content: center; border-radius: 50%; border: 1px solid rgb(255 255 255 / .2); }
.topbar .t-hide { display: none; }
@media (min-width: 900px) { .topbar .t-hide { display: inline-flex; } }
@media (max-width: 560px) { .topbar .t-email { display: none; } }

.header { position: relative; background: var(--c-muslin); border-bottom: 1px solid transparent; transition: background-color var(--t-micro) var(--ease-micro), border-color var(--t-micro) var(--ease-micro), box-shadow var(--t-micro) var(--ease-micro); }
.header .container { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); height: var(--header-h); transition: height var(--t-micro) var(--ease-micro); }
.logo { display: block; flex: none; line-height: 0; }
.logo img { width: auto; height: 54px; transform-origin: left center; transition: transform var(--t-micro) var(--ease-micro); }
.is-scrolled .topbar { height: 0; }
.is-scrolled .header { background: var(--c-glass); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%); border-bottom-color: var(--c-glass-line); box-shadow: var(--sh-2); }
.is-scrolled .header .container { height: var(--header-h-small); }
.is-scrolled .logo img { transform: scale(.82); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .is-scrolled .header { background: var(--c-muslin); } }

.nav { display: none; }
.nav > ul { display: flex; align-items: center; gap: var(--s-1); list-style: none; margin: 0; padding: 0; }
.nav a, .nav button.nav-toggle-sub { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; min-height: 44px; border: 0; background: none; color: var(--c-ink); font-weight: 500; font-size: .97rem; text-decoration: none; border-radius: var(--r-pill); position: relative; white-space: nowrap; }
.nav a:hover, .nav button.nav-toggle-sub:hover { color: var(--c-green); }
.nav [aria-current="page"], .nav .is-current > button { color: var(--c-green); }
.nav [aria-current="page"]::after, .nav .is-current > button::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px; background: repeating-linear-gradient(90deg, var(--c-green) 0 6px, transparent 6px 10px); }
.nav-toggle-sub svg { width: 12px; height: 12px; transition: transform var(--t-micro) var(--ease-micro); }
.has-sub { position: relative; }
.submenu { position: absolute; top: calc(100% + 6px); left: 50%; min-width: 250px; padding: var(--s-3); list-style: none; margin: 0; background: var(--c-paper); border: 1px solid var(--c-line); border-radius: var(--r-card); box-shadow: var(--sh-3); opacity: 0; visibility: hidden; transform: translate(-50%, 8px); transition: opacity var(--t-micro) var(--ease-micro), transform var(--t-micro) var(--ease-micro), visibility 0s linear var(--t-micro); z-index: var(--z-dropdown); }
.submenu a { display: flex; width: 100%; border-radius: 4px; }
.submenu a:hover { background: var(--c-muslin); }
.has-sub.open .submenu, .has-sub:focus-within .submenu { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
.has-sub.open .nav-toggle-sub svg { transform: rotate(180deg); }
@media (hover: hover) { .has-sub:hover .submenu { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; } }
.header-cta { display: none; }
@media (min-width: 1120px) { .nav { display: block; } .header-cta { display: inline-flex; } .menu-btn { display: none !important; } }

.menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--c-ink); background: transparent; }
.menu-btn span { position: relative; width: 20px; height: 2px; background: var(--c-ink); }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--c-ink); }
.menu-btn span::before { top: -6px; } .menu-btn span::after { top: 6px; }

.mobile-menu { position: fixed; inset: 0; z-index: var(--z-modal); background: var(--c-glass-dark); -webkit-backdrop-filter: blur(22px) saturate(140%); backdrop-filter: blur(22px) saturate(140%); color: var(--c-on-dark); display: flex; flex-direction: column; padding: var(--s-5) var(--gutter) var(--s-7); overflow-y: auto; opacity: 0; visibility: hidden; transition: opacity var(--t-micro) var(--ease-micro), visibility 0s linear var(--t-micro); }
.mobile-menu.open { opacity: 1; visibility: visible; transition-delay: 0s; }
.mobile-menu__top { display: flex; justify-content: flex-end; }
.mobile-menu__close { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid rgb(255 255 255 / .5); background: transparent; color: var(--c-on-dark); font-size: 1.6rem; line-height: 1; }
.mobile-menu nav ul { list-style: none; margin: var(--s-5) 0; padding: 0; }
.mobile-menu nav > ul > li { border-bottom: 1px solid rgb(255 255 255 / .12); opacity: 0; transform: translateY(16px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }
.mobile-menu.open nav > ul > li { opacity: 1; transform: none; }
.mobile-menu nav > ul > li:nth-child(2) { transition-delay: 60ms; } .mobile-menu nav > ul > li:nth-child(3) { transition-delay: 120ms; } .mobile-menu nav > ul > li:nth-child(4) { transition-delay: 180ms; } .mobile-menu nav > ul > li:nth-child(5) { transition-delay: 240ms; } .mobile-menu nav > ul > li:nth-child(6) { transition-delay: 300ms; } .mobile-menu nav > ul > li:nth-child(7) { transition-delay: 360ms; }
.mobile-menu nav a, .mobile-menu summary { display: flex; justify-content: space-between; align-items: center; min-height: 56px; color: var(--c-on-dark); text-decoration: none; font-family: var(--f-display); font-size: 1.6rem; letter-spacing: -.02em; cursor: pointer; list-style: none; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu summary::after { content: "+"; font-family: var(--f-body); font-size: 1.4rem; color: var(--c-gold-soft); }
.mobile-menu details[open] summary::after { content: "–"; }
.mobile-menu details ul { margin: 0 0 var(--s-4); }
.mobile-menu details a { font-family: var(--f-body); font-size: 1.05rem; min-height: 44px; color: var(--c-on-dark-muted); }
.mobile-menu__contact { margin-top: auto; display: grid; gap: var(--s-3); padding-top: var(--s-6); }
.mobile-menu__contact a { color: var(--c-on-dark); }

/* ---------- hero (home) ---------- */
.hero { position: relative; padding-block: clamp(2.5rem, 2rem + 4vw, 5.5rem) clamp(4rem, 3rem + 5vw, 8rem); overflow: clip; }
.hero::before { content: ""; position: absolute; inset: 0; background:
  radial-gradient(60% 70% at 85% 20%, rgb(var(--c-shadow-p) / .10), transparent 70%),
  repeating-linear-gradient(0deg, rgb(var(--c-shadow) / .018) 0 1px, transparent 1px 4px),
  repeating-linear-gradient(90deg, rgb(var(--c-shadow) / .018) 0 1px, transparent 1px 4px); pointer-events: none; }
.hero .container { position: relative; display: grid; gap: var(--s-8); align-items: end; }
@media (min-width: 960px) { .hero .container { grid-template-columns: 7fr 5fr; min-height: calc(88svh - var(--header-h) - var(--topbar-h)); } }
.hero h1 { margin-bottom: var(--s-5); }
.hero h1 .line { display: block; }
.hero .lead { max-width: 34rem; margin-bottom: var(--s-6); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-bottom: var(--s-6); }
.hero-trust { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); padding: 0; margin: 0; list-style: none; font-size: var(--fs-small); color: var(--c-muted); }
.hero-trust li { display: inline-flex; align-items: center; gap: var(--s-2); }
.hero-trust svg { width: 16px; height: 16px; color: var(--c-gold); }

.hero-stack { position: relative; aspect-ratio: 4 / 4.6; width: 100%; max-width: 540px; justify-self: center; }
.hero-stack .ph { position: absolute; overflow: hidden; border-radius: var(--r-card); box-shadow: var(--sh-3); background: var(--c-cotton); }
.hero-stack .ph img { width: 100%; height: 100%; object-fit: cover; }
.hero-stack .ph--a { inset: 14% 4% 10% 18%; z-index: 2; }
.hero-stack .ph--b { width: 40%; aspect-ratio: 1; left: 0; bottom: 0; z-index: 3; border: 6px solid var(--c-paper); }
.hero-stack .ph--c { width: 38%; aspect-ratio: 4 / 3; right: 0; top: 0; z-index: 1; }
.hero-stack .spool { position: absolute; width: 46%; right: -6%; bottom: 6%; z-index: 4; filter: drop-shadow(0 18px 24px rgb(var(--c-shadow-p) / .35)); }
.glass-chip { position: absolute; z-index: 5; display: inline-flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); border-radius: var(--r-pill); background: var(--c-glass); -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%); border: 1px solid var(--c-glass-line); box-shadow: var(--sh-2); color: var(--c-ink); text-decoration: none; font-size: .9rem; line-height: 1.25; }
.glass-chip strong { font-family: var(--f-display); font-size: 1.35rem; font-weight: 500; }
.glass-chip--rating { left: 6%; top: 4%; }
.glass-chip--local { right: 2%; bottom: -4%; }
.stars { display: inline-flex; gap: 2px; color: var(--c-gold); }
.stars svg { width: 15px; height: 15px; }

/* image mask reveal (LCP-safe: the image is visible, only clipped) */
.mask-in { clip-path: inset(0 0 0 0); }
.js.full .mask-in:not(.is-in), .js.reduced .mask-in:not(.is-in) { clip-path: inset(100% 0 0 0); }
.js .mask-in { transition: clip-path var(--t-mask) var(--ease-mask); }

/* ---------- signature: running stitch ---------- */
.stitch-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: var(--z-raise); overflow: visible; }
.stitch-svg .thread { fill: none; stroke: var(--c-purple); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 11 9; opacity: .75; }
.stitch-svg .reveal-path { fill: none; stroke: var(--c-white); stroke-width: 10; }
.stitch-wrap { position: relative; }
.seam { display: block; width: 100%; height: 24px; color: var(--c-purple); opacity: .55; }
.seam path { stroke: currentColor; stroke-width: 2; stroke-dasharray: 10 8; fill: none; stroke-linecap: round; }

/* ---------- proof strip ---------- */
.proof { border-block: 1px solid var(--c-line); background: var(--c-paper); }
.proof ul { list-style: none; margin: 0; padding: var(--s-6) 0; display: grid; gap: var(--s-5); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 860px) { .proof ul { grid-template-columns: repeat(4, 1fr); } }
.proof li { display: grid; gap: 2px; padding-left: var(--s-4); border-left: 2px solid var(--c-gold); }
.proof .num { font-family: var(--f-display); font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.6rem); line-height: 1.05; letter-spacing: -.02em; }
.proof .lbl { font-size: var(--fs-small); color: var(--c-muted); }

/* ---------- services: sticky head + patch cards ---------- */
.services-layout { display: grid; gap: var(--s-7); }
@media (min-width: 960px) { .services-layout { grid-template-columns: 5fr 7fr; gap: var(--s-8); } .services-layout .sticky-col { position: sticky; top: calc(var(--header-h-small) + var(--s-7)); align-self: start; } }
.patches { display: grid; gap: var(--s-5); grid-template-columns: 1fr; perspective: 1200px; }
@media (min-width: 600px) { .patches { grid-template-columns: 1fr 1fr; } .patches > :nth-child(even) { transform: translateY(var(--s-7)); } }
.patch { position: relative; display: flex; flex-direction: column; background: var(--c-paper); border-radius: var(--r-card); box-shadow: var(--sh-2); color: inherit; text-decoration: none; transform-style: preserve-3d; transition: box-shadow var(--t-micro) var(--ease-micro); }
.patch::after { content: ""; position: absolute; inset: 8px; border: 1.5px dashed rgb(var(--c-shadow-p) / .35); border-radius: 3px; pointer-events: none; transition: border-color var(--t-micro) var(--ease-micro); }
.patch:hover::after { border-color: var(--c-purple); }
.patch:hover { box-shadow: var(--sh-3); }
.patch__img { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r-card) var(--r-card) 0 0; background: var(--c-cotton); }
.patch__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.patch:hover .patch__img img { transform: scale(1.05); }
.patch__body { padding: var(--s-5) var(--s-5) var(--s-6); transform: translateZ(24px); }
.patch__body p { color: var(--c-muted); font-size: var(--fs-small); margin-bottom: var(--s-3); }
.patch__more { display: inline-flex; align-items: center; gap: var(--s-2); color: var(--c-green); font-weight: 600; font-size: var(--fs-small); }
.patch__more svg { width: 16px; height: 16px; transition: transform var(--t-micro) var(--ease-micro); }
.patch:hover .patch__more svg { transform: translateX(4px); }
.patch .glare { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgb(255 255 255 / .35), transparent 55%); opacity: 0; transition: opacity var(--t-micro) var(--ease-micro); }
.full .patch:hover .glare { opacity: 1; }

/* ---------- work strip (horizontal) ---------- */
.work-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 30%); gap: var(--s-5); overflow-x: auto; padding: var(--s-2) var(--gutter) var(--s-6); margin-inline: calc(-1 * var(--gutter)); scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--c-purple) transparent; }
@media (max-width: 700px) { .work-strip { grid-auto-columns: 78%; } }
.work-strip figure { margin: 0; scroll-snap-align: start; }
.work-strip .frame { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r-card); box-shadow: var(--sh-2); background: var(--c-ink-2); }
.work-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.work-strip figure:hover img { transform: scale(1.06); }
.work-strip figcaption { margin-top: var(--s-3); font-size: var(--fs-small); color: var(--c-on-dark-muted); }
.strip-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s-5); margin-bottom: var(--s-7); }
.strip-nav { display: flex; gap: var(--s-3); }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid currentColor; background: transparent; color: inherit; transition: background-color var(--t-micro) var(--ease-micro), color var(--t-micro) var(--ease-micro); }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:hover { background: var(--c-on-dark); color: var(--c-ink); }
.section:not(.section--dark) .icon-btn:hover { background: var(--c-ink); color: var(--c-white); }

/* ---------- case study: hoop frames ---------- */
.case { display: grid; gap: var(--s-8); align-items: center; }
@media (min-width: 960px) { .case { grid-template-columns: 6fr 6fr; } }
.hoops { position: relative; aspect-ratio: 1; max-width: 560px; width: 100%; justify-self: center; }
.hoop { position: absolute; border-radius: 50%; overflow: hidden; background: var(--c-paper); box-shadow: 0 0 0 6px var(--c-paper), 0 0 0 8px var(--c-gold), 0 0 0 13px var(--c-paper), 0 0 0 14px rgb(var(--c-shadow) / .12), var(--sh-3); transition: transform 1.2s var(--ease-out); }
.hoop img { width: 100%; height: 100%; object-fit: cover; }
.hoop:hover { transform: rotate(-4deg) scale(1.02); }
.hoop--1 { width: 58%; aspect-ratio: 1; left: 0; top: 4%; z-index: 2; }
.hoop--2 { width: 44%; aspect-ratio: 1; right: 2%; top: 0; z-index: 1; }
.hoop--3 { width: 46%; aspect-ratio: 1; right: 8%; bottom: 0; z-index: 3; }
.hoop-label { position: absolute; z-index: 4; background: var(--c-ink); color: var(--c-on-dark); font-size: var(--fs-label); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; padding: 6px 12px; border-radius: var(--r-pill); }
.steps { list-style: none; padding: 0; margin: var(--s-6) 0; display: grid; gap: var(--s-4); counter-reset: none; }
.steps li { display: grid; grid-template-columns: 36px 1fr; gap: var(--s-4); align-items: start; }
.steps .dot { width: 36px; height: 36px; border-radius: 50%; border: 1.5px dashed var(--c-purple); display: grid; place-items: center; color: var(--c-purple); }
.steps .dot svg { width: 16px; height: 16px; }
.steps strong { display: block; }
.steps span { color: var(--c-muted); font-size: var(--fs-small); }

.video-card { position: relative; border-radius: var(--r-card); overflow: hidden; box-shadow: var(--sh-3); background: var(--c-ink); aspect-ratio: 9 / 16; max-height: 640px; width: 100%; }
.video-card video { width: 100%; height: 100%; object-fit: cover; }
.video-card .play { position: absolute; inset: 0; display: grid; place-items: center; border: 0; background: linear-gradient(to top, rgb(var(--c-shadow) / .6), transparent 50%); color: var(--c-white); }
.video-card .play span { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--c-glass); color: var(--c-purple); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: var(--sh-2); transition: transform var(--t-micro) var(--ease-micro); }
.video-card .play:hover span { transform: scale(1.06); }
.video-card .play svg { width: 28px; height: 28px; margin-left: 4px; }
.video-card .cap { position: absolute; left: var(--s-5); bottom: var(--s-5); right: var(--s-5); color: var(--c-white); font-size: var(--fs-small); pointer-events: none; }
.video-card.is-playing .play, .video-card.is-playing .cap { display: none; }

/* ---------- audience + stores ---------- */
.audience { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); list-style: none; padding: 0; margin: 0 0 var(--s-8); }
@media (min-width: 1000px) { .audience { grid-template-columns: repeat(3, 1fr); } }
.audience li { background: var(--c-paper); border-radius: var(--r-card); padding: var(--s-5); box-shadow: var(--sh-1); border-top: 3px solid var(--c-green); }
.audience li:nth-child(even) { border-top-color: var(--c-purple); }
.audience h3 { font-size: 1.3rem; margin-bottom: var(--s-2); }
.audience p { font-size: var(--fs-small); color: var(--c-muted); margin: 0; }
.stores { display: grid; gap: var(--s-7); }
@media (min-width: 960px) { .stores { grid-template-columns: 5fr 7fr; } }
.store-cloud { display: flex; flex-wrap: wrap; gap: var(--s-2); list-style: none; padding: 0; margin: 0; }
.store-cloud li { font-size: .9rem; padding: 6px 14px; border-radius: var(--r-pill); background: var(--c-paper); border: 1px dashed rgb(var(--c-shadow-p) / .4); }

/* ---------- reviews ---------- */
.reviews-head { display: grid; gap: var(--s-6); align-items: end; margin-bottom: var(--s-7); }
@media (min-width: 960px) { .reviews-head { grid-template-columns: 7fr 5fr; } }
.score { display: flex; align-items: center; gap: var(--s-5); flex-wrap: wrap; }
.score .big { font-family: var(--f-display); font-size: clamp(3.5rem, 2.5rem + 3vw, 5.5rem); line-height: .9; letter-spacing: -.04em; color: var(--c-gold-soft); }
.score .stars svg { width: 22px; height: 22px; }
.score small { display: block; color: var(--c-on-dark-muted); font-size: var(--fs-small); margin-top: var(--s-2); }
.score-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.tabs { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-6); position: relative; }
.tab { min-height: 44px; padding: 0 var(--s-5); border-radius: var(--r-pill); border: 1.5px solid rgb(255 255 255 / .25); background: transparent; color: var(--c-on-dark); font-weight: 500; transition: background-color var(--t-micro) var(--ease-micro), color var(--t-micro) var(--ease-micro), border-color var(--t-micro) var(--ease-micro); }
.tab:hover { border-color: var(--c-gold-soft); }
.tab[aria-selected="true"] { background: var(--c-on-dark); color: var(--c-ink); border-color: var(--c-on-dark); }
.tab .count { opacity: .65; font-size: .85em; margin-left: 4px; }
.review-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 32%); gap: var(--s-5); overflow-x: auto; scroll-snap-type: x mandatory; padding: var(--s-2) var(--gutter) var(--s-6); margin-inline: calc(-1 * var(--gutter)); scrollbar-width: thin; scrollbar-color: var(--c-gold) transparent; }
@media (max-width: 700px) { .review-track { grid-auto-columns: 86%; } }
.review { scroll-snap-align: start; display: flex; flex-direction: column; gap: var(--s-4); padding: var(--s-6); border-radius: var(--r-card); background: var(--c-ink-2); border: 1px solid rgb(255 255 255 / .08); box-shadow: 0 1px 2px rgb(0 0 0 / .3), 0 24px 48px rgb(0 0 0 / .25); color: var(--c-on-dark); }
.review[hidden] { display: none; }
.review__top { display: flex; align-items: center; gap: var(--s-3); }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: var(--c-white); background: var(--c-purple); flex: none; }
.review:nth-child(3n+2) .avatar { background: var(--c-green); }
.review:nth-child(3n) .avatar { background: var(--c-purple-deep); }
.review__name { font-weight: 600; line-height: 1.3; }
.review__date { font-size: .84rem; color: var(--c-on-dark-muted); }
.review__g { margin-left: auto; width: 22px; height: 22px; }
.review__text { margin: 0; font-size: .98rem; line-height: 1.65; color: var(--c-on-dark); display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.review.expanded .review__text { -webkit-line-clamp: unset; }
.review__more { align-self: flex-start; background: none; border: 0; padding: var(--s-2) 0; min-height: 44px; color: var(--c-gold-soft); font-weight: 600; font-size: .9rem; }
.review__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); }
.chip { font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: var(--r-pill); border: 1px solid rgb(255 255 255 / .25); color: var(--c-on-dark-muted); }
.reviews-light .review { background: var(--c-paper); color: var(--c-ink); border-color: var(--c-line); box-shadow: var(--sh-2); }
.reviews-light .review__text { color: var(--c-ink); }
.reviews-light .review__date { color: var(--c-muted); }
.reviews-light .review__more { color: var(--c-green); }
.reviews-light .chip { color: var(--c-muted); border-color: var(--c-line); }

/* ---------- brands marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--c-line); padding-block: var(--s-5); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; width: max-content; gap: var(--s-7); animation: marquee 48s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span { font-family: var(--f-display); font-size: clamp(1.4rem, 1.1rem + 1vw, 2.1rem); letter-spacing: -.02em; color: var(--c-ink); white-space: nowrap; display: inline-flex; align-items: center; gap: var(--s-7); }
.marquee__track span::after { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 1.5px dashed var(--c-purple); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- catalogs: 3D books ---------- */
.books { display: grid; gap: var(--s-6); grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); perspective: 1400px; }
.book { color: inherit; text-decoration: none; display: grid; gap: var(--s-4); }
.book__cover { position: relative; aspect-ratio: 3 / 4; transform-style: preserve-3d; transform: rotateY(-14deg); transition: transform 900ms var(--ease-out); }
.book__cover img { width: 100%; height: 100%; object-fit: cover; border-radius: 2px 6px 6px 2px; box-shadow: var(--sh-3); background: var(--c-paper); }
.book__cover::before { content: ""; position: absolute; top: 2%; bottom: 2%; left: -10px; width: 12px; background: linear-gradient(90deg, var(--c-purple-deep), var(--c-purple)); transform: rotateY(-70deg); transform-origin: right; border-radius: 2px 0 0 2px; }
.book:hover .book__cover, .book:focus-visible .book__cover { transform: rotateY(0) translateY(-6px); }
.book strong { font-family: var(--f-display); font-weight: 500; font-size: 1.15rem; line-height: 1.2; }
.book small { color: var(--c-muted); display: block; }
.book .cover-text { display: grid; place-items: center; text-align: center; padding: var(--s-5); width: 100%; height: 100%; border-radius: 2px 6px 6px 2px; box-shadow: var(--sh-3); background: var(--c-purple); color: var(--c-white); font-family: var(--f-display); font-size: 1.4rem; line-height: 1.15; }
.book:nth-child(even) .cover-text { background: var(--c-green); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--c-purple); color: var(--c-white); position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 14px; border: 2px dashed rgb(255 255 255 / .3); border-radius: var(--r-card); pointer-events: none; }
.cta-band .container { position: relative; display: grid; gap: var(--s-6); align-items: center; }
@media (min-width: 960px) { .cta-band .container { grid-template-columns: 8fr 4fr; } }
.cta-band h2 { color: var(--c-white); margin-bottom: var(--s-4); }
.cta-band p { color: rgb(255 255 255 / .86); }
.cta-band .accent { color: var(--c-gold-soft); }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.cta-band .spool-bg { position: absolute; right: -40px; top: 50%; width: 360px; opacity: .14; transform: translateY(-50%) rotate(-8deg); pointer-events: none; }

/* ---------- inquiry form + map ---------- */
.inquiry { display: grid; gap: var(--s-7); }
@media (min-width: 1000px) { .inquiry { grid-template-columns: 7fr 5fr; align-items: start; } }
.form-card { background: var(--c-paper); border-radius: var(--r-card); padding: clamp(1.5rem, 1rem + 2vw, 3rem); box-shadow: var(--sh-3); position: relative; }
.form-card::after { content: ""; position: absolute; inset: 10px; border: 1.5px dashed rgb(var(--c-shadow-p) / .25); border-radius: 3px; pointer-events: none; }
.form-grid { display: grid; gap: var(--s-5); grid-template-columns: 1fr; position: relative; z-index: 1; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field { display: grid; gap: var(--s-2); }
.field label { font-weight: 600; font-size: .94rem; }
.field label .req { color: var(--c-purple); }
.field input, .field select, .field textarea { width: 100%; min-height: 52px; padding: 12px 14px; border: 1.5px solid var(--c-line); border-radius: var(--r-card); background: var(--c-white); font-size: 1rem; transition: border-color var(--t-micro) var(--ease-micro), box-shadow var(--t-micro) var(--ease-micro); }
.field textarea { min-height: 140px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--c-muted); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--c-purple); border-style: dashed; box-shadow: 0 0 0 4px rgb(var(--c-shadow-p) / .15); }
.field .hint { font-size: .85rem; color: var(--c-muted); }
.field .err { font-size: .87rem; color: var(--c-error); min-height: 0; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--c-error); }
.hp { position: absolute !important; left: -9999px; }
.form-foot { display: flex; flex-wrap: wrap; gap: var(--s-4); align-items: center; justify-content: space-between; grid-column: 1 / -1; }
.form-foot small { color: var(--c-muted); }
.form-status { grid-column: 1 / -1; font-weight: 600; }
.form-status.ok { color: var(--c-green); }
.form-status.fail { color: var(--c-error); }
.btn .spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgb(255 255 255 / .4); border-top-color: var(--c-white); animation: spin 800ms linear infinite; display: none; }
.btn.is-loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-success { display: none; text-align: center; padding: var(--s-7) var(--s-4); position: relative; z-index: 1; }
.form-success svg { width: 84px; height: 84px; margin: 0 auto var(--s-5); color: var(--c-green); }
.form-success svg path { stroke-dasharray: 120; stroke-dashoffset: 120; transition: stroke-dashoffset 1.2s var(--ease-out); }
.form-card.done .form-grid { display: none; }
.form-card.done .form-success { display: block; }
.form-card.done .form-success svg path { stroke-dashoffset: 0; }

.contact-cards { display: grid; gap: var(--s-4); }
.contact-card { display: grid; grid-template-columns: 48px 1fr; gap: var(--s-4); align-items: start; padding: var(--s-5); background: var(--c-paper); border-radius: var(--r-card); box-shadow: var(--sh-1); color: inherit; text-decoration: none; transition: box-shadow var(--t-micro) var(--ease-micro); }
a.contact-card:hover { box-shadow: var(--sh-2); }
.contact-card .ic { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--c-muslin); color: var(--c-green); border: 1.5px dashed var(--c-green); }
.contact-card .ic svg { width: 20px; height: 20px; }
.contact-card strong { display: block; }
.contact-card span { color: var(--c-muted); font-size: var(--fs-small); }
.map { border-radius: var(--r-card); overflow: hidden; box-shadow: var(--sh-2); aspect-ratio: 4 / 3; background: var(--c-cotton); }
.map iframe { width: 100%; height: 100%; border: 0; }

/* ---------- footer ---------- */
.footer { background: var(--c-ink); color: var(--c-on-dark-muted); padding-top: var(--s-10); position: relative; font-size: var(--fs-small); }
.footer::before { content: ""; position: absolute; left: 0; right: 0; top: 28px; height: 2px; background: repeating-linear-gradient(90deg, var(--c-gold) 0 10px, transparent 10px 18px); opacity: .55; }
.footer a { color: var(--c-on-dark); text-decoration: none; }
.footer a:hover { color: var(--c-gold-soft); text-decoration: underline; }
.footer-grid { display: grid; gap: var(--s-7); grid-template-columns: 1fr; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; } }
.footer-logo { display: inline-block; background: var(--c-paper); padding: var(--s-4) var(--s-5); border-radius: var(--r-card); margin-bottom: var(--s-5); position: relative; }
.footer-logo::after { content: ""; position: absolute; inset: 5px; border: 1px dashed rgb(var(--c-shadow-p) / .35); border-radius: 3px; }
.footer-logo img { height: 52px; width: auto; }
.footer h2 { font-family: var(--f-body); font-size: var(--fs-label); letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--c-gold-soft); margin-bottom: var(--s-5); }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-2); }
.footer li a { display: inline-flex; min-height: 32px; align-items: center; }
.footer address { font-style: normal; display: grid; gap: var(--s-3); }
.footer .social-row { display: flex; gap: var(--s-3); margin-top: var(--s-5); }
.footer .social-row a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgb(255 255 255 / .25); display: grid; place-items: center; }
.footer .social-row svg { width: 18px; height: 18px; }
.footer-bottom { margin-top: var(--s-9); padding-block: var(--s-5) var(--s-7); padding-right: 64px; border-top: 1px solid rgb(255 255 255 / .12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3); }
.footer-bottom p { margin: 0; max-width: none; }
.footer-bottom a { color: var(--c-gold-soft); }

.to-top { position: fixed; right: var(--s-5); bottom: var(--s-5); z-index: var(--z-bar); width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--c-paper); color: var(--c-ink); box-shadow: var(--sh-2); display: grid; place-items: center; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity var(--t-micro) var(--ease-micro), transform var(--t-micro) var(--ease-micro), visibility 0s linear var(--t-micro); }
.to-top.show { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.to-top svg.ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top svg.ring circle { fill: none; stroke: var(--c-purple); stroke-width: 2.5; stroke-dasharray: 151; stroke-dashoffset: calc(151 - 151 * var(--p, 0)); }
.to-top svg.arrow { width: 18px; height: 18px; }

/* ---------- mobile action bar ---------- */
.action-bar { display: none; }
@media (max-width: 767.98px) {
  .action-bar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-bar); padding-bottom: env(safe-area-inset-bottom); background: var(--c-ink); box-shadow: 0 -8px 24px rgb(var(--c-shadow) / .2); }
  .action-bar a { display: flex; align-items: center; justify-content: center; gap: var(--s-2); min-height: 58px; color: var(--c-white); font-weight: 600; text-decoration: none; }
  .action-bar a:first-child { background: var(--c-green); }
  .action-bar a:last-child { background: var(--c-wa); }
  .action-bar svg { width: 20px; height: 20px; }
  body { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
  .to-top { bottom: calc(74px + env(safe-area-inset-bottom)); }
}

/* ---------- demo popup ---------- */
.demo-pop { position: fixed; inset: 0; z-index: var(--z-modal); display: grid; place-items: center; padding: var(--s-5); visibility: hidden; opacity: 0; transition: opacity 400ms var(--ease-out), visibility 0s linear 400ms; perspective: 1200px; }
.demo-pop.open { visibility: visible; opacity: 1; transition-delay: 0s; }
.demo-pop__backdrop { position: absolute; inset: 0; background: var(--c-overlay); }
.demo-pop__card { position: relative; width: min(100%, 520px); max-height: calc(100svh - 2.5rem); overflow-y: auto; padding: clamp(1.75rem, 1.2rem + 2vw, 2.75rem); border-radius: var(--r-card); background: var(--c-glass-dark); -webkit-backdrop-filter: blur(24px) saturate(150%); backdrop-filter: blur(24px) saturate(150%); border: 1px solid rgb(255 255 255 / .18); color: var(--c-on-dark); box-shadow: var(--sh-3); transform: scale(.92) rotateX(8deg); transition: transform 700ms var(--ease-out); }
.demo-pop.open .demo-pop__card { transform: none; }
.demo-pop__card .stitch-border { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); pointer-events: none; }
.demo-pop__card .stitch-border rect { fill: none; stroke: var(--c-gold-soft); stroke-width: 1.5; stroke-dasharray: 8 7; opacity: .7; }
.demo-pop__close { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgb(255 255 255 / .3); background: transparent; color: var(--c-on-dark); font-size: 1.4rem; line-height: 1; z-index: 2; }
.demo-pop__close:hover { background: rgb(255 255 255 / .1); }
.demo-pop h2 { font-size: clamp(1.8rem, 1.4rem + 1.5vw, 2.5rem); color: var(--c-white); margin-bottom: var(--s-4); }
.demo-pop p { color: var(--c-on-dark-muted); }
.demo-pop .spool { width: 120px; margin-bottom: var(--s-4); filter: drop-shadow(0 10px 20px rgb(0 0 0 / .4)); }
.demo-pop .actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-5); position: relative; z-index: 1; }
.demo-pop .text-btn { background: none; border: 0; color: var(--c-on-dark); text-decoration: underline; text-underline-offset: .25em; min-height: 52px; padding: 0 var(--s-3); }
body.no-scroll { overflow: hidden; }

/* ---------- inner pages ---------- */
.page-hero { position: relative; padding-block: clamp(3rem, 2rem + 5vw, 7rem) clamp(3rem, 2rem + 4vw, 6rem); overflow: clip; background: var(--c-ink); color: var(--c-on-dark); isolation: isolate; }
.page-hero__bg { position: absolute; inset: -10% 0; z-index: -2; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, var(--c-ink) 25%, rgb(26 21 32 / .55) 70%, rgb(26 21 32 / .3)); }
.page-hero h1 { color: var(--c-white); max-width: 16ch; font-size: clamp(2.5rem, 1.6rem + 3.6vw, 5rem); }
.page-hero .lead { max-width: 40rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-2); padding: 0; margin: 0 0 var(--s-6); font-size: .9rem; color: var(--c-on-dark-muted); }
.crumbs li + li::before { content: "/"; margin-right: var(--s-2); opacity: .5; }
.crumbs a { color: var(--c-on-dark); text-decoration: none; }
.crumbs a:hover { color: var(--c-gold-soft); }
.page-hero .hero-actions { margin: var(--s-6) 0 0; }

.prose { max-width: var(--measure); }
.prose h2 { font-size: var(--fs-d3); margin-top: var(--s-7); }
.prose ul { margin: 0 0 var(--s-5); }
.prose li { margin-bottom: var(--s-2); }
.split { display: grid; gap: var(--s-7); align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; gap: var(--s-9); } .split--rev > :first-child { order: 2; } }
.figure { margin: 0; border-radius: var(--r-card); overflow: hidden; box-shadow: var(--sh-3); background: var(--c-cotton); }
.figure img { width: 100%; height: 100%; object-fit: cover; }
.figure-stack { position: relative; padding: 0 0 12% 12%; }
.figure-stack .figure + .figure { position: absolute; left: 0; bottom: 0; width: 46%; border: 6px solid var(--c-paper); }

.product-grid { display: grid; gap: var(--s-5); grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); list-style: none; padding: 0; margin: 0; }
.product { background: var(--c-paper); border-radius: var(--r-card); overflow: hidden; box-shadow: var(--sh-1); transition: box-shadow var(--t-micro) var(--ease-micro), transform var(--t-micro) var(--ease-micro); }
.product:hover { box-shadow: var(--sh-2); transform: translateY(-4px); }
.product .img { aspect-ratio: 1; background: var(--c-white); display: grid; place-items: center; overflow: hidden; }
.product img { width: 100%; height: 100%; object-fit: contain; }
.product .img.cover img { object-fit: cover; }
.product .txt { padding: var(--s-4) var(--s-5) var(--s-5); }
.product h3 { font-size: 1.15rem; margin-bottom: 4px; }
.product p { font-size: .92rem; color: var(--c-muted); margin: 0; }

.tag-list { display: flex; flex-wrap: wrap; gap: var(--s-2); list-style: none; padding: 0; margin: 0 0 var(--s-5); }
.tag-list li { padding: 6px 14px; border-radius: var(--r-pill); background: var(--c-paper); border: 1px solid var(--c-line); font-size: .92rem; }

.faq { display: grid; gap: var(--s-3); max-width: 52rem; }
.faq details { background: var(--c-paper); border-radius: var(--r-card); box-shadow: var(--sh-1); }
.faq summary { cursor: pointer; list-style: none; padding: var(--s-5) var(--s-6); font-weight: 600; font-size: 1.05rem; display: flex; justify-content: space-between; gap: var(--s-4); align-items: center; min-height: 56px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; border-right: 2px solid var(--c-green); border-bottom: 2px solid var(--c-green); transform: rotate(45deg); transition: transform var(--t-micro) var(--ease-micro); }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq .ans { padding: 0 var(--s-6) var(--s-5); color: var(--c-muted); }

.related { display: grid; gap: var(--s-5); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* gallery + lightbox */
.masonry { columns: 3 260px; column-gap: var(--s-5); }
.masonry figure { break-inside: avoid; margin: 0 0 var(--s-5); }
.masonry button { display: block; width: 100%; padding: 0; border: 0; background: var(--c-cotton); border-radius: var(--r-card); overflow: hidden; box-shadow: var(--sh-1); cursor: zoom-in; }
.masonry img { width: 100%; transition: transform 1.2s var(--ease-out); }
.masonry button:hover img { transform: scale(1.04); }
.masonry figcaption { font-size: .88rem; color: var(--c-muted); margin-top: var(--s-2); }
.lightbox { position: fixed; inset: 0; z-index: var(--z-modal); background: rgb(26 21 32 / .94); display: none; place-items: center; padding: var(--s-8) var(--s-5); }
.lightbox.open { display: grid; }
.lightbox img { max-width: min(100%, 1400px); max-height: 82svh; width: auto; border-radius: var(--r-card); box-shadow: var(--sh-3); }
.lightbox p { color: var(--c-on-dark); text-align: center; margin: var(--s-4) auto 0; }
.lightbox .icon-btn { position: absolute; color: var(--c-on-dark); background: rgb(26 21 32 / .5); }
.lightbox .lb-close { top: var(--s-5); right: var(--s-5); }
.lightbox .lb-prev { left: var(--s-4); top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: var(--s-4); top: 50%; transform: translateY(-50%); }

.video-grid { display: grid; gap: var(--s-5); grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.video-grid .video-card { aspect-ratio: 3 / 4; }

/* 404 */
.notfound { min-height: 60svh; display: grid; place-items: center; text-align: center; }
.notfound svg { width: min(360px, 80%); margin: 0 auto var(--s-6); }

/* ---------- reveal system ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity var(--t-reveal) var(--ease-out), transform var(--t-reveal) var(--ease-out); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .hero .line { display: block; overflow: hidden; }
.js .hero .line > span { display: inline-block; transform: translateY(105%); transition: transform var(--t-reveal) var(--ease-out); transition-delay: var(--d, 0ms); }
.js .hero.is-in .line > span { transform: none; }

.floaty { animation: floaty 8s ease-in-out infinite; }
.floaty.paused { animation-play-state: paused; }
@keyframes floaty { 0%, 100% { transform: translate3d(0, 0, 0) rotate(0); } 50% { transform: translate3d(0, -14px, 0) rotate(-3deg); } }
[data-depth] { will-change: auto; }

/* tiers */
html.minimal .reveal, html.minimal .hero .line > span { opacity: 1 !important; transform: none !important; transition: none !important; }
html.minimal .mask-in { clip-path: none !important; transition: none !important; }
html.minimal .floaty, html.minimal .marquee__track { animation: none !important; }
html.minimal *, html.minimal *::before, html.minimal *::after { transition-duration: 0s !important; animation-duration: 0s !important; scroll-behavior: auto !important; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .hero .line > span { opacity: 1 !important; transform: none !important; }
  .mask-in { clip-path: none !important; }
  .floaty, .marquee__track { animation: none !important; }
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; scroll-behavior: auto !important; }
}
@media print { .site-top, .action-bar, .demo-pop, .to-top, .stitch-svg { display: none !important; } }
