/* v1 — Sober Classic · craft pass 3 */

:root {
  --text: #23232c;
  --text-dark: #0c0c0c;
  --muted: #7c7c80;
  --hero-bg: #f1f2f4;
  --white: #ffffff;
  --border: #e8e8ea;
  --hover: #111114;
  --font-body: 'Poppins', sans-serif;
  --font-display: 'Jost', sans-serif;
  --header-h: 72px;
  --ribbon-h: 29px;
  --trust-h: 41px;
  --rail: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--muted);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: none; background: none; cursor: pointer; color: inherit; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }

/* Single alignment rail — header, hero, sections, footer share this */
.rail {
  width: 100%;
  max-width: calc(var(--rail) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Top bars */
.demo-ribbon {
  text-align: center;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #5a5a62;
  background: #eaeaeb;
  padding: 7px 12px;
  border-bottom: 1px solid #ddd;
}
.trust-bar { background: var(--white); border-bottom: 1px solid var(--border); }
.trust-bar-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 18px;
  padding-block: 10px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text);
}
.trust-bar .sep { color: #c4c4c8; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 4px 24px rgba(35, 35, 44, 0.04);
}
.header-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  height: var(--header-h);
  gap: 16px;
}
.header-nav--left {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 28px);
  justify-self: start;
}
.header-logo { justify-self: center; line-height: 0; }
.header-logo img { height: clamp(28px, 3vw, 34px); width: auto; }
.header-nav--right {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 20px);
  justify-self: end;
}
.header-links { display: flex; align-items: center; gap: clamp(16px, 2vw, 28px); }
.nav-link {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--hover); }
.header-icons { display: flex; align-items: center; gap: 14px; }
.icon-link { display: flex; color: var(--text); opacity: 0.88; transition: opacity 0.2s; }
.icon-link:hover { opacity: 1; }
.icon-link--cart { position: relative; }
.cart-count {
  position: absolute; top: -5px; right: -7px;
  min-width: 16px; height: 16px; padding: 0 4px;
  font-size: 9px; font-weight: 600; line-height: 16px; text-align: center;
  color: var(--white); background: var(--text); border-radius: 999px;
}
.burger { display: none; flex-direction: column; gap: 5px; width: 32px; height: 32px; padding: 4px; }
.burger span { display: block; width: 22px; height: 1.5px; background: var(--text); transition: transform 0.3s, opacity 0.3s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; top: calc(var(--ribbon-h) + var(--trust-h) + var(--header-h));
  z-index: 190; background: var(--white);
  padding: 24px var(--gutter);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: none; }
.mobile-menu[hidden] { display: block; }
.mobile-link {
  display: block; padding: 14px 0;
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text); border-bottom: 1px solid var(--border);
}

/* Hero */
.hero {
  position: relative;
  background: var(--hero-bg);
  overflow: hidden;
}
.hero-grain {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
}
.hero-shell {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
  min-height: clamp(520px, 78vh, 760px);
  padding-block: clamp(40px, 5vw, 72px);
}
.hero-copy { max-width: 32rem; }
.hero-eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 16px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.125rem, 4.5vw, 2.875rem);
  font-weight: 300; line-height: 1.22; letter-spacing: -0.01em;
  color: var(--text-dark); margin-bottom: 16px;
}
.hero-sub {
  font-size: 14px; line-height: 1.7; color: var(--muted);
  max-width: 38ch; margin-bottom: 20px;
}
.hero-badges {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 24px;
}
.hero-badge {
  display: inline-block;
  padding: 6px 12px;
  font-size: 10px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(35, 35, 44, 0.12);
  border-radius: 999px;
}
.btn-shop {
  display: inline-block; padding: 14px 36px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-dark); background: transparent;
  border: 2px solid var(--white); box-shadow: 0 0 0 2px var(--text-dark);
  transition: background 0.3s, color 0.3s;
}
.btn-shop:hover { background: var(--text-dark); color: var(--white); }
.hero-figure {
  margin: 0; display: flex; align-items: center; justify-content: center;
}
.hero-figure img {
  width: 100%; max-width: 560px; max-height: min(62vh, 540px);
  object-fit: contain; object-position: center;
  filter: drop-shadow(0 28px 56px rgba(0, 0, 0, 0.08));
}

/* Value strip */
.value-strip {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding-block: 28px;
}
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 3vw, 32px);
}
.value-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 8px 0;
}
.value-icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600; color: var(--text);
  border: 1px solid var(--border); border-radius: 50%;
}
.value-item strong {
  display: block; font-size: 13px; font-weight: 600; color: var(--text);
  margin-bottom: 4px; line-height: 1.3;
}
.value-item span { font-size: 12px; line-height: 1.5; color: var(--muted); }

/* Line hover */
.line-hover {
  position: relative; display: inline-block;
  font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  padding-bottom: 4px;
}
.line-hover::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease);
}
a:hover .line-hover::after, .line-hover:hover::after, .category-banner:hover .line-hover::after { transform: scaleX(1); }

/* Categories full bleed */
.categories { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.category-banner {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 4 / 5; min-height: 400px;
}
.category-banner img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.65s var(--ease);
}
.category-banner:hover img { transform: scale(1.045); }
.category-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start;
  padding: clamp(24px, 4vw, 36px);
  background: linear-gradient(to top, rgba(0,0,0,.68) 0%, rgba(0,0,0,.28) 42%, transparent 70%);
  color: var(--white);
}
.category-meta {
  font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  opacity: 0.85; margin-bottom: 8px;
}
.category-title {
  font-size: clamp(1rem, 1.7vw, 1.2rem); font-weight: 500; line-height: 1.4;
  margin-bottom: 6px; max-width: 20ch;
}
.category-sub {
  font-size: 12px; line-height: 1.5; opacity: 0.9; margin-bottom: 14px; max-width: 28ch;
}
.category-overlay .line-hover { color: var(--white); }

/* Craft section */
.craft-section {
  padding: 72px 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.craft-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.craft-media {
  margin: 0;
  background: var(--hero-bg);
  border: 1px solid var(--border);
  aspect-ratio: 4/5;
  overflow: hidden;
}
.craft-media img {
  width: 100%; height: 100%; object-fit: cover;
}
.craft-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 400; line-height: 1.25;
  color: var(--text-dark); margin-bottom: 14px;
}
.craft-lead {
  font-size: 14px; line-height: 1.7; color: var(--muted);
  margin-bottom: 24px; max-width: 44ch;
}
.craft-specs {
  list-style: none;
  display: flex; flex-direction: column; gap: 12px;
  margin-bottom: 28px;
}
.craft-specs li {
  font-size: 13px; line-height: 1.55; color: var(--muted);
  padding-left: 16px; position: relative;
}
.craft-specs li::before {
  content: ''; position: absolute; left: 0; top: 0.65em;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--text);
}
.craft-specs strong { color: var(--text); font-weight: 600; }
.craft-link { color: var(--text); }

/* Products — rail-contained grid with gaps */
.section-kicker {
  font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 8px;
}
.section-kicker--center { text-align: center; }
.product-section { padding: 64px 0; background: var(--white); }
.product-section--alt { background: #fafafa; border-top: 1px solid var(--border); }
.product-section-head {
  margin-bottom: 32px;
  text-align: center;
}
.section-title {
  font-size: clamp(1.5rem, 2.4vw, 1.875rem);
  font-weight: 500; color: var(--text); margin-bottom: 8px; line-height: 1.25;
}
.section-sub { font-size: 14px; color: var(--muted); max-width: 46ch; margin-inline: auto; }
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 2vw, 20px);
}
.product-cell {
  position: relative; margin: 0; overflow: hidden;
  background: var(--hero-bg);
  border: 1px solid var(--border);
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}
.product-cell:hover {
  box-shadow: 0 20px 48px rgba(35, 35, 44, 0.12);
}
.product-cell img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  transition: transform 0.55s var(--ease);
}
.product-cell:hover img { transform: scale(1.035); }
.product-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 18px 20px;
  background: linear-gradient(to top, rgba(35,35,44,.94) 0%, rgba(35,35,44,0) 100%);
  color: var(--white);
  display: flex; flex-direction: column; gap: 3px;
}
.product-tag {
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.8;
}
.product-name { font-size: 13px; font-weight: 600; }
.product-spec { font-size: 11px; opacity: 0.82; line-height: 1.4; }
.product-price, .product-detail { font-size: 12px; font-weight: 500; opacity: 0.95; margin-top: 2px; }

/* Press strip */
.press-strip {
  padding: 48px 0;
  background: var(--text-dark);
  color: rgba(255, 255, 255, 0.72);
}
.press-inner {
  display: grid;
  grid-template-columns: auto 1px minmax(0, 1.4fr) 1px auto;
  align-items: center;
  gap: clamp(20px, 4vw, 40px);
}
.press-stat { text-align: center; min-width: 120px; }
.press-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 400; color: var(--white);
  line-height: 1.1; margin-bottom: 6px;
}
.press-stat span { font-size: 11px; letter-spacing: 0.06em; line-height: 1.45; }
.press-divider { width: 1px; height: 48px; background: rgba(255,255,255,0.15); }
.press-quote { margin: 0; }
.press-quote p {
  font-size: 15px; font-style: italic; line-height: 1.55;
  color: rgba(255,255,255,0.88); margin-bottom: 8px;
}
.press-quote cite { font-size: 11px; font-style: normal; letter-spacing: 0.04em; opacity: 0.65; }

/* Blog */
.blog-section { padding: 72px 0 88px; background: #fafafa; border-top: 1px solid var(--border); }
.blog-heading {
  text-align: center; font-size: clamp(1.75rem, 2.8vw, 2rem);
  font-weight: 500; color: var(--text); margin-bottom: 10px;
}
.blog-intro {
  text-align: center; font-size: 14px; color: var(--muted);
  max-width: 48ch; margin: 0 auto 40px; line-height: 1.6;
}
.blog-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 28px);
}
.blog-card {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--border);
  transition: box-shadow 0.3s, border-color 0.3s;
}
.blog-card:hover {
  border-color: #d4d4d8;
  box-shadow: 0 16px 40px rgba(35, 35, 44, 0.07);
}
.blog-thumb { display: block; overflow: hidden; aspect-ratio: 16/10; background: var(--hero-bg); }
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.55s; }
.blog-card:hover .blog-thumb img { transform: scale(1.04); }
.blog-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 24px; }
.blog-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px;
  font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 10px;
}
.blog-meta time::after { content: '·'; margin-left: 10px; opacity: 0.5; }
.blog-category::after { content: '·'; margin-left: 10px; opacity: 0.5; }
.blog-read { color: var(--muted); }
.blog-title {
  font-size: 17px; font-weight: 500; line-height: 1.45;
  color: var(--text); margin-bottom: 10px;
}
.blog-title a { transition: color 0.2s; }
.blog-title a:hover { color: var(--hover); }
.blog-excerpt { flex: 1; margin-bottom: 16px; font-size: 13px; line-height: 1.65; }
.blog-card .line-hover { align-self: flex-start; color: var(--text); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--white);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: clamp(24px, 4vw, 48px);
  padding: 48px 0 40px;
}
.footer-brand img { height: 28px; width: auto; margin-bottom: 14px; }
.footer-brand p { font-size: 13px; line-height: 1.65; max-width: 28ch; }
.footer-col h3 {
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text); margin-bottom: 14px;
}
.footer-col a, .footer-col p {
  display: block; font-size: 13px; line-height: 1.5;
  color: var(--muted); margin-bottom: 8px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--hover); }
.footer-social { display: flex; gap: 12px; margin-top: 12px; }
.footer-social a { opacity: 0.75; transition: opacity 0.2s; margin-bottom: 0; }
.footer-social a:hover { opacity: 1; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-block: 20px;
  border-top: 1px solid var(--border);
  font-size: 12px; color: var(--muted);
}
.footer-legal { display: flex; gap: 20px; }
.footer-legal a:hover { color: var(--hover); }

.back-link {
  position: fixed; bottom: 20px; left: 20px; z-index: 300;
  font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text); background: var(--white); border: 1px solid #ddd;
  border-radius: 4px; padding: 9px 14px;
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
}

@media (max-width: 1024px) {
  .hero-shell { grid-template-columns: 1fr; min-height: auto; padding-block: 40px 48px; }
  .hero-copy { max-width: none; text-align: center; margin-inline: auto; }
  .hero-sub { margin-inline: auto; }
  .hero-badges { justify-content: center; }
  .hero-figure { order: -1; }
  .hero-figure img { max-height: 46vh; }
  .value-grid { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
  .craft-grid { grid-template-columns: 1fr; }
  .craft-media { aspect-ratio: 16/10; max-height: 360px; }
  .press-inner { grid-template-columns: 1fr; text-align: center; }
  .press-divider { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --header-h: 64px; }
  .header-inner { grid-template-columns: 1fr auto; }
  .header-nav--left, .header-links, .header-icons { display: none; }
  .header-logo { justify-self: start; }
  .burger { display: flex; }
  .categories { grid-template-columns: 1fr; }
  .category-banner { aspect-ratio: 16/10; min-height: 260px; }
  .product-grid { grid-template-columns: 1fr; }
  .product-cell img { aspect-ratio: 4/3; }
  .blog-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

@media (min-width: 1280px) {
  .category-banner { min-height: 500px; }
}

/* ── Motion · pass 4 ── */

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes heroShimmer {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.55; }
}

.anim-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.anim-item.vis { opacity: 1; transform: none; }

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.reveal.vis { opacity: 1; transform: none; }

.stagger-group > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.stagger-group > *.vis { opacity: 1; transform: none; }

.category-banner {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.category-banner.vis { opacity: 1; transform: none; }

.hero-figure img {
  transition: transform 0.5s var(--ease);
}

.marquee-band {
  overflow: hidden;
  background: var(--text-dark);
  padding: 12px 0;
}
.marquee-track {
  display: flex; align-items: center; gap: 28px;
  width: max-content;
  animation: marqueeScroll 24s linear infinite;
  font-size: 10px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  white-space: nowrap;
}
.marquee-track span:nth-child(even) { opacity: 0.35; }

.scroll-progress {
  position: fixed; top: calc(var(--ribbon-h) + var(--trust-h)); left: 0; right: 0;
  height: 2px; z-index: 250;
  background: var(--text-dark);
  transform-origin: left;
  transform: scaleX(0);
  pointer-events: none;
}

.craft-media img {
  transition: transform 0.8s var(--ease);
}
.craft-section.vis .craft-media img {
  animation: none;
}
.reveal.vis .craft-media:hover img {
  transform: scale(1.04);
}

@media (prefers-reduced-motion: reduce) {
  .anim-item, .reveal, .stagger-group > *, .category-banner, .marquee-track {
    animation: none !important; transition: none !important;
    opacity: 1 !important; transform: none !important;
  }
}
