/* ============================================================
   Sweet Basket Club — Stitch Digital Storefront Design System
   ============================================================ */

:root {
  --surface: #fff8f6;
  --surface-container-low: #f9f2f0;
  --surface-container: #f3ecea;
  --surface-container-high: #eee7e5;
  --surface-container-lowest: #ffffff;
  --on-surface: #1d1b1a;
  --on-surface-variant: #544342;
  --outline-variant: #d9c1c0;
  --outline: #877272;
  --primary: #3f040c;
  --primary-container: #5c1a1f;
  --on-primary-container: #dc7f81;
  --on-tertiary-container: #ba953f;
  --tertiary-fixed-dim: #ebc166;
  --wine: #5c1a1f;
  --gold: #c9a24b;
  --cream: #fbf3ea;
  --ink: #1d1b1a;
  --container-margin: clamp(16px, 5vw, 24px);
  --section-gap: clamp(48px, 8vw, 80px);
  --gutter: 16px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --burgundy-shadow: 0 10px 30px -5px rgba(92, 26, 31, 0.12);
  --burgundy-shadow-lg: 0 20px 50px -12px rgba(92, 26, 31, 0.18);
  --gold-glow: 0 0 0 1px rgba(201, 162, 75, 0.35);
  --ease-lux: cubic-bezier(0.22, 1, 0.36, 1);
}

body {
  background: var(--surface);
  color: var(--on-surface);
  position: relative;
}

.grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.035;
  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.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Brand logos & stamp */
.sbc-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  vertical-align: middle;
}

.sbc-logo-wrap--sm {
  margin: 0 auto;
}

.sbc-logo-wrap--footer {
  margin: 0 auto 10px;
}

.sbc-logo-wrap--caption {
  margin: 0 auto 8px;
}

.sbc-logo {
  display: block;
  height: 38px;
  width: auto;
  max-width: min(220px, 55vw);
  border: 0;
  user-select: none;
  pointer-events: none;
  object-fit: contain;
}

.sbc-logo--sm,
.app-bar-logo .sbc-logo,
.sbc-logo-wrap--sm .sbc-logo {
  height: 36px;
  max-width: min(200px, 55vw);
}

.app-bar-mark .sbc-logo {
  height: 36px;
}

.sbc-logo--footer,
.sbc-logo-wrap--footer .sbc-logo {
  height: 48px;
  max-width: min(260px, 78vw);
}

.sbc-logo--caption,
.sbc-logo-wrap--caption .sbc-logo {
  height: 26px;
  max-width: 160px;
}

.sbc-logo--hero {
  height: clamp(52px, 9vw, 80px);
  width: auto;
  max-width: none;
  filter: brightness(0) invert(1) drop-shadow(0 2px 12px rgba(0, 0, 0, 0.3));
}

.stitch-hero-banner-caption .sbc-logo--caption {
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.site-footer .sbc-logo--footer {
  filter: brightness(0) invert(1);
  opacity: 0.88;
}

.sbc-stamp {
  display: block;
  border: 0;
  user-select: none;
  pointer-events: none;
}

.sbc-stamp--corner {
  width: 38px;
  height: 38px;
  object-fit: cover;
  object-position: 50% 48%;
  opacity: 0.88;
}

.sbc-stamp--ring {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 58px;
  height: 58px;
  object-fit: cover;
  object-position: 50% 48%;
  opacity: 0.92;
  z-index: 2;
}

.sbc-stamp--watermark {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 52px;
  height: 52px;
  object-fit: cover;
  object-position: 50% 48%;
  opacity: 0.12;
  z-index: 0;
}

.stitch-cta-stamp {
  width: 76px;
  height: 76px;
  object-fit: cover;
  object-position: 50% 48%;
  margin: 0 auto 20px;
  filter: drop-shadow(0 4px 14px rgba(201, 162, 75, 0.38));
}

.confirmation-stamp {
  width: 68px;
  height: 68px;
  object-fit: cover;
  object-position: 50% 48%;
  margin: 0 auto 18px;
  filter: drop-shadow(0 6px 18px rgba(92, 26, 31, 0.14));
}

.fmark .sbc-logo-wrap--footer {
  margin-bottom: 0;
}

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
  line-height: 1;
}

/* Typography */
.display-lg {
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--primary-container);
}

.display-md {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.5rem, 3.5vw, 1.75rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--primary-container);
}

.headline-sm {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.1rem, 2.5vw, 1.375rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--primary-container);
}

.body-lg {
  font-size: 16px;
  line-height: 1.6;
  color: var(--on-surface-variant);
}

.body-md {
  font-size: 14px;
  line-height: 1.45;
  color: var(--on-surface-variant);
}

.hand-label {
  font-family: 'Caveat', cursive;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--on-tertiary-container);
}

.hand-label--lg { font-size: 1.75rem; }

.hand-sign {
  font-family: 'Caveat', cursive;
  font-size: 1.35rem;
  color: var(--primary-container);
  text-align: right;
  margin-top: 1.5rem;
}

.display-md em,
.display-lg em,
.section-head em {
  font-style: italic;
  font-weight: 500;
  color: var(--gold);
}

/* App bar */
.app-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 248, 246, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--outline-variant);
  transition: box-shadow 0.35s var(--ease-lux), background 0.35s;
}

.app-bar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px var(--container-margin);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.app-bar-mark {
  display: flex;
  align-items: center;
  line-height: 0;
}

.app-bar-mark::before {
  display: none;
}

.app-bar-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  overflow: visible;
  text-transform: none;
  letter-spacing: normal;
  font-size: 0;
}

.app-bar--sub .app-bar-inner {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  text-align: center;
  align-items: center;
  padding: 10px var(--container-margin);
  min-height: 56px;
}

.app-bar-link {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-container);
  border: 1px solid rgba(201, 162, 75, 0.45);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: background 0.3s var(--ease-lux), color 0.3s, border-color 0.3s, transform 0.2s;
}

.app-bar-link:hover {
  background: var(--primary-container);
  color: #fff;
  border-color: var(--primary-container);
  transform: translateY(-1px);
}

.app-bar-back {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-container);
}

.app-bar-title {
  font-family: 'Fraunces', serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-container);
}

.app-bar-spacer { width: 40px; }

.stitch-price {
  font-family: 'Fraunces', serif;
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--primary-container);
}

.site-main,
.stitch-tower-page,
.stitch-confirmation {
  position: relative;
  z-index: 1;
}

/* Utilities */
.paper-texture,
.paper-card {
  background-color: var(--cream);
  background-image: url("https://www.transparenttextures.com/patterns/natural-paper.png");
}

.burgundy-shadow { box-shadow: var(--burgundy-shadow); }

.gold-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  margin-bottom: 24px;
  opacity: 0.65;
  position: relative;
}

.gold-divider::after {
  content: '◆';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 8px;
  color: var(--gold);
  background: var(--surface);
  padding: 0 10px;
  line-height: 1;
}

.stitch-testimonials .gold-divider::after {
  background: var(--surface-container-low);
}

.stitch-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 32px var(--container-margin);
  max-width: 1280px;
  margin: 0 auto;
  color: var(--on-tertiary-container);
  opacity: 0.5;
}

.stitch-divider::before,
.stitch-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--outline-variant);
}

.stitch-divider span { font-size: 10px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 16px 32px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: opacity 0.25s, transform 0.2s;
  text-decoration: none;
}

.btn--primary {
  background: linear-gradient(165deg, #6b2228 0%, var(--primary-container) 55%, #4a1519 100%);
  color: #fff;
  box-shadow: var(--burgundy-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.btn--primary:hover {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: var(--burgundy-shadow-lg);
}
.btn--primary:active { transform: scale(0.98); }
.btn--wide { min-width: 200px; }

.submit-btn {
  border-radius: var(--radius-sm);
  background: var(--primary-container);
  box-shadow: var(--burgundy-shadow);
  letter-spacing: 0.05em;
}

.submit-btn:hover { background: var(--primary); }

.app-bar.is-scrolled {
  box-shadow: 0 4px 24px rgba(92, 26, 31, 0.06);
  background: rgba(255, 248, 246, 0.88);
}

/* Hero */
.stitch-hero {
  position: relative;
  padding-bottom: 56px;
}

.stitch-hero-banner {
  position: relative;
  height: min(72vh, 680px);
  overflow: hidden;
}

.stitch-hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  transform: scale(1.06);
  animation: heroKenBurns 18s var(--ease-lux) infinite alternate;
}

@keyframes heroKenBurns {
  from { transform: scale(1.06); }
  to { transform: scale(1.12); }
}

.stitch-hero-banner-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(31, 10, 12, 0.35) 0%, transparent 28%),
    linear-gradient(to top, rgba(255, 248, 246, 0.92) 0%, transparent 42%);
  pointer-events: none;
}

.stitch-hero-banner-caption {
  position: absolute;
  left: 50%;
  top: min(72vh, 680px);
  transform: translate(-50%, calc(-100% - 20px));
  z-index: 3;
  text-align: center;
  line-height: 0;
  pointer-events: none;
  width: max-content;
  max-width: none;
  overflow: visible;
}

.stitch-hero-banner-caption span {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 248, 246, 0.92);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  line-height: normal;
}

.stitch-hero-letter-wrap {
  padding: 0 var(--container-margin);
  margin-top: -108px;
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.stitch-invite {
  position: relative;
  max-width: 540px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 40px);
  border: 1px solid rgba(201, 162, 75, 0.28);
  box-shadow: var(--burgundy-shadow-lg), var(--gold-glow);
  transition: transform 0.5s var(--ease-lux), box-shadow 0.5s;
}

.hero--open .stitch-invite {
  transform: translateY(-4px);
  box-shadow: 0 28px 60px -16px rgba(92, 26, 31, 0.22), var(--gold-glow);
}

.stitch-invite-corner {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  opacity: 1;
}

.stitch-invite .display-md {
  margin-top: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(217, 193, 192, 0.45);
}

.stitch-invite .body-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.stitch-invite .body-copy p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--on-surface-variant);
}

.hero-scroll-prompt {
  text-align: center;
  margin-top: 36px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
  animation: heroScrollBob 2.4s ease-in-out infinite;
}

.hero-scroll-arrow {
  display: block;
  margin-top: 10px;
  font-size: 1.25rem;
  color: var(--gold);
  text-shadow: 0 0 20px rgba(201, 162, 75, 0.4);
}

@keyframes heroScrollBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

.hero-letter-body {
  position: relative;
}

.hero-letter-body:not([hidden]) {
  animation: letterFadeIn 0.6s var(--ease-lux) both;
}

@keyframes letterFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Envelope (inside invite card) */
.envelope-stage {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.envelope { width: min(100%, 260px); perspective: 900px; }

.envelope-shell {
  position: relative;
  width: 100%;
  aspect-ratio: 320 / 210;
  border-radius: 0 0 10px 10px;
  overflow: hidden;
  filter: drop-shadow(0 10px 24px rgba(92, 26, 31, 0.12));
  transform-style: preserve-3d;
}

.envelope-back {
  position: absolute;
  inset: 0;
  background: linear-gradient(165deg, #efe3d4, #dcc9b3);
}

.envelope-letter-slot {
  position: absolute;
  left: 12%; right: 12%; top: 14%; bottom: 24%;
  background: linear-gradient(180deg, #ebe0d0, #e0d2be);
  z-index: 1;
}

.envelope-face { position: absolute; pointer-events: none; z-index: 3; }
.envelope-face--left {
  left: 0; bottom: 0; width: 50%; height: 100%;
  background: linear-gradient(135deg, #ead9c6, #d9c4ad);
  clip-path: polygon(0 0, 100% 52%, 100% 100%, 0 100%);
}
.envelope-face--right {
  right: 0; bottom: 0; width: 50%; height: 100%;
  background: linear-gradient(225deg, #ead9c6, #d9c4ad);
  clip-path: polygon(0 52%, 100% 0, 100% 100%, 0 100%);
}
.envelope-face--bottom {
  left: 0; right: 0; bottom: 0; height: 100%;
  background: linear-gradient(180deg, #dcc9b0, #c9b092);
  clip-path: polygon(0 56%, 50% 34%, 100% 56%, 100% 100%, 0 100%);
}

.envelope-flap-holder {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 54%;
  z-index: 4;
  transform-origin: top center;
  transform-style: preserve-3d;
}

.envelope-flap {
  width: 100%; height: 100%;
  background: linear-gradient(180deg, #f7efe4, #ead9c6 55%, #e0d0bb);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.wax-seal-wrap {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -38%);
  z-index: 6;
  pointer-events: none;
}

.wax-seal {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  background: transparent;
  box-shadow:
    0 8px 24px rgba(92, 26, 31, 0.28),
    0 0 0 3px rgba(201, 162, 75, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: sealPulse 2.8s ease-in-out infinite;
}

.wax-seal .sbc-stamp {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 48%;
}

.envelope-stage:hover .wax-seal {
  box-shadow:
    0 12px 32px rgba(92, 26, 31, 0.32),
    0 0 0 6px rgba(201, 162, 75, 0.2),
    0 0 0 3px rgba(201, 162, 75, 0.45);
}

@keyframes sealPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.hero-tap-hint {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
}

/* Sections */
.stitch-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--section-gap) var(--container-margin);
}

.stitch-section--narrow { max-width: 640px; }

.stitch-section--collection {
  position: relative;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(201, 162, 75, 0.06) 0%, transparent 55%),
    var(--surface);
}

.section-hand {
  margin-bottom: 8px;
  opacity: 0.9;
}

.section-head { text-align: center; margin-bottom: 44px; }
.section-head-center { text-align: center; margin-bottom: 40px; }
.section-sub {
  margin-top: 10px;
  font-style: italic;
  font-size: 15px;
  color: var(--on-surface-variant);
  opacity: 0.9;
}

.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 32px;
}

.chip {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 9px 18px;
  border: 1px solid rgba(201, 162, 75, 0.45);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--on-surface-variant);
  cursor: pointer;
  transition: all 0.3s var(--ease-lux);
}

.chip.is-active {
  background: var(--primary-container);
  color: #fff;
  border-color: var(--primary-container);
  box-shadow: 0 4px 16px rgba(92, 26, 31, 0.15), 0 0 0 2px rgba(201, 162, 75, 0.35);
  transform: translateY(-1px);
}

.chip:hover {
  background: var(--primary-container);
  color: #fff;
  border-color: var(--primary-container);
  box-shadow: 0 4px 16px rgba(92, 26, 31, 0.15);
  transform: translateY(-1px);
}

/* Tower grid */
.stitch-tower-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.stitch-tower-card {
  color: inherit;
  text-decoration: none;
  display: block;
  transition: transform 0.45s var(--ease-lux);
}

.stitch-tower-card:hover {
  transform: translateY(-6px);
}

.stitch-tower-card-media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  margin-bottom: 18px;
  position: relative;
}

.stitch-tower-card-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(63, 4, 12, 0.35) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.45s;
  z-index: 1;
}

.stitch-tower-card-cta {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translate(-50%, 12px);
  z-index: 2;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  background: rgba(92, 26, 31, 0.75);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.4s var(--ease-lux), transform 0.4s var(--ease-lux);
  pointer-events: none;
}

.stitch-tower-card:hover .stitch-tower-card-cta {
  opacity: 1;
  transform: translate(-50%, 0);
}

.stitch-tower-card:hover .stitch-tower-card-media::after {
  opacity: 1;
}

.stitch-tower-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.85s var(--ease-lux);
}

.stitch-tower-card:hover .stitch-tower-card-media img {
  transform: scale(1.07);
}

.stitch-tower-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--outline-variant);
  transition: border-color 0.3s;
}

.stitch-tower-card:hover .stitch-tower-card-meta {
  border-bottom-color: rgba(201, 162, 75, 0.55);
}

.stitch-tower-card-meta .headline-sm {
  transition: color 0.3s;
}

.stitch-tower-card:hover .stitch-tower-card-meta .headline-sm {
  color: var(--gold);
}

@media (min-width: 768px) {
  .stitch-tower-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Occasions band */
.stitch-occasions {
  background:
    radial-gradient(ellipse at 20% 50%, rgba(201, 162, 75, 0.08) 0%, transparent 50%),
    linear-gradient(135deg, #4a1519 0%, var(--primary-container) 45%, #3f040c 100%);
  color: #fff;
  padding: var(--section-gap) var(--container-margin);
  position: relative;
  overflow: hidden;
}

.stitch-occasions::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("https://www.transparenttextures.com/patterns/natural-paper.png");
  opacity: 0.04;
  pointer-events: none;
}

.stitch-occasions-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.stitch-occasions-title { color: #fff; }

.stitch-occasions-list {
  list-style: none;
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.stitch-occasions-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 12px 14px;
  margin: 0 -14px;
  border-radius: var(--radius-md);
  transition: background 0.35s var(--ease-lux), transform 0.35s var(--ease-lux);
}

.stitch-occasions-item:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateX(4px);
}

.stitch-occasions-item .material-symbols-outlined {
  background: rgba(255,255,255,0.1);
  padding: 8px;
  border-radius: 50%;
  color: var(--on-primary-container);
  transition: background 0.35s, color 0.35s;
}

.stitch-occasions-item:hover .material-symbols-outlined {
  background: rgba(201, 162, 75, 0.25);
  color: var(--tertiary-fixed-dim);
}

.stitch-occasions-item h3 { color: #fff; font-size: 1.125rem; }
.stitch-occasions-item p { opacity: 0.85; font-size: 14px; margin-top: 4px; }
.stitch-occasions-item a {
  color: var(--tertiary-fixed-dim);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, color 0.25s;
}

.stitch-occasions-item a:hover {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.45);
}

.stitch-occasions-visual {
  position: relative;
  aspect-ratio: 1;
  max-width: 400px;
  margin: 0 auto;
}

.stitch-occasions-ring {
  position: absolute;
  inset: 0;
  border: 2px dashed rgba(255,255,255,0.2);
  border-radius: 50%;
  animation: spin 24s linear infinite;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stitch-occasions-ring::after {
  content: '';
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 50%;
}

@keyframes spin { to { transform: rotate(360deg); } }

.stitch-occasions-photo {
  position: absolute;
  inset: 12%;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-md);
  transform: rotate(3deg);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.12);
  transition: transform 0.6s var(--ease-lux);
}

.stitch-occasions-visual:hover .stitch-occasions-photo {
  transform: rotate(1deg) scale(1.02);
}

@media (min-width: 900px) {
  .stitch-occasions-inner { grid-template-columns: 1fr 1fr; }
}

/* Testimonials */
.stitch-testimonials {
  background: var(--surface-container-low);
  padding: var(--section-gap) 0;
}

.polaroid-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 8px var(--container-margin) 24px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(201, 162, 75, 0.45) transparent;
}

.polaroid-track::-webkit-scrollbar { height: 6px; }
.polaroid-track::-webkit-scrollbar-thumb {
  background: rgba(201, 162, 75, 0.45);
  border-radius: 999px;
}

.polaroid {
  flex: 0 0 min(280px, 80vw);
  scroll-snap-align: center;
  background: #fff;
  padding: 12px 12px 40px;
  box-shadow: 0 8px 28px rgba(42, 20, 16, 0.08);
  transform: rotate(-1.2deg);
  border: none;
  transition: transform 0.4s var(--ease-lux), box-shadow 0.4s;
  position: relative;
}

.polaroid::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  width: 52px;
  height: 18px;
  background: rgba(201, 162, 75, 0.25);
  border: 1px solid rgba(201, 162, 75, 0.35);
  opacity: 0.85;
}

.polaroid--alt { transform: rotate(1.8deg) translateY(16px); }
.polaroid--alt::before { transform: translateX(-50%) rotate(3deg); }

.polaroid:hover {
  transform: rotate(0) scale(1.03) translateY(-4px);
  box-shadow: 0 16px 40px rgba(42, 20, 16, 0.12);
}

.polaroid p {
  font-size: 14px;
  font-style: italic;
  line-height: 1.5;
  color: var(--on-surface-variant);
}

.polaroid cite {
  display: block;
  margin-top: 12px;
  font-family: 'Caveat', cursive;
  font-size: 1.15rem;
  font-style: normal;
  color: var(--primary-container);
}

/* FAQ */
.stitch-faq { display: flex; flex-direction: column; gap: 8px; }

.stitch-faq-item {
  border-bottom: 1px solid var(--outline-variant);
  padding-bottom: 16px;
  transition: background 0.3s;
  border-radius: var(--radius-sm);
}

.stitch-faq-item[open] {
  background: rgba(249, 242, 240, 0.65);
  padding: 12px 14px 16px;
  margin: 0 -14px;
}

.stitch-faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  list-style: none;
  font-family: 'Fraunces', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--on-surface);
  gap: 12px;
}

.stitch-faq-item summary::-webkit-details-marker { display: none; }

.stitch-faq-item[open] summary .material-symbols-outlined {
  transform: rotate(180deg);
}

.stitch-faq-item p {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--on-surface-variant);
}

/* CTA */
.stitch-cta {
  padding: 88px var(--container-margin);
  text-align: center;
  border-top: 1px solid var(--outline-variant);
  background-color: var(--cream);
  background-image: url("https://www.transparenttextures.com/patterns/natural-paper.png");
  position: relative;
}

.stitch-cta::before {
  content: '';
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(201, 162, 75, 0.2);
  pointer-events: none;
}

.stitch-cta-inner {
  max-width: 480px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.stitch-cta-icon {
  font-size: 2.75rem;
  color: var(--gold);
  margin-bottom: 20px;
  filter: drop-shadow(0 4px 12px rgba(201, 162, 75, 0.35));
}

.stitch-cta .display-lg { margin-bottom: 28px; }

/* Footer */
.stitch-footer {
  background: var(--surface-container-low);
  border-top: 1px solid var(--outline-variant);
  padding: var(--section-gap) var(--container-margin);
  position: relative;
}

.stitch-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(200px, 40%);
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}

.stitch-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  text-align: center;
}

.stitch-footer-brand p {
  font-size: 14px;
  color: var(--on-surface-variant);
  margin-top: 8px;
}

.stitch-footer-contact {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--on-surface-variant);
}

.stitch-footer-contact a {
  color: var(--primary);
  text-decoration: none;
}

.stitch-footer-contact a:hover {
  text-decoration: underline;
}

.stitch-footer-logo {
  display: inline-block;
  line-height: 0;
}

.stitch-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.stitch-footer-links a {
  font-size: 14px;
  color: var(--on-surface-variant);
  transition: color 0.2s;
}

.stitch-footer-links a:hover { color: var(--primary-container); }

@media (min-width: 768px) {
  .stitch-footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* ---- Tower detail page ---- */
.page-tower--detail {
  --tower-app-bar: 56px;
  --tower-sticky-bar: 88px;
  --tower-viewport-image: calc(100dvh - var(--tower-app-bar) - var(--tower-sticky-bar));
  padding-bottom: var(--tower-sticky-bar);
}

.stitch-sticky-bar--cta .btn {
  text-decoration: none;
}

.stitch-sticky-bar--cta .btn .material-symbols-outlined {
  font-size: 20px;
}

/* ---- Checkout page ---- */
.page-checkout {
  --checkout-sticky-bar: 80px;
  padding-bottom: var(--checkout-sticky-bar);
}

.stitch-checkout-page-wrap {
  max-width: 1280px;
  margin: 0 auto;
}

.stitch-checkout-page {
  padding: 24px var(--container-margin) 48px;
}

.stitch-checkout-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}

.checkout-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
  margin-bottom: 14px;
}

.checkout-summary-card {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: var(--surface-container-low);
  border: 1px solid rgba(201, 162, 75, 0.22);
  border-radius: var(--radius-md);
}

.checkout-summary-media {
  flex-shrink: 0;
  width: 96px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--radius-sm);
  border: 1px solid var(--outline-variant);
}

.checkout-summary-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.checkout-summary-copy {
  flex: 1;
  min-width: 0;
}

.checkout-summary-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.checkout-summary-head .headline-sm {
  font-size: 1.05rem;
  line-height: 1.3;
}

.checkout-summary-head .stitch-price {
  font-size: 1.15rem;
  white-space: nowrap;
}

.checkout-summary-unit {
  margin-top: 6px;
  font-size: 13px;
}

.checkout-secure-note {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
}

.checkout-secure-note .material-symbols-outlined {
  font-size: 16px;
  color: var(--gold);
}

.checkout-payment-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
  padding: 16px 18px;
  background: rgba(92, 26, 31, 0.04);
  border: 1px solid rgba(201, 162, 75, 0.25);
  border-radius: var(--radius-md);
}

.checkout-payment-badge .material-symbols-outlined {
  font-size: 28px;
  color: var(--primary-container);
}

.checkout-payment-badge-title {
  font-family: 'Fraunces', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-container);
  margin-bottom: 2px;
}

.stitch-checkout-main {
  background: var(--surface-container-lowest);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-md);
  padding: 28px 24px;
}

.stitch-checkout-main .stitch-form-block + .stitch-form-block {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--outline-variant);
}

.page-checkout .field input:not([type="checkbox"]),
.page-checkout .field select,
.page-checkout .field textarea {
  background: var(--surface);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-sm);
  padding: 12px;
}

@media (min-width: 900px) {
  .stitch-checkout-layout {
    grid-template-columns: minmax(280px, 340px) 1fr;
    gap: 48px;
  }

  .stitch-checkout-summary {
    position: sticky;
    top: calc(var(--tower-app-bar, 64px) + 16px);
  }
}

/* Test payment (token-gated) */
.page-test-pay {
  min-height: 100dvh;
}

.test-pay-page {
  max-width: 520px;
  margin: 0 auto;
  padding: 32px var(--container-margin) 64px;
}

.test-pay-card {
  background: var(--surface-container-lowest);
  border: 1px solid rgba(201, 162, 75, 0.25);
  border-radius: var(--radius-md);
  padding: 32px 28px;
}

.test-pay-card .confirmation-stamp {
  margin-bottom: 12px;
}

.test-pay-amount {
  margin: 24px 0 28px;
  padding: 16px 20px;
  background: rgba(92, 26, 31, 0.04);
  border-radius: var(--radius-md);
  text-align: center;
}

.test-pay-amount .display-lg {
  margin-top: 4px;
  color: var(--primary-container);
}

.page-test-pay .field input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-sm);
  padding: 12px;
}

.test-pay-form .btn {
  margin-top: 8px;
}

.test-pay-success {
  text-align: center;
  padding: 48px var(--container-margin);
}

.test-pay-success-icon {
  font-size: 3rem;
  color: var(--gold);
  margin-bottom: 12px;
}

/* ---- Tower page (shared) ---- */
.page-tower {
  --tower-app-bar: 56px;
  --tower-sticky-bar: 88px;
  --tower-viewport-image: calc(100dvh - var(--tower-app-bar) - var(--tower-sticky-bar));
  padding-bottom: var(--tower-sticky-bar);
}

.stitch-tower-page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--container-margin) 48px;
}

.stitch-not-found {
  text-align: center;
  padding: 120px var(--container-margin);
}

.stitch-not-found .sbc-logo-wrap--footer {
  margin: 0 auto 24px;
}

.stitch-tower-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.stitch-tower-hero-media {
  max-height: var(--tower-viewport-image);
  height: var(--tower-viewport-image);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-container-low);
}

.stitch-tower-hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 60px rgba(63, 4, 12, 0.05);
  pointer-events: none;
}

.stitch-tower-hero-media img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  transition: transform 8s var(--ease-lux);
}

@media (hover: hover) {
  .stitch-tower-hero:hover .stitch-tower-hero-media img {
    transform: scale(1.02);
  }
}

.gift-note-card {
  background: #fdfbf9;
  border: 1px solid rgba(201, 162, 75, 0.3);
  border-radius: var(--radius-md);
  padding: 24px;
  position: relative;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.gift-note-card::before {
  content: '';
  position: absolute;
  top: 10px;
  right: 14px;
  width: 24px;
  height: 24px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ba953f' opacity='0.2'%3E%3Cpath d='M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z'/%3E%3C/svg%3E") center/contain no-repeat;
  opacity: 0.35;
}

.stitch-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 248, 246, 0.92);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgba(201, 162, 75, 0.25);
  padding: 14px var(--container-margin);
  box-shadow: 0 -8px 32px rgba(92, 26, 31, 0.06);
}

.stitch-tower-hero-copy {
  padding: 24px 0;
  background: rgba(249, 242, 240, 0.5);
}

.breadcrumb {
  display: flex;
  gap: 8px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--on-surface-variant);
  margin-bottom: 16px;
}

.breadcrumb a:hover { color: var(--primary-container); }

.stitch-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(217, 193, 192, 0.4);
}

.stitch-meta-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.stitch-meta-item .material-symbols-outlined {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--gold);
  background: rgba(201, 162, 75, 0.12);
  border-radius: 50%;
  border: 1px solid rgba(201, 162, 75, 0.25);
}

.meta-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--primary-container);
}

.meta-value {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--on-surface-variant);
  margin-top: 4px;
  list-style: none;
}

.meta-value li::before { content: '· '; color: var(--gold); }

.meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin-top: 6px;
}

.meta-tags li {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border: 1px solid var(--outline-variant);
  border-radius: 999px;
}

@media (min-width: 900px) {
  .stitch-tower-hero,
  .page-tower--detail .stitch-tower-hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }

  .stitch-tower-hero-media,
  .page-tower--detail .stitch-tower-hero-media {
    position: sticky;
    top: var(--tower-app-bar);
    max-height: var(--tower-viewport-image);
    height: var(--tower-viewport-image);
    min-height: 0;
  }

  .stitch-tower-hero-copy,
  .page-tower--detail .stitch-tower-hero-copy {
    padding: 40px 32px;
  }
}

/* Checkout form */
.stitch-checkout-section {
  padding: 32px 0 24px;
}

.stitch-checkout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.stitch-form-block h2 { margin-bottom: 20px; }

.gift-note-card textarea {
  width: 100%;
  border: none;
  background: transparent;
  font-family: 'Caveat', cursive;
  font-size: 1.35rem;
  line-height: 1.5;
  color: var(--on-surface-variant);
  resize: vertical;
  min-height: 100px;
  outline: none;
}

.gift-note-sign {
  font-family: 'Caveat', cursive;
  text-align: right;
  opacity: 0.6;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--outline-variant);
}

.stitch-logistics-card {
  background: var(--surface-container);
  border-radius: var(--radius-md);
  padding: 24px;
}

.logistics-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
  margin-bottom: 20px;
}

.stitch-callout {
  margin-top: 16px;
  padding: 16px;
  background: rgba(92, 26, 31, 0.05);
  border-left: 4px solid var(--primary-container);
  font-size: 13px;
  line-height: 1.55;
  color: var(--on-surface-variant);
}

.stitch-callout strong { color: var(--primary-container); }

.page-tower .field input:not([type="checkbox"]),
.page-tower .field select,
.page-tower .field textarea {
  background: var(--surface);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-sm);
  padding: 12px;
  border-bottom: 1px solid var(--outline-variant);
}

@media (min-width: 768px) {
  .stitch-checkout-grid { grid-template-columns: 1fr 1fr; }
}

.stitch-sticky-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.sticky-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--on-surface-variant);
}

.sticky-amount {
  font-family: 'Fraunces', serif;
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--primary-container);
}

/* Confirmation */
.stitch-confirmation {
  min-height: 100vh;
  background: var(--surface);
  background-image: radial-gradient(#e5ded5 0.5px, transparent 0.5px);
  background-size: 24px 24px;
}

.stitch-confirmation-inner {
  max-width: 560px;
  margin: 0 auto;
  padding: 24px var(--container-margin) 80px;
}

.stitch-confirmation-hero { text-align: center; margin-bottom: 32px; }
.stitch-confirmation-hero .body-lg { margin-top: 12px; }

.stitch-confirmation-hero .display-lg {
  position: relative;
  padding-bottom: 20px;
}

.stitch-confirmation-hero .display-lg::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 48px;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}

.order-id-pill {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  border: 1px solid rgba(201, 162, 75, 0.4);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.06em;
  background: rgba(201, 162, 75, 0.08);
}

.stitch-keepsake-card {
  background: var(--surface-container-low);
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(201, 162, 75, 0.25);
  box-shadow: var(--burgundy-shadow-lg);
  margin-bottom: 32px;
  transform: rotate(-0.5deg);
  transition: transform 0.5s var(--ease-lux);
}

.stitch-keepsake-card:hover {
  transform: rotate(0deg) scale(1.01);
}

.stitch-keepsake-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.stitch-keepsake-card figcaption {
  text-align: center;
  margin-top: 12px;
  color: var(--primary-container);
}

.stitch-artisan-note {
  position: relative;
  padding: 28px 24px;
  border: 2px dashed var(--outline-variant);
  border-radius: var(--radius-md);
  background: var(--surface-container-lowest);
  margin-bottom: 32px;
}

.stitch-artisan-note p {
  font-size: 16px;
  font-style: italic;
  line-height: 1.65;
  margin-top: 12px;
}

.stitch-artisan-note cite {
  display: block;
  margin-top: 16px;
  font-family: 'Caveat', cursive;
  font-size: 1.2rem;
  color: var(--on-tertiary-container);
}

.stitch-delivery-cards .confirmation-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  background: var(--surface-container-lowest);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
}

.stitch-delivery-cards .confirmation-row span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--on-surface-variant);
}

.stitch-confirmation-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
}

/* Legal pages */
.page-legal .app-bar { position: relative; }

.page-legal .legal-page {
  max-width: 640px;
  margin: 0 auto;
  padding: 48px var(--container-margin) 80px;
}

.page-legal .legal-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  color: var(--primary-container);
  margin: 12px 0;
}

.text-link {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-container);
  transition: color 0.25s;
}

.text-link:hover { color: var(--gold); }

@media (prefers-reduced-motion: reduce) {
  .wax-seal { animation: none; }
  .hero-scroll-prompt { animation: none; }
  .hero-letter-body:not([hidden]) { animation: none; }
  .stitch-occasions-ring { animation: none; }
  .stitch-hero-banner img { animation: none; transform: scale(1); }
  .stitch-tower-card:hover { transform: none; }
  .stitch-tower-card-cta { opacity: 1; transform: translate(-50%, 0); }
}
