/* =============================================================================
   Street Jewls - Main Stylesheet
   Premium JDM Parts E-commerce
   ============================================================================= */

/* -----------------------------------------------------------------------------
   CSS Custom Properties (Design Tokens)
   ----------------------------------------------------------------------------- */
:root {
  /* Colors - Dark JDM aesthetic */
  --color-black: #0a0a0a;
  --color-dark: #111;
  --color-dark-alt: #1a1a1a;
  --color-gray-900: #222;
  --color-gray-800: #333;
  --color-gray-700: #444;
  --color-gray-600: #666;
  --color-gray-500: #888;
  --color-gray-400: #aaa;
  --color-gray-300: #ccc;
  --color-white: #fff;
  --color-off-white: #f5f5f5;
  
  /* Accent colors - Martini Racing inspired */
  --color-primary: #dc0000;
  --color-primary-dark: #a00;
  --color-primary-light: #f22;
  --color-accent: #0af;
  --color-accent-dark: #08c;
  
  /* Status colors */
  --color-success: #0c6;
  --color-warning: #fa0;
  --color-error: #f33;
  
  /* Typography */
  --font-display: 'Bebas Neue', 'Oswald', sans-serif;
  --font-heading: 'Bebas Neue', 'Oswald', sans-serif;
  --font-body: 'Barlow', -apple-system, blinkmacsystemfont, sans-serif;
  --font-japanese: 'Noto Sans JP', sans-serif;
  --font-jp: 'Noto Sans JP', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  /* Font sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: 2.5rem;
  --text-5xl: 3.5rem;
  --text-6xl: 5rem;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  
  /* Layout */
  --container-max: 1400px;
  --header-height: 72px;
  
  /* Borders & Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 30%);
  --shadow-md: 0 4px 6px rgb(0 0 0 / 40%);
  --shadow-lg: 0 10px 25px rgb(0 0 0 / 50%);
  --shadow-glow: 0 0 20px rgb(220 0 0 / 30%);
}

/* -----------------------------------------------------------------------------
   Reset & Base
   ----------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-white);
  background-color: var(--color-black);
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* -----------------------------------------------------------------------------
   Layout
   ----------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  padding: var(--space-4xl) 0;
}

.bg-black { background-color: var(--color-black); }
.bg-dark { background-color: var(--color-dark); }
.bg-dark-alt { background-color: var(--color-dark-alt); }
.bg-carbon { background-color: var(--color-gray-900); }
.bg-primary { background-color: var(--color-primary); color: var(--color-white); }

/* -----------------------------------------------------------------------------
   Typography
   ----------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }

.accent {
  color: var(--color-primary);
}

/* -----------------------------------------------------------------------------
   Header
   ----------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: linear-gradient(to bottom, rgb(0 0 0 / 95%), rgb(0 0 0 / 85%));
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgb(255 255 255 / 10%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.logo__text {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  letter-spacing: 0.1em;
  color: var(--color-white);
}

.logo__sub {
  font-family: var(--font-japanese);
  font-size: var(--text-xs);
  color: var(--color-gray-500);
  letter-spacing: 0.05em;
}

.main-nav {
  display: flex;
  gap: var(--space-xl);
}

.nav-link {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  letter-spacing: 0.05em;
  color: var(--color-gray-400);
  text-transform: uppercase;
  position: relative;
  padding: var(--space-sm) 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-white);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  gap: var(--space-md);
}

.header-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  color: var(--color-gray-400);
  transition: all var(--transition-fast);
}

.header-btn:hover {
  color: var(--color-white);
  background: rgb(255 255 255 / 10%);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-white);
  transition: all var(--transition-fast);
}

@media (max-width: 900px) {
  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-dark);
    flex-direction: column;
    padding: var(--space-xl);
    gap: var(--space-lg);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
  }
  
  .main-nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .nav-toggle {
    display: flex;
  }
}

/* -----------------------------------------------------------------------------
   Buttons
   ----------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn--primary:hover {
  background: var(--color-primary-light);
  box-shadow: var(--shadow-glow);
}

.btn--primary:disabled {
  background: var(--color-gray-700);
  cursor: not-allowed;
  box-shadow: none;
}

.btn--secondary {
  background: transparent;
  color: var(--color-white);
  border: 1px solid var(--color-gray-600);
}

.btn--secondary:hover {
  border-color: var(--color-white);
  background: rgb(255 255 255 / 5%);
}

.btn--secondary.active {
  border-color: var(--color-primary);
  background: rgb(220 0 0 / 10%);
  color: var(--color-primary);
}

.btn--lg {
  padding: var(--space-lg) var(--space-2xl);
  font-size: var(--text-xl);
}

/* -----------------------------------------------------------------------------
   Form Elements
   ----------------------------------------------------------------------------- */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-gray-300);
  margin-bottom: var(--space-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  background: var(--color-gray-900);
  border: 1px solid var(--color-gray-700);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgb(220 0 0 / 20%);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-gray-500);
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

/* Contact Form Layout */
.contact-form {
  background: var(--color-dark-alt);
  padding: var(--space-2xl);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-gray-800);
}

.contact-form .btn {
  margin-top: var(--space-md);
}

/* Contact Method */
.contact-method {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--color-dark-alt);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-gray-800);
}

.contact-method__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--color-gray-900);
  border-radius: var(--radius-md);
  color: var(--color-primary);
  flex-shrink: 0;
}

.contact-method__label {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  color: var(--color-white);
  margin-bottom: var(--space-xs);
}

.contact-method__value {
  color: var(--color-gray-400);
  font-size: var(--text-sm);
}

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

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

/* FAQ Mini Section */
.faq-mini {
  margin-top: var(--space-2xl);
}

.faq-mini__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  color: var(--color-white);
  margin-bottom: var(--space-lg);
}

.faq-mini__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.faq-mini__item h3 {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  color: var(--color-primary);
  margin-bottom: var(--space-xs);
}

.faq-mini__item p {
  color: var(--color-gray-400);
  font-size: var(--text-sm);
  line-height: 1.5;
}

/* -----------------------------------------------------------------------------
   Hero Section
   ----------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
}

.hero__bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgb(0 0 0 / 90%) 0%,
    rgb(0 0 0 / 70%) 50%,
    rgb(0 0 0 / 40%) 100%
  );
}

.hero__content {
  position: relative;
  max-width: 600px;
}

.hero__eyebrow {
  font-family: var(--font-japanese);
  font-size: var(--text-lg);
  color: var(--color-primary);
  margin-bottom: var(--space-md);
  letter-spacing: 0.2em;
}

.hero__title {
  font-size: var(--text-6xl);
  margin-bottom: var(--space-xl);
}

.hero__text {
  font-size: var(--text-xl);
  color: var(--color-gray-300);
  margin-bottom: var(--space-2xl);
  max-width: 500px;
}

.hero__cta {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* -----------------------------------------------------------------------------
   Section Headers
   ----------------------------------------------------------------------------- */
.section-header {
  margin-bottom: var(--space-3xl);
}

.section-header--center {
  text-align: center;
}

.section-header__eyebrow {
  font-family: var(--font-japanese);
  font-size: var(--text-sm);
  color: var(--color-primary);
  letter-spacing: 0.2em;
  margin-bottom: var(--space-sm);
}

.section-header__title {
  margin-bottom: var(--space-md);
}

.section-header__subtitle {
  font-size: var(--text-lg);
  color: var(--color-gray-400);
  max-width: 600px;
}

.section-header--center .section-header__subtitle {
  margin: 0 auto;
}

/* -----------------------------------------------------------------------------
   Product Grid
   ----------------------------------------------------------------------------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-xl);
}

/* -----------------------------------------------------------------------------
   Product Card
   ----------------------------------------------------------------------------- */
.product-card {
  background: var(--color-dark);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-base);
  border: 1px solid transparent;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-gray-700);
  box-shadow: var(--shadow-lg);
}

.product-card a {
  display: block;
}

.product-card__image {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--color-gray-900);
  overflow: hidden;
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.product-card:hover .product-card__image img {
  transform: scale(1.05);
}

.product-card__badge {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  padding: var(--space-xs) var(--space-sm);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
}

.product-card__badge--sale {
  background: var(--color-primary);
  color: var(--color-white);
}

.product-card__badge--new {
  background: var(--color-accent);
  color: var(--color-white);
}

.product-card__content {
  padding: var(--space-lg);
}

.product-card__brand {
  font-size: var(--text-xs);
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.product-card__title {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 500;
  text-transform: none;
  color: var(--color-white);
  margin: var(--space-sm) 0;
  line-height: 1.4;
}

.product-card__price {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.product-card__price-current {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-white);
}

.product-card__price-original {
  font-size: var(--text-sm);
  color: var(--color-gray-500);
  text-decoration: line-through;
}

.product-card__stock {
  font-size: var(--text-xs);
  margin-top: var(--space-sm);
}

.product-card__stock--in {
  color: var(--color-success);
}

.product-card__stock--out {
  color: var(--color-gray-500);
}

/* Image placeholder */
.img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: var(--color-gray-800);
  color: var(--color-gray-600);
  font-size: var(--text-sm);
}

/* -----------------------------------------------------------------------------
   Product Detail Page
   ----------------------------------------------------------------------------- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  color: var(--color-gray-500);
}

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

.breadcrumb__sep {
  color: var(--color-gray-700);
}

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  margin-bottom: var(--space-4xl);
}

@media (max-width: 900px) {
  .product-detail {
    grid-template-columns: 1fr;
  }
}

/* Product Gallery */
.product-gallery__main {
  aspect-ratio: 1;
  background: var(--color-dark);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.product-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-gallery__thumbs {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.product-gallery__thumb {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  opacity: 60%;
  transition: all var(--transition-fast);
}

.product-gallery__thumb:hover,
.product-gallery__thumb--active {
  opacity: 1;
  border-color: var(--color-primary);
}

.product-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Product Info */
.product-detail__brand {
  font-size: var(--text-sm);
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.product-detail__title {
  font-size: var(--text-3xl);
  margin: var(--space-sm) 0 var(--space-md);
}

.product-detail__sku {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-gray-500);
}

.product-detail__price {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin: var(--space-xl) 0;
}

.product-detail__price-current {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
}

.product-detail__price-original {
  font-size: var(--text-xl);
  color: var(--color-gray-500);
  text-decoration: line-through;
}

.product-detail__badge--sale {
  padding: var(--space-xs) var(--space-sm);
  background: var(--color-primary);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  border-radius: var(--radius-sm);
}

.product-detail__stock {
  font-size: var(--text-lg);
  margin-bottom: var(--space-xl);
}

.product-detail__stock--in {
  color: var(--color-success);
}

.product-detail__stock--out {
  color: var(--color-gray-500);
}

.product-detail__description {
  margin: var(--space-xl) 0;
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-gray-800);
}

.product-detail__description h2 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-md);
}

.product-detail__description p {
  color: var(--color-gray-300);
  line-height: 1.8;
}

.product-detail__actions {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

/* Product Specifications */
.product-specs {
  padding-top: var(--space-3xl);
  border-top: 1px solid var(--color-gray-800);
}

.product-specs__title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-xl);
}

.product-specs__groups {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-2xl);
}

.product-specs__group-title {
  font-size: var(--text-lg);
  color: var(--color-primary);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--color-gray-800);
}

.product-specs__list {
  display: grid;
  gap: var(--space-sm);
}

.product-specs__item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--color-gray-900);
}

.product-specs__item dt {
  color: var(--color-gray-400);
}

.product-specs__item dd {
  color: var(--color-white);
  font-weight: 500;
}

/* -----------------------------------------------------------------------------
   Value Strip
   ----------------------------------------------------------------------------- */
.value-strip {
  background: var(--color-dark);
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--color-gray-800);
  border-bottom: 1px solid var(--color-gray-800);
}

.value-grid {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: var(--space-xl);
}

.value-strip .container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: var(--space-xl);
}

.value-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  color: var(--color-gray-400);
}

.value-item__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}

.value-item__icon svg {
  width: 24px;
  height: 24px;
}

.value-item__text {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-gray-300);
  line-height: 1.4;
}

.value-item svg {
  color: var(--color-primary);
}

/* -----------------------------------------------------------------------------
   Footer
   ----------------------------------------------------------------------------- */
.site-footer {
  background: var(--color-dark);
  padding: var(--space-4xl) 0 var(--space-xl);
  border-top: 1px solid var(--color-gray-800);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand .logo {
  margin-bottom: var(--space-md);
}

.footer-tagline {
  color: var(--color-gray-500);
  max-width: 300px;
}

.footer-nav h4 {
  font-size: var(--text-base);
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

.footer-nav ul {
  list-style: none;
}

.footer-nav a {
  display: block;
  padding: var(--space-xs) 0;
  color: var(--color-gray-500);
  font-size: var(--text-sm);
}

.footer-nav a:hover {
  color: var(--color-white);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-gray-800);
  font-size: var(--text-sm);
  color: var(--color-gray-500);
}

.footer-legal a {
  margin: 0 var(--space-sm);
}

.footer-legal a:hover {
  color: var(--color-white);
}

.social-links {
  display: flex;
  gap: var(--space-md);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-gray-800);
  color: var(--color-gray-400);
  transition: all var(--transition-fast);
}

.social-link:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

/* -----------------------------------------------------------------------------
   Filter Buttons
   ----------------------------------------------------------------------------- */
.filter-btn {
  font-size: var(--text-sm);
  padding: var(--space-sm) var(--space-lg);
}

.filter-btn.active,
.filter-btn[aria-pressed="true"] {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

/* -----------------------------------------------------------------------------
   Animations
   ----------------------------------------------------------------------------- */
/* Scroll Animations - content visible by default */
[data-animate] {
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].will-animate {
  opacity: 0;
  transform: translateY(20px);
}

[data-animate].animated {
  opacity: 1;
  transform: translateY(0);
}

/* Fog Reveal Animation */
.fog-text {
  opacity: 0;
}

.fog-text--active {
  opacity: 1;
}

.fog-word {
  display: inline;
  opacity: 0;
  filter: blur(8px);
  animation: fogReveal 0.8s ease forwards;
}

@keyframes fogReveal {
  0% {
    opacity: 0;
    filter: blur(8px);
    transform: translateY(10px);
  }

  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

/* Story Section Styling */
.story-section {
  padding: var(--space-4xl) 0;
  overflow: hidden;
}

.story {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-2xl);
}

.story__accent {
  position: absolute;
  top: -80px;
  right: -60px;
  font-family: var(--font-jp);
  font-size: clamp(6rem, 20vw, 16rem);
  color: var(--color-gray-900);
  pointer-events: none;
  user-select: none;
  z-index: 0;
  opacity: 0.5;
  line-height: 1;
}

.story__block {
  position: relative;
  z-index: 1;
  margin-bottom: var(--space-3xl);
}

.story__block--opening {
  margin-bottom: var(--space-2xl);
}

.story__block--indent-right {
  padding-left: var(--space-3xl);
  border-left: 2px solid var(--color-gray-800);
}

.story__block--indent-left {
  padding-right: var(--space-3xl);
  text-align: right;
  border-right: 2px solid var(--color-gray-800);
}

.story__opening {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 3rem);
  line-height: 1.2;
  color: var(--color-white);
  letter-spacing: 0.02em;
}

.story__body {
  font-size: var(--text-lg);
  line-height: 1.9;
  color: var(--color-gray-300);
}

.story__divider {
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), transparent);
  margin: var(--space-3xl) 0;
}

.story__signature {
  display: flex;
  justify-content: center;
  gap: var(--space-2xl);
  margin-top: var(--space-4xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-gray-800);
}

.story__year,
.story__location {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-gray-500);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

/* -----------------------------------------------------------------------------
   Slideshow
   ----------------------------------------------------------------------------- */
.slideshow-section {
  padding: var(--space-2xl) 0;
}

.slideshow-section .slideshow {
  max-width: 1400px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
}

@media (min-width: 768px) {
  .slideshow-section .slideshow {
    margin-left: var(--space-xl);
    margin-right: var(--space-xl);
  }
}

@media (min-width: 1200px) {
  .slideshow-section .slideshow {
    margin-left: auto;
    margin-right: auto;
  }
}

.slideshow {
  position: relative;
  overflow: hidden;
  background: var(--color-black);
}

.slideshow--immersive {
  height: 70vh;
  min-height: 450px;
  max-height: 700px;
}

.slideshow__track {
  position: relative;
  width: 100%;
  height: 100%;
}

.slideshow__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.slideshow__slide--active {
  opacity: 1;
  z-index: 1;
}

.slideshow__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slideshow__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-3xl) var(--space-2xl);
  background: linear-gradient(to top, rgb(0 0 0 / 80%) 0%, transparent 100%);
  z-index: 2;
  pointer-events: none;
}

.slideshow__overlay * {
  pointer-events: auto;
}

.slideshow__header {
  max-width: var(--container-max);
  margin: 0 auto;
}

.slideshow__eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-sm);
}

.slideshow__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4rem);
  color: var(--color-white);
  margin: 0;
}

/* Slideshow Controls */
.slideshow__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgb(0 0 0 / 60%);
  border: 1px solid rgb(255 255 255 / 20%);
  border-radius: 50%;
  color: var(--color-white);
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.slideshow__btn:hover {
  background: rgb(0 0 0 / 90%);
  border-color: rgb(255 255 255 / 40%);
  transform: translateY(-50%) scale(1.05);
}

.slideshow__btn--prev {
  left: var(--space-lg);
}

.slideshow__btn--next {
  right: var(--space-md);
}

/* Bottom Bar */
.slideshow__bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-sm) var(--space-xl);
  background: rgb(0 0 0 / 60%);
  z-index: 3;
}

.slideshow__counter {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-white);
  min-width: 60px;
}

.slideshow__progress {
  flex: 1;
  height: 2px;
  background: rgb(255 255 255 / 20%);
  border-radius: 1px;
  overflow: hidden;
}

.slideshow__progress-bar {
  height: 100%;
  width: 0;
  background: var(--color-primary);
}

.slideshow__fullscreen,
.slideshow__hd {
  background: none;
  border: none;
  color: var(--color-white);
  cursor: pointer;
  padding: var(--space-xs);
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.slideshow__fullscreen:hover,
.slideshow__hd:hover {
  opacity: 1;
}

.slideshow__hd {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  background: rgb(0 0 0 / 50%);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  z-index: 10;
  border: 1px solid rgb(255 255 255 / 20%);
  transition: all 0.2s ease;
}

.slideshow__hd:hover {
  background: rgb(0 0 0 / 80%);
  border-color: var(--color-primary);
}

.slideshow__hd--active {
  background: var(--color-primary);
  color: var(--color-black);
  border-color: var(--color-primary);
}

.slideshow__hd--loading {
  pointer-events: none;
  min-width: 48px;
}

/* HD Loading Overlay */
.slideshow__hd-loader {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgb(0 0 0 / 70%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 5;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.slideshow__hd-loader--active {
  opacity: 1;
}

.slideshow__hd-percent {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 8vw, 5rem);
  font-weight: 600;
  color: var(--color-white);
  letter-spacing: 0.05em;
}

.slideshow__hd-label {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: rgb(255 255 255 / 60%);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-top: var(--space-sm);
}

/* Scanner Bar Effect */
.slideshow__scanner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgb(255 255 255 / 30%) 20%,
    var(--color-white) 50%,
    rgb(255 255 255 / 30%) 80%,
    transparent 100%
  );
  box-shadow: 
    0 0 20px rgb(255 255 255 / 80%),
    0 0 60px rgb(255 255 255 / 40%);
  z-index: 6;
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;
}

.slideshow__scanner--active {
  opacity: 1;
  animation: none;
}

/* Slideshow Placeholder */
.slideshow__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-3xl);
  background: var(--color-gray-900);
  color: var(--color-gray-500);
  text-align: center;
  height: 100%;
}

.slideshow__placeholder code {
  font-family: var(--font-mono);
  background: var(--color-gray-800);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  margin: var(--space-md) 0;
}

/* -----------------------------------------------------------------------------
   Category Grid
   ----------------------------------------------------------------------------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-md);
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 500px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl) var(--space-md);
  background: var(--color-gray-900);
  border: 1px solid var(--color-gray-800);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all 0.3s ease;
}

.category-card:hover {
  background: var(--color-gray-800);
  border-color: var(--color-primary);
  transform: translateY(-4px);
}

.category-card__icon {
  font-family: var(--font-japanese);
  font-size: var(--text-4xl);
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.category-card__title {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Merchandise Category Grid - Larger, Centered */
.category-grid--merch {
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.category-grid--merch .category-card {
  min-width: 200px;
  min-height: 200px;
  padding: var(--space-2xl);
}

.category-grid--merch .category-card__icon {
  font-size: var(--text-5xl);
  margin-bottom: var(--space-md);
}

.category-grid--merch .category-card__title {
  font-size: var(--text-base);
}

/* -----------------------------------------------------------------------------
   Quote Section
   ----------------------------------------------------------------------------- */
.quote-section {
  padding: var(--space-3xl) 0;
}

.quote-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .quote-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
}

.quote-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.quote-image img {
  width: 100%;
  height: auto;
  display: block;
}

.quote-image__overlay {
  position: absolute;
  bottom: var(--space-md);
  right: var(--space-md);
  font-family: var(--font-japanese);
  font-size: var(--text-5xl);
  color: rgb(255 255 255 / 10%);
  pointer-events: none;
}

.quote-text {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.4;
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

.quote-japanese {
  font-family: var(--font-japanese);
  font-size: var(--text-base);
  color: var(--color-gray-400);
  margin-bottom: var(--space-lg);
}

.quote-attribution {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.quote-author {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-white);
}

.quote-title {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-gray-500);
}

/* -----------------------------------------------------------------------------
   Jewls Gallery
   ----------------------------------------------------------------------------- */
.jewls-gallery {
  padding: var(--space-3xl) 0;
}

.jewls-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

@media (min-width: 768px) {
  .jewls-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .jewls-card--featured {
    grid-column: span 2;
    grid-row: span 2;
  }
}

.jewls-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--color-gray-900);
}

.jewls-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.jewls-card:hover img {
  transform: scale(1.05);
}

.jewls-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-lg);
  background: linear-gradient(to top, rgb(0 0 0 / 90%) 0%, transparent 100%);
}

.jewls-card__tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-xs);
}

.jewls-card__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-white);
  margin: 0;
}

.jewls-card__subtitle {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-gray-400);
  margin-top: var(--space-xs);
}

.jewls-card--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--color-gray-700);
  background: transparent;
}

.jewls-card__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: var(--color-gray-500);
}

.jewls-card__empty-icon {
  font-size: var(--text-4xl);
  font-weight: 300;
}

.jewls-card__empty-text {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
}

/* -----------------------------------------------------------------------------
   About Gallery
   ----------------------------------------------------------------------------- */
.about-gallery {
  padding: var(--space-3xl) 0;
}

.about-gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

@media (min-width: 768px) {
  .about-gallery__grid {
    grid-template-columns: 2fr 1fr;
    grid-template-rows: repeat(2, 1fr);
  }
  
  .about-gallery__item--large {
    grid-row: span 2;
  }
}

.about-gallery__item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 0;
}

.about-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.about-gallery__item:hover img {
  transform: scale(1.03);
}

.about-gallery__item figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-lg);
  background: linear-gradient(to top, rgb(0 0 0 / 80%) 0%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.about-gallery__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-white);
}

.about-gallery__jp {
  font-family: var(--font-japanese);
  font-size: var(--text-sm);
  color: var(--color-gray-400);
}

/* -----------------------------------------------------------------------------
   Slideshow Extras
   ----------------------------------------------------------------------------- */
.slideshow__subtitle {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-gray-400);
  margin-top: var(--space-xs);
}

/* -----------------------------------------------------------------------------
   Grid Utilities
   ----------------------------------------------------------------------------- */
.grid {
  display: grid;
  gap: var(--space-lg);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 768px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* -----------------------------------------------------------------------------
   Utilities
   ----------------------------------------------------------------------------- */
.text-center { text-align: center; }
.text-muted { color: var(--color-gray-400); }
.mt-xl { margin-top: var(--space-xl); }
.mb-xl { margin-bottom: var(--space-xl); }
