:root {
  --blue: #1c55a6;
  --blue-dark: #143f7c;
  --ink: #1a1a1c;
  --muted: #5c6770;
  --line: #e4e7ee;
  --paper: #f5f7fb;
  --white: #fff;
  --shadow: 0 16px 40px rgba(20, 40, 80, 0.08);
  --header: 84px;
  --max: 1160px;
  --font: "Montserrat", sans-serif;
  --display: "Oswald", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  background: var(--white);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font-family: inherit; }

.topbar {
  background: var(--blue);
  color: #fff;
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.08em;
  padding: 8px 16px;
  font-weight: 500;
}

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fff;
  border-bottom: 1px solid var(--line);
  height: var(--header);
  display: flex;
  align-items: center;
}
.header-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo img { height: 68px; width: auto; }
.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 15px;
  font-weight: 500;
}
.nav a:hover, .nav button:hover { color: var(--blue); }
.nav-item { position: relative; }
.nav-item > button {
  background: none;
  border: 0;
  padding: 0;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  color: inherit;
}
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 8px 0;
  margin-top: 10px;
}
.dropdown::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 14px;
}
.nav-item:hover .dropdown, .nav-item:focus-within .dropdown { display: block; }
.dropdown a {
  display: block;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
}
.dropdown a:hover { background: var(--paper); color: var(--blue); }
.nav a.active, .nav button.active { color: var(--blue); }
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 10px;
  background: var(--ink);
}

.hero-3d {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 320px;
  height: min(820px, calc(100vh - var(--header) - 36px));
  min-height: 640px;
  background: radial-gradient(ellipse 70% 55% at 42% 40%, #1a1c22 0%, #0e0e10 72%);
  color: #fff;
}
.viewer-stage { position: relative; height: 100%; min-width: 0; min-height: 0; }
.viewer-stage canvas { width: 100%; max-width: 100%; min-width: 0; height: 100%; display: block; touch-action: none; cursor: grab; }
.viewer-hint {
  position: absolute;
  left: 20px;
  bottom: 16px;
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.72);
}
.viewer-types-panel,
.viewer-colors {
  margin: 0;
  padding: 28px 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: auto;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 140px);
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  box-shadow: none;
}
.viewer-types-panel {
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 140px);
}
.viewer-types { display: flex; flex-direction: column; gap: 6px; margin: 0 0 14px; }
.viewer-type {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  width: 100%;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}
.viewer-type small { font-size: 11px; font-weight: 500; color: rgba(255, 255, 255, 0.5); }
.viewer-type span { white-space: nowrap; }
.viewer-type:hover { background: rgba(255, 255, 255, 0.04); }
.viewer-type.is-active { border-color: #7aa2e3; background: rgba(28, 85, 166, 0.45); }
.viewer-kicker {
  margin: 0;
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}
.viewer-colors h2 {
  margin: 0 0 4px;
  color: #fff;
  text-align: left;
  font-family: var(--display);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: none;
}
.viewer-note { margin: 0 0 12px; font-size: 13px; color: rgba(255, 255, 255, 0.55); }
.swatch {
  display: grid;
  grid-template-columns: 28px 1fr;
  column-gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
}
.swatch:hover { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.08); }
.swatch-chip {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}
.swatch-name { display: block; font-size: 13px; font-weight: 600; line-height: 1.25; }
.swatch-role { display: block; font-size: 11px; font-weight: 500; color: rgba(255, 255, 255, 0.5); }
.swatch input[type="color"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  padding: 0;
  border: 0;
  pointer-events: none;
}
.viewer-reset {
  margin-top: 16px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: transparent;
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}
.viewer-reset:hover { background: rgba(255, 255, 255, 0.06); }
.hint-touch { display: none; }
@media (hover: none) and (pointer: coarse) {
  /* Let vertical swipes scroll the page; horizontal drags rotate the glove. */
  .viewer-stage canvas { touch-action: pan-y; }
  .hint-pointer { display: none; }
  .hint-touch { display: inline; }
}
@media (max-width: 900px) {
  /* One column: glove-type chips, full-width viewer, compact material grid. */
  .hero-3d {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto min(62vh, 560px) auto;
    height: auto;
    min-height: 0;
  }
  .viewer-types-panel {
    grid-row: 1;
    padding: 14px 0 10px;
    gap: 8px;
    overflow: hidden;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .viewer-kicker { padding: 0 16px; font-size: 11px; letter-spacing: 0.16em; }
  .viewer-types {
    flex-direction: row;
    gap: 8px;
    margin: 0;
    padding: 2px 16px 4px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scroll-padding: 0 16px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .viewer-types::-webkit-scrollbar { display: none; }
  /* Fade the right edge so it is obvious more gloves are off-screen; the
     viewer drops the fade once the strip is scrolled to its end. */
  .viewer-types:not(.is-end) {
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent);
  }
  .viewer-type {
    flex: 0 0 auto;
    width: auto;
    min-height: 44px;
    justify-content: center;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 13px;
    scroll-snap-align: start;
  }
  .viewer-type small { font-size: 11px; }
  .viewer-stage {
    grid-row: 2;
    height: 100%;
    min-height: 0;
  }
  .viewer-hint {
    left: 16px;
    right: 76px;
    bottom: 12px;
    text-align: center;
    font-size: 12px;
    pointer-events: none;
  }
  .viewer-colors {
    grid-row: 3;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px 8px;
    padding: 18px 16px 22px;
    overflow: visible;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
  .viewer-colors h2,
  .viewer-note,
  .viewer-reset { grid-column: 1 / -1; }
  .viewer-colors h2 { font-size: 24px; }
  .viewer-note { margin-bottom: 6px; }
  .swatch {
    grid-template-columns: 24px minmax(0, 1fr);
    column-gap: 10px;
    padding: 8px;
  }
  .swatch-chip { width: 24px; height: 24px; }
  .swatch-name { font-size: 12.5px; }
  .viewer-reset { margin-top: 10px; }
}
@media (min-width: 601px) and (max-width: 900px) and (orientation: portrait) {
  /* Portrait tablets: wrap the chips so all eight gloves are visible at once. */
  .viewer-types { flex-wrap: wrap; overflow: visible; row-gap: 8px; }
  .viewer-types:not(.is-end) { -webkit-mask-image: none; mask-image: none; }
  .swatch { grid-template-columns: 28px minmax(0, 1fr); }
  .swatch-chip { width: 28px; height: 28px; }
  .swatch-name { font-size: 13px; }
}
@media (max-width: 900px) and (orientation: landscape) {
  /* Landscape phones: give the glove most of the short screen. */
  .hero-3d { grid-template-rows: auto max(320px, 82vh) auto; }
  .viewer-types-panel { padding-top: 8px; }
}
@media (max-width: 600px) and (orientation: portrait) {
  .hero-3d { grid-template-rows: auto min(58vh, 520px) auto; }
}
@media (max-width: 600px) {
  .viewer-colors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .swatch-role { display: none; }
}

.page-hero {
  background: var(--blue) center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 88px 20px;
  position: relative;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 63, 124, 0.55), rgba(20, 63, 124, 0.82));
}
.page-hero .wrap { position: relative; }
.page-hero h1, .section h2, .split h2, .band h2 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 1.15;
  margin: 0 0 12px;
}
.page-hero h1 { font-size: clamp(36px, 5vw, 58px); text-transform: uppercase; }
.page-hero p { max-width: 720px; margin: 0 auto; font-size: 18px; }

.wrap { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.section { padding: 72px 0; }
.section.alt { background: var(--paper); }
.section h2, .band h2 {
  color: var(--blue);
  text-align: center;
  font-size: clamp(30px, 4vw, 46px);
  text-transform: uppercase;
}
.lead {
  max-width: 720px;
  margin: 0 auto 36px;
  text-align: center;
  color: var(--muted);
}
.center { text-align: center; }

.cards-2, .cards-3, .cards-4, .logo-grid, .reviews, .photo-grid {
  display: grid;
  gap: 22px;
}
.cards-2 { grid-template-columns: 1fr 1fr; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }

.cat-tile {
  position: relative;
  min-height: 320px;
  border-radius: 18px;
  overflow: hidden;
  color: #fff;
  display: flex;
  align-items: flex-end;
  box-shadow: var(--shadow);
}
.cat-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cat-tile .shade {
  position: relative;
  width: 100%;
  padding: 28px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
}
.cat-tile h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: 28px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: 0;
  cursor: pointer;
  text-transform: uppercase;
}
.btn-light { background: #fff; color: var(--blue); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-dark { background: #212529; color: #fff; }
.btn:hover { filter: brightness(1.08); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.split img, .frame img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; }
.frame { border-radius: 16px; overflow: hidden; min-height: 280px; }
.split h2, .copy h2 { text-align: left; }
.copy p, .prose p { color: #333; }
.prose { max-width: 760px; }
.prose.center, .center .prose { margin-left: auto; margin-right: auto; }
.quote {
  font-family: var(--display);
  font-size: 28px;
  color: var(--blue);
  text-align: center;
  margin: 28px 0 0;
}

.feature { text-align: center; }
.feature img { width: 100%; height: 170px; object-fit: cover; border-radius: 14px; margin-bottom: 14px; }
.feature h3 { margin: 0 0 6px; color: var(--blue); font-size: 18px; font-family: var(--display); font-weight: 500; letter-spacing: 0.03em; text-transform: uppercase; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; }

.product {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 24px rgba(20, 40, 80, 0.04);
}
.product img { width: 100%; height: 210px; object-fit: contain; background: #f3f5f8; }
.product .body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.product h3 { margin: 0; font-size: 18px; font-family: var(--display); font-weight: 500; letter-spacing: 0.02em; }
.product .btn { margin-top: auto; }

.logo-grid { grid-template-columns: repeat(4, 1fr); }
.logo-grid img {
  width: 100%;
  height: 140px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
}

.band {
  background: var(--blue);
  color: #fff;
  padding: 72px 0;
}
.band h2, .band p { color: #fff; }
.stats { display: flex; gap: 48px; justify-content: center; margin-top: 28px; }
.stat strong { display: block; font-family: var(--display); font-size: 48px; font-weight: 500; }
.stat span { letter-spacing: 0.04em; text-transform: uppercase; font-size: 14px; }

.video {
  position: relative;
  padding-top: 56.25%;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.photo-grid { grid-template-columns: repeat(4, 1fr); }
.photo-grid img, .mosaic img { width: 100%; height: 220px; object-fit: cover; border-radius: 12px; }
.mosaic { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 16px; }
.stack { display: grid; gap: 16px; }

.review {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
}
.stars { color: #e0a100; letter-spacing: 2px; margin: 0 0 8px; }
.review p { margin: 0 0 12px; }
.review cite { font-style: normal; font-weight: 600; color: var(--blue); font-size: 14px; }

.story { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px; align-items: center; margin-bottom: 56px; }
.story.reverse { grid-template-columns: 0.9fr 1.1fr; }
.story.reverse .copy { order: 2; }
.story h2 { text-align: left; font-size: clamp(26px, 3vw, 36px); }
.gallery-3, .gallery-2 { display: grid; gap: 12px; }
.gallery-3 { grid-template-columns: 1fr 1fr; }
.gallery-2 { grid-template-columns: 1fr 1fr; }
.gallery-3 img, .gallery-2 img { width: 100%; height: 180px; object-fit: cover; border-radius: 12px; }
.wide-img { width: 100%; border-radius: 16px; max-height: 460px; object-fit: cover; }

.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 36px; align-items: start; }
form h2 { text-align: left; font-size: 28px; text-transform: none; }
form {
  display: grid;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  box-shadow: var(--shadow);
}
label { font-size: 14px; font-weight: 600; display: grid; gap: 6px; }
input, textarea, select {
  border: 1px solid #cfd5de;
  border-radius: 8px;
  padding: 12px 12px;
  font-size: 15px;
}
textarea { min-height: 120px; resize: vertical; }
.checks { display: grid; gap: 8px; font-weight: 500; }
.checks label { font-weight: 500; grid-template-columns: 18px 1fr; align-items: center; }
.map { border: 0; width: 100%; height: 320px; border-radius: 16px; }
.note { color: var(--muted); font-size: 14px; }
.form-success { display: none; background: #e8f6ee; color: #146c36; padding: 12px 14px; border-radius: 8px; }

.footer { background: var(--blue); color: #fff; padding: 48px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 0.7fr 1fr; gap: 28px; }
.footer h2, .footer h3 { color: #fff; text-align: left; font-family: var(--display); font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; margin: 0 0 12px; font-size: 28px; }
.footer a { display: block; padding: 4px 0; opacity: 0.95; }
.footer a:hover { text-decoration: underline; }
.footer p { margin: 6px 0; }
.footer-logo { height: 92px; width: auto; margin-bottom: 8px; }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,0.45);
  padding: 0;
}
.socials svg { width: 16px; height: 16px; fill: #fff; }
.copyright { border-top: 1px solid rgba(255,255,255,0.2); margin-top: 28px; padding-top: 16px; font-size: 14px; opacity: 0.9; }

.whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  z-index: 50;
}
.whatsapp svg { width: 32px; height: 32px; fill: #fff; }

@media (max-width: 600px) {
  .whatsapp { right: 14px; bottom: 14px; width: 50px; height: 50px; }
  .whatsapp svg { width: 28px; height: 28px; }
}

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: var(--header);
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 18px 20px;
    border-bottom: 1px solid var(--line);
    gap: 0;
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a, .nav-item > button { padding: 12px 4px; text-align: left; width: 100%; }
  .dropdown { position: static; display: block; box-shadow: none; border: 0; padding: 0 0 8px 12px; min-width: 0; margin-top: 0; }
  .dropdown::before { display: none; }
  .cards-2, .cards-3, .cards-4, .logo-grid, .photo-grid, .split, .story, .story.reverse, .contact-grid, .footer-grid, .mosaic {
    grid-template-columns: 1fr;
  }
  .story.reverse .copy { order: 0; }
  .logo-grid { grid-template-columns: 1fr 1fr; }
  .photo-grid { grid-template-columns: 1fr 1fr; }
  .stats { flex-direction: column; gap: 16px; align-items: center; }
  .cat-tile { min-height: 240px; }
  .section { padding: 48px 0; }
}
