/* ============================================================
   SKEUO — Hyper-Realistic Skeuomorphic Design System
   Real-world materials: leather, wood, metal, glass, linen, plastic.
   Intense specular highlights and heavy drop shadows.
   ============================================================ */

/* ------------------------------------------------------------
   0. DESIGN TOKENS
   ------------------------------------------------------------ */
:root {
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Base — warm parchment */
  --bg: #d4c5a9;
  --bg-secondary: #c4b599;

  /* Card surface — light leather */
  --card-bg: #c9b896;
  --card-bg-nested: #bfb08a;

  /* Text */
  --text: #2c1810;
  --text-secondary: #5a4230;
  --text-tertiary: #8a7560;

  /* Accent — rich leather brown */
  --accent: #8B4513;
  --accent-light: #A0522D;
  --accent-dark: #6B3410;

  /* Material-specific */
  --leather: #8B4513;
  --wood: #5D3A1A;
  --chrome: #C0C0C0;
  --glass: rgba(255, 255, 255, 0.15);
  --linen: #FAF0E6;
  --plastic: #E8E8E8;

  /* Semantic */
  --green: #2E7D32;
  --blue: #1565C0;
  --amber: #F57F17;
  --red: #C62828;

  /* Heavy shadows — the defining feature */
  --shadow-ambient: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-drop: 0 8px 24px rgba(0, 0, 0, 0.25);
  --shadow-heavy: 0 12px 40px rgba(0, 0, 0, 0.35), 0 4px 12px rgba(0, 0, 0, 0.2);
  --shadow-contact: 0 2px 4px rgba(0, 0, 0, 0.15);
  --shadow-raised:
    0 1px 0 rgba(255, 255, 255, 0.4),
    0 2px 0 rgba(255, 255, 255, 0.2),
    0 4px 8px rgba(0, 0, 0, 0.15),
    0 8px 24px rgba(0, 0, 0, 0.2);
  --shadow-pressed:
    inset 0 2px 4px rgba(0, 0, 0, 0.2),
    inset 0 1px 2px rgba(0, 0, 0, 0.15);

  /* Specular — bright white highlights */
  --specular: inset 0 1px 0 rgba(255, 255, 255, 0.5);
  --specular-strong: inset 0 2px 0 rgba(255, 255, 255, 0.6), inset 0 -1px 0 rgba(0, 0, 0, 0.1);

  /* Bevel */
  --bevel-size: 2px;

  /* Layout */
  --nav-height: 64px;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-xs: 6px;
  --radius-full: 9999px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration: 200ms;
}

/* Dark mode */
[data-theme="dark"] {
  --bg: #1a1208;
  --bg-secondary: #221a0e;
  --card-bg: #2a1f12;
  --card-bg-nested: #1e150b;
  --text: #e8d8c4;
  --text-secondary: #b8a890;
  --text-tertiary: #7a6a54;
  --accent: #D2691E;
  --accent-light: #E07020;
  --accent-dark: #A05018;
  --shadow-ambient: 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-drop: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-heavy: 0 12px 40px rgba(0, 0, 0, 0.6), 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-contact: 0 2px 4px rgba(0, 0, 0, 0.4);
  --shadow-raised:
    0 1px 0 rgba(255, 255, 255, 0.08),
    0 2px 0 rgba(255, 255, 255, 0.05),
    0 4px 8px rgba(0, 0, 0, 0.3),
    0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-pressed:
    inset 0 2px 4px rgba(0, 0, 0, 0.4),
    inset 0 1px 2px rgba(0, 0, 0, 0.3);
  --specular: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  --specular-strong: inset 0 2px 0 rgba(255, 255, 255, 0.12), inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}


/* ------------------------------------------------------------
   1. RESET & BASE
   ------------------------------------------------------------ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  /* Linen texture background */
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(0,0,0,0.02) 2px,
      rgba(0,0,0,0.02) 4px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 2px,
      rgba(0,0,0,0.02) 2px,
      rgba(0,0,0,0.02) 4px
    );
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}

[data-theme="dark"] body {
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(255,255,255,0.01) 2px,
      rgba(255,255,255,0.01) 4px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 2px,
      rgba(255,255,255,0.01) 2px,
      rgba(255,255,255,0.01) 4px
    );
}

a { text-decoration: none; color: inherit; }
button { border: none; background: none; cursor: pointer; font-family: inherit; color: inherit; }
ul { list-style: none; }
img, svg { display: block; max-width: 100%; }

::selection { background: var(--accent); color: white; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* Skip link — hidden until focused */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 9999;
  padding: 12px 24px;
  background: var(--accent);
  color: white;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus {
  position: fixed;
  top: 12px;
  left: 16px;
  z-index: 9999;
}

/* High contrast mode support */
@media (forced-colors: active) {
  .sk-card { border: 2px solid ButtonText; }
  .sk-btn { border: 2px solid ButtonText; }
  .nav { border-bottom: 2px solid ButtonText; }
  .nav__link:focus-visible { outline: 2px solid Highlight; }
  .flip-card:focus-visible .flip-card__inner { outline: 2px solid Highlight; }
}

/* Ensure visible focus on all interactive elements */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* Remove default outline only when browser provides :focus-visible */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}

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


/* ------------------------------------------------------------
   2. SHARED SKEUOMORPHIC COMPONENTS
   ------------------------------------------------------------ */

/* Base card — leather/wood textured surface with heavy shadow */
.sk-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-raised);
  border: 1px solid rgba(0, 0, 0, 0.1);
  transition: transform var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease),
              border-color var(--duration) var(--ease);
  position: relative;
  contain: layout style paint;
  /* Leather grain texture overlay */
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
}

/* Bevel — top highlight, bottom shadow */
.sk-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow:
    inset 0 var(--bevel-size) 0 rgba(255, 255, 255, 0.35),
    inset 0 calc(var(--bevel-size) * -1) 0 rgba(0, 0, 0, 0.08);
  z-index: 1;
}

/* Hover: lift + deeper shadow */
.sk-card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.4),
    0 4px 0 rgba(255, 255, 255, 0.2),
    0 8px 16px rgba(0, 0, 0, 0.2),
    0 16px 48px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .sk-card:hover {
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.06),
    0 4px 0 rgba(255, 255, 255, 0.03),
    0 8px 16px rgba(0, 0, 0, 0.4),
    0 16px 48px rgba(0, 0, 0, 0.6);
}

/* Nested card — inset/debossed */
.sk-card--nested {
  background: var(--card-bg-nested);
  box-shadow: var(--shadow-pressed);
  border-color: rgba(0, 0, 0, 0.15);
}

.sk-card--nested::before {
  box-shadow: none;
}

/* Featured card */
.sk-card--featured {
  box-shadow:
    var(--shadow-raised),
    0 0 0 3px var(--accent);
}

/* ------------------------------------------------------------
   MATERIAL TEXTURES
   ------------------------------------------------------------ */

/* Leather texture */
/* Leather — rich grain with visible pores and warm patina */
.sk-card--leather,
.sk-icon--leather,
.sk-avatar--leather {
  background-color: #8B4513;
  background-image:
    /* Fine leather grain — irregular pore pattern */
    url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='2.5' numOctaves='8' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.18'/%3E%3C/svg%3E"),
    /* Larger wrinkle creases */
    url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='turbulence' baseFrequency='0.04 0.08' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E"),
    /* Warm light gradient — simulates overhead lighting on curved leather */
    radial-gradient(ellipse at 30% 20%, rgba(255,200,150,0.2) 0%, transparent 50%),
    linear-gradient(160deg, rgba(255,255,255,0.12) 0%, transparent 35%, rgba(0,0,0,0.12) 100%);
  color: white;
  /* Leather shadow — soft, warm, slightly diffused */
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.2),
    0 2px 0 rgba(255, 255, 255, 0.1),
    0 4px 12px rgba(80, 40, 10, 0.3),
    0 8px 24px rgba(60, 30, 5, 0.2);
}

/* Stitched leather — visible stitch lines near edges */
.sk-card--stitched {
  position: relative;
}

/* Stitch hole indent — subtle inset shadow along stitch paths */
.sk-card--stitched {
  box-shadow:
    var(--shadow-raised),
    inset 0 9px 0 -8px rgba(0, 0, 0, 0.1),
    inset 0 -9px 0 -8px rgba(0, 0, 0, 0.1),
    inset 9px 0 0 -8px rgba(0, 0, 0, 0.1),
    inset -9px 0 0 -8px rgba(0, 0, 0, 0.1);
}

/* ============================================================
   LEATHER VARIANTS — Different leather types for each product
   ============================================================ */

/* Dark leather — Horween shell, deep espresso brown */
.sk-card--dark {
  background-color: #3D2210;
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='3.5' numOctaves='8' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.2'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='turbulence' baseFrequency='0.03 0.07' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E"),
    radial-gradient(ellipse at 30% 15%, rgba(180,120,70,0.2) 0%, transparent 50%),
    linear-gradient(155deg, rgba(255,255,255,0.08) 0%, transparent 30%, rgba(0,0,0,0.2) 100%);
  color: #e8d0b8;
}
.sk-card--dark .sk-card__title { color: #f0e0c8; text-shadow: 0 1px 3px rgba(0,0,0,0.4); }
.sk-card--dark .sk-card__desc { color: rgba(232,208,184,0.8); }
.sk-card--dark .sk-card__material-label { color: rgba(232,208,184,0.45); }
.sk-card--dark .sk-card__price { color: #D4AF37; border-top-color: rgba(255,255,255,0.08); }
.sk-card--dark .flip-card__hint { color: rgba(232,208,184,0.4); }

/* Tan leather — vegetable tanned, warm honey */
.sk-card--tan {
  background-color: #C4944A;
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='2.8' numOctaves='7' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.18'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='turbulence' baseFrequency='0.04 0.08' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E"),
    radial-gradient(ellipse at 35% 18%, rgba(255,230,170,0.3) 0%, transparent 55%),
    linear-gradient(155deg, rgba(255,255,255,0.18) 0%, transparent 30%, rgba(0,0,0,0.1) 100%);
  color: #3a2210;
}
.sk-card--tan .sk-card__title { color: #2a1508; text-shadow: 0 1px 0 rgba(255,255,255,0.2); }
.sk-card--tan .sk-card__desc { color: rgba(58,34,16,0.85); }
.sk-card--tan .sk-card__material-label { color: rgba(58,34,16,0.5); }
.sk-card--tan .sk-card__price { color: #8B4513; border-top-color: rgba(0,0,0,0.08); }
.sk-card--tan .flip-card__hint { color: rgba(58,34,16,0.45); }

/* Chocolate leather — deep warm brown, like aged Horween */
.sk-card--chocolate {
  background-color: #5A2E14;
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='3.2' numOctaves='8' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.2'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='turbulence' baseFrequency='0.03 0.06' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.09'/%3E%3C/svg%3E"),
    radial-gradient(ellipse at 32% 18%, rgba(200,140,80,0.2) 0%, transparent 50%),
    linear-gradient(155deg, rgba(255,255,255,0.1) 0%, transparent 30%, rgba(0,0,0,0.18) 100%);
  color: #f0dcc4;
}
.sk-card--chocolate .sk-card__title { color: #f5e6d0; text-shadow: 0 1px 2px rgba(0,0,0,0.35); }
.sk-card--chocolate .sk-card__desc { color: rgba(240,220,196,0.82); }
.sk-card--chocolate .sk-card__material-label { color: rgba(240,220,196,0.45); }
.sk-card--chocolate .sk-card__price { color: #D4AF37; border-top-color: rgba(255,255,255,0.08); }
.sk-card--chocolate .flip-card__hint { color: rgba(240,220,196,0.4); }

/* Wood — rich grain with knots, growth rings, and satin finish */
.sk-card--wood,
.sk-icon--wood,
.sk-avatar--wood {
  background-color: #5D3A1A;
  background-image:
    /* Primary grain lines — growth rings */
    repeating-linear-gradient(
      2deg,
      transparent 0px,
      transparent 5px,
      rgba(0,0,0,0.08) 5px,
      rgba(0,0,0,0.08) 5.5px,
      transparent 5.5px,
      transparent 8px
    ),
    /* Secondary grain — finer lines */
    repeating-linear-gradient(
      178deg,
      transparent 0px,
      transparent 3px,
      rgba(255,255,255,0.05) 3px,
      rgba(255,255,255,0.05) 3.5px,
      transparent 3.5px,
      transparent 6px
    ),
    /* Knot-like dark spots */
    radial-gradient(ellipse 40px 30px at 25% 40%, rgba(60,25,5,0.25) 0%, transparent 100%),
    radial-gradient(ellipse 25px 20px at 75% 65%, rgba(60,25,5,0.15) 0%, transparent 100%),
    /* Warm satin sheen — light source top-left */
    radial-gradient(ellipse at 25% 20%, rgba(255,220,160,0.2) 0%, transparent 45%),
    linear-gradient(160deg, rgba(255,255,255,0.18) 0%, transparent 30%, rgba(0,0,0,0.15) 100%);
  color: white;
  /* Wood shadow — warm, grounded */
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.15),
    0 2px 0 rgba(255, 255, 255, 0.08),
    0 4px 12px rgba(40, 20, 5, 0.3),
    0 8px 24px rgba(30, 15, 3, 0.2);
}

/* Brushed metal — directional grain with specular sheen */
.sk-card--brushed,
.sk-icon--chrome,
.sk-avatar--chrome {
  background-color: #a8a8a8;
  background-image:
    /* Fine directional grain lines — horizontal brush strokes */
    repeating-linear-gradient(
      90deg,
      transparent 0px,
      transparent 1px,
      rgba(255,255,255,0.18) 1px,
      rgba(255,255,255,0.18) 1.5px,
      transparent 1.5px,
      transparent 3px
    ),
    /* Coarser grain — fewer, wider strokes */
    repeating-linear-gradient(
      90deg,
      transparent 0px,
      transparent 8px,
      rgba(0,0,0,0.04) 8px,
      rgba(0,0,0,0.04) 9px,
      transparent 9px,
      transparent 15px
    ),
    /* Specular highlight band — bright horizontal stripe across top third */
    linear-gradient(180deg,
      rgba(255,255,255,0.35) 0%,
      rgba(255,255,255,0.15) 15%,
      rgba(255,255,255,0.05) 35%,
      rgba(0,0,0,0.05) 60%,
      rgba(0,0,0,0.12) 100%
    ),
    /* Subtle warm tint from environment */
    radial-gradient(ellipse at 30% 25%, rgba(255,240,220,0.12) 0%, transparent 50%);
  color: #1a1a1a;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
  /* Metal shadow — cool, crisp */
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.5),
    0 2px 0 rgba(255, 255, 255, 0.25),
    0 4px 12px rgba(0, 0, 0, 0.15),
    0 8px 24px rgba(0, 0, 0, 0.1);
}

/* Metal card text needs extra contrast */
.sk-card--brushed .sk-card__title,
.sk-card--brushed .sk-card__desc,
.sk-card--brushed .sk-card__material-label {
  color: #111;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* Glass — frosted, translucent, refractive */
.sk-card--glass-mat {
  background: rgba(200, 220, 240, 0.15);
  backdrop-filter: blur(20px) saturate(180%) brightness(1.05);
  -webkit-backdrop-filter: blur(20px) saturate(180%) brightness(1.05);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    var(--shadow-raised),
    /* Inner edge glow — light catching the glass rim */
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 rgba(255, 255, 255, 0.1),
    inset 1px 0 0 rgba(255, 255, 255, 0.2),
    inset -1px 0 0 rgba(255, 255, 255, 0.1);
  color: var(--text);
  position: relative;
}

/* Frosted noise texture — like real ground glass */
.sk-card--glass-mat::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    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='1.5' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* Edge refraction band — light bending through glass rim */
.sk-card--glass-mat::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.25) 0%, transparent 30%, transparent 70%, rgba(0,0,0,0.05) 100%) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
}

[data-theme="dark"] .sk-card--glass-mat {
  background: rgba(180, 200, 220, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .sk-card--glass-mat::before {
  background:
    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='1.5' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}

/* Linen — woven fabric with visible thread texture */
.sk-card--linen-mat {
  background-color: #e8dcc8;
  background-image:
    /* Warp threads — vertical */
    repeating-linear-gradient(
      0deg,
      transparent 0px,
      transparent 3px,
      rgba(180, 160, 130, 0.35) 3px,
      rgba(180, 160, 130, 0.35) 4px,
      transparent 4px,
      transparent 7px
    ),
    /* Weft threads — horizontal */
    repeating-linear-gradient(
      90deg,
      transparent 0px,
      transparent 3px,
      rgba(160, 140, 110, 0.3) 3px,
      rgba(160, 140, 110, 0.3) 4px,
      transparent 4px,
      transparent 7px
    ),
    /* Subtle diagonal weave accent */
    repeating-linear-gradient(
      45deg,
      transparent 0px,
      transparent 10px,
      rgba(140, 120, 90, 0.06) 10px,
      rgba(140, 120, 90, 0.06) 11px
    ),
    /* Warm fabric base */
    linear-gradient(160deg, #e8dcc8 0%, #ddd0b8 50%, #d4c8b0 100%);
  /* Matte fabric shadow — no specular, soft and diffuse */
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.3),
    0 2px 0 rgba(255, 255, 255, 0.15),
    0 4px 8px rgba(0, 0, 0, 0.1),
    0 8px 20px rgba(0, 0, 0, 0.08);
  color: #3c2815;
  border: 1px solid rgba(180, 160, 130, 0.3);
}

/* Linen frayed edge — visible at borders */
.sk-card--linen-mat::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow:
    inset 0 0 0 3px rgba(232, 220, 200, 0.5),
    inset 0 0 0 4px rgba(200, 185, 160, 0.2);
  pointer-events: none;
  z-index: 0;
}

[data-theme="dark"] .sk-card--linen-mat {
  background-color: #2a2218;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent 0px, transparent 3px,
      rgba(100, 85, 60, 0.3) 3px, rgba(100, 85, 60, 0.3) 4px,
      transparent 4px, transparent 7px
    ),
    repeating-linear-gradient(
      90deg,
      transparent 0px, transparent 3px,
      rgba(90, 75, 50, 0.25) 3px, rgba(90, 75, 50, 0.25) 4px,
      transparent 4px, transparent 7px
    ),
    repeating-linear-gradient(
      45deg,
      transparent 0px, transparent 10px,
      rgba(80, 65, 40, 0.05) 10px, rgba(80, 65, 40, 0.05) 11px
    ),
    linear-gradient(160deg, #2a2218 0%, #221c12 50%, #1a1510 100%);
  color: #c8b898;
  border-color: rgba(80, 65, 40, 0.3);
}

[data-theme="dark"] .sk-card--linen-mat::before {
  box-shadow:
    inset 0 0 0 3px rgba(50, 42, 30, 0.5),
    inset 0 0 0 4px rgba(40, 32, 22, 0.2);
}

/* Plastic — glossy polymer with sharp specular and molded edges */
.sk-card--plastic {
  background: linear-gradient(180deg, #f5f5f5 0%, #e8e8e8 30%, #d8d8d8 60%, #ccc 100%);
  box-shadow:
    var(--shadow-raised),
    /* Sharp specular highlight — glossy surface */
    inset 0 2px 0 rgba(255, 255, 255, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    /* Bottom edge — dark mold line */
    inset 0 -1px 0 rgba(0, 0, 0, 0.08),
    inset 0 -2px 0 rgba(255, 255, 255, 0.15);
  color: #222;
  position: relative;
}

/* Glossy reflection band */
.sk-card--plastic::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40%;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0.15) 40%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

[data-theme="dark"] .sk-card--plastic {
  background: linear-gradient(180deg, #3a3a3a 0%, #2e2e2e 30%, #222 60%, #1a1a1a 100%);
  color: #e0e0e0;
}

[data-theme="dark"] .sk-card--plastic::before {
  background: linear-gradient(180deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.04) 40%, transparent 100%);
}

/* Material card layout */
.sk-card--material {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Material label — like a stamped tag */
.sk-card__material-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  opacity: 0.55;
  margin-bottom: 6px;
}

/* Price — embossed into leather */
.sk-card__price {
  margin-top: auto;
  padding-top: 14px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent);
  border-top: 1px solid rgba(0,0,0,0.1);
  text-shadow: 0 1px 0 rgba(255,255,255,0.15);
}

/* ============================================================
   FLIP CARD — Hyper-Realistic Leather Sample Interaction
   ============================================================ */
.flip-card {
  cursor: pointer;
  outline: none;
  perspective: 1000px;
}

/* Reset sk-card defaults inside flip cards */
.flip-card .flip-card__front {
  transform: none !important;
  transition: none !important;
}
.flip-card .sk-card {
  transition: none !important;
  border: none !important;
  contain: none !important;
  isolation: auto !important;
  /* Hyper-realistic base texture */
  background-image:
    /* Micro pore grain */
    url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='3' numOctaves='8' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.22'/%3E%3C/svg%3E"),
    /* Wrinkle creases */
    url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='turbulence' baseFrequency='0.03 0.06' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.1'/%3E%3C/svg%3E"),
    /* Overhead light gradient */
    radial-gradient(ellipse at 35% 15%, rgba(255,210,160,0.25) 0%, transparent 55%),
    /* Directional light — top-left to bottom-right */
    linear-gradient(155deg, rgba(255,255,255,0.15) 0%, transparent 30%, rgba(0,0,0,0.15) 100%);
  /* Hyper-realistic shadow stack */
  box-shadow:
    /* Contact shadow — tight, dark */
    0 1px 2px rgba(40,20,5,0.3),
    /* Short-range shadow */
    0 3px 8px rgba(60,30,8,0.25),
    /* Mid-range diffused shadow */
    0 8px 24px rgba(50,25,5,0.2),
    /* Long-range ambient shadow */
    0 16px 48px rgba(30,15,3,0.12),
    /* Top edge specular catch */
    inset 0 1px 0 rgba(255,255,255,0.2),
    /* Bottom edge subtle reflection */
    inset 0 -1px 0 rgba(0,0,0,0.08);
}
.flip-card .flip-card__front:hover {
  transform: none !important;
}
.flip-card .sk-card::before {
  display: none !important;
}
.flip-card .spotlight {
  --spot-x: 50%;
  --spot-y: 50%;
}

/* Edge burnishing — darkened leather edges like real burnished edges */
.flip-card__front.sk-card--leather::after,
.flip-card__back.sk-card--leather::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow:
    inset 0 0 0 6px rgba(60,25,5,0.15),
    inset 0 0 0 7px rgba(100,50,15,0.08),
    inset 0 0 20px rgba(40,20,5,0.1);
  pointer-events: none;
  z-index: 2;
}

/* Visible stitch marks — dashed line near edges */
.flip-card__front.sk-card--stitched::after,
.flip-card__back.sk-card--stitched::after {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1.5px dashed rgba(200,170,120,0.35);
  border-radius: calc(var(--radius) - 4px);
  pointer-events: none;
  z-index: 3;
}

/* Wood: lighter stitch to show on dark grain */
.flip-card__front.sk-card--wood.sk-card--stitched::after,
.flip-card__back.sk-card--wood.sk-card--stitched::after {
  border-color: rgba(220,190,140,0.4);
}

/* Brushed: darker stitch to show on light metal */
.flip-card__front.sk-card--brushed.sk-card--stitched::after,
.flip-card__back.sk-card--brushed.sk-card--stitched::after {
  border-color: rgba(80,80,80,0.3);
}

/* Inner stitch shadow indent */
.flip-card__front.sk-card--stitched,
.flip-card__back.sk-card--stitched {
  box-shadow:
    0 1px 2px rgba(40,20,5,0.3),
    0 3px 8px rgba(60,30,8,0.25),
    0 8px 24px rgba(50,25,5,0.2),
    0 16px 48px rgba(30,15,3,0.12),
    inset 0 1px 0 rgba(255,255,255,0.2),
    inset 0 -1px 0 rgba(0,0,0,0.08),
    /* Stitch indent shadows */
    inset 0 10px 0 -8px rgba(0,0,0,0.08),
    inset 0 -10px 0 -8px rgba(0,0,0,0.08),
    inset 10px 0 0 -8px rgba(0,0,0,0.08),
    inset -10px 0 0 -8px rgba(0,0,0,0.08);
}

/* ============================================================
   3D FLIP — Book-opening leather sample
   JS controls visibility + class toggles CSS rotation
   ============================================================ */

/* Hover: lift the entire card using margin (no transform — avoids 3D conflicts) */
.flip-card:hover {
  margin-top: -6px;
  margin-bottom: 6px;
  transition: margin 0.3s var(--ease);
}

/* Inner wrapper — 3D container */
.flip-card__inner {
  position: relative;
  width: 100%;
  height: 360px;
  transform-style: preserve-3d;
  animation-fill-mode: forwards;
  animation-timing-function: ease-in-out;
  animation-duration: 0.7s;
  animation-name: none;
}

/* Flipped: play flip-to-back animation */
.flip-card.is-flipping .flip-card__inner {
  animation-name: flipToBack;
}

/* Unflipped: play flip-to-front animation */
.flip-card.is-flipping-back .flip-card__inner {
  animation-name: flipToFront;
}

/* After flip animation: keep inner rotated at 180deg */
.flip-card.is-flipped .flip-card__inner {
  transform: rotateY(180deg);
}

/* When flipping back: remove the static rotation */
.flip-card.is-flipping-back .flip-card__inner {
  transform: rotateY(0deg);
}

/* Keyframes pause at 90deg for glitch-free content swap */
@keyframes flipToBack {
  0%   { transform: rotateY(0deg); }
  49%  { transform: rotateY(88deg); }
  50%  { transform: rotateY(90deg); }
  51%  { transform: rotateY(90deg); }
  100% { transform: rotateY(180deg); }
}

@keyframes flipToFront {
  0%   { transform: rotateY(180deg); }
  49%  { transform: rotateY(92deg); }
  50%  { transform: rotateY(90deg); }
  51%  { transform: rotateY(90deg); }
  100% { transform: rotateY(0deg); }
}

/* Front face — visible by default */
.flip-card__front {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  z-index: 2;
}

/* Back face — hidden by default, JS shows it at the flip midpoint */
.flip-card .flip-card__back {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: none;
  flex-direction: column;
  padding: 24px;
  transform: rotateY(180deg) !important;
}



/* Back face: darker, like the inside of leather */
.flip-card__back.sk-card--leather {
  background-color: #6B3410;
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='4' numOctaves='6' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.15'/%3E%3C/svg%3E"),
    radial-gradient(ellipse at 30% 20%, rgba(255,200,150,0.15) 0%, transparent 50%),
    linear-gradient(160deg, rgba(255,255,255,0.08) 0%, transparent 30%, rgba(0,0,0,0.18) 100%);
  color: #f0e0c8;
}

/* Back face: dark leather interior */
.flip-card__back.sk-card--dark {
  background-color: #2A1508;
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='4' numOctaves='6' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.12'/%3E%3C/svg%3E"),
    radial-gradient(ellipse at 30% 20%, rgba(180,120,70,0.1) 0%, transparent 50%),
    linear-gradient(160deg, rgba(255,255,255,0.05) 0%, transparent 30%, rgba(0,0,0,0.25) 100%);
  color: #e0c8a8;
}
.flip-card__back.sk-card--dark .sk-card__title { color: #f0dcc0; text-shadow: 0 1px 3px rgba(0,0,0,0.5); }
.flip-card__back.sk-card--dark .sk-card__specs li span:first-child { color: rgba(224,200,168,0.5); }
.flip-card__back.sk-card--dark .sk-card__specs li span:last-child { color: #e0c8a8; }
.flip-card__back.sk-card--dark .flip-card__back-label { color: rgba(224,200,168,0.45); }

/* Back face: tan leather interior — lighter, like unfinished veg-tan */
.flip-card__back.sk-card--tan {
  background-color: #A87830;
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='3.5' numOctaves='6' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.15'/%3E%3C/svg%3E"),
    radial-gradient(ellipse at 30% 20%, rgba(255,220,160,0.15) 0%, transparent 50%),
    linear-gradient(160deg, rgba(255,255,255,0.1) 0%, transparent 30%, rgba(0,0,0,0.15) 100%);
  color: #f5e8d0;
}
.flip-card__back.sk-card--tan .sk-card__title { color: #fff5e0; text-shadow: 0 1px 2px rgba(0,0,0,0.3); }
.flip-card__back.sk-card--tan .sk-card__specs li span:first-child { color: rgba(245,232,208,0.55); }
.flip-card__back.sk-card--tan .sk-card__specs li span:last-child { color: #f5e8d0; }
.flip-card__back.sk-card--tan .flip-card__back-label { color: rgba(245,232,208,0.5); }

/* Back face: chocolate leather interior */
.flip-card__back.sk-card--chocolate {
  background-color: #3D1C0A;
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='4' numOctaves='6' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.14'/%3E%3C/svg%3E"),
    radial-gradient(ellipse at 30% 20%, rgba(200,140,80,0.1) 0%, transparent 50%),
    linear-gradient(160deg, rgba(255,255,255,0.06) 0%, transparent 30%, rgba(0,0,0,0.22) 100%);
  color: #e8d4b8;
}
.flip-card__back.sk-card--chocolate .sk-card__title { color: #f0e0c8; text-shadow: 0 1px 3px rgba(0,0,0,0.4); }
.flip-card__back.sk-card--chocolate .sk-card__specs li span:first-child { color: rgba(232,212,184,0.5); }
.flip-card__back.sk-card--chocolate .sk-card__specs li span:last-child { color: #e8d4b8; }
.flip-card__back.sk-card--chocolate .flip-card__back-label { color: rgba(232,212,184,0.45); }

/* Back face: wood interior */
.flip-card__back.sk-card--wood {
  background-color: #3D2510;
  background-image:
    repeating-linear-gradient(2deg, transparent 0px, transparent 5px, rgba(0,0,0,0.06) 5px, rgba(0,0,0,0.06) 5.5px),
    radial-gradient(ellipse at 30% 20%, rgba(255,220,160,0.1) 0%, transparent 50%),
    linear-gradient(160deg, rgba(255,255,255,0.06) 0%, transparent 30%, rgba(0,0,0,0.2) 100%);
  color: #e8d8c0;
}

/* Back face: brushed metal interior */
.flip-card__back.sk-card--brushed {
  background-color: #707070;
  background-image:
    repeating-linear-gradient(90deg, transparent 0px, transparent 1px, rgba(255,255,255,0.1) 1px, rgba(255,255,255,0.1) 1.5px, transparent 1.5px, transparent 3px),
    linear-gradient(180deg, rgba(255,255,255,0.15) 0%, rgba(0,0,0,0.1) 100%);
  color: #1a1a1a;
}
.flip-card__back.sk-card--brushed .sk-card__title,
.flip-card__back.sk-card--brushed .sk-card__specs li span:last-child { color: #111; }
.flip-card__back.sk-card--brushed .sk-card__specs li span:first-child { color: rgba(0,0,0,0.5); }
.flip-card__back.sk-card--brushed .flip-card__back-label { color: rgba(0,0,0,0.5); }




/* Hint text — subtle, like a leather stamp */
.flip-card__hint {
  display: block;
  margin-top: auto;
  padding-top: 12px;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-tertiary);
  text-align: center;
  opacity: 0.5;
  letter-spacing: 0.05em;
}

/* Back label — embossed look */
.flip-card__back-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  opacity: 0.5;
  margin-bottom: 6px;
}

/* Specs list — like a workshop measurement card */
.flip-card__specs {
  list-style: none;
  width: 100%;
  margin-top: 10px;
}

.flip-card__specs li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  font-size: 0.76rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.flip-card__specs li:last-child {
  border-bottom: none;
}

.flip-card__specs li span:first-child {
  color: rgba(240,224,200,0.6);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

.flip-card__specs li span:last-child {
  font-weight: 600;
  color: #f0e0c8;
  text-align: right;
}

/* Back face title — lighter for contrast */
.flip-card__back .sk-card__title {
  color: #f0e0c8;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Front face title — embossed into leather */
.flip-card__front .sk-card__title {
  color: white;
  text-shadow:
    0 1px 0 rgba(255,255,255,0.15),
    0 2px 4px rgba(0,0,0,0.3);
  font-size: 1.1rem;
}

/* Front face description — lighter for readability on leather */
.flip-card__front .sk-card__desc {
  color: rgba(255,255,255,0.85);
  font-size: 0.82rem;
  line-height: 1.65;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Front face material label — subtle stamp */
.flip-card__front .sk-card__material-label {
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.2em;
}

/* Front face price — golden emboss */
.flip-card__front .sk-card__price {
  color: #D4AF37;
  text-shadow: 0 1px 0 rgba(0,0,0,0.3), 0 0 8px rgba(212,175,55,0.2);
  border-top-color: rgba(255,255,255,0.1);
}

/* Focus state for keyboard users */
.flip-card:focus-visible .flip-card__inner {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
  border-radius: var(--radius);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .flip-card__inner {
    animation-duration: 0.01ms !important;
  }
}


/* ------------------------------------------------------------
   3. BUTTONS — Physical, beveled, tactile
   ------------------------------------------------------------ */
.sk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.88rem;
  transition: all var(--duration) var(--ease);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  /* Bevel effect */
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.4),
    0 2px 0 rgba(255, 255, 255, 0.2),
    0 3px 6px rgba(0, 0, 0, 0.15),
    0 6px 16px rgba(0, 0, 0, 0.1);
}

.sk-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
  pointer-events: none;
}

/* Primary — leather gradient */
.sk-btn--primary {
  background: linear-gradient(180deg, var(--accent-light) 0%, var(--accent) 50%, var(--accent-dark) 100%);
  color: white;
  border: 1px solid rgba(0, 0, 0, 0.2);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.sk-btn--primary:hover {
  background: linear-gradient(180deg, #B8622E 0%, #9A4E18 50%, #7A3E10 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.4),
    0 2px 0 rgba(255, 255, 255, 0.2),
    0 4px 8px rgba(0, 0, 0, 0.2),
    0 8px 24px rgba(139, 69, 19, 0.3);
  transform: translateY(-1px);
}

/* Pressed state — physically depresses */
.sk-btn--primary:active {
  transform: translateY(1px);
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.3),
    inset 0 1px 2px rgba(0, 0, 0, 0.2);
  background: linear-gradient(180deg, var(--accent-dark) 0%, var(--accent) 100%);
}

/* Secondary — brushed metal */
.sk-btn--secondary {
  background: linear-gradient(180deg, #e8e8e8 0%, #d0d0d0 40%, #b8b8b8 100%);
  color: #333;
  border: 1px solid rgba(0, 0, 0, 0.15);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8),
    0 2px 0 rgba(255, 255, 255, 0.4),
    0 3px 6px rgba(0, 0, 0, 0.12),
    0 6px 16px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .sk-btn--secondary {
  background: linear-gradient(180deg, #4a4a4a 0%, #3a3a3a 40%, #2a2a2a 100%);
  color: #e0e0e0;
  border-color: rgba(255, 255, 255, 0.1);
  text-shadow: none;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08),
    0 2px 0 rgba(255, 255, 255, 0.04),
    0 3px 6px rgba(0, 0, 0, 0.3),
    0 6px 16px rgba(0, 0, 0, 0.2);
}

.sk-btn--secondary:hover {
  background: linear-gradient(180deg, #f0f0f0 0%, #d8d8d8 40%, #c0c0c0 100%);
  transform: translateY(-1px);
}

[data-theme="dark"] .sk-btn--secondary:hover {
  background: linear-gradient(180deg, #555 0%, #444 40%, #333 100%);
}

.sk-btn--secondary:active {
  transform: translateY(1px);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), inset 0 1px 2px rgba(0, 0, 0, 0.1);
  background: linear-gradient(180deg, #b0b0b0 0%, #c0c0c0 100%);
}

[data-theme="dark"] .sk-btn--secondary:active {
  background: linear-gradient(180deg, #222 0%, #333 100%);
}

/* Ghost */
.sk-btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  box-shadow: none;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.sk-btn--ghost::before { box-shadow: none; }

.sk-btn--ghost:hover {
  background: rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-ambient);
}

[data-theme="dark"] .sk-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* Icon button */
.sk-btn--icon {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: var(--radius-xs);
  background: var(--card-bg-nested);
  box-shadow: var(--shadow-pressed);
}

.sk-btn--icon::before { box-shadow: none; }

.sk-btn--icon:active {
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.sk-btn--lg { padding: 14px 28px; font-size: 0.95rem; }
.btn--full { width: 100%; }

/* Ripple */
.sk-btn { position: relative; overflow: hidden; }
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: scale(0);
  animation: ripple-anim 0.6s ease-out;
  pointer-events: none;
}

@keyframes ripple-anim {
  to { transform: scale(4); opacity: 0; }
}


/* ------------------------------------------------------------
   4. NAVIGATION — Polished leather bar
   ------------------------------------------------------------ */
.nav {
  position: sticky !important;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, #6B3410 0%, #5A2A0E 100%);
  border-bottom: 2px solid rgba(0, 0, 0, 0.3);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 4px 12px rgba(0, 0, 0, 0.3);
  /* Leather grain */
  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='1.5' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E"),
    linear-gradient(180deg, rgba(255,255,255,0.08) 0%, transparent 50%, rgba(0,0,0,0.1) 100%);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.nav::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 0;
  border-bottom: 1px dashed rgba(210, 180, 140, 0.4);
  margin-bottom: -1px;
  pointer-events: none;
}

[data-theme="dark"] .nav::after {
  border-bottom-color: rgba(160, 130, 100, 0.25);
}

[data-theme="dark"] .nav {
  background: linear-gradient(180deg, #1a0e05 0%, #120a03 100%);
  border-bottom-color: rgba(0, 0, 0, 0.5);
}

.nav--scrolled {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 8px 24px rgba(0, 0, 0, 0.4);
}

.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 20px;
  font-weight: 700;
  font-size: 1.15rem;
  color: #f0e0c8;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.nav__links { display: flex; gap: 4px; }

.nav__link {
  padding: 8px 14px;
  border-radius: var(--radius-xs);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--duration) var(--ease);
}

.nav__link:hover {
  color: var(--text);
  background: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .nav__link {
  color: rgba(240, 224, 200, 0.7);
}

[data-theme="dark"] .nav__link:hover {
  color: #f0e0c8;
  background: rgba(255, 255, 255, 0.08);
}

.nav__actions { display: flex; align-items: center; gap: 8px; }

.nav__cta {
  font-size: 0.88rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* Theme toggle */
.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(240, 224, 200, 0.7);
  transition: all var(--duration) var(--ease);
}

.theme-toggle:hover {
  color: #f0e0c8;
  background: rgba(255, 255, 255, 0.08);
}

.theme-toggle__icon--light { display: none; }
[data-theme="dark"] .theme-toggle__icon--dark { display: none; }
[data-theme="dark"] .theme-toggle__icon--light { display: block; }

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-xs);
}

.nav__hamburger span {
  width: 20px; height: 2px;
  background: #f0e0c8;
  border-radius: 2px;
  transition: all var(--duration) var(--ease);
}

.nav__hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav__hamburger.active span:nth-child(2) { opacity: 0; }
.nav__hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.nav__mobile-menu {
  display: none;
  flex-direction: column;
  padding: 8px 24px 20px;
  gap: 4px;
}

.nav__mobile-menu .nav__link { padding: 12px 14px; width: 100%; }
.nav__mobile-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }


/* ------------------------------------------------------------
   5. HERO
   ------------------------------------------------------------ */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px 60px;
  max-width: 1200px;
  margin: 0 auto;
  gap: 60px;
  contain: layout style;
}

.hero__content { flex: 1; max-width: 520px; }
.hero__badge { margin-bottom: 24px; }

.hero__title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  /* Embossed text effect */
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.1);
}

.hero__title-gradient {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 50%, #3a1a08 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__ctas .sk-btn { padding: 14px 28px; font-size: 0.95rem; }

/* Hero card */
.hero__card { flex: 1; max-width: 560px; padding: 0; overflow: hidden; }

.hero__card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 2px solid rgba(0, 0, 0, 0.1);
  background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, transparent 100%);
}

.hero__card-dots { display: flex; gap: 7px; }
.dot { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 1px 2px rgba(0,0,0,0.2), 0 1px 0 rgba(255,255,255,0.3); }
.dot--red { background: linear-gradient(180deg, #ff7675, #d63031); }
.dot--yellow { background: linear-gradient(180deg, #fdcb6e, #e17055); }
.dot--green { background: linear-gradient(180deg, #55efc4, #00b894); }

.hero__card-title { font-size: 0.82rem; font-weight: 500; color: var(--text-secondary); flex: 1; }

.hero__card-body { padding: 20px; }

.hero__card-stats { display: flex; gap: 20px; margin-bottom: 20px; }
.sk-stat { flex: 1; }
.sk-stat__label { display: block; font-size: 0.72rem; font-weight: 500; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }
.sk-stat__value { display: block; font-size: 1.3rem; font-weight: 700; letter-spacing: -0.02em; }
.sk-stat__change { display: inline-block; font-size: 0.72rem; font-weight: 600; margin-top: 2px; }
.sk-stat__change--up { color: var(--green); }
.sk-stat__change--down { color: var(--red); }

.hero__chart { position: relative; }
.chart-svg { width: 100%; height: 120px; }
.chart-line { stroke-dasharray: 800; stroke-dashoffset: 800; animation: chart-draw 2s ease-out 0.5s forwards; }
.chart-area { opacity: 0; animation: chart-fade 1.5s ease-out 1.5s forwards; }
@keyframes chart-draw { to { stroke-dashoffset: 0; } }
@keyframes chart-fade { to { opacity: 1; } }
.chart-labels { display: flex; justify-content: space-between; padding: 8px 0 0; font-size: 0.7rem; color: var(--text-tertiary); font-weight: 500; }

/* Hero proof stats */
.hero__proof {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(0,0,0,0.1);
}
.hero__proof-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero__proof-num {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}
.hero__proof-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
}
.hero__proof-divider {
  width: 1px;
  height: 36px;
  background: rgba(0,0,0,0.12);
}

/* Hero entrance animations */
.hero__badge-anim,
.hero__title-anim,
.hero__subtitle-anim,
.hero__ctas-anim,
.hero__proof-anim,
.hero__card-anim {
  opacity: 0;
  transform: translateY(24px);
  animation: heroReveal 0.8s cubic-bezier(0, 0, 0, 1) forwards;
}
.hero__badge-anim { animation-delay: 0.1s; }
.hero__title-anim { animation-delay: 0.25s; }
.hero__card-anim { animation-delay: 0.3s; transform: translateY(32px) scale(0.97); }
.hero__subtitle-anim { animation-delay: 0.4s; }
.hero__ctas-anim { animation-delay: 0.55s; }
.hero__proof-anim { animation-delay: 0.7s; }

@keyframes heroReveal {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__badge-anim,
  .hero__title-anim,
  .hero__subtitle-anim,
  .hero__ctas-anim,
  .hero__proof-anim,
  .hero__card-anim {
    opacity: 1;
    transform: none;
    animation: none;
  }
}


/* ------------------------------------------------------------
   5a. TRUST BAR
   ------------------------------------------------------------ */
.trust-bar {
  position: relative;
  z-index: 1;
  padding: 24px 24px;
  background: var(--card-bg);
  border-top: 1px solid rgba(0,0,0,0.08);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  box-shadow: var(--specular);
}
.trust-bar__inner {
  display: flex;
  justify-content: center;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.trust-bar__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}
.trust-bar__item svg {
  color: var(--accent);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .trust-bar__inner { gap: 20px; }
  .trust-bar__item { font-size: 0.76rem; }
}

@media (max-width: 480px) {
  .trust-bar__inner { flex-direction: column; align-items: center; gap: 12px; }
}


/* ------------------------------------------------------------
   5b. STORY SECTION
   ------------------------------------------------------------ */
.story {
  position: relative;
  z-index: 1;
  padding: 80px 24px;
  max-width: 1200px;
  margin: 0 auto;
  content-visibility: auto;
  contain-intrinsic-size: auto 600px;
}
.story__inner {
  display: flex;
  align-items: center;
  gap: 60px;
}
.story__text { flex: 1; }
.story__label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 16px;
}
.story__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  color: var(--text);
}
.story__body {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.story__stats {
  display: flex;
  gap: 32px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(0,0,0,0.1);
}
.story__stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.story__stat-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
}
.story__stat-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
}
.story__visual {
  flex: 0 0 320px;
}
.story__frame {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 48px 32px;
  min-height: 280px;
  background: linear-gradient(135deg, var(--card-bg) 0%, var(--card-bg-nested) 100%);
  overflow: hidden;
}
.story__frame::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border: 2px dashed rgba(139, 69, 19, 0.15);
  border-radius: inherit;
  margin: 12px;
  pointer-events: none;
}
.story__icon {
  color: var(--text-tertiary);
  position: relative;
  z-index: 1;
}
.story__frame-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  position: relative;
  z-index: 1;
}
.story__frame-year {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .story__inner { flex-direction: column; }
  .story__visual { flex: none; width: 100%; }
  .story__stats { gap: 24px; }
}

@media (max-width: 640px) {
  .story { padding: 60px 24px; }
  .story__stats { flex-direction: column; gap: 16px; }
  .story__frame { padding: 32px 24px; min-height: 200px; }
}


/* ------------------------------------------------------------
   6. SECTION TITLES
   ------------------------------------------------------------ */
.section-title {
  text-align: center;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.08);
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--accent);
  margin: 16px auto 0;
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 500px;
  margin: 0 auto 48px;
}


/* ------------------------------------------------------------
   7. FEATURES & MATERIALS
   ------------------------------------------------------------ */
.features, .materials {
  position: relative;
  z-index: 1;
  padding: 80px 24px;
  max-width: 1200px;
  margin: 0 auto;
  content-visibility: auto;
  contain-intrinsic-size: auto 800px;
}

.features__grid,
.materials__grid,
.testimonials__grid,
.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Extra spacing for collection flip cards */
#collection .materials__grid {
  gap: 32px;
}

.sk-card--feature { padding: 28px; display: flex; flex-direction: column; gap: 14px; position: relative; }
.sk-card--feature::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  border-radius: var(--radius) var(--radius) 0 0;
}
.sk-card--feature:hover::after { opacity: 1; }
.sk-card__title { font-size: 1.05rem; font-weight: 700; }
.sk-card__desc { font-size: 0.88rem; line-height: 1.6; color: var(--text-secondary); flex: 1; }
.sk-card__link { font-size: 0.85rem; font-weight: 600; color: var(--accent); transition: all var(--duration) var(--ease); }
.sk-card__link:hover { color: var(--accent-dark); letter-spacing: 0.02em; }


/* ------------------------------------------------------------
   8. ICONS — Material-specific icon containers
   ------------------------------------------------------------ */
.sk-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sk-icon--xs { width: 28px; height: 28px; border-radius: 6px; }
.sk-icon--sm { width: 40px; height: 40px; border-radius: 10px; }
.sk-icon--md { width: 52px; height: 52px; border-radius: 14px; }

.sk-icon--sm,
.sk-icon--md {
  box-shadow: var(--shadow-raised);
  border: 1px solid rgba(0, 0, 0, 0.15);
}

.sk-icon--xs { box-shadow: var(--shadow-ambient); border: 1px solid rgba(0, 0, 0, 0.1); }

.sk-icon--glass {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--text);
  box-shadow: var(--shadow-raised), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.sk-icon--linen {
  background: var(--linen);
  color: var(--accent);
  box-shadow: var(--shadow-raised);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.sk-icon--amber {
  background: linear-gradient(180deg, #F57F17, #E65100);
  color: white;
  box-shadow: var(--shadow-raised);
  border: 1px solid rgba(0, 0, 0, 0.15);
}


/* ------------------------------------------------------------
   9. CHIP / BADGE / PILL
   ------------------------------------------------------------ */
.sk-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: var(--card-bg);
  box-shadow: var(--shadow-raised);
  border: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.hero__badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 2px rgba(46, 125, 50, 0.3);
  animation: sk-pulse 2s ease-in-out infinite;
}

@keyframes sk-pulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(46, 125, 50, 0.3); }
  50% { box-shadow: 0 0 0 6px rgba(46, 125, 50, 0); }
}

/* Badge */
.sk-badge {
  margin-left: auto;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--accent);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Pill group */
.sk-pill-group {
  display: flex;
  background: var(--card-bg-nested);
  border-radius: var(--radius-xs);
  box-shadow: var(--shadow-pressed);
  padding: 3px;
}

.sk-pill {
  padding: 4px 12px;
  border-radius: 5px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-tertiary);
  transition: all var(--duration) var(--ease);
}

.sk-pill--active {
  background: var(--card-bg);
  color: var(--accent);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15), 0 1px 0 rgba(255, 255, 255, 0.3);
  font-weight: 600;
}

/* Dot indicators */
.sk-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; margin-top: 6px; box-shadow: inset 0 1px 2px rgba(0,0,0,0.2), 0 1px 0 rgba(255,255,255,0.3); }
.sk-dot--green { background: linear-gradient(180deg, #55efc4, #2E7D32); }
.sk-dot--blue { background: linear-gradient(180deg, #74b9ff, #1565C0); }
.sk-dot--amber { background: linear-gradient(180deg, #fdcb6e, #F57F17); }


/* ------------------------------------------------------------
   10. DASHBOARD
   ------------------------------------------------------------ */
.dashboard { position: relative; z-index: 1; padding: 80px 24px; max-width: 1200px; margin: 0 auto; }
.dashboard__layout { display: flex; gap: 24px; min-height: 560px; }

.sidebar {
  width: 240px; min-width: 240px;
  display: flex; flex-direction: column;
  padding: 16px 12px;
  overflow: hidden; flex-shrink: 0;
  transition: width var(--duration) var(--ease), min-width var(--duration) var(--ease);
}

.sidebar--collapsed { width: 68px; min-width: 68px; }

.sidebar__toggle {
  margin-bottom: 16px;
}

.sidebar__nav { flex: 1; display: flex; flex-direction: column; gap: 4px; }

.sidebar__item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-xs);
  font-size: 0.88rem; font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--duration) var(--ease);
  position: relative; white-space: nowrap; overflow: hidden;
}

.sidebar__item svg { flex-shrink: 0; }
.sidebar__item:hover { color: var(--text); background: rgba(0, 0, 0, 0.05); }

[data-theme="dark"] .sidebar__item:hover { background: rgba(255, 255, 255, 0.05); }

.sidebar__item--active {
  background: var(--accent);
  color: white;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 2px rgba(0, 0, 0, 0.2),
    0 2px 6px rgba(139, 69, 19, 0.3);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.sidebar__profile {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  margin-top: 8px;
}

.sk-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-raised);
  border: 2px solid rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
}

.sidebar__user-info { display: flex; flex-direction: column; min-width: 0; }
.sidebar__username { font-size: 0.82rem; font-weight: 600; }
.sidebar__userrole { font-size: 0.72rem; color: var(--text-tertiary); }
.sidebar__menu-btn { margin-left: auto; padding: 4px; border-radius: 4px; color: var(--text-tertiary); }
.sidebar__menu-btn:hover { color: var(--text); }

.sidebar--collapsed .sidebar__label,
.sidebar--collapsed .sidebar__badge,
.sidebar--collapsed .sidebar__user-info,
.sidebar--collapsed .sidebar__menu-btn { opacity: 0; width: 0; overflow: hidden; }
.sidebar--collapsed .sidebar__item { justify-content: center; padding: 10px; }
.sidebar--collapsed .sidebar__profile { justify-content: center; padding: 10px; }

.sidebar--collapsed .sidebar__item[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute; left: calc(100% + 10px); top: 50%;
  transform: translateY(-50%);
  padding: 4px 10px; border-radius: 6px;
  background: var(--card-bg);
  box-shadow: var(--shadow-drop);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--text); font-size: 0.75rem;
  white-space: nowrap; opacity: 0; pointer-events: none; z-index: 10;
}

.sidebar--collapsed .sidebar__item[data-tooltip]:hover::after { opacity: 1; }

.dashboard__main { flex: 1; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.dashboard__main-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.dashboard__greeting { font-size: 1.3rem; font-weight: 700; }
.dashboard__greeting-sub { font-size: 0.88rem; color: var(--text-secondary); margin-top: 2px; }

.dashboard__stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.sk-card--stat { padding: 22px; display: flex; align-items: flex-start; gap: 14px; }
.sk-card--stat:hover { transform: translateY(-2px); }
.sk-stat-info { display: flex; flex-direction: column; }
.sk-stat-label { font-size: 0.78rem; color: var(--text-tertiary); font-weight: 500; }
.sk-stat-value { font-size: 1.5rem; font-weight: 700; margin: 2px 0; }
.sk-stat-change { font-size: 0.72rem; font-weight: 500; }
.sk-stat-change--up { color: var(--green); }
.sk-stat-change--down { color: var(--red); }

.sk-card--wide { padding: 24px; }
.sk-card__heading { font-size: 1rem; font-weight: 600; margin-bottom: 16px; }

.activity-list { display: flex; flex-direction: column; }
.activity-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(0, 0, 0, 0.08); }
.activity-item:last-child { border-bottom: none; }
.activity-info { display: flex; flex-direction: column; gap: 2px; }
.activity-text { font-size: 0.85rem; line-height: 1.4; }
.activity-text strong { font-weight: 600; }
.activity-time { font-size: 0.72rem; color: var(--text-tertiary); }


/* ------------------------------------------------------------
   11. TESTIMONIALS
   ------------------------------------------------------------ */
.testimonials { position: relative; z-index: 1; padding: 80px 24px; max-width: 1200px; margin: 0 auto; content-visibility: auto; contain-intrinsic-size: auto 600px; }
.sk-card--testimonial { padding: 28px; display: flex; flex-direction: column; gap: 14px; position: relative; }
.sk-card--testimonial::before {
  content: '\201C';
  position: absolute;
  top: 16px; right: 20px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 4rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.12;
  pointer-events: none;
}
.sk-card__stars { font-size: 1rem; color: var(--amber); letter-spacing: 2px; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); }
.sk-card__quote { font-size: 0.92rem; line-height: 1.7; color: var(--text-secondary); font-style: italic; flex: 1; position: relative; z-index: 1; }
.sk-card__author { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 12px; border-top: 1px solid rgba(0,0,0,0.06); }
.sk-card__author-name { display: block; font-size: 0.85rem; font-weight: 600; }
.sk-card__author-role { display: block; font-size: 0.75rem; color: var(--text-tertiary); }


/* ------------------------------------------------------------
   12. PRICING
   ------------------------------------------------------------ */
.pricing { position: relative; z-index: 1; padding: 80px 24px; max-width: 1200px; margin: 0 auto; content-visibility: auto; contain-intrinsic-size: auto 500px; }
.sk-card--pricing { padding: 32px; display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; }
.sk-card--pricing:has(.sk-card__plan-badge) { padding-top: 48px; }
.sk-card--featured {
  border: 2px solid var(--accent);
}
.sk-card__plan-badge {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  padding: 4px 16px; border-radius: var(--radius-full);
  background: var(--accent); color: white;
  font-size: 0.72rem; font-weight: 600; white-space: nowrap;
  box-shadow: 0 2px 6px rgba(139, 69, 19, 0.3);
}
.sk-card__plan-name { font-size: 1.1rem; font-weight: 700; margin-top: 8px; }
.sk-card__plan-price { margin: 16px 0; }
.sk-card__plan-amount { font-size: 2.5rem; font-weight: 800; letter-spacing: -0.03em; }
.sk-card__plan-period { font-size: 0.88rem; color: var(--text-tertiary); }
.sk-card__plan-features { text-align: left; width: 100%; margin-bottom: 24px; }
.sk-card__plan-features li { padding: 8px 0; font-size: 0.88rem; color: var(--text-secondary); border-bottom: 1px solid rgba(0, 0, 0, 0.06); display: flex; align-items: center; gap: 8px; }
.sk-card__plan-features li::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.sk-card__plan-features li:last-child { border-bottom: none; }


/* ------------------------------------------------------------
   13. FAQ
   ------------------------------------------------------------ */
.faq { position: relative; z-index: 1; padding: 80px 24px; max-width: 800px; margin: 0 auto; content-visibility: auto; contain-intrinsic-size: auto 500px; }
.faq__list { display: flex; flex-direction: column; gap: 16px; }

/* ============================================================
   FAQ — Smooth expand animation
   ============================================================ */
.faq__item {
  display: grid;
  grid-template-rows: auto 0fr;
  transition: grid-template-rows 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              border-color 0.3s var(--ease),
              box-shadow 0.3s var(--ease);
  cursor: pointer;
  border-left: 3px solid transparent;
}
.faq__item:hover { transform: none; border-left-color: var(--accent); }
.faq__item[open] {
  grid-template-rows: auto 1fr;
  box-shadow: var(--shadow-heavy);
  border-left-color: var(--accent);
}

.faq__answer-wrap {
  overflow: hidden;
  min-height: 0;
}

.faq__answer {
  padding: 0 24px 20px;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text-secondary);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.4s ease 0.1s, transform 0.4s ease 0.1s;
}
.faq__item[open] .faq__answer {
  opacity: 1;
  transform: translateY(0);
}

.faq__question {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px;
  font-size: 0.95rem; font-weight: 600;
  list-style: none; cursor: pointer;
  transition: color var(--duration) var(--ease);
}
.faq__item[open] .faq__question { color: var(--accent); }

.faq__question::-webkit-details-marker { display: none; }
.faq__question::marker { display: none; content: ''; }

.faq__chevron { flex-shrink: 0; color: var(--text-tertiary); transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.faq__item[open] .faq__chevron { transform: rotate(180deg); color: var(--accent); }


/* ------------------------------------------------------------
   14. CONTACT FORM
   ------------------------------------------------------------ */
.contact { position: relative; z-index: 1; padding: 80px 24px; max-width: 600px; margin: 0 auto; content-visibility: auto; contain-intrinsic-size: auto 500px; }
.contact__form { padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.contact__form:hover { transform: none; }

.form-group {
  position: relative;
}

.form-label {
  position: absolute;
  top: 14px; left: 16px;
  font-size: 0.88rem;
  color: var(--text-tertiary);
  pointer-events: none;
  transition: all 0.2s var(--ease);
  background: var(--card-bg);
  padding: 0 4px;
}

.sk-input:focus ~ .form-label,
.sk-input:not(:placeholder-shown) ~ .form-label,
.sk-input:valid ~ .form-label {
  top: -8px;
  left: 12px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
}

.sk-input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid rgba(0, 0, 0, 0.12);
  border-radius: var(--radius-sm);
  background: var(--card-bg-nested);
  font-family: var(--font);
  font-size: 0.92rem;
  color: var(--text);
  outline: none;
  transition: all var(--duration) var(--ease);
  box-shadow: var(--shadow-pressed);
  -webkit-appearance: none;
}

.sk-input::placeholder {
  color: var(--text-tertiary);
  opacity: 0.6;
}

.sk-input:focus {
  border-color: var(--accent);
  box-shadow: var(--shadow-pressed), 0 0 0 3px rgba(139, 69, 19, 0.15);
}

.sk-textarea { resize: vertical; min-height: 100px; }

select.sk-input {
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%238a7560' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-hint {
  display: none;
  font-size: 0.72rem;
  color: var(--red);
  margin-top: 4px;
  padding-left: 2px;
}

.form-check {
  display: none;
  position: absolute;
  right: 12px;
  top: 14px;
  color: var(--green);
}

.form-group.is-invalid .form-hint { display: block; }
.form-group.is-invalid .sk-input { border-color: var(--red); }
.form-group.is-valid .form-check { display: block; }
.form-group.is-valid .sk-input { border-color: var(--green); }

.contact__success {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: rgba(46, 125, 50, 0.1);
  color: var(--green);
  font-weight: 600;
  font-size: 0.88rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(46, 125, 50, 0.2);
}

.contact__success.is-visible { display: flex; }

.contact__submit { padding: 14px; font-size: 0.95rem; }


/* ------------------------------------------------------------
   15. TOASTS
   ------------------------------------------------------------ */
.toast-container {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 380px;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--card-bg);
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: var(--shadow-heavy);
  transform: translateX(120%);
  transition: transform 0.4s var(--ease-spring), opacity 0.4s var(--ease);
  opacity: 0;
  position: relative;
  overflow: hidden;
  /* Leather texture */
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
}

.toast--success { border-left: 3px solid var(--accent); }
.toast--error { border-left: 3px solid #8B1E0F; }
.toast--info { border-left: 3px solid var(--text-tertiary); }

/* Toast stitch line — top edge */
.toast::before {
  content: '';
  position: absolute;
  top: 0;
  left: 8px;
  right: 8px;
  height: 0;
  border-top: 1px dashed rgba(210, 180, 140, 0.5);
  pointer-events: none;
  z-index: 1;
}

[data-theme="dark"] .toast::before {
  border-top-color: rgba(160, 130, 100, 0.35);
}

.toast.is-visible {
  transform: translateX(0);
  opacity: 1;
}

.toast.is-dismissing {
  transform: translateX(120%);
  opacity: 0;
}

.toast__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toast--success .toast__icon { background: rgba(139, 69, 19, 0.15); color: #8B4513; }
.toast--error .toast__icon { background: rgba(139, 30, 15, 0.15); color: #8B1E0F; }
.toast--info .toast__icon { background: rgba(180, 150, 110, 0.15); color: var(--text-secondary); }

.toast__content { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.toast__title { font-size: 0.85rem; font-weight: 600; }
.toast__message { font-size: 0.78rem; color: var(--text-secondary); line-height: 1.4; }

.toast__close {
  flex-shrink: 0;
  padding: 2px;
  color: var(--text-tertiary);
  transition: color var(--duration);
}

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

.toast__progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.toast--success .toast__progress { background: var(--accent); }
.toast--error .toast__progress { background: #8B1E0F; }
.toast--info .toast__progress { background: var(--text-tertiary); }

.toast-demo {
  position: relative;
  z-index: 1;
  padding: 80px 24px;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.toast-demo__buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}


/* ------------------------------------------------------------
   16. CONTROL PANEL
   ------------------------------------------------------------ */
.control-panel {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 150;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.control-panel:hover { transform: none; }

.control-panel__toggle {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: grab;
  touch-action: none;
  user-select: none;
  transition: all var(--duration) var(--ease);
}

.control-panel__toggle:active { cursor: grabbing; }
.control-panel__toggle:hover { color: var(--accent); }

.control-panel__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all var(--duration) var(--ease);
}

.control-panel__body.is-open {
  width: 260px;
  max-height: 400px;
  opacity: 1;
  padding: 6px 16px 16px;
}

.control-panel__title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  margin-bottom: 4px;
}

.control-panel__control {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 4px 0;
}

.control-panel__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.control-panel__label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.control-panel__value {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  min-width: 36px;
  text-align: right;
}

/* Skeuomorphic slider — chrome track with leather thumb */
.sk-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(180deg, #a09080 0%, #b0a090 50%, #c0b0a0 100%);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 0 rgba(255, 255, 255, 0.3);
  outline: none;
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .sk-slider {
  background: linear-gradient(180deg, #3a3020 0%, #4a4030 50%, #5a5040 100%);
}

.sk-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--accent-light) 0%, var(--accent) 50%, var(--accent-dark) 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.4),
    0 2px 4px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(0, 0, 0, 0.2);
  cursor: grab;
  transition: box-shadow var(--duration);
}

.sk-slider::-webkit-slider-thumb:active {
  cursor: grabbing;
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.3),
    0 1px 2px rgba(0, 0, 0, 0.2);
}

.sk-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--accent-light) 0%, var(--accent) 50%, var(--accent-dark) 100%);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(0, 0, 0, 0.2);
  cursor: grab;
}

.sk-slider::-moz-range-track {
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(180deg, #a09080 0%, #b0a090 50%, #c0b0a0 100%);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(0, 0, 0, 0.15);
}

/* Presets */
.control-panel__presets {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.sk-preset {
  flex: 1;
  padding: 7px 0;
  border-radius: var(--radius-xs);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-tertiary);
  background: var(--card-bg-nested);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: var(--shadow-ambient);
  transition: all var(--duration) var(--ease);
}

.sk-preset:hover {
  color: var(--text);
  box-shadow: var(--shadow-drop);
}

.sk-preset--active {
  color: var(--accent);
  background: var(--card-bg);
  box-shadow: var(--shadow-pressed);
  border-color: rgba(139, 69, 19, 0.2);
}


/* ------------------------------------------------------------
   17. FOOTER
   ------------------------------------------------------------ */
.footer {
  position: relative;
  z-index: 1;
  margin: 0 24px 24px;
  border-radius: var(--radius);
}

.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.footer__links {
  display: flex;
  gap: 24px;
}

.footer__links a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: color var(--duration);
}

.footer__links a:hover { color: var(--accent); }

.footer__copy {
  font-size: 0.78rem;
  color: var(--text-tertiary);
}


/* ------------------------------------------------------------
   18. SCROLL REVEAL
   ------------------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  will-change: opacity, transform;
}

.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

.features__grid .reveal:nth-child(1) { transition-delay: 0ms; }
.features__grid .reveal:nth-child(2) { transition-delay: 80ms; }
.features__grid .reveal:nth-child(3) { transition-delay: 160ms; }
.features__grid .reveal:nth-child(4) { transition-delay: 240ms; }
.features__grid .reveal:nth-child(5) { transition-delay: 320ms; }
.features__grid .reveal:nth-child(6) { transition-delay: 400ms; }

.materials__grid .reveal:nth-child(1) { transition-delay: 0ms; }
.materials__grid .reveal:nth-child(2) { transition-delay: 80ms; }
.materials__grid .reveal:nth-child(3) { transition-delay: 160ms; }
.materials__grid .reveal:nth-child(4) { transition-delay: 240ms; }
.materials__grid .reveal:nth-child(5) { transition-delay: 320ms; }
.materials__grid .reveal:nth-child(6) { transition-delay: 400ms; }

.dashboard__stats-row .reveal:nth-child(1) { transition-delay: 0ms; }
.dashboard__stats-row .reveal:nth-child(2) { transition-delay: 80ms; }
.dashboard__stats-row .reveal:nth-child(3) { transition-delay: 160ms; }

.testimonials__grid .reveal:nth-child(1) { transition-delay: 0ms; }
.testimonials__grid .reveal:nth-child(2) { transition-delay: 80ms; }
.testimonials__grid .reveal:nth-child(3) { transition-delay: 160ms; }

.pricing__grid .reveal:nth-child(1) { transition-delay: 0ms; }
.pricing__grid .reveal:nth-child(2) { transition-delay: 80ms; }
.pricing__grid .reveal:nth-child(3) { transition-delay: 160ms; }


/* ------------------------------------------------------------
   18b. ACTIVE NAV HIGHLIGHT
   ------------------------------------------------------------ */
.nav__link--active {
  color: var(--accent) !important;
  position: relative;
}
.nav__link--active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}


/* ------------------------------------------------------------
   18c. THEME TRANSITION
   ------------------------------------------------------------ */
.is-theme-transitioning,
.is-theme-transitioning *,
.is-theme-transitioning *::before,
.is-theme-transitioning *::after {
  transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease !important;
}


/* ------------------------------------------------------------
   18d. BACK TO TOP
   ------------------------------------------------------------ */
.back-to-top {
  position: fixed;
  bottom: 80px;
  right: 24px;
  z-index: 300;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(0,0,0,0.12);
  background: var(--card-bg);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-raised);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), background 0.2s;
  pointer-events: none;
}
.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover {
  background: var(--accent);
  color: white;
}
.back-to-top:active {
  transform: scale(0.92);
}




/* ------------------------------------------------------------
   19. SPOTLIGHT
   ------------------------------------------------------------ */
.spotlight {
  position: relative;
  overflow: hidden;
}

/* Stitch pattern — used by .sk-card--stitched via combined ::after */
@define-property --stitch-color {
  syntax: '<color>';
  initial-value: rgba(210, 180, 140, 0.7);
  inherits: false;
}

.spotlight::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    300px circle at var(--spot-x, 50%) var(--spot-y, 50%),
    rgba(255, 255, 255, 0.15) 0%,
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
  z-index: 2;
}

[data-theme="dark"] .spotlight::after {
  background: radial-gradient(
    300px circle at var(--spot-x, 50%) var(--spot-y, 50%),
    rgba(255, 255, 255, 0.08) 0%,
    transparent 60%
  );
}

/* Stitched cards: merge stitch lines INTO the spotlight ::after */
.sk-card--stitched.spotlight::after {
  background:
    /* Spotlight radial */
    radial-gradient(
      300px circle at var(--spot-x, 50%) var(--spot-y, 50%),
      rgba(255, 255, 255, 0.15) 0%,
      transparent 60%
    ),
    /* Top stitch — 8px from top, 8px from edges */
    repeating-linear-gradient(
      90deg,
      transparent 0px, transparent 4px,
      rgba(210, 180, 140, 0.7) 4px, rgba(210, 180, 140, 0.7) 10px,
      transparent 10px, transparent 16px
    ) no-repeat 8px 8px / calc(100% - 16px) 1.5px,
    /* Bottom stitch */
    repeating-linear-gradient(
      90deg,
      transparent 0px, transparent 4px,
      rgba(210, 180, 140, 0.7) 4px, rgba(210, 180, 140, 0.7) 10px,
      transparent 10px, transparent 16px
    ) no-repeat 8px calc(100% - 9px) / calc(100% - 16px) 1.5px,
    /* Left stitch */
    repeating-linear-gradient(
      0deg,
      transparent 0px, transparent 4px,
      rgba(210, 180, 140, 0.7) 4px, rgba(210, 180, 140, 0.7) 10px,
      transparent 10px, transparent 16px
    ) no-repeat 8px 8px / 1.5px calc(100% - 16px),
    /* Right stitch */
    repeating-linear-gradient(
      0deg,
      transparent 0px, transparent 4px,
      rgba(210, 180, 140, 0.7) 4px, rgba(210, 180, 140, 0.7) 10px,
      transparent 10px, transparent 16px
    ) no-repeat calc(100% - 9px) 8px / 1.5px calc(100% - 16px);
  opacity: 1;
}

[data-theme="dark"] .sk-card--stitched.spotlight::after {
  background:
    radial-gradient(
      300px circle at var(--spot-x, 50%) var(--spot-y, 50%),
      rgba(255, 255, 255, 0.08) 0%,
      transparent 60%
    ),
    repeating-linear-gradient(
      90deg,
      transparent 0px, transparent 4px,
      rgba(160, 130, 100, 0.55) 4px, rgba(160, 130, 100, 0.55) 10px,
      transparent 10px, transparent 16px
    ) no-repeat 8px 8px / calc(100% - 16px) 1.5px,
    repeating-linear-gradient(
      90deg,
      transparent 0px, transparent 4px,
      rgba(160, 130, 100, 0.55) 4px, rgba(160, 130, 100, 0.55) 10px,
      transparent 10px, transparent 16px
    ) no-repeat 8px calc(100% - 9px) / calc(100% - 16px) 1.5px,
    repeating-linear-gradient(
      0deg,
      transparent 0px, transparent 4px,
      rgba(160, 130, 100, 0.55) 4px, rgba(160, 130, 100, 0.55) 10px,
      transparent 10px, transparent 16px
    ) no-repeat 8px 8px / 1.5px calc(100% - 16px),
    repeating-linear-gradient(
      0deg,
      transparent 0px, transparent 4px,
      rgba(160, 130, 100, 0.55) 4px, rgba(160, 130, 100, 0.55) 10px,
      transparent 10px, transparent 16px
    ) no-repeat calc(100% - 9px) 8px / 1.5px calc(100% - 16px);
}

/* Stitched cards: stitches always visible, spotlight only on hover */
.sk-card--stitched.spotlight:hover::after {
  background:
    /* Spotlight radial ON TOP */
    radial-gradient(
      300px circle at var(--spot-x, 50%) var(--spot-y, 50%),
      rgba(255, 255, 255, 0.2) 0%,
      transparent 60%
    ),
    /* Stitches underneath */
    repeating-linear-gradient(
      90deg,
      transparent 0px, transparent 4px,
      rgba(210, 180, 140, 0.8) 4px, rgba(210, 180, 140, 0.8) 10px,
      transparent 10px, transparent 16px
    ) no-repeat 8px 8px / calc(100% - 16px) 1.5px,
    repeating-linear-gradient(
      90deg,
      transparent 0px, transparent 4px,
      rgba(210, 180, 140, 0.8) 4px, rgba(210, 180, 140, 0.8) 10px,
      transparent 10px, transparent 16px
    ) no-repeat 8px calc(100% - 9px) / calc(100% - 16px) 1.5px,
    repeating-linear-gradient(
      0deg,
      transparent 0px, transparent 4px,
      rgba(210, 180, 140, 0.8) 4px, rgba(210, 180, 140, 0.8) 10px,
      transparent 10px, transparent 16px
    ) no-repeat 8px 8px / 1.5px calc(100% - 16px),
    repeating-linear-gradient(
      0deg,
      transparent 0px, transparent 4px,
      rgba(210, 180, 140, 0.8) 4px, rgba(210, 180, 140, 0.8) 10px,
      transparent 10px, transparent 16px
    ) no-repeat calc(100% - 9px) 8px / 1.5px calc(100% - 16px);
  opacity: 1;
}

[data-theme="dark"] .sk-card--stitched.spotlight:hover::after {
  background:
    radial-gradient(
      300px circle at var(--spot-x, 50%) var(--spot-y, 50%),
      rgba(255, 255, 255, 0.12) 0%,
      transparent 60%
    ),
    repeating-linear-gradient(
      90deg,
      transparent 0px, transparent 4px,
      rgba(160, 130, 100, 0.65) 4px, rgba(160, 130, 100, 0.65) 10px,
      transparent 10px, transparent 16px
    ) no-repeat 8px 8px / calc(100% - 16px) 1.5px,
    repeating-linear-gradient(
      90deg,
      transparent 0px, transparent 4px,
      rgba(160, 130, 100, 0.65) 4px, rgba(160, 130, 100, 0.65) 10px,
      transparent 10px, transparent 16px
    ) no-repeat 8px calc(100% - 9px) / calc(100% - 16px) 1.5px,
    repeating-linear-gradient(
      0deg,
      transparent 0px, transparent 4px,
      rgba(160, 130, 100, 0.65) 4px, rgba(160, 130, 100, 0.65) 10px,
      transparent 10px, transparent 16px
    ) no-repeat 8px 8px / 1.5px calc(100% - 16px),
    repeating-linear-gradient(
      0deg,
      transparent 0px, transparent 4px,
      rgba(160, 130, 100, 0.65) 4px, rgba(160, 130, 100, 0.65) 10px,
      transparent 10px, transparent 16px
    ) no-repeat calc(100% - 9px) 8px / 1.5px calc(100% - 16px);
}

.spotlight:hover::after {
  opacity: 1;
}


/* ------------------------------------------------------------
   20. MAGNETIC
   ------------------------------------------------------------ */
.magnetic {
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.magnetic:active { transition-duration: 0.1s; }


/* ------------------------------------------------------------
   21. WOODEN TOGGLE — Hyper-realistic
   ------------------------------------------------------------ */
.wood-toggle-demo {
  position: relative;
  z-index: 1;
  padding: 80px 24px;
  max-width: 800px;
  margin: 0 auto;
}

.wood-toggle-demo__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 32px;
}

.wood-toggle-showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 32px 24px;
  border-radius: var(--radius);
  background: var(--card-bg);
  box-shadow: var(--shadow-raised);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.wood-toggle-showcase__label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.wood-toggle-showcase__state {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-tertiary);
  min-height: 16px;
}

/* === The Toggle === */
.wood-toggle {
  position: relative;
  width: 72px;
  height: 38px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.wood-toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

/* Track — recessed wood groove */
.wood-toggle__track {
  position: absolute;
  inset: 0;
  border-radius: 19px;
  /* Deep inset shadow — carved groove */
  box-shadow:
    inset 0 3px 6px rgba(0, 0, 0, 0.4),
    inset 0 1px 2px rgba(0, 0, 0, 0.3),
    inset 0 -1px 1px rgba(255, 255, 255, 0.08),
    /* Bottom edge highlight */
    0 1px 0 rgba(255, 255, 255, 0.25);
  /* Dark walnut track */
  background:
    /* Wood grain lines */
    repeating-linear-gradient(
      2deg,
      transparent 0px,
      transparent 3px,
      rgba(0, 0, 0, 0.08) 3px,
      rgba(0, 0, 0, 0.08) 3.5px
    ),
    repeating-linear-gradient(
      178deg,
      transparent 0px,
      transparent 6px,
      rgba(255, 255, 255, 0.03) 6px,
      rgba(255, 255, 255, 0.03) 6.5px
    ),
    /* Base wood color — dark walnut */
    linear-gradient(180deg, #3a2510 0%, #2a1a0c 40%, #1f1308 100%);
  transition: box-shadow 0.3s var(--ease);
}

/* Track inner highlight — top edge of groove */
.wood-toggle__track::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 4px;
  right: 4px;
  height: 40%;
  border-radius: 19px 19px 50% 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, transparent 100%);
  pointer-events: none;
}

/* Track "ON" groove color — subtle warm tint */
.wood-toggle input:checked ~ .wood-toggle__track {
  background:
    repeating-linear-gradient(
      2deg,
      transparent 0px,
      transparent 3px,
      rgba(0, 0, 0, 0.08) 3px,
      rgba(0, 0, 0, 0.08) 3.5px
    ),
    repeating-linear-gradient(
      178deg,
      transparent 0px,
      transparent 6px,
      rgba(255, 255, 255, 0.03) 6px,
      rgba(255, 255, 255, 0.03) 6.5px
    ),
    linear-gradient(180deg, #4a2a12 0%, #3a1f0c 40%, #2a1508 100%);
}

/* === Thumb — raised wooden knob === */
.wood-toggle__thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 30px;
      height: 30px;
  border-radius: 50%;
  z-index: 2;
  /* Raised shadow — knob sits ON the surface */
  box-shadow:
    /* Specular highlight — top-left light source */
    inset 2px 2px 4px rgba(255, 255, 255, 0.35),
    inset 1px 1px 2px rgba(255, 255, 255, 0.2),
    /* Bevel — bottom-right dark */
    inset -2px -2px 4px rgba(0, 0, 0, 0.25),
    inset -1px -1px 2px rgba(0, 0, 0, 0.15),
    /* Cast shadow below knob */
    0 2px 4px rgba(0, 0, 0, 0.4),
    0 4px 8px rgba(0, 0, 0, 0.2),
    /* Reflected light on surface below */
    0 1px 0 rgba(255, 255, 255, 0.15);
  /* Light oak wood */
  background:
    /* Wood grain — subtle, follows curvature */
    repeating-linear-gradient(
      15deg,
      transparent 0px,
      transparent 2px,
      rgba(0, 0, 0, 0.06) 2px,
      rgba(0, 0, 0, 0.06) 2.5px
    ),
    repeating-linear-gradient(
      165deg,
      transparent 0px,
      transparent 4px,
      rgba(255, 255, 255, 0.05) 4px,
      rgba(255, 255, 255, 0.05) 4.5px
    ),
    /* Base wood — warm oak */
    radial-gradient(circle at 35% 35%, #c9a06c 0%, #b8894e 40%, #a07840 70%, #8b6830 100%);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.3s var(--ease),
              background 0.3s var(--ease);
}

/* Thumb specular highlight — bright spot from top-left */
.wood-toggle__thumb::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 4px;
  width: 12px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.45) 0%, transparent 70%);
  pointer-events: none;
}

/* Thumb center indent — like a real knob has a slight depression */
.wood-toggle__thumb::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, 0.2),
    inset 0 -1px 1px rgba(255, 255, 255, 0.15);
  background: radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
}

/* Sliding to ON position */
.wood-toggle input:checked ~ .wood-toggle__thumb {
  transform: translateX(34px);
  /* Slightly darker wood for ON state — aged patina */
  background:
    repeating-linear-gradient(
      15deg,
      transparent 0px, transparent 2px,
      rgba(0, 0, 0, 0.08) 2px, rgba(0, 0, 0, 0.08) 2.5px
    ),
    repeating-linear-gradient(
      165deg,
      transparent 0px, transparent 4px,
      rgba(255, 255, 255, 0.04) 4px, rgba(255, 255, 255, 0.04) 4.5px
    ),
    radial-gradient(circle at 35% 35%, #b8894e 0%, #a07840 40%, #8b6830 70%, #6b4820 100%);
}

/* Thumb pressed state — physically depresses */
.wood-toggle__thumb:active,
.wood-toggle input:checked ~ .wood-toggle__thumb:active {
  transform: translateX(34px) scale(0.95);
  box-shadow:
    inset 2px 2px 3px rgba(0, 0, 0, 0.3),
    inset -1px -1px 2px rgba(255, 255, 255, 0.1),
    0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Unchecked pressed */
.wood-toggle input:not(:checked) ~ .wood-toggle__thumb:active {
  transform: scale(0.95);
}

/* === Brass indicator dot === */
.wood-toggle__indicator {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  z-index: 1;
  /* Off: dark brass, recessed */
  left: calc(100% - 16px);
  background: radial-gradient(circle at 35% 35%, #8a7a50, #5a4a28);
  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, 0.5),
    inset 0 -1px 1px rgba(255, 255, 255, 0.1),
    0 0 0 1px rgba(0, 0, 0, 0.2);
  transition: all 0.4s var(--ease);
}

/* On: glowing brass LED */
.wood-toggle input:checked ~ .wood-toggle__indicator {
  left: 10px;
  background: radial-gradient(circle at 35% 35%, #ffd700, #daa520, #b8860b);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.5),
    0 0 4px rgba(255, 215, 0, 0.6),
    0 0 8px rgba(255, 215, 0, 0.3),
    0 0 0 1px rgba(184, 134, 11, 0.5);
}

/* === Variant: Dark Walnut === */
.wood-toggle--dark .wood-toggle__track {
  background:
    repeating-linear-gradient(
      2deg,
      transparent 0px, transparent 3px,
      rgba(0, 0, 0, 0.1) 3px, rgba(0, 0, 0, 0.1) 3.5px
    ),
    linear-gradient(180deg, #2a1a0c 0%, #1a0f06 40%, #100a04 100%);
}

.wood-toggle--dark .wood-toggle__thumb {
  background:
    repeating-linear-gradient(
      15deg,
      transparent 0px, transparent 2px,
      rgba(0, 0, 0, 0.1) 2px, rgba(0, 0, 0, 0.1) 2.5px
    ),
    radial-gradient(circle at 35% 35%, #8b6830 0%, #6b4820 40%, #4a3010 70%, #2a1a08 100%);
}

.wood-toggle--dark .wood-toggle__indicator {
  background: radial-gradient(circle at 35% 35%, #5a4a28, #3a2a10);
}

.wood-toggle--dark input:checked ~ .wood-toggle__indicator {
  background: radial-gradient(circle at 35% 35%, #ffd700, #daa520);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.4),
    0 0 6px rgba(255, 215, 0, 0.5),
    0 0 12px rgba(255, 215, 0, 0.25);
}

/* === Variant: Cherry === */
.wood-toggle--cherry .wood-toggle__track {
  background:
    repeating-linear-gradient(
      2deg,
      transparent 0px, transparent 3px,
      rgba(0, 0, 0, 0.07) 3px, rgba(0, 0, 0, 0.07) 3.5px
    ),
    linear-gradient(180deg, #5a1a0a 0%, #4a1208 40%, #3a0c06 100%);
}

.wood-toggle--cherry .wood-toggle__thumb {
  background:
    repeating-linear-gradient(
      15deg,
      transparent 0px, transparent 2px,
      rgba(0, 0, 0, 0.06) 2px, rgba(0, 0, 0, 0.06) 2.5px
    ),
    radial-gradient(circle at 35% 35%, #c0503a 0%, #a03828 40%, #802818 70%, #601808 100%);
}

.wood-toggle--cherry input:checked ~ .wood-toggle__thumb {
  background:
    repeating-linear-gradient(
      15deg,
      transparent 0px, transparent 2px,
      rgba(0, 0, 0, 0.08) 2px, rgba(0, 0, 0, 0.08) 2.5px
    ),
    radial-gradient(circle at 35% 35%, #a03828 0%, #802818 40%, #601808 70%, #401008 100%);
}

.wood-toggle--cherry .wood-toggle__indicator {
  background: radial-gradient(circle at 35% 35%, #8a5030, #5a3018);
}

.wood-toggle--cherry input:checked ~ .wood-toggle__indicator {
  background: radial-gradient(circle at 35% 35%, #ff6b35, #e85d2c);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.4),
    0 0 4px rgba(255, 107, 53, 0.6),
    0 0 8px rgba(255, 107, 53, 0.3);
}

/* === Reduced motion === */
@media (prefers-reduced-motion: reduce) {
  .wood-toggle__thumb {
    transition: none;
  }
  .wood-toggle__indicator {
    transition: none;
  }
}


/* ------------------------------------------------------------
   22. RESPONSIVE
   ------------------------------------------------------------ */
/* =============================================================
   RESPONSIVE DESIGN SYSTEM
   Breakpoints: 1024px (tablet) → 768px (small tablet) → 640px (mobile) → 480px (small mobile)
   ============================================================= */

/* ---- TABLET (max-width: 1024px) ---- */
@media (max-width: 1024px) {
  .sidebar--collapsed .sidebar__label,
  .sidebar--collapsed .sidebar__badge,
  .sidebar--collapsed .sidebar__user-info,
  .sidebar--collapsed .sidebar__menu-btn { opacity: 1; width: auto; }
  .sidebar--collapsed .sidebar__item { justify-content: flex-start; padding: 10px 12px; }
  .sidebar--collapsed .sidebar__item[data-tooltip]::after { display: none; }

  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .materials__grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard__stats-row { grid-template-columns: repeat(2, 1fr); }
  .testimonials__grid { grid-template-columns: repeat(2, 1fr); }
  .pricing__grid { grid-template-columns: repeat(2, 1fr); }

  .story__inner { gap: 40px; }
  .story__visual { flex: 1; max-width: 480px; }
  .faq__grid { grid-template-columns: repeat(2, 1fr); }
  .contact__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* ---- SMALL TABLET (max-width: 768px) ---- */
@media (max-width: 768px) {
  /* Nav */
  .nav__inner { padding: 0 16px; }
  .nav__name { font-size: 0.9rem; }

  /* Hero */
  .hero { flex-direction: column; gap: 32px; padding: 48px 20px 40px; }
  .hero__content { text-align: center; }
  .hero__ctas { justify-content: center; }
  .hero__title { font-size: 2.6rem; }
  .hero__subtitle { font-size: 1rem; }

  /* Trust bar */
  .trust-bar__inner { flex-wrap: wrap; justify-content: center; gap: 16px; }
  .trust-bar__item { font-size: 0.74rem; padding: 8px 14px; }

  /* Story */
  .story { padding: 48px 20px; }
  .story__inner { flex-direction: column; gap: 36px; }
  .story__visual { max-width: 100%; }
  .story__title { font-size: 1.6rem; }
  .story__body { font-size: 0.92rem; }
  .story__stats { flex-direction: row; justify-content: center; gap: 24px; }
  .story__stat { text-align: center; }

  /* Features */
  .features__title { font-size: 1.5rem; }
  .features__subtitle { font-size: 0.85rem; }
  .features__grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .features__card { padding: 20px; }
  .features__card-title { font-size: 0.9rem; }
  .features__card-desc { font-size: 0.78rem; }

  /* Collection */
  .materials__title { font-size: 1.5rem; }
  .materials__grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .flip-card__inner { height: 340px; }

  /* Workshop / Dashboard */
  .dashboard { padding: 48px 20px; }
  .dashboard__layout { flex-direction: column; }
  .sidebar { width: 100%; min-width: 100%; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 8px 16px; }
  .sidebar__toggle { margin-bottom: 0; margin-right: 8px; }
  .sidebar__nav { flex-direction: row; flex-wrap: wrap; }
  .sidebar__item--active { box-shadow: none; }
  .sidebar__profile { margin-left: auto; margin-top: 0; }
  .dashboard__stats-row { grid-template-columns: repeat(2, 1fr); }
  .dashboard__main-header { flex-direction: column; align-items: flex-start; }

  /* Testimonials */
  .testimonials { padding: 48px 20px; }
  .testimonials__title { font-size: 1.5rem; }
  .testimonials__grid { grid-template-columns: 1fr; gap: 16px; }

  /* Pricing */
  .pricing { padding: 48px 20px; }
  .pricing__title { font-size: 1.5rem; }
  .pricing__grid { grid-template-columns: 1fr; gap: 20px; max-width: 420px; margin: 0 auto; }

  /* FAQ */
  .faq { padding: 48px 20px; }
  .faq__title { font-size: 1.5rem; }
  .faq__grid { grid-template-columns: 1fr; }

  /* Contact */
  .contact { padding: 48px 20px; }
  .contact__title { font-size: 1.5rem; }
  .contact__grid { grid-template-columns: 1fr; gap: 24px; }
  .contact__info { gap: 16px; }

  /* Toast demo */
  .toast-demo { padding: 40px 20px; }
  .toast-demo__grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }

  /* Wooden toggles */
  .wood-toggle-demo { padding: 40px 20px; }
  .wood-toggle-demo__grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }

  /* Footer */
  .footer { padding: 32px 20px; }
  .footer__inner { flex-direction: column; gap: 16px; }
  .footer__links { gap: 12px; }
}

/* ---- MOBILE (max-width: 640px) ---- */
@media (max-width: 640px) {
  :root { --nav-height: 56px; }

  /* Nav */
  .nav__links, .nav__actions { display: none; }
  .nav__hamburger { display: flex; }
  .nav__mobile-menu.active { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--card-bg); border-bottom: 2px solid rgba(0,0,0,0.1); padding: 12px 20px; gap: 4px; z-index: 99; box-shadow: 0 8px 24px rgba(0,0,0,0.15); }
  .nav__mobile-menu .nav__link { padding: 12px 14px; width: 100%; font-size: 0.9rem; border-radius: var(--radius-sm); }
  .nav__mobile-menu .nav__link:hover { background: rgba(139, 69, 19, 0.08); }

  /* Hero */
  .hero { padding: 32px 16px 28px; gap: 24px; }
  .hero__title { font-size: 2rem; line-height: 1.15; }
  .hero__subtitle { font-size: 0.9rem; }
  .hero__ctas { flex-direction: column; gap: 10px; }
  .hero__ctas .sk-btn { width: 100%; padding: 12px 20px; font-size: 0.88rem; text-align: center; }
  .hero__card { max-width: 100%; }
  .hero__card-stats { flex-direction: column; gap: 12px; }
  .hero__proof { flex-wrap: wrap; justify-content: center; gap: 8px 16px; }
  .hero__proof-divider { width: 1px; height: 20px; }
  .hero__proof-item { font-size: 0.7rem; text-align: center; }
  .hero__proof-item span { font-size: 1rem; }

  /* Trust bar */
  .trust-bar__inner { flex-wrap: wrap; justify-content: center; gap: 8px 16px; }
  .trust-bar__item { font-size: 0.7rem; padding: 5px 10px; white-space: normal; }

  /* Story */
  .story { padding: 32px 16px; }
  .story__title { font-size: 1.35rem; }
  .story__body { font-size: 0.85rem; }
  .story__stats { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 16px; }
  .story__stat-num { font-size: 1.3rem; }
  .story__stat-label { font-size: 0.62rem; }

  /* Features */
  .features { padding: 32px 16px; }
  .features__title { font-size: 1.3rem; }
  .features__grid { grid-template-columns: 1fr; gap: 12px; }
  .features__card { padding: 16px; }

  /* Collection */
  .materials { padding: 32px 16px; }
  .materials__title { font-size: 1.3rem; }
  .materials__grid { grid-template-columns: 1fr; gap: 14px; }
  .flip-card__inner { height: 320px; }

  /* Workshop / Dashboard */
  .dashboard { padding: 32px 16px; }
  .dashboard__stats-row { grid-template-columns: 1fr; }
  .dashboard__main-header { flex-direction: column; align-items: flex-start; }
  .sidebar { flex-direction: column; padding: 12px 16px; }
  .sidebar__nav { flex-direction: column; }
  .sidebar__user-info { display: none; }

  /* Testimonials */
  .testimonials { padding: 32px 16px; }
  .testimonials__grid { grid-template-columns: 1fr; gap: 14px; }
  .testimonial__card { padding: 16px; }
  .testimonial__quote { font-size: 0.85rem; }
  .testimonial__author { font-size: 0.78rem; }

  /* Pricing */
  .pricing { padding: 32px 16px; }
  .pricing__grid { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }
  .plan__price { font-size: 2rem; }
  .plan__features { font-size: 0.8rem; }

  /* FAQ */
  .faq { padding: 32px 16px; }
  .faq__item { padding: 14px 16px; }
  .faq__question { font-size: 0.88rem; }
  .faq__answer { font-size: 0.82rem; padding: 0 16px 14px; }

  /* Contact */
  .contact { padding: 32px 16px; }
  .contact__form { padding: 16px; }
  .sk-input, .sk-textarea { padding: 10px 12px; font-size: 0.85rem; }
  .contact__submit { padding: 12px 20px; font-size: 0.88rem; }

  /* Toast demo */
  .toast-demo { padding: 28px 16px; }
  .toast-demo__grid { grid-template-columns: 1fr; gap: 10px; }
  .toast-demo__btn { padding: 10px 16px; font-size: 0.82rem; }

  /* Wooden toggles */
  .wood-toggle-demo { padding: 28px 16px; }
  .wood-toggle-demo__grid { grid-template-columns: 1fr; gap: 14px; }

  /* Footer */
  .footer { padding: 20px 16px; }
  .footer__inner { flex-direction: column; align-items: center; gap: 12px; padding: 20px 16px; }
  .footer__links { flex-wrap: wrap; justify-content: center; gap: 8px 16px; }
  .footer__links a { font-size: 0.78rem; }
  .footer__copy { font-size: 0.7rem; text-align: center; }

  /* Back to top */
  .back-to-top { bottom: 70px; right: 16px; width: 40px; height: 40px; }

  /* Control panel */
  .control-panel { bottom: 16px; right: 16px; }
  .control-panel__body.is-open { width: 200px; }
  .control-panel__title { font-size: 0.7rem; }
  .control-panel__label { font-size: 0.62rem; }
}

/* ---- SMALL MOBILE (max-width: 480px) ---- */
@media (max-width: 480px) {
  .hero__title { font-size: 1.7rem; }
  .hero__subtitle { font-size: 0.82rem; }
  .section-title { font-size: 1.3rem; }
  .story__title { font-size: 1.2rem; }
  .story__body { font-size: 0.8rem; }
  .features__grid { gap: 10px; }
  .features__card { padding: 14px; }
  .features__card-title { font-size: 0.82rem; }
  .features__card-desc { font-size: 0.72rem; }
  .materials__grid { gap: 12px; }
  .flip-card__inner { height: 300px; }
  .pricing__grid { max-width: 320px; }
  .plan__price { font-size: 1.7rem; }
  .contact__info { gap: 12px; }
  .contact__info-text { font-size: 0.8rem; }
  .back-to-top { bottom: 60px; right: 12px; width: 36px; height: 36px; }
}
