:root {
  --bg: #f5eee8;
  --paper: #fffaf6;
  --text: #2f2420;
  --muted: #74635b;
  --line: #dfd0c6;
  --accent: #814c40;
  --accent-dark: #61362e;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.topbar {
  max-width: 1200px;
  margin: auto;
  padding: 22px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  color: var(--text);
  text-decoration: none;
  font-family: Georgia, serif;
  font-size: 1.3rem;
  letter-spacing: .12em;
}

.back {
  color: var(--muted);
  text-decoration: none;
  font-size: .9rem;
}

main {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px 100px;
}

.hero {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  max-width: 850px;
  padding: 60px 0 100px;
}

.eyebrow,
.section-label,
.small-label {
  color: var(--accent);
  letter-spacing: .18em;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.05;
}

h1 {
  margin: 10px 0 25px;
  font-size: clamp(3rem, 9vw, 7rem);
}

h2 {
  font-size: clamp(2.3rem, 6vw, 4.8rem);
  margin: 10px 0 20px;
}

h3 {
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  margin: 8px 0 14px;
}

.intro {
  max-width: 670px;
  color: var(--muted);
  font-size: 1.12rem;
  margin-bottom: 30px;
}

.button-primary,
.button-secondary {
  min-height: 50px;
  border-radius: 999px;
  padding: 14px 22px;
  border: none;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

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

.button-primary:hover {
  background: var(--accent-dark);
}

.button-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.models {
  padding-top: 40px;
}

.model-tabs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin: 22px 0 30px;
}

.model-tab {
  min-height: 75px;
  background: rgba(255,255,255,.45);
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--text);
  cursor: pointer;
  font-family: Georgia, serif;
  font-size: 1.05rem;
}

.model-tab.active {
  background: var(--text);
  color: white;
  border-color: var(--text);
}

.model-view {
  background: var(--paper);
  border-radius: 28px;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(55,35,25,.08);
}

.model-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 22px;
}

.model-heading h2 {
  margin-bottom: 0;
}

.model-number {
  color: var(--muted);
  font-family: Georgia, serif;
  font-size: 1.1rem;
}

.board-frame {
  overflow: hidden;
  border-radius: 20px;
  background: #e8ddd5;
}

.board-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.inspiration {
  padding: 36px 4px 20px;
  max-width: 800px;
}

.inspiration p {
  color: var(--muted);
}

.color-buttons {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding: 10px 0 12px;
  scrollbar-width: none;
}

.color-buttons::-webkit-scrollbar {
  display: none;
}

.color-choice {
  flex: 0 0 auto;
  min-height: 44px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 15px;
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
}

.color-choice.active {
  color: white;
  background: var(--text);
  border-color: var(--text);
}

.selection {
  border-top: 1px solid var(--line);
  margin-top: 10px;
  padding: 30px 4px 8px;
}

.selection p {
  max-width: 700px;
  color: var(--muted);
}

.dot {
  color: var(--accent);
  padding: 0 5px;
}

.selection-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.copy-message {
  color: var(--accent);
  min-height: 25px;
  margin-top: 10px;
}

.story {
  padding: 120px 0 60px;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 40px;
}

.story-item {
  padding: 24px;
  background: rgba(255,255,255,.5);
  border: 1px solid var(--line);
  border-radius: 22px;
}

.story-item > span {
  font-family: Georgia, serif;
  color: var(--accent);
  font-size: 1.4rem;
}

.story-item p {
  color: var(--muted);
}

.showroom {
  margin-top: 80px;
  padding: 55px;
  background: var(--text);
  color: white;
  border-radius: 28px;
}

.showroom .section-label {
  color: #d8aaa0;
}

.showroom p {
  color: #d8ccc6;
  max-width: 720px;
  margin-bottom: 28px;
}

.showroom .button-primary {
  background: white;
  color: var(--text);
}

footer {
  max-width: 1200px;
  margin: auto;
  padding: 30px 20px 50px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: .9rem;
}

footer a {
  color: inherit;
}

@media (max-width: 760px) {

  .topbar {
    padding: 18px 15px;
  }

  .back {
    font-size: .8rem;
  }

  main {
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero {
    min-height: auto;
    padding: 65px 0 90px;
  }

  .model-tabs {
    display: flex;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
  }

  .model-tabs::-webkit-scrollbar {
    display: none;
  }

  .model-tab {
    flex: 0 0 88px;
  }

  .model-view {
    border-radius: 22px;
    padding: 12px;
  }

  .model-heading {
    padding: 8px 4px 0;
  }

  .model-heading h2 {
    font-size: 2.4rem;
  }

  .board-frame {
    border-radius: 15px;
  }

  .inspiration {
    padding: 28px 5px 15px;
  }

  .selection {
    padding: 25px 5px 10px;
  }

  .selection-actions {
    flex-direction: column;
  }

  .selection-actions button {
    width: 100%;
  }

  .story {
    padding-top: 90px;
  }

  .story-grid {
    grid-template-columns: 1fr;
  }

  .showroom {
    padding: 30px 22px;
    margin-top: 60px;
  }

  footer {
    flex-direction: column;
    gap: 8px;
  }
}

/* ===== Jazzbag Handstitched mobile polish ===== */

@media (max-width: 760px) {

  .topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(245, 238, 232, .94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(223, 208, 198, .65);
  }

  .hero {
    padding: 42px 0 64px;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 15vw, 4.5rem);
    line-height: .98;
  }

  .intro {
    font-size: 1rem;
    margin-bottom: 22px;
  }

  .button-primary,
  .button-secondary {
    min-height: 52px;
  }

  .model-tabs {
    margin: 16px -14px 24px;
    padding: 0 14px 10px;
    scroll-snap-type: x mandatory;
  }

  .model-tab {
    flex: 0 0 92px;
    min-height: 68px;
    scroll-snap-align: start;
  }

  .model-view {
    margin-left: -6px;
    margin-right: -6px;
    padding: 10px;
  }

  .model-heading {
    align-items: center;
  }

  .model-number {
    font-size: .95rem;
  }

  .board-frame {
    margin-left: -10px;
    margin-right: -10px;
    border-radius: 0;
  }

  .board-frame img {
    width: 100%;
    height: auto;
  }

  .inspiration {
    padding-top: 22px;
  }

  .color-buttons {
    margin-left: -10px;
    margin-right: -10px;
    padding-left: 10px;
    padding-right: 10px;
    scroll-snap-type: x proximity;
  }

  .color-choice {
    min-height: 48px;
    scroll-snap-align: start;
  }

  .selection h3 {
    font-size: 1.7rem;
    line-height: 1.15;
  }

  .selection-actions {
    position: sticky;
    bottom: 8px;
    z-index: 15;
    padding: 8px;
    margin-left: -5px;
    margin-right: -5px;
    background: rgba(255,250,246,.94);
    backdrop-filter: blur(8px);
    border-radius: 18px;
    box-shadow: 0 8px 30px rgba(55,35,25,.10);
  }

  .story h2,
  .showroom h2 {
    font-size: 2.6rem;
  }

  .story-item {
    padding: 20px;
  }

  .showroom {
    border-radius: 22px;
  }
}

/* ===== Handstitched mobile + swipe dots v3 ===== */

.model-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 14px 0 4px;
}

.model-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: #cdbfb6;
  cursor: pointer;
}

.model-dot.active {
  background: var(--text);
  transform: scale(1.2);
}

.board-frame {
  touch-action: pan-y;
}

@media (max-width: 760px) {

  body {
    overflow-x: hidden;
  }

  main {
    padding-left: 12px;
    padding-right: 12px;
    padding-bottom: 35px;
  }

  .topbar {
    min-height: 72px;
    padding: 12px 16px;
  }

  .brand {
    font-size: 1.12rem;
    letter-spacing: .11em;
  }

  .back {
    font-size: .79rem;
    white-space: nowrap;
  }

  #models,
  .model-view,
  .story,
  .showroom {
    scroll-margin-top: 90px;
  }

  .hero {
    padding: 34px 4px 55px;
  }

  .hero h1 {
    font-size: clamp(2.9rem, 13vw, 4rem);
  }

  .intro {
    font-size: .98rem;
    line-height: 1.55;
  }

  .models {
    padding-top: 22px;
  }

  .model-tabs {
    gap: 9px;
    margin-top: 14px;
    margin-bottom: 22px;
  }

  .model-tab {
    flex: 0 0 92px;
    min-height: 72px;
    border-radius: 18px;
    font-size: 1rem;
  }

  .model-view {
    padding: 10px;
    border-radius: 22px;
  }

  .model-heading {
    padding: 10px 8px 4px;
  }

  .model-heading h2 {
    font-size: 2.65rem;
  }

  .model-number {
    font-size: .9rem;
  }

  .board-frame {
    margin: 8px -10px 0;
    border-radius: 0;
    overflow: hidden;
  }

  .board-frame img {
    width: 100%;
    height: auto;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
  }

  .model-dots {
    margin-top: 13px;
    margin-bottom: 6px;
  }

  .model-dot {
    width: 9px;
    height: 9px;
  }

  .inspiration {
    padding: 28px 12px 16px;
  }

  .inspiration h3 {
    font-size: 1.85rem;
  }

  .inspiration p {
    font-size: .98rem;
    line-height: 1.5;
  }

  .color-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: visible;
    gap: 9px;
    margin: 18px 0 8px;
    padding: 0;
  }

  .color-choice {
    width: 100%;
    min-height: 52px;
    padding: 10px 8px;
    white-space: normal;
    font-size: .84rem;
  }

  .selection {
    padding: 25px 12px 5px;
  }

  .selection h3 {
    font-size: 1.65rem;
  }

  .selection-actions {
    position: static;
    padding: 0;
    margin: 20px 0 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  .story {
    padding: 72px 0 20px;
  }

  .story h2 {
    font-size: 2.65rem;
  }

  .story-grid {
    gap: 12px;
    margin-top: 28px;
  }

  .story-item {
    padding: 22px;
    border-radius: 20px;
  }

  .story-item h3 {
    font-size: 1.75rem;
  }

  .story-item p {
    font-size: .96rem;
    line-height: 1.5;
  }

  .showroom {
    margin-top: 48px;
    padding: 30px 24px 32px;
    border-radius: 24px;
  }

  .showroom h2 {
    font-size: 2.9rem;
    line-height: 1.02;
  }

  .showroom p {
    font-size: .97rem;
    line-height: 1.55;
  }

  footer {
    padding: 35px 8px 25px;
  }
}
