/* ==========================================================================
   Centurey Foods — site.css (shared by every page)
   Editorial "showroom" look: warm paper, beige and sage bands, charcoal hero,
   classic serif headlines with a tan italic second line, iridescent accents.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --paper: #fcfaf5;
  --beige: #e8e4da;
  --sage: #eff0e8;
  --sand: #ece6da;
  --card: #f2eee6;
  --line: #e2dcd0;
  --ink: #35271e;
  --muted: #7b6d62;
  --tan: #a27c55;
  --brown: #4b2a1f;
  --brown-hover: #5e3727;
  --night: #151719;
  --night-2: #202523;
  --cream: #fff8e8;
  --cream-muted: rgba(255, 248, 232, .68);
  --holo: linear-gradient(110deg, #f4e4c4 0%, #dcebe2 32%, #e4d8f1 62%, #f5dcc4 100%);

  --serif: Georgia, "Times New Roman", serif;
  --sans: "Helvetica Neue", Arial, system-ui, sans-serif;

  --wrap: 1280px;
  --gutter: 40px;
  --header-h: 100px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh;
  font-family: var(--sans); font-size: 1rem; line-height: 1.6;
  color: var(--ink); background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; } /* keep every image in proportion when CSS sets only its width */
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p, figure { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--tan); outline-offset: 3px; }
main { overflow-x: clip; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 300; padding: 10px 16px;
  background: var(--brown); color: var(--cream);
}
.skip-link:focus { top: 12px; }

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .6875rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--tan);
}
.eyebrow--dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.caps { font-size: .625rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.display, .h2 {
  font-family: var(--serif); font-weight: 400; letter-spacing: -.02em; line-height: 1.04;
}
.display { font-size: clamp(2.75rem, 1.2rem + 3.7vw, 4.75rem); }
.h2 { font-size: clamp(2.25rem, 1.45rem + 2.6vw, 3.5rem); }
.h3 { font-family: var(--serif); font-weight: 400; font-size: 1.625rem; line-height: 1.2; }
.alt { display: block; font-style: italic; color: var(--tan); }
.holo-text {
  font-style: italic;
  background: linear-gradient(100deg, #f3d9b0, #cfe6dc 40%, #d9c9ef 70%, #f2c9a8);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: 1.0625rem; line-height: 1.7; color: var(--muted); }
.prose p + p { margin-top: 14px; }
.prose { color: var(--muted); line-height: 1.75; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  font-size: .875rem; font-weight: 600; letter-spacing: .01em;
  border: 1px solid transparent; border-radius: 2px;
  transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease), box-shadow .25s;
}
.btn .arr, .link .arr { font-size: .9em; transition: transform .25s var(--ease); }
.btn:hover .arr, .link:hover .arr { transform: translate(2px, -2px); }
.btn--dark { background: var(--brown); color: var(--cream); }
.btn--dark:hover { background: var(--brown-hover); }
.btn--holo { background: var(--holo); color: var(--ink); background-size: 160% 100%; animation: holo-shift 8s ease-in-out infinite alternate; }
.btn--holo:hover { box-shadow: 0 10px 30px rgba(220, 200, 240, .25); transform: translateY(-1px); }
.btn--line { border-color: var(--line); background: transparent; }
.btn--line:hover { border-color: var(--ink); }
.btn--block { width: 100%; }
@keyframes holo-shift { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }

.link {
  display: inline-flex; align-items: center; gap: 6px; padding-bottom: 4px;
  font-size: .8125rem; font-weight: 600; border-bottom: 1px solid currentColor;
  transition: color .2s, border-color .2s;
}
.link:hover { color: var(--tan); }
.link--light { color: var(--cream); border-color: rgba(255, 248, 232, .4); }
.link--light:hover { color: #f3d9b0; }

/* ---------- Top strip & header ---------- */
.topbar { background: #1d1916; color: rgba(255, 248, 232, .82); font-size: .6875rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; height: 34px; }
.topbar__tag { font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: #e9d7b0; }
.topbar a:hover { color: #fff; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(252, 250, 245, .94); backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
/* Logo is sized by height and never shrinks, whatever the menu needs */
.logo { flex: 0 0 auto; display: block; padding: 6px 0; }
.logo img { height: 80px; width: auto; max-width: none; }
.nav { flex: 1; display: flex; justify-content: center; min-width: 0; }
.nav ul { display: flex; gap: 30px; }
.nav a {
  position: relative; padding: 6px 0; transition: color .2s; white-space: nowrap;
  font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--tan); }
.bag-link { flex: none; display: inline-flex; align-items: center; gap: 10px; font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.bag-count {
  display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px;
  background: var(--brown); color: var(--cream); font-size: .75rem; font-weight: 700;
}
.bag-count.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }
.nav-toggle { display: none; width: 44px; height: 44px; margin-right: -10px; }
.nav-toggle span { display: block; width: 22px; height: 1.5px; margin: 5px auto; background: var(--ink); transition: transform .3s, opacity .2s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- Sections ---------- */
.section { padding: 112px 0; }
.band-beige { background: var(--beige); }
.band-sage { background: var(--sage); }
.split-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: end; margin-bottom: 48px; }
.split-head .eyebrow { margin-bottom: 18px; }
.split-head__side { display: grid; gap: 18px; justify-items: start; max-width: 30rem; }

/* ---------- Home: hero slider ----------
   A welcome slide plus three product slides; site.js switches .is-active and runs autoplay. */
.mhero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: 0 5%; background: #f4f0e7; color: #392c22;
  border-radius: 0 0 48px 48px;
}
.mhero__glow {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(at 78% 35%, rgba(217, 219, 206, .53), transparent 48%),
              radial-gradient(at 20% 70%, rgba(237, 216, 178, .3), transparent 50%);
}
.mhero__slides { position: relative; height: 535px; max-width: 1400px; margin: 0 auto; }
.mhero__slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(6px); transition: opacity .75s, visibility .75s, transform .75s;
}
.mhero__slide.is-active { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
.mhero .eyebrow { font-size: .5625rem; letter-spacing: .28em; color: #9b7549; }
.mhero em { font-style: italic; }

.mhero__slide--welcome { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 25px 0; }
.mhero__slide--welcome .eyebrow { margin-bottom: 26px; }
.mhero__welcome { font-family: var(--serif); font-weight: 400; font-size: clamp(3.375rem, 5.8vw, 5rem); line-height: 1.03; letter-spacing: -.04em; margin-bottom: 24px; }
.mhero__welcome em { color: #9d774b; }
.mhero__slide--welcome > p:not(.eyebrow):not(.caps) { font-size: .875rem; line-height: 1.8; color: #7b6d62; }
.mhero__actions { display: flex; justify-content: center; align-items: center; gap: 28px; margin-top: 18px; }
.mhero__note { margin-top: 40px; font-size: .5rem; letter-spacing: .25em; color: #94816a; }

.mhero__slide--product { display: grid; grid-template-columns: 40% 60%; align-items: center; padding-top: 10px; }
.mhero__copy { padding-left: 2%; }
.mhero__copy .eyebrow { margin-bottom: 24px; }
.mhero__title { font-family: var(--serif); font-weight: 400; font-size: clamp(2.5rem, 4.8vw, 4.125rem); letter-spacing: -.03em; line-height: 1.1; margin-bottom: 22px; }
.mhero__title em { color: #927346; }
.mhero__copy > p { font-size: .875rem; line-height: 1.9; max-width: 365px; color: #7b6d62; margin-bottom: 28px; }

.mhero__controls { display: flex; align-items: center; justify-content: space-between; gap: 25px; max-width: 1400px; margin: 0 auto; padding: 12px 0 25px; }
.mhero__location { font-size: .5rem; letter-spacing: .21em; color: #988873; }
.mhero__tabs { display: flex; align-items: center; gap: 23px; }
.mhero__tabs button { display: flex; align-items: center; gap: 8px; padding: 8px 0; font-size: .5625rem; color: #a39480; transition: color .3s; }
.mhero__tabs button > span:first-child { font-size: .5rem; }
.mhero__tabs i { display: block; width: 20px; height: 1px; background: #ccbfaa; transition: width .35s, background-color .35s; }
.mhero__tabs button[aria-current="true"] { color: #705537; }
.mhero__tabs button[aria-current="true"] i { width: 43px; background: #a08050; }
.mhero__arrows { display: flex; align-items: center; gap: 18px; }
.mhero__arrows button { padding: 6px; font-size: 1.125rem; line-height: 1; color: #8c7658; transition: color .2s; }
.mhero__arrows button:hover { color: var(--ink); }
.mhero__arrows [data-slide-play] { font-size: .8125rem; min-width: 24px; }

/* the floating product stage */
.holo-scene { position: relative; isolation: isolate; height: 490px; --holo: #9a9d7a; --holo2: #ab8cb2; }
.holo-scene--chocolate { --holo: #e4c0a0; --holo2: #cbb0f5; }
.holo-scene--finishing { --holo: #c7e6b4; --holo2: #f2d393; }
.holo-grid {
  position: absolute; inset: 46% -20% -8%; z-index: -1; opacity: .28; pointer-events: none;
  background-image: linear-gradient(rgba(180, 213, 202, .09) 1px, transparent 1px), linear-gradient(90deg, rgba(180, 213, 202, .09) 1px, transparent 1px);
  background-size: 43px 43px; transform: perspective(450px) rotateX(64deg);
  -webkit-mask-image: radial-gradient(rgba(0, 0, 0, .6), transparent 66%); mask-image: radial-gradient(rgba(0, 0, 0, .6), transparent 66%);
}
.holo-beam {
  position: absolute; bottom: 55px; left: 12%; width: 76%; height: 390px; opacity: .4; pointer-events: none;
  background: linear-gradient(0deg, color-mix(in srgb, var(--holo) 13%, transparent), transparent 92%);
  clip-path: polygon(10% 100%, 90% 100%, 72% 0, 28% 0); filter: blur(12px);
}
.holo-orbit {
  position: absolute; left: 11%; top: 40%; width: 80%; height: 37%; z-index: -1; pointer-events: none;
  border: 1px solid rgba(152, 143, 119, .36); border-radius: 50%; transform: rotate(-25deg);
}
.holo-orbit--two { transform: rotate(28deg); height: 48%; top: 27%; left: 10%; width: 83%; }
.holo-orbit--three { transform: rotate(-42deg); top: 20%; left: 28%; height: 64%; width: 45%; border-color: rgba(221, 199, 158, .21); }
.spark { position: absolute; z-index: 4; color: #bda276; font-size: 19px; animation: twinkle 4s ease-in-out infinite; pointer-events: none; }
.spark--1 { left: 20%; top: 12%; }
.spark--2 { right: 12%; top: 8%; animation-delay: -1.3s; font-size: 15px; }
.spark--3 { right: 30%; top: 62%; animation-delay: -2.6s; font-size: 13px; }
@keyframes twinkle { 0%, 100% { opacity: .3; transform: scale(.7); } 50% { opacity: 1; transform: scale(1); } }
.holo-packs { position: absolute; inset: 0; perspective: 1000px; }
.holo-pack {
  position: absolute; top: 2%; width: 46%; height: 83%; isolation: isolate;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  --bob: 13px; --angle: 0deg; animation: levitate 6s ease-in-out infinite;
}
.holo-pack img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 17px 15px rgba(107, 81, 53, .15)); transition: filter .4s, transform .4s; }
.holo-pack:hover img { filter: drop-shadow(0 20px 18px rgba(107, 81, 53, .23)); transform: scale(1.07); }
.holo-pack:focus-visible { outline: 1px solid #d8c9ac; border-radius: 20px; }
.holo-pack--0 { left: -1%; top: 12%; height: 68%; z-index: 1; animation-delay: -2s; --angle: -10deg; }
.holo-pack--1 { left: 27%; top: -1%; width: 48%; height: 86%; z-index: 3; --bob: 17px; --angle: 3deg; }
.holo-pack--2 { right: -4%; top: 13%; height: 68%; z-index: 2; animation-delay: -4s; --angle: 9deg; }
@keyframes levitate {
  0%, 100% { transform: translateY(0) rotate(var(--angle)); }
  50% { transform: translateY(calc(-1 * var(--bob))) rotate(var(--angle)); }
}
.pack-caption {
  position: absolute; bottom: 2%; white-space: nowrap; padding: 4px 12px; border-radius: 20px;
  font-size: .625rem; letter-spacing: .1em; color: #756247;
  background: rgba(243, 239, 230, .65); border: 1px solid rgba(203, 189, 155, .33); backdrop-filter: blur(8px);
}
.holo-pack--1 .pack-caption { bottom: 1%; }
.holo-platform {
  position: absolute; left: 14%; bottom: 23px; width: 75%; height: 86px; z-index: -1; opacity: .6;
  border-radius: 50%; transform: perspective(500px) rotateX(52deg);
  background: radial-gradient(rgba(188, 231, 212, .13), transparent 70%);
}
.holo-platform i {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--holo) 65%, transparent);
  box-shadow: 0 0 16px color-mix(in srgb, var(--holo) 25%, transparent), inset 0 0 13px color-mix(in srgb, var(--holo) 18%, transparent);
}
.holo-platform i:nth-child(2) { inset: 10px 35px; border-color: var(--holo2); opacity: .5; }
.holo-platform i:nth-child(3) { inset: -14px -25px; opacity: .15; }
.stage-label { position: absolute; bottom: 0; left: 15%; right: 7%; display: flex; align-items: center; gap: 9px; font-size: .5rem; letter-spacing: .16em; color: #8a795f; }
.live-dot { width: 4px; height: 4px; border-radius: 50%; background: #b99a69; }
.stage-number { margin-left: auto; font-size: .5625rem; color: #8a795f; }
.mhero.is-paused .holo-pack, .mhero.is-paused .spark { animation-play-state: paused; }

/* ---------- Home: sourcing banner ---------- */
.sourcing {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center; min-height: 500px;
  margin: 42px 3% 0; padding: 55px 5%; border-radius: 26px; background: #eee3d1;
}
.sourcing__photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.sourcing__shade {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, #f4eddf 0%, rgba(244, 237, 223, .93) 24%, rgba(244, 237, 223, .46) 43%, transparent 64%);
}
.sourcing__copy { max-width: 440px; }
.sourcing__copy .eyebrow { margin-bottom: 20px; font-size: .5625rem; letter-spacing: .2em; color: #87602e; }
.sourcing__copy .h2 { font-size: clamp(2.4375rem, 4vw, 3.4375rem); line-height: 1.08; letter-spacing: -.03em; margin-bottom: 22px; }
.sourcing__copy .h2 em { color: #926b40; }
.sourcing__copy > p { max-width: 340px; font-size: .8125rem; line-height: 1.9; color: #766b5b; margin-bottom: 24px; }

/* ---------- Home: values ---------- */
.values-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4%; padding: 42px 6% 48px; }
.values-row article + article { padding-left: 30px; border-left: 1px solid #e9decb; }
.values-row .caps { display: block; margin-bottom: 14px; font-size: .5rem; color: #af8b51; }
.values-row h3 { font-family: var(--serif); font-weight: 400; font-size: 1.625rem; line-height: 1.2; letter-spacing: -.02em; margin-bottom: 15px; }
.values-row p { max-width: 320px; font-size: .75rem; line-height: 1.9; color: #7b6d62; }

/* ---------- Home: reference styling of the shared sections ---------- */
.page-home .story { padding-top: 0; }
.page-home .band-sage { margin: 0 3%; padding: 58px 4.2% 40px; border-radius: 30px; background: #e9ede2; }
.page-home .band-sage > .wrap { width: 100%; }
.page-home .band-sage .split-head { margin-bottom: 30px; }
.page-home .band-sage .brand-grid { padding: 22px 0 12px; border-top: 1px solid rgba(199, 208, 189, .53); border-bottom: 1px solid rgba(199, 208, 189, .53); }
.page-home .band-sage .brand-card { background: none; border: 0; }
.page-home .band-sage .brand-card:hover { background: none; box-shadow: none; }
.page-home .brand-foot .caps { font-size: .4375rem; letter-spacing: .17em; color: #a0917b; }
.page-home .craft { margin: 0 3%; border-radius: 28px; background: radial-gradient(at 85% 15%, rgba(73, 96, 80, .33), transparent 65%), #29332e; }
.page-home .craft .wrap { width: 100%; padding: 60px 5%; }
.page-home .craft .alt { color: #ddc399; }
.page-home .craft__side { color: #bfc7b8; }
.page-home .craft .btn--holo { background: #e8d3af; animation: none; }

/* ---------- Product photo tilt & zoom ---------- */
.p-card__media { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.p-card__media.is-tilting { transition-duration: .12s; box-shadow: 0 18px 36px rgba(53, 39, 30, .14); }
.p-card__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .45), transparent 55%);
  mix-blend-mode: soft-light;
}
.p-card__media.is-tilting::after { opacity: 1; }
.pdp__media { cursor: zoom-in; }
.pdp__media img { transition: transform .5s var(--ease); transform-origin: var(--zx, 50%) var(--zy, 50%); }
.pdp__media.is-zoomed img { transform: scale(1.7); transition-duration: .25s; }

/* ---------- Home: brand story ---------- */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
/* Logo card: glossy foil disc behind a frosted cream medallion holding the logo */
.story__art {
  position: relative; isolation: isolate; overflow: hidden; height: 460px;
  background: #eeebe3; display: grid; place-items: center;
}
.foil-disc {
  position: absolute; inset: 10%; border-radius: 50%;
  background: conic-gradient(from 140deg, #b5cbc0, #f9e6c0, #d5bed9, #e3ebd9, #e2bd8c, #d8e2d6, #b5cbc0);
  box-shadow: inset 10px 8px 20px rgba(255, 255, 255, .53), inset -12px -10px 20px rgba(173, 151, 128, .27);
  transform: rotate(-25deg);
  animation: foil-turn 30s linear infinite;
}
.foil-disc::before {
  content: ""; position: absolute; inset: 13%; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .6);
  box-shadow: inset 6px 8px 12px rgba(255, 255, 255, .33), 3px 3px 20px rgba(141, 129, 124, .13);
}
@keyframes foil-turn { to { transform: rotate(335deg); } }
.story__emblem {
  position: absolute; inset: 30% 23% 25%; display: grid; place-items: center; border-radius: 50%;
  background: rgba(247, 240, 223, .5); box-shadow: 0 6px 45px rgba(121, 109, 63, .07);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transform: rotate(-8deg);
}
.story__emblem img { width: 90%; max-height: 140px; object-fit: contain; transform: rotate(8deg); filter: drop-shadow(0 8px 7px rgba(85, 59, 50, .2)); }
.story__art .caps { position: absolute; color: rgba(53, 39, 30, .55); }
.story__art .caps--tl { left: 28px; top: 26px; line-height: 1.8; }
.story__art .caps--br { right: 28px; bottom: 24px; }
.story__copy { display: grid; gap: 22px; justify-items: start; }
.story__copy .h2 { margin-bottom: 14px; }
.story__copy .btn { margin-top: 18px; }
.story__copy .caps { margin-top: 18px; }

/* ---------- Image banners (artwork with text baked in) ---------- */
.art-banner { display: block; position: relative; overflow: hidden; background: var(--beige); }
.art-banner img { width: 100%; height: auto; aspect-ratio: 2172 / 724; object-fit: cover; transition: transform 1.2s var(--ease); }
.art-banner:hover img { transform: scale(1.015); }

/* ---------- Brand cards ---------- */
.brand-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.brand-card {
  display: grid; grid-template-rows: 1fr auto; height: 100%;
  background: rgba(255, 255, 255, .55); border: 1px solid var(--line); border-radius: 6px;
  transition: transform .4s var(--ease), box-shadow .4s, border-color .3s, background-color .3s;
}
.brand-card:hover { transform: translateY(-4px); background: #fff; border-color: #cfc5b3; box-shadow: 0 18px 40px rgba(53, 39, 30, .08); }
.brand-card__logo { display: grid; place-items: center; height: 120px; padding: 20px; }
.brand-card__logo img { max-height: 72px; max-width: 100%; object-fit: contain; }
.brand-card__name { padding: 14px 12px 18px; text-align: center; font-size: .8125rem; color: var(--muted); }
.brand-foot { display: flex; justify-content: space-between; gap: 16px; margin-top: 24px; }

/* ---------- Client logos ---------- */
.client-slider__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 5 * 32px) / 6); gap: 32px; align-items: center;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
  padding: 6px 0;
}
.client-slider__track::-webkit-scrollbar { display: none; }
.client-slider__track .client-logo { scroll-snap-align: start; }
.client-slider__controls { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.client-slider__controls button {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); color: var(--ink); transition: background-color .2s, border-color .2s, color .2s;
}
.client-slider__controls button:hover { background: var(--brown); border-color: var(--brown); color: var(--cream); }
.client-logo { display: grid; place-items: center; height: 90px; transition: transform .35s var(--ease); }
.client-logo:hover { transform: translateY(-3px); }
.client-logo img { max-height: 70px; max-width: 100%; object-fit: contain; }
.client-logo--text { font-family: var(--serif); font-size: 1.5rem; color: var(--ink); }
.client-wall { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; }
.client-wall .client-logo { height: 150px; padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.client-wall .client-logo img { max-height: 90px; }

/* ---------- Dark CTA band ---------- */
.craft { position: relative; overflow: hidden; background: var(--night-2); color: var(--cream); }
.craft::before {
  content: "Create"; position: absolute; right: -2%; top: 50%; translate: 0 -50%;
  font-family: var(--serif); font-style: italic; font-size: clamp(8rem, 18vw, 17rem); line-height: 1;
  color: rgba(255, 248, 232, .04); pointer-events: none;
}
.craft .wrap { position: relative; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; padding: 84px 0; }
.craft .caps { color: rgba(255, 248, 232, .6); margin-bottom: 22px; display: block; }
.craft .h2 { color: var(--cream); }
.craft .alt { color: #e2cfa6; }
.craft__side { display: grid; gap: 22px; justify-items: start; color: var(--cream-muted); font-size: .9375rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 1fr 1.15fr; gap: 72px; }
.faq__intro { display: grid; gap: 22px; align-content: start; justify-items: start; }
.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list summary {
  display: flex; justify-content: space-between; gap: 20px; align-items: center;
  padding: 22px 0; cursor: pointer; list-style: none; font-size: 1rem;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after { content: "+"; font-size: 1.25rem; line-height: 1; color: var(--muted); transition: transform .3s var(--ease); }
.faq__list details[open] summary::after { transform: rotate(45deg); }
.faq__list details p { padding: 0 40px 24px 0; color: var(--muted); line-height: 1.75; }
.faq--full { grid-template-columns: 1fr; max-width: 860px; }

/* ---------- Inner page header ---------- */
.page-head { background: var(--beige); padding: 64px 0 72px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; font-size: .75rem; color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.page-head .display { font-size: clamp(2.5rem, 1.6rem + 3vw, 4rem); }
.page-head .lead { max-width: 38rem; margin-top: 18px; }

/* ---------- Shop ---------- */
.shop-tools { display: grid; grid-template-columns: 1fr 220px 180px; gap: 12px; margin-bottom: 22px; }
.field {
  width: 100%; height: 52px; padding: 0 16px; border: 1px solid var(--line); border-radius: 2px; background: #fff;
  transition: border-color .2s;
}
.field:focus { outline: none; border-color: var(--tan); }
textarea.field { height: auto; min-height: 120px; padding: 14px 16px; resize: vertical; }
select.field { appearance: none; padding-right: 40px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2335271e' stroke-width='1.5'/%3E%3C/svg%3E") right 16px center no-repeat; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chip {
  height: 38px; padding: 0 16px; border: 1px solid var(--line); border-radius: 2px; background: #fff;
  font-size: .8125rem; transition: background-color .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--brown); border-color: var(--brown); color: var(--cream); }
.shop-count { margin-bottom: 26px; font-size: .8125rem; color: var(--muted); }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 24px; }
.product-empty { grid-column: 1 / -1; padding: 60px 0; text-align: center; color: var(--muted); }

.p-card { display: grid; grid-template-rows: auto 1fr; }
.p-card__media {
  position: relative; display: block; overflow: hidden; aspect-ratio: 1; background: var(--card);
}
.p-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.p-card:hover .p-card__media img { transform: scale(1.05); }
.p-card__body { display: grid; align-content: start; gap: 6px; padding-top: 16px; }
.p-card__brand { font-size: .625rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--tan); }
.p-card__name { font-family: var(--serif); font-size: 1.1875rem; font-weight: 400; line-height: 1.25; }
.p-card__name a:hover { color: var(--tan); }
.p-card__variants { font-size: .8125rem; color: var(--muted); }
.p-card__price { margin-top: 4px; font-size: .8125rem; font-weight: 600; }
.p-card__add {
  justify-self: start; margin-top: 10px; padding: 9px 0 3px; font-size: .8125rem; font-weight: 600;
  border-bottom: 1px solid currentColor; transition: color .2s;
}
.p-card__add:hover { color: var(--tan); }
.p-card__add.is-added { color: #3f7a4f; }

/* ---------- Product detail ---------- */
.pdp { display: grid; grid-template-columns: 1.05fr 1fr; gap: 72px; align-items: start; padding: 56px 0 96px; }
.pdp__media { position: sticky; top: calc(var(--header-h) + 24px); aspect-ratio: 1; background: var(--card); overflow: hidden; }
.pdp__media img { width: 100%; height: 100%; object-fit: cover; }
.pdp__info { display: grid; gap: 18px; align-content: start; }
.pdp__info .display { font-size: clamp(2.25rem, 1.6rem + 2vw, 3.25rem); }
.pdp__price { font-size: 1.0625rem; font-weight: 600; }
.pdp__label { margin-bottom: 10px; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.variant-list { display: flex; flex-wrap: wrap; gap: 8px; }
.stepper { display: inline-grid; grid-template-columns: 44px 56px 44px; height: 52px; border: 1px solid var(--line); background: #fff; }
.stepper button { font-size: 1.125rem; }
.stepper button:hover { background: var(--card); }
.stepper input { width: 100%; border: 0; text-align: center; background: transparent; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; }
.pdp__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.pdp__actions .btn { flex: 1 1 200px; }
.note { padding: 16px 18px; background: var(--sage); font-size: .8125rem; line-height: 1.65; color: var(--muted); }
.meta { display: grid; gap: 6px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .8125rem; color: var(--muted); }
.meta b { color: var(--ink); font-weight: 600; }

/* ---------- Bag ---------- */
.bag { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: start; padding: 56px 0 104px; }
.bag-item { display: grid; grid-template-columns: 96px 1fr auto; gap: 20px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); }
.bag-item:first-child { border-top: 1px solid var(--line); }
.bag-item__img { aspect-ratio: 1; background: var(--card); }
.bag-item__img img { width: 100%; height: 100%; object-fit: cover; }
.bag-item__name { font-family: var(--serif); font-size: 1.125rem; line-height: 1.3; }
.bag-item__variant { font-size: .8125rem; color: var(--muted); }
.bag-item__side { display: grid; justify-items: end; gap: 8px; }
.bag-item .stepper { grid-template-columns: 36px 44px 36px; height: 40px; }
.bag-remove { font-size: .75rem; color: var(--muted); border-bottom: 1px solid currentColor; }
.bag-remove:hover { color: var(--ink); }
.bag-empty { padding: 72px 32px; text-align: center; background: var(--sage); display: grid; gap: 16px; justify-items: center; }
.panel { padding: 32px; background: #fff; border: 1px solid var(--line); position: sticky; top: calc(var(--header-h) + 24px); }
.panel h2 { margin-bottom: 6px; }
.panel .note { margin-top: 18px; }
.form { display: grid; gap: 14px; margin-top: 22px; }
.form label { display: grid; gap: 6px; font-size: .75rem; font-weight: 600; letter-spacing: .04em; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-done { padding: 14px 16px; background: #e7f0e6; color: #2f5b39; font-size: .8125rem; }

/* ---------- Contact / wholesale ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; padding: 72px 0 104px; align-items: start; }
.contact-card { padding: 40px; background: var(--night-2); color: var(--cream); display: grid; gap: 22px; }
.contact-card .h3 { color: var(--cream); }
.contact-card .caps { color: rgba(255, 248, 232, .55); }
.contact-lines { display: grid; gap: 14px; font-size: .9375rem; color: var(--cream-muted); }
.contact-lines a { color: var(--cream); border-bottom: 1px solid rgba(255, 248, 232, .3); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.about-grid img { width: 100%; aspect-ratio: 4 / 3.2; object-fit: cover; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.value { padding-top: 22px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.value p { color: var(--muted); font-size: .9375rem; line-height: 1.7; }

/* ---------- Footer ---------- */
.site-footer { background: var(--sand); padding: 72px 0 0; font-size: .8125rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 56px; }
.footer-brand img { width: 160px; height: auto; margin-bottom: 18px; }
.footer-brand p { color: var(--muted); }
.footer-brand p + p { margin-top: 6px; font-size: .75rem; color: var(--ink); }
.site-footer h3 { margin-bottom: 16px; font-size: .8125rem; font-weight: 700; }
.site-footer li + li { margin-top: 10px; }
.site-footer a { color: var(--muted); transition: color .2s; }
.site-footer a:hover { color: var(--ink); }
.footer-bar { display: flex; justify-content: space-between; gap: 16px; padding: 22px 0 28px; border-top: 1px solid #d9d0bf; font-size: .6875rem; color: var(--muted); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 400; translate: -50% 20px;
  display: flex; align-items: center; gap: 16px; padding: 14px 18px 14px 20px;
  background: var(--night-2); color: var(--cream); font-size: .875rem; box-shadow: 0 18px 40px rgba(0, 0, 0, .25);
  opacity: 0; pointer-events: none; transition: opacity .3s, translate .4s var(--ease);
}
.toast.is-on { opacity: 1; translate: -50% 0; pointer-events: auto; }
.toast a { color: #e9d7b0; border-bottom: 1px solid currentColor; white-space: nowrap; }

/* ---------- Scroll reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  :root { --gutter: 28px; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .brand-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .client-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .client-slider__track { grid-auto-columns: calc((100% - 3 * 24px) / 4); gap: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
/* Uppercase menu needs ~860px; below 1100px it moves into the ☰ panel so it never squeezes the logo */
@media (max-width: 1100px) {
  :root { --header-h: 86px; }
  .logo img { height: 68px; }
  .nav-toggle { display: block; }
  .nav {
    /* hangs off the sticky header (its blur would trap position: fixed anyway) */
    position: absolute; top: 100%; left: 0; right: 0; z-index: 99;
    height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h)); overflow-y: auto;
    display: block; padding: 24px var(--gutter); background: var(--paper);
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s;
  }
  .nav-open .nav { opacity: 1; visibility: visible; transition: opacity .3s; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a { display: block; padding: 20px 0; font-size: .875rem; letter-spacing: .16em; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .bag-link { margin-left: auto; }
}
@media (max-width: 960px) {
  .section { padding: 80px 0; }
  /* two-column layouts stack on tablets and phones */
  .split-head, .story, .craft .wrap, .faq, .pdp, .bag, .contact-grid, .about-grid { grid-template-columns: 1fr; }
  .split-head { gap: 22px; }
  .story { gap: 40px; }
  .pdp { gap: 32px; }
  .pdp__media, .panel { position: static; }
  .shop-tools { grid-template-columns: 1fr 1fr; }
  .shop-tools .field:first-child { grid-column: 1 / -1; }
  .values { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  :root { --gutter: 20px; }
  .topbar__tag { display: none; }
  :root { --header-h: 76px; }
  .logo img { height: 60px; }
  .bag-link { letter-spacing: .1em; }
  .topbar .wrap { justify-content: center; }
  .section { padding: 64px 0; }
  .story__art { height: 340px; }
  .story__emblem { inset: 28% 14% 24%; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; }
  .p-card__name { font-size: 1rem; }
  .brand-grid, .client-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand-foot { flex-direction: column; }
  .faq__list details p { padding-right: 0; }
  .bag-item { grid-template-columns: 72px 1fr; }
  .bag-item__side { grid-column: 2; justify-items: start; grid-auto-flow: column; align-items: center; gap: 16px; }
  .form .row { grid-template-columns: 1fr; }
  .client-slider__track { grid-auto-columns: calc((100% - 2 * 16px) / 3); gap: 16px; }
  .client-slider__track .client-logo { height: 64px; }
  .client-slider__track .client-logo img { max-height: 52px; }
  .story__art { height: 260px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .footer-brand, .footer-grid > div:last-child { grid-column: 1 / -1; }
  .panel, .contact-card { padding: 24px; }
  .footer-bar { flex-direction: column; }
}
@media (max-width: 1050px) {
  .mhero__location { display: none; }
  .mhero__controls { gap: 15px; }
  .mhero__tabs { gap: 17px; }
  .holo-scene { height: 440px; }
  .mhero__title { font-size: 3rem; }
}
@media (max-width: 720px) {
  .mhero { padding: 0 6%; border-radius: 0 0 32px 32px; }
  .mhero__slides { height: 640px; }
  .mhero .eyebrow { font-size: .4375rem; letter-spacing: .15em; }
  .mhero__welcome { font-size: 2.9375rem; line-height: 1.08; }
  .mhero__actions { flex-direction: column; gap: 20px; margin-top: 23px; }
  .mhero__note { font-size: .4375rem; letter-spacing: .1em; margin-top: 37px; }
  .mhero__slide--product { display: flex; flex-direction: column; padding-top: 28px; }
  .mhero__copy { width: 100%; padding: 0; text-align: center; }
  .mhero__copy .eyebrow { margin-bottom: 15px; }
  .mhero__title { font-size: 2.25rem; margin-bottom: 16px; }
  .mhero__copy > p { max-width: 310px; min-height: 45px; margin: 0 auto 19px; font-size: .75rem; line-height: 1.7; }
  .holo-scene { width: 110%; height: 325px; margin-left: -5%; }
  .pack-caption { font-size: .4375rem; padding: 3px 8px; }
  .mhero__controls { justify-content: center; flex-wrap: wrap; gap: 15px; padding: 8px 0 25px; }
  .mhero__tab-name { display: none; }
  .mhero__tabs { gap: 15px; }
  .mhero__arrows { gap: 10px; }
  .sourcing { display: block; min-height: 700px; margin: 28px 3% 0; padding: 55px 7% 320px; }
  .sourcing__photo { object-position: 70% center; }
  .sourcing__shade { background: linear-gradient(#f5f1e8 0%, rgba(245, 241, 232, .96) 25%, rgba(245, 241, 232, .68) 43%, transparent 70%); }
  .sourcing__copy .h2 { font-size: 2.4375rem; }
  .values-row { grid-template-columns: 1fr; gap: 30px; padding: 35px 7%; }
  .values-row article + article { padding-left: 0; border-left: 0; }
  .page-home .band-sage { padding: 40px 6% 30px; border-radius: 24px; }
  .page-home .craft { border-radius: 24px; }
  .page-home .craft .wrap { padding: 44px 7%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}
.paused *, .paused *::before, .paused *::after { animation-play-state: paused !important; }
