/* ==========================================================================
   Tribe Yahudah — Minimalist Luxury Editorial Stylesheet
   Inspired by Yeezy, SKIMS & raw architectural minimalism.
   ========================================================================== */

:root {
  --bg: #f6f5f1;
  --bg-elevated: #eceae3;
  --bg-card: #efede7;
  --bg-glass: rgba(246, 245, 241, 0.78);
  --ink: #111110;
  --ink-soft: #4a4945;
  --ink-muted: #8a8780;
  --line: rgba(17, 17, 16, 0.13);
  --line-strong: rgba(17, 17, 16, 0.28);
  --accent-bg: #111110;
  --accent-ink: #f6f5f1;
  --shadow-soft: 0 28px 60px rgba(17, 17, 16, 0.08);
  --product-shadow: drop-shadow(0 28px 40px rgba(17, 17, 16, 0.16));
  --spotlight-glow: radial-gradient(circle, rgba(255, 255, 255, 0.92) 0%, rgba(235, 232, 224, 0.45) 42%, rgba(246, 245, 241, 0) 72%);
  --spotlight-floor: radial-gradient(ellipse at center, rgba(17, 17, 16, 0.12) 0%, rgba(17, 17, 16, 0) 70%);

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --font-serif: "Cormorant Garamond", Georgia, serif;

  --ease-fluid: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-snappy: cubic-bezier(0.16, 1, 0.3, 1);
  --rail-width: 240px;
}

[data-theme="dark"] {
  --bg: #0b0b0a;
  --bg-elevated: #141412;
  --bg-card: #161614;
  --bg-glass: rgba(11, 11, 10, 0.78);
  --ink: #f4f2ec;
  --ink-soft: #b8b5ad;
  --ink-muted: #6f6d66;
  --line: rgba(244, 242, 236, 0.14);
  --line-strong: rgba(244, 242, 236, 0.32);
  --accent-bg: #f4f2ec;
  --accent-ink: #0b0b0a;
  --shadow-soft: 0 30px 70px rgba(0, 0, 0, 0.45);
  --product-shadow: drop-shadow(0 28px 46px rgba(0, 0, 0, 0.65));
  --spotlight-glow: radial-gradient(circle, rgba(244, 242, 236, 0.14) 0%, rgba(244, 242, 236, 0.05) 42%, rgba(11, 11, 10, 0) 72%);
  --spotlight-floor: radial-gradient(ellipse at center, rgba(244, 242, 236, 0.1) 0%, rgba(244, 242, 236, 0) 70%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.45s var(--ease-fluid), color 0.45s var(--ease-fluid);
}

body {
  min-height: 100vh;
  background-color: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
  transition: background-color 0.45s var(--ease-fluid), color 0.45s var(--ease-fluid);
}

body.is-locked {
  overflow: hidden;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

.micro-label {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* ==========================================================================
   Floating Utility Controls (Theme, Wishlist, Bag)
   ========================================================================== */

.utility-bar {
  position: fixed;
  top: 22px;
  right: 26px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 8px;
}

.utility-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 13px;
  border: 1px solid var(--line);
  background: var(--bg-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  transition:
    border-color 0.35s var(--ease-fluid),
    background-color 0.35s var(--ease-fluid),
    color 0.35s var(--ease-fluid),
    text-shadow 0.35s var(--ease-fluid),
    transform 0.25s var(--ease-snappy);
}

.utility-btn:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

/* Over the Hero: seamless frameless typography integrated into the photography */
.utility-bar.is-over-hero {
  gap: 16px;
}

.utility-bar.is-over-hero .utility-btn {
  background: transparent;
  border-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 0 4px;
  color: rgba(246, 245, 241, 0.92);
  text-shadow: 0 1px 10px rgba(12, 12, 11, 0.42);
}

.utility-bar.is-over-hero .utility-btn:hover {
  border-color: transparent;
  color: #ffffff;
  opacity: 0.78;
}

.utility-bar.is-over-hero .utility-dot {
  background: rgba(246, 245, 241, 0.92);
  box-shadow: 0 1px 6px rgba(12, 12, 11, 0.35);
}

.utility-bar.is-over-hero .utility-count {
  color: rgba(246, 245, 241, 0.7);
}

.utility-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink);
  transition: transform 0.35s var(--ease-fluid);
}

[data-theme="dark"] .utility-dot {
  box-shadow: inset 2px -1px 0 0 var(--bg);
}

.utility-count {
  font-variant-numeric: tabular-nums;
  color: var(--ink-muted);
}

/* ==========================================================================
   Section 1: Full-Bleed Architectural Hero
   ========================================================================== */

.hero {
  position: relative;
  width: 100%;
  height: 95svh;
  min-height: 580px;
  overflow: hidden;
  background: #141412;
  border-bottom: 1px solid var(--line);
}

.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  transform: scale(1.045);
  animation: heroReveal 1.6s var(--ease-fluid) forwards;
  will-change: transform;
}

@keyframes heroReveal {
  from {
    transform: scale(1.06);
    opacity: 0.85;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(12, 12, 11, 0.34) 0%, rgba(12, 12, 11, 0.12) 12%, rgba(12, 12, 11, 0) 26%),
    linear-gradient(to top, rgba(12, 12, 11, 0.36) 0%, rgba(12, 12, 11, 0) 32%);
  pointer-events: none;
}

.hero-meta {
  position: absolute;
  left: 36px;
  right: 36px;
  bottom: 26px;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.hero-meta .micro-label {
  color: rgba(246, 245, 241, 0.78);
}

/* Right-Center Scroll Indicator: Prominent on load -> smoothly shrinks to minimal */
.scroll-cue {
  position: absolute;
  right: 28px;
  top: 50%;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 14px 10px;
  color: #f6f5f1;
  background: rgba(17, 17, 16, 0.34);
  border: 1px solid rgba(246, 245, 241, 0.24);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transform: translateY(-50%) scale(1);
  transform-origin: right center;
  transition:
    transform 0.9s var(--ease-fluid),
    padding 0.9s var(--ease-fluid),
    gap 0.9s var(--ease-fluid),
    background-color 0.5s ease,
    border-color 0.5s ease,
    opacity 0.45s ease;
}

.scroll-cue.is-prominent {
  transform: translateY(-50%) scale(1.36);
  padding: 20px 14px;
  background: rgba(17, 17, 16, 0.66);
  border-color: rgba(246, 245, 241, 0.62);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.scroll-cue.is-minimal {
  transform: translateY(-50%) scale(0.78);
  padding: 10px 7px;
  gap: 6px;
  opacity: 0.72;
}

.scroll-cue:hover {
  opacity: 1;
  transform: translateY(-50%) scale(0.96);
  border-color: rgba(246, 245, 241, 0.7);
}

.scroll-cue.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.scroll-cue-label {
  writing-mode: vertical-rl;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  transition: opacity 0.6s ease;
}

.scroll-cue-track {
  position: relative;
  width: 1px;
  height: 46px;
  background: rgba(246, 245, 241, 0.28);
  overflow: hidden;
  transition: height 0.8s var(--ease-fluid);
}

.scroll-cue.is-minimal .scroll-cue-track {
  height: 28px;
}

.scroll-cue-runner {
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 55%;
  background: #f6f5f1;
  animation: scrollRunner 1.9s var(--ease-fluid) infinite;
}

@keyframes scrollRunner {
  0% {
    top: -60%;
    opacity: 0;
  }
  25% {
    opacity: 1;
  }
  100% {
    top: 110%;
    opacity: 0;
  }
}

.scroll-cue-arrow {
  width: 12px;
  height: 12px;
}

/* ==========================================================================
   Section 2: Interactive Brand Stage (Home Centered -> Left Sidebar Rail)
   ========================================================================== */

.stage {
  position: relative;
  min-height: 100svh;
  width: 100%;
  background: var(--bg);
}

.stage-shell {
  position: relative;
  min-height: 100svh;
  width: 100%;
  display: flex;
}

/* The Navigation Rail:
   In data-mode="home": spans 100% width, centered logo + vertical nav lockup.
   In data-mode="active": smoothly shrinks to fixed left rail with vertical hairline. */
.nav-rail {
  position: relative;
  z-index: 5;
  flex-shrink: 0;
  width: 100%;
  min-height: 100svh;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: clamp(48px, 8vw, 140px);
  padding: 72px 48px;
  border-right: 1px solid transparent;
  transition:
    width 0.58s var(--ease-fluid),
    padding 0.58s var(--ease-fluid),
    gap 0.58s var(--ease-fluid),
    border-color 0.45s ease;
}

.stage[data-mode="active"] .nav-rail {
  width: var(--rail-width);
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  padding: 40px 28px 34px 36px;
  border-right-color: var(--line);
}

.brand-lockup {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  text-align: left;
  color: var(--ink);
  transition: transform 0.55s var(--ease-fluid), gap 0.55s var(--ease-fluid);
}

.brand-mark {
  display: block;
  width: 68px;
  height: 86px;
  color: var(--ink);
  transition: width 0.55s var(--ease-fluid), height 0.55s var(--ease-fluid);
}

.brand-mark svg {
  width: 100%;
  height: 100%;
  display: block;
}

.brand-wordmark {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: font-size 0.55s var(--ease-fluid), opacity 0.4s ease, max-height 0.45s ease;
}

.stage[data-mode="active"] .brand-lockup {
  gap: 10px;
}

.stage[data-mode="active"] .brand-mark {
  width: 34px;
  height: 43px;
}

.stage[data-mode="active"] .brand-wordmark {
  font-size: 0.625rem;
  letter-spacing: 0.22em;
  color: var(--ink-muted);
}

.brand-lockup:hover .brand-mark {
  opacity: 0.72;
}

/* Primary Navigation Links */
.primary-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  transition: gap 0.5s var(--ease-fluid);
}

.stage[data-mode="active"] .primary-nav {
  gap: 14px;
  margin-block: auto;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-size: 1.45rem;
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--ink-muted);
  padding: 4px 0;
  transition:
    color 0.28s ease,
    font-size 0.52s var(--ease-fluid),
    transform 0.32s var(--ease-snappy),
    gap 0.32s var(--ease-snappy);
}

.stage[data-mode="home"] .nav-link[data-nav="collection"] {
  color: var(--ink);
}

.stage[data-mode="active"] .nav-link {
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-dash {
  display: inline-block;
  width: 0;
  height: 1px;
  background: var(--ink);
  transition: width 0.32s var(--ease-snappy);
}

.nav-link:hover {
  color: var(--ink);
  transform: translateX(4px);
}

.nav-link.is-active {
  color: var(--ink);
  font-weight: 500;
  gap: 10px;
}

.nav-link.is-active .nav-dash {
  width: 14px;
}

.rail-footer {
  display: none;
  opacity: 0;
  transition: opacity 0.45s ease 0.2s;
}

.stage[data-mode="active"] .rail-footer {
  display: block;
  opacity: 1;
}

/* Right Content Pane */
.content-pane {
  flex: 0 0 0;
  width: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transition: opacity 0.45s var(--ease-fluid) 0.14s;
}

.stage[data-mode="active"] .content-pane {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  opacity: 1;
  overflow: visible;
  pointer-events: auto;
}

.view-panel {
  min-height: 100svh;
  padding: clamp(56px, 7vh, 88px) clamp(28px, 5vw, 76px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  animation: panelEnter 0.52s var(--ease-fluid) both;
}

.view-panel[hidden] {
  display: none;
}

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

/* ==========================================================================
   View A: Story (Centered Editorial Presentation)
   ========================================================================== */

.story-layout {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 44px;
}

.story-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.editorial-title {
  margin-top: 14px;
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 4.8vw, 4.1rem);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.story-lead {
  margin-top: 24px;
  font-size: clamp(1.05rem, 1.45vw, 1.25rem);
  line-height: 1.6;
  font-weight: 300;
  color: var(--ink);
  max-width: 58ch;
}

.story-body {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.story-body p {
  font-size: 0.9375rem;
  line-height: 1.78;
  color: var(--ink-soft);
}

.story-pillars {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.pillar-card h3 {
  margin-top: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}

.pillar-card p {
  margin-top: 8px;
  font-size: 0.84rem;
  line-height: 1.65;
  color: var(--ink-muted);
}

/* ==========================================================================
   View B: Collection (Frameless 3D Orbital Wheel with Soft Spotlight Glow)
   ========================================================================== */

.collection-layout {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.collection-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.collection-title {
  margin-top: 8px;
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 3.2vw, 2.7rem);
  font-weight: 400;
  letter-spacing: -0.015em;
}

.wheel-controls {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.wheel-arrow {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  color: var(--ink);
  transition: border-color 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.wheel-arrow:hover {
  border-color: var(--ink);
  background: var(--accent-bg);
  color: var(--accent-ink);
}

.wheel-arrow svg {
  width: 16px;
  height: 16px;
}

.wheel-counter {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  font-variant-numeric: tabular-nums;
  color: var(--ink-muted);
  min-width: 58px;
  text-align: center;
}

/* Frameless 3D Orbital Viewport */
.wheel-viewport {
  position: relative;
  width: 100%;
  height: clamp(410px, 58vh, 560px);
  overflow: visible;
  user-select: none;
  cursor: grab;
  outline: none;
}

.wheel-viewport:active {
  cursor: grabbing;
}

/* Soft radial studio spotlight aura behind the focal item */
.wheel-viewport::before {
  content: "";
  position: absolute;
  top: 48%;
  left: 50%;
  width: clamp(320px, 42vw, 520px);
  height: clamp(320px, 42vw, 520px);
  transform: translate(-50%, -50%);
  background: var(--spotlight-glow);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  transition: background 0.45s ease;
}

.wheel-viewport::after {
  content: "";
  position: absolute;
  bottom: 18px;
  left: 50%;
  width: clamp(220px, 28vw, 360px);
  height: 44px;
  transform: translateX(-50%);
  background: var(--spotlight-floor);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.wheel-track {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

/* Frameless floating product stage — no rectangular box or border */
.wheel-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(270px, 34vw, 410px);
  height: clamp(370px, 52vh, 510px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: transparent;
  border: none;
  box-shadow: none;
  transform-origin: center center;
  will-change: transform, opacity, filter;
  cursor: pointer;
}

.wheel-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  filter: var(--product-shadow);
  transition: transform 0.5s var(--ease-fluid), opacity 0.24s ease;
}

.wheel-card img.is-swapping {
  opacity: 0;
  transform: scale(0.96);
}

.wheel-card[data-spotlight="true"]:hover img {
  transform: scale(1.035);
}

.wheel-card-cta {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translate(-50%, 6px);
  padding: 6px 14px;
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s var(--ease-snappy);
}

.wheel-card[data-spotlight="true"]:hover .wheel-card-cta {
  opacity: 1;
  transform: translate(-50%, 0);
}

.wheel-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.wheel-footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.wheel-angle-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.angle-pill {
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--line);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  transition: border-color 0.25s ease, color 0.25s ease, background-color 0.25s ease;
}

.angle-pill:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.angle-pill.is-active {
  border-color: var(--accent-bg);
  background: var(--accent-bg);
  color: var(--accent-ink);
}

.wheel-active-name {
  margin-top: 6px;
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.wheel-active-sub {
  margin-top: 4px;
  font-size: 0.85rem;
  color: var(--ink-muted);
}

/* ==========================================================================
   View C: Contact Us (Centered Architectural Presentation)
   ========================================================================== */

.contact-layout {
  width: 100%;
  max-width: 940px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 6vw, 84px);
  align-items: center;
}

.contact-lead {
  margin-top: 20px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 44ch;
}

.contact-channels {
  margin-top: 38px;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.channel-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.channel-value {
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--ink);
  text-decoration: none;
  transition: opacity 0.25s ease;
}

.channel-value:hover {
  opacity: 0.62;
}

.channel-note {
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--line);
}

.form-heading {
  margin-bottom: 4px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field span {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  font-size: 0.9rem;
  outline: none;
  resize: vertical;
  transition: border-color 0.25s ease;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--ink);
}

.form-status {
  min-height: 1.2em;
  font-size: 0.8125rem;
  color: var(--ink-soft);
}

/* Shared Buttons */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 24px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: opacity 0.25s ease, background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

.btn-primary {
  background: var(--accent-bg);
  color: var(--accent-ink);
  border: 1px solid var(--accent-bg);
}

.btn-primary:hover {
  opacity: 0.86;
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}

.btn-secondary:hover,
.btn-secondary.is-saved {
  border-color: var(--ink);
  background: var(--bg-elevated);
}

/* ==========================================================================
   Product Detail Focus Overlay (Radial Click-Origin Spread + Blur Backdrop)
   ========================================================================== */

.focus-overlay {
  --origin-x: 50vw;
  --origin-y: 50vh;
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  visibility: hidden;
  clip-path: circle(0% at var(--origin-x) var(--origin-y));
  transition:
    clip-path 0.72s var(--ease-fluid),
    visibility 0s linear 0.72s;
}

.focus-overlay.is-open {
  pointer-events: auto;
  visibility: visible;
  clip-path: circle(155% at var(--origin-x) var(--origin-y));
  transition:
    clip-path 0.78s var(--ease-fluid),
    visibility 0s linear 0s;
}

.focus-backdrop {
  position: absolute;
  inset: 0;
  background: var(--bg-glass);
  backdrop-filter: blur(26px) saturate(1.1);
  -webkit-backdrop-filter: blur(26px) saturate(1.1);
}

.focus-shell {
  position: relative;
  z-index: 2;
  width: min(1160px, 92vw);
  max-height: 90svh;
  overflow-y: auto;
  padding: clamp(28px, 4vw, 52px);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-soft);
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.45s var(--ease-fluid) 0.16s, transform 0.55s var(--ease-fluid) 0.14s;
}

.focus-overlay.is-open .focus-shell {
  opacity: 1;
  transform: scale(1);
}

.focus-close {
  position: absolute;
  top: 22px;
  right: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  color: var(--ink);
  transition: opacity 0.2s ease;
}

.focus-close:hover {
  opacity: 0.6;
}

.close-x {
  font-size: 1.35rem;
  line-height: 1;
}

.focus-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 68px);
  align-items: center;
}

.focus-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.focus-image-stage {
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 60svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--line);
}

.focus-main-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: var(--product-shadow);
  transition: opacity 0.28s ease, transform 0.45s var(--ease-fluid);
}

.focus-main-img.is-swapping {
  opacity: 0;
  transform: scale(0.97);
}

.focus-thumbs {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.thumb-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 8px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  transition: border-color 0.25s ease, color 0.25s ease;
}

.thumb-btn img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.thumb-btn.is-active,
.thumb-btn:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.focus-details {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.focus-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
}

.focus-title {
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 3vw, 2.6rem);
  font-weight: 400;
  line-height: 1.08;
}

.focus-price {
  font-size: 1.15rem;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.focus-subtitle {
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin-top: -8px;
}

.focus-description {
  font-size: 0.9375rem;
  line-height: 1.72;
  color: var(--ink-soft);
}

.focus-specs {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.focus-specs li {
  font-size: 0.82rem;
  color: var(--ink-soft);
  padding-left: 20px;
  position: relative;
}

.focus-specs li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--ink-muted);
}

.focus-size-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.size-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.size-btn {
  min-width: 48px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.size-btn:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.size-btn.is-selected {
  border-color: var(--accent-bg);
  background: var(--accent-bg);
  color: var(--accent-ink);
}

.focus-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 6px;
}

.focus-note {
  margin-top: 4px;
  font-size: 0.625rem;
}

/* ==========================================================================
   Slide-Over Drawer (Bag & Wishlist)
   ========================================================================== */

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(11, 11, 10, 0.42);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.drawer-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 95;
  width: min(420px, 92vw);
  background: var(--bg);
  border-left: 1px solid var(--line-strong);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.45s var(--ease-fluid);
}

.drawer.is-open {
  transform: translateX(0);
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 26px;
  border-bottom: 1px solid var(--line);
}

.drawer-title {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.drawer-close {
  font-size: 1.5rem;
  line-height: 1;
  padding: 4px 8px;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.drawer-empty {
  margin: auto 0;
  text-align: center;
  color: var(--ink-muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

.drawer-item {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.drawer-thumb {
  width: 74px;
  height: 86px;
  padding: 8px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
}

.drawer-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.drawer-item-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
}

.drawer-item-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.drawer-item-name {
  font-size: 0.9rem;
  font-weight: 500;
}

.drawer-item-meta {
  font-size: 0.75rem;
  color: var(--ink-muted);
}

.drawer-item-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
}

.qty-control button {
  width: 28px;
  height: 28px;
  font-size: 0.85rem;
}

.qty-control span {
  min-width: 26px;
  text-align: center;
  font-size: 0.78rem;
}

.link-subtle {
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.link-subtle:hover {
  color: var(--ink);
}

.drawer-foot {
  padding: 22px 26px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.drawer-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.95rem;
}

.checkout-notice {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 960px) {
  .stage-shell {
    flex-direction: column;
  }

  .stage[data-mode="active"] .nav-rail {
    width: 100%;
    min-height: auto;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-right: none;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    background: var(--bg-glass);
    backdrop-filter: blur(14px);
  }

  .stage[data-mode="active"] .primary-nav {
    flex-direction: row;
    gap: 18px;
    margin-block: 0;
  }

  .stage[data-mode="active"] .rail-footer,
  .stage[data-mode="active"] .brand-wordmark {
    display: none;
  }

  .story-body,
  .story-pillars,
  .contact-layout,
  .focus-grid {
    grid-template-columns: 1fr;
  }

  .wheel-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .wheel-footer-right {
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .utility-bar {
    top: 14px;
    right: 14px;
    gap: 6px;
  }

  .utility-btn {
    padding: 0 10px;
    height: 32px;
    font-size: 0.625rem;
  }

  .nav-rail {
    flex-direction: column;
    gap: 40px;
    padding: 48px 24px;
  }

  .brand-lockup {
    align-items: center;
  }

  .primary-nav {
    align-items: center;
  }

  .hero-meta {
    left: 20px;
    right: 20px;
  }

  .scroll-cue {
    right: 14px;
  }

  .focus-actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
