/* Hands & Craft — shared CSS for modal, gate, SKU detail, toast, polish */

/* ---------- Scroll reveal ---------- */
.js-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s cubic-bezier(0.22,0.61,0.36,1), transform 0.9s cubic-bezier(0.22,0.61,0.36,1);
}
.js-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.js-reveal-delay-1 { transition-delay: 0.08s; }
.js-reveal-delay-2 { transition-delay: 0.16s; }
.js-reveal-delay-3 { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  .js-reveal { transition: none; transform: none; opacity: 1; }
}

/* ---------- Toast ---------- */
.hc-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translate(-50%, 40px);
  background: #1a1715;
  color: #fafaf7;
  padding: 16px 28px;
  border-radius: 4px;
  box-shadow: 0 20px 48px rgba(0,0,0,0.32);
  font-size: 14px;
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
  font-weight: 500;
  letter-spacing: 0.02em;
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.32s ease, transform 0.32s cubic-bezier(0.22,0.61,0.36,1);
  pointer-events: none;
  max-width: calc(100vw - 32px);
}
.hc-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.hc-toast-success { border-left: 3px solid #5be888; padding-left: 25px; }
.hc-toast-error { border-left: 3px solid #ef5350; padding-left: 25px; }

/* ---------- Modal shell ---------- */
.hc-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}
.hc-modal.is-open { display: flex; animation: hcFade 0.28s ease; }
@keyframes hcFade { from { opacity: 0; } to { opacity: 1; } }

.hc-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 13, 11, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.hc-modal-panel {
  position: relative;
  background: #fafaf7;
  max-width: 620px;
  width: 100%;
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  border-radius: 6px;
  padding: 56px 56px 48px;
  box-shadow: 0 40px 120px rgba(0,0,0,0.35);
  animation: hcRise 0.42s cubic-bezier(0.22,0.61,0.36,1);
}
@keyframes hcRise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

.hc-modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 32px;
  line-height: 1;
  color: #857f77;
  cursor: pointer;
  padding: 8px 12px;
  transition: color 0.15s;
  z-index: 2;
}
.hc-modal-close:hover { color: #1a1715; }

.hc-eyebrow {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #b8860b;
  margin: 0 0 20px;
}

.hc-modal-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 44px;
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  color: #1a1715;
}

.hc-modal-lede {
  font-size: 16px;
  line-height: 1.65;
  color: #4a4540;
  margin: 0 0 28px;
}

/* ---------- Access form ---------- */
.hc-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.hc-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.hc-form-row label,
.hc-form-full {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hc-form label span {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #1a1715;
}
.hc-form input,
.hc-form select,
.hc-form textarea {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
  font-size: 14px;
  padding: 12px 14px;
  border: 1px solid #e4ddd1;
  border-radius: 4px;
  background: #fff;
  color: #1a1715;
  transition: border-color 0.15s;
  width: 100%;
}
.hc-form input:focus,
.hc-form select:focus,
.hc-form textarea:focus {
  outline: none;
  border-color: #1a1715;
}
.hc-form textarea {
  resize: vertical;
  font-family: inherit;
  min-height: 80px;
}

.hc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 16px 28px;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}
.hc-btn-primary {
  background: #1a1715;
  color: #fafaf7;
}
.hc-btn-primary:hover { background: #b8860b; color: #fafaf7; }
.hc-btn-primary:disabled { opacity: 0.6; cursor: wait; }

.hc-btn-outline {
  background: transparent;
  color: #1a1715;
  border-color: #1a1715;
}
.hc-btn-outline:hover { background: #1a1715; color: #fafaf7; }

.hc-form-note {
  font-size: 12px;
  color: #857f77;
  margin: 8px 0 0;
}

/* ---------- Success state ---------- */
.hc-success { text-align: center; }
.hc-success-mark {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #e8f5e9;
  color: #1b5e20;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.hc-direct {
  padding: 24px;
  background: #f2efe8;
  border: 1px solid #e4ddd1;
  border-radius: 4px;
  margin: 24px 0;
  text-align: left;
}
.hc-direct p { margin: 4px 0; font-size: 15px; }
.hc-direct a { color: #1a1715; font-weight: 500; }

/* ---------- SKU detail modal ---------- */
.hc-sku-panel {
  max-width: 920px;
  padding: 0;
  overflow: hidden;
}
.hc-sku-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 560px;
}
.hc-sku-image {
  background: #f2efe8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px;
}
.hc-sku-image img {
  max-width: 100%;
  max-height: 420px;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.hc-sku-meta {
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hc-sku-meta .hc-eyebrow { margin-bottom: 6px; font-family: 'JetBrains Mono', SF Mono, Menlo, monospace; }
.hc-sku-meta .hc-modal-title { font-size: 30px; margin: 0 0 10px; }
.hc-sku-cats {
  margin: 0 0 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.hc-sku-cats span {
  font-size: 11px;
  color: #8b6508;
  background: rgba(184,134,11,0.1);
  padding: 4px 10px;
  border-radius: 12px;
}
.hc-sku-desc {
  font-size: 15px;
  line-height: 1.65;
  color: #4a4540;
  margin: 0 0 16px;
}
.hc-sku-specs {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 10px 18px;
  margin: 0 0 24px;
  padding: 20px 0;
  border-top: 1px solid #e4ddd1;
  border-bottom: 1px solid #e4ddd1;
  font-size: 13px;
}
.hc-sku-specs dt {
  color: #857f77;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 11px;
}
.hc-sku-specs dd {
  margin: 0;
  color: #1a1715;
  font-weight: 500;
}
.hc-sku-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------- Catalog gate ---------- */
.catalog-card.is-locked {
  filter: blur(12px) grayscale(80%);
  pointer-events: none;
  user-select: none;
}
.hc-gate {
  position: absolute;
  left: 50%;
  top: 62%;
  transform: translate(-50%, -10%);
  width: min(620px, 92vw);
  padding: 56px 48px;
  background: #fafaf7;
  border: 1px solid #e4ddd1;
  border-radius: 8px;
  box-shadow: 0 48px 140px rgba(0,0,0,0.22);
  text-align: center;
  z-index: 10;
}
.hc-gate-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 40px;
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  color: #1a1715;
}
.hc-gate-lede {
  font-size: 16px;
  line-height: 1.65;
  color: #4a4540;
  margin: 0 0 28px;
}
.hc-gate-note {
  font-size: 12px;
  color: #857f77;
  margin: 16px 0 0;
}
.work-grid-section { position: relative; }

/* ---------- Homepage visual polish ---------- */

/* Hero */
.hero-v2 {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  padding: 60px 0;
  border-bottom: 1px solid #e4ddd1;
  position: relative;
  background: #fafaf7;
  overflow: hidden;
}
.hero-v2-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 2;
}
.hero-v2 .hero-eyebrow {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #b8860b;
  font-weight: 500;
  margin: 0 0 36px;
}
.hero-v2 .hero-headline {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(48px, 9vw, 128px);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: -0.03em;
  margin: 0 0 48px;
  color: #1a1715;
}
.hero-v2 .hero-headline em {
  font-style: italic;
  color: #b8860b;
}
.hero-v2 .hero-sub {
  font-size: 20px;
  line-height: 1.55;
  color: #4a4540;
  max-width: 560px;
  margin: 0 0 48px;
}
.hero-v2-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.hero-v2-meta {
  position: absolute;
  bottom: 32px;
  left: 0;
  right: 0;
  padding: 0 32px;
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  gap: 24px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #857f77;
  z-index: 2;
}
.hero-v2-meta span { position: relative; }
.hero-v2-meta span:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -16px;
  top: 50%;
  width: 4px;
  height: 4px;
  background: #b8860b;
  border-radius: 50%;
  transform: translateY(-50%);
}

/* Chapter sections */
.chapter {
  padding: 140px 0;
  border-bottom: 1px solid #e4ddd1;
}
.chapter-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 32px;
}
.chapter-inner-wide {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}
.chapter-eyebrow {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #b8860b;
  margin: 0 0 32px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.chapter-eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: #b8860b;
}
.chapter-heading {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(36px, 5.2vw, 72px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0 0 48px;
  color: #1a1715;
  max-width: 860px;
}
.chapter-heading em { font-style: italic; color: #b8860b; }

.chapter-body {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 22px;
  line-height: 1.6;
  color: #4a4540;
  max-width: 700px;
}
.chapter-body p { margin: 0 0 28px; }
.chapter-body p:last-child { margin-bottom: 0; }
.chapter-body strong { font-weight: 600; color: #1a1715; }

.chapter-split {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
  align-items: flex-start;
}
@media (max-width: 900px) {
  .chapter-split { grid-template-columns: 1fr; gap: 40px; }
}
.chapter-img {
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: 4px;
  background: #f2efe8;
}
.chapter-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Craft sentence */
.craft-sentence {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 400;
  line-height: 1.45;
  color: #1a1715;
  max-width: 980px;
}
.craft-sentence em { font-style: italic; color: #b8860b; }
.craft-sentence span {
  display: inline-block;
  opacity: 0.8;
}

/* Process steps */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-top: 48px;
}
@media (max-width: 900px) {
  .process-steps { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .process-steps { grid-template-columns: 1fr; }
}
.process-step {
  border-top: 1px solid #b8860b;
  padding-top: 24px;
}
.process-step-num {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: #b8860b;
  margin: 0 0 12px;
}
.process-step-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.1;
  color: #1a1715;
  margin: 0 0 12px;
}
.process-step-desc {
  font-size: 14px;
  line-height: 1.65;
  color: #4a4540;
  margin: 0;
}

/* Final invitation */
.invitation {
  padding: 160px 0;
  background: #1a1715;
  color: #fafaf7;
  text-align: center;
}
.invitation-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 32px;
}
.invitation .chapter-eyebrow {
  color: #b8860b;
  justify-content: center;
}
.invitation h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0 0 32px;
  color: #fafaf7;
}
.invitation h2 em { font-style: italic; color: #b8860b; }
.invitation p {
  font-size: 19px;
  line-height: 1.6;
  color: rgba(250,250,247,0.72);
  margin: 0 0 48px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.invitation .hc-btn-primary {
  background: #b8860b;
  color: #1a1715;
  font-size: 16px;
  padding: 20px 40px;
}
.invitation .hc-btn-primary:hover { background: #fafaf7; }

/* Product peek (homepage teaser) */
.peek-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  margin-top: 56px;
}
@media (max-width: 1000px) { .peek-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .peek-grid { grid-template-columns: repeat(2, 1fr); } }
.peek-card {
  aspect-ratio: 1 / 1;
  background: #fafaf7;
  border: 1px solid #e4ddd1;
  border-radius: 4px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}
.peek-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(26,23,21,0.08);
  border-color: #1a1715;
}
.peek-card img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

body.home .cta-final { display: none; }

/* Responsive modal */
@media (max-width: 780px) {
  .hc-modal-panel { padding: 40px 24px 32px; }
  .hc-modal-title { font-size: 32px; }
  .hc-form-row { grid-template-columns: 1fr; }
  .hc-gate { padding: 40px 24px; top: 55%; }
  .hc-gate-title { font-size: 28px; }
  .hc-sku-layout { grid-template-columns: 1fr; }
  .hc-sku-image { min-height: 280px; padding: 40px; }
  .hc-sku-meta { padding: 40px 28px; }
}

/* Placeholder styling */
.image-placeholder {
  background-image:
    repeating-linear-gradient(45deg, transparent, transparent 20px, rgba(184,134,11,0.05) 20px, rgba(184,134,11,0.05) 40px),
    #f2efe8 !important;
}

/* Dark-header logo invert */
.site-header-dark .logo.logo-image img { filter: invert(1) brightness(1.1); }
.logo.logo-image { display: flex; align-items: center; gap: 0; }
.logo.logo-image img { height: 52px; width: auto; display: block; }
