:root {
  --white: #fff;
  --off: #f3f3f0;
  --gray-50: #f8f8f6;
  --gray-100: #e9e8e4;
  --gray-200: #d6d4cf;
  --gray-500: #85847e;
  --gray-700: #55544e;
  --black: #34332f;
  --red: #77756f;
  --green: #a7b7ab;
  --blue: #0f3b80;
  --yellow: #f3d43b;
  --body-color: #fff;
  --motif: repeating-linear-gradient(90deg, transparent 0 22px, rgba(0,0,0,.08) 22px 30px);
  font-family: Inter, Pretendard, "Noto Sans KR", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Refined gray/white visual direction */
:root {
  --charcoal: #3a3936;
  --soft-line: #d8d6d0;
  --panel: rgba(255,255,255,.78);
  --shadow-soft: 0 20px 46px rgba(64, 63, 58, .08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  letter-spacing: 0;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  cursor: pointer;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.top-strip {
  display: flex;
  justify-content: center;
  gap: 38px;
  height: 34px;
  align-items: center;
  background: var(--black);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 150px 1fr auto;
  align-items: center;
  min-height: 72px;
  padding: 0 38px;
  border-bottom: 1px solid var(--gray-200);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(18px);
}

.brand img {
  width: 112px;
}

.main-nav {
  display: flex;
  gap: 34px;
  justify-content: center;
  font-size: 13px;
  font-weight: 900;
}

.main-nav a {
  position: relative;
  padding: 28px 0;
}

.main-nav a::after {
  position: absolute;
  left: 0;
  bottom: 20px;
  width: 0;
  height: 2px;
  background: var(--black);
  content: "";
  transition: width .2s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

.main-nav a.is-active::after {
  width: 100%;
}

.header-link,
.menu-toggle {
  border: 0;
  background: transparent;
  font-size: 12px;
  font-weight: 900;
}

.menu-toggle {
  display: none;
}

.mobile-menu-fallback {
  display: none;
}

/* KIT CUSTOM v2 */
.kit-builder {
  --kit-color: #ffffff;
  --kit-accent-a: #111111;
  --kit-accent-b: #d71920;
  --kit-motif: repeating-linear-gradient(
    90deg,
    transparent 0 28px,
    color-mix(in srgb, var(--kit-accent-a) 54%, transparent) 28px 42px
  );
  display: grid;
  grid-template-columns: minmax(300px, 360px) minmax(520px, 1fr) minmax(260px, 320px);
  gap: 16px;
  min-height: calc(100vh - 96px);
  padding: 18px;
  background: #e7e5df;
  box-sizing: border-box;
}

.kit-tools,
.kit-preview-stage,
.kit-summary {
  min-width: 0;
  border: 1px solid #cfccc4;
  background: #f7f6f2;
}

.kit-tools,
.kit-summary {
  padding: 20px;
  overflow: auto;
}

.kit-title span {
  display: inline-block;
  margin-bottom: 12px;
  color: #73706a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.kit-title h1 {
  margin: 0;
  color: #282724;
  font-size: 31px;
  line-height: 1.08;
  letter-spacing: 0;
}

.kit-title p,
.tool-hint,
.production-note,
.mockup-panel p,
.share-card p {
  color: #65615b;
  font-size: 13px;
  line-height: 1.7;
}

.custom-mode-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  margin: 22px 0;
  padding: 4px;
  background: #dfddd6;
}

.custom-mode-tabs button,
.kit-neck-options button,
.kit-view-tabs button,
.preview-actions button {
  min-height: 38px;
  border: 0;
  background: transparent;
  color: #59564f;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.custom-mode-tabs button.active,
.kit-neck-options button.active,
.kit-view-tabs button.active {
  background: #343330;
  color: #fff;
}

.custom-mode-panel {
  display: none;
}

.custom-mode-panel.active {
  display: block;
}

.kit-fit-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.kit-choice {
  position: relative;
  min-height: 126px;
  padding: 10px;
  border: 1px solid #cbc8bf;
  background: #77766f;
  color: #504d47;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
}

.kit-choice img {
  display: block;
  width: 100%;
  height: 74px;
  object-fit: contain;
  margin-bottom: 8px;
  filter: none;
  opacity: .96;
}

.kit-choice.active {
  border-color: #161513;
  background: #343330;
  color: #fff;
}

.kit-choice.active img {
  filter: none;
  opacity: 1;
}

.kit-choice.active::before {
  content: "선택됨";
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  color: #242321;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
}

.color-picker-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.color-picker-row input[type="color"],
.ai-color-picks input[type="color"] {
  width: 54px;
  height: 42px;
  padding: 2px;
  border: 1px solid #c7c4bb;
  background: #fff;
  cursor: pointer;
}

.color-value {
  display: grid;
  gap: 4px;
  color: #6b6760;
  font-size: 11px;
  font-weight: 800;
}

.color-value strong {
  color: #242321;
  font-size: 14px;
}

.quick-swatches {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.quick-swatches button {
  aspect-ratio: 1;
  border: 1px solid #bdb9ae;
  background: var(--swatch);
  cursor: pointer;
}

.quick-swatches button.empty {
  background:
    linear-gradient(135deg, transparent calc(50% - 1px), #d5d2c9 calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)),
    #f7f6f2;
  cursor: default;
}

.quick-swatches button.active {
  outline: 3px solid #2f2e2b;
  outline-offset: 2px;
}

.kit-motif-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  max-height: 214px;
  overflow-y: auto;
  padding-right: 5px;
  scrollbar-width: thin;
}

.motif-thumb {
  aspect-ratio: 1.12;
  padding: 0;
  border: 1px solid #c8c5bc;
  background: #f7f6f2;
  cursor: pointer;
}

.motif-thumb span {
  display: block;
  width: 100%;
  height: 100%;
}

.motif-thumb.active {
  border-color: #111;
  outline: 2px solid #111;
  outline-offset: -3px;
}

.motif-thumb[data-motif="stripe"] span {
  background: repeating-linear-gradient(90deg, #f7f7f4 0 9px, #242321 9px 13px, #c8c5bc 13px 18px);
}

.motif-thumb[data-motif="stripe2"] span {
  background: repeating-linear-gradient(90deg, #f7f7f4 0 14px, #262522 14px 22px);
}

.motif-thumb[data-motif="stripe3"] span {
  background: repeating-linear-gradient(90deg, #f7f7f4 0 10px, #272622 10px 16px, #b8b5ad 16px 22px, #272622 22px 28px);
}

.motif-thumb[data-motif="hoop"] span {
  background: repeating-linear-gradient(0deg, #f7f7f4 0 11px, #242321 11px 17px, #c8c5bc 17px 22px);
}

.motif-thumb[data-motif="hoop2"] span {
  background: repeating-linear-gradient(0deg, #f7f7f4 0 15px, #262522 15px 24px);
}

.motif-thumb[data-motif="hoop3"] span {
  background: repeating-linear-gradient(0deg, #f7f7f4 0 10px, #272622 10px 16px, #b8b5ad 16px 22px, #272622 22px 28px);
}

.motif-thumb[data-motif="checker"] span {
  background:
    conic-gradient(#f7f7f4 25%, #363532 0 50%, #f7f7f4 0 75%, #363532 0);
  background-size: 18px 18px;
}

.motif-thumb[data-motif="wave"] span {
  background:
    radial-gradient(42px 24px at 28% 28%, transparent 44%, #33322f 46% 52%, transparent 54%),
    radial-gradient(54px 30px at 74% 68%, transparent 44%, #a9a69d 46% 54%, transparent 56%),
    #f7f7f4;
}

.motif-thumb[data-motif="sash"] span {
  background: linear-gradient(125deg, transparent 0 39%, #2b2a28 39% 50%, transparent 50%), #f7f7f4;
}

.motif-thumb[data-motif="center"] span {
  background: linear-gradient(90deg, #f7f7f4 0 39%, #32312f 39% 47%, #aaa79e 47% 53%, #32312f 53% 61%, #f7f7f4 61%);
}

.motif-thumb[data-motif="diagonal"] span {
  background: repeating-linear-gradient(135deg, #f7f7f4 0 13px, #2f2e2b 13px 18px, #c6c3ba 18px 22px);
}

.motif-thumb[data-motif="diagonal-wide"] span {
  background: repeating-linear-gradient(135deg, #f7f7f4 0 20px, #2f2e2b 20px 34px);
}

.motif-thumb[data-motif="radial"] span {
  background:
    radial-gradient(circle at 50% 35%, #2f2e2b 0 12%, transparent 13% 25%, #a8a59d 26% 31%, transparent 32%),
    #f7f7f4;
}

.motif-thumb[data-motif="pinstripe"] span {
  background: repeating-linear-gradient(90deg, #f7f7f4 0 7px, #2f2e2b 7px 9px);
}

.motif-thumb[data-motif="chevron"] span {
  background:
    linear-gradient(135deg, transparent 0 44%, #2f2e2b 44% 49%, transparent 49%),
    linear-gradient(225deg, transparent 0 44%, #2f2e2b 44% 49%, transparent 49%),
    #f7f7f4;
}

.motif-thumb[data-motif="zigzag"] span {
  background:
    linear-gradient(135deg, transparent 0 42%, #2f2e2b 42% 49%, transparent 49%),
    linear-gradient(45deg, transparent 0 42%, #2f2e2b 42% 49%, transparent 49%),
    #f7f7f4;
  background-size: 34px 34px;
}

.motif-thumb[data-motif="gradient"] span {
  background: linear-gradient(180deg, #2f2e2b, #f7f7f4 52%, #aaa79e);
}

.motif-thumb.upcoming {
  cursor: default;
  opacity: .68;
}

.motif-thumb.disabled-by-zone {
  cursor: not-allowed;
  opacity: .42;
}

.motif-thumb.upcoming span {
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, transparent calc(50% - 1px), #d5d2c9 calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)),
    #f7f6f2;
  color: #8b877e;
  font-size: 10px;
  font-weight: 900;
}

.ai-color-picks {
  display: flex;
  gap: 10px;
  margin: 10px 0 14px;
}

#aiPrompt {
  width: 100%;
  min-height: 126px;
  resize: vertical;
  border: 1px solid #cbc8bf;
  background: #fff;
  padding: 12px;
  font: inherit;
  line-height: 1.55;
}

.btn.full {
  width: 100%;
  justify-content: center;
}

#aiGenerate span {
  margin-left: 6px;
  opacity: .72;
  font-size: 11px;
}

.kit-preview-stage {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
}

.preview-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid #d7d4cc;
  background: #f3f2ee;
}

.kit-view-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: #dfddd6;
}

.preview-actions {
  display: flex;
  gap: 8px;
}

.preview-actions button {
  border: 1px solid #c7c4bb;
  padding: 0 14px;
  background: #fff;
}

.preview-actions button:hover {
  background: #2f2e2b;
  color: #fff;
}

.kit-canvas {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 680px;
  padding: 26px;
  background-color: #696863;
  background-image:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 34px 34px;
}

.kit-preview {
  position: relative;
  width: min(610px, 78vw);
  aspect-ratio: 1;
  min-height: 0;
  display: grid;
  place-items: center;
  isolation: isolate;
  transition: transform .28s ease, filter .28s ease;
}

.kit-template {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  visibility: hidden;
  filter: drop-shadow(0 26px 34px rgba(0,0,0,.28));
}

.kit-panel-svg {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  pointer-events: none;
  filter: drop-shadow(0 26px 34px rgba(0,0,0,.28));
}

.kit-zone {
  fill: var(--zone-color, transparent);
  opacity: 1;
  cursor: pointer;
  pointer-events: visiblePainted;
  stroke: rgba(0,0,0,.14);
  stroke-width: 2px;
  transition: opacity .16s ease, outline-color .16s ease, filter .16s ease;
}

.kit-zone:hover {
  stroke: rgba(59, 157, 255, .9);
  stroke-width: 8px;
}

.kit-zone.zone-pulse {
  stroke: rgba(59, 157, 255, .95);
  stroke-width: 14px;
  animation: zoneFlash .62s ease 1;
}

@keyframes zoneFlash {
  0%, 100% { opacity: 0; }
  35%, 70% { opacity: 1; }
}

.zone-body {
  --zone-color: var(--body-color, var(--body-color-fallback, #fff));
}

.zone-left-sleeve {
  --zone-color: var(--leftSleeve-color, #fff);
}

.zone-right-sleeve {
  --zone-color: var(--rightSleeve-color, #fff);
}

.zone-neck {
  --zone-color: var(--neck-color, #fff);
}

.kit-color-layer,
.kit-pattern-layer {
  position: absolute;
  inset: 8% 17% 13%;
  z-index: 3;
  border-radius: 42% 42% 12% 12% / 20% 20% 9% 9%;
  clip-path: polygon(19% 2%, 81% 2%, 100% 22%, 86% 42%, 77% 38%, 77% 94%, 23% 94%, 23% 38%, 14% 42%, 0 22%);
  pointer-events: none;
}

.kit-color-layer {
  background: var(--kit-color);
  mix-blend-mode: multiply;
  opacity: .82;
}

.kit-pattern-layer {
  background: var(--kit-motif);
  mix-blend-mode: multiply;
  opacity: .55;
}

.kit-preview.ai-generated .kit-pattern-layer {
  background:
    radial-gradient(circle at 26% 20%, color-mix(in srgb, var(--kit-accent-b) 68%, transparent) 0 12%, transparent 13%),
    linear-gradient(135deg, transparent 0 34%, color-mix(in srgb, var(--kit-accent-a) 72%, transparent) 34% 44%, transparent 45%),
    var(--kit-motif);
  opacity: .65;
}

.kit-preview .fixed-brand,
.logo-slot,
.sponsor,
.marking,
.number,
.sleeve-note,
.watermark,
.neck-visual {
  position: absolute;
  z-index: 5;
}

.neck-visual {
  display: none;
}

.kit-preview .fixed-brand {
  display: block;
  top: var(--brand-top, 31%);
  left: var(--brand-left, 39%);
  width: var(--brand-width, 36px);
  filter: var(--brand-filter, none);
}

.logo-slot {
  top: var(--logo-top, 33%);
  left: var(--logo-left, 58%);
  width: var(--logo-size, 58px);
  height: var(--logo-size, 58px);
  border: 1px dashed rgba(0,0,0,.28);
  display: grid;
  place-items: center;
  color: rgba(0,0,0,.45);
  font-size: 11px;
  font-weight: 900;
  text-align: center;
  border-radius: 999px;
  background: rgba(255,255,255,.35);
  overflow: hidden;
  cursor: pointer;
}

.logo-slot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.logo-slot.has-logo {
  background: transparent;
  color: transparent;
}

.sponsor {
  top: 43%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 190px;
  max-width: 260px;
  padding: 2px 8px;
  color: #111;
  font-size: 38px;
  font-weight: 950;
  text-align: center;
  letter-spacing: 0;
  text-transform: uppercase;
  outline: 2px solid transparent;
  overflow: hidden;
}

.marking,
.number {
  display: none;
  color: #111;
  font-weight: 950;
  text-align: center;
  text-transform: uppercase;
  outline: 2px solid transparent;
  overflow: hidden;
}

.marking {
  top: 30%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 26px;
}

.number {
  top: 37%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 118px;
  line-height: .9;
}

.editable-text.active-text {
  outline: 2px dashed rgba(59, 157, 255, .95);
  outline-offset: 4px;
  background: rgba(59, 157, 255, .08);
  box-shadow: 0 0 0 4px rgba(59, 157, 255, .08);
}

.sponsor[data-size="small"] { font-size: 30px; }
.sponsor[data-size="medium"] { font-size: 34px; }
.sponsor[data-size="large"] { font-size: 38px; }
.marking[data-size="small"] { font-size: 21px; }
.marking[data-size="medium"] { font-size: 24px; }
.marking[data-size="large"] { font-size: 26px; }
.number[data-size="small"] { font-size: 98px; }
.number[data-size="medium"] { font-size: 108px; }
.number[data-size="large"] { font-size: 118px; }

.font-popover {
  position: absolute;
  z-index: 22;
  top: 6%;
  left: 50%;
  transform: translateX(-50%);
  display: none;
  grid-template-columns: 140px auto 46px;
  gap: 8px;
  align-items: center;
  padding: 9px;
  background: rgba(247,246,242,.96);
  border: 1px solid #c9c6bd;
  box-shadow: 0 12px 28px rgba(0,0,0,.18);
}

.font-popover.is-open {
  display: grid;
}

.font-popover select,
.font-popover input {
  min-height: 34px;
  border: 1px solid #c9c6bd;
  background: #fff;
}

.font-size-controls {
  display: flex;
  gap: 4px;
}

.font-size-controls button {
  min-height: 34px;
  border: 1px solid #c9c6bd;
  background: #fff;
  font-size: 11px;
  font-weight: 800;
}

.font-size-controls button.active {
  background: #343330;
  color: #fff;
}

.sleeve-note {
  display: none;
  top: 38%;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 14px;
  border: 1px dashed rgba(255,255,255,.55);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
}

.watermark {
  display: none;
}

.kit-preview[data-view="back"] .fixed-brand,
.kit-preview[data-view="back"] .logo-slot,
.kit-preview[data-view="back"] .sponsor {
  display: none;
}

.kit-preview[data-view="back"] .marking,
.kit-preview[data-view="back"] .number {
  display: block;
}

.kit-preview[data-view="left"],
.kit-preview[data-view="right"] {
  transform: rotate(-2deg) scale(.92);
}

.kit-preview[data-view="right"] {
  transform: rotate(2deg) scale(.92);
}

.kit-preview[data-view="left"] .fixed-brand,
.kit-preview[data-view="left"] .logo-slot,
.kit-preview[data-view="left"] .sponsor,
.kit-preview[data-view="left"] .marking,
.kit-preview[data-view="left"] .number,
.kit-preview[data-view="right"] .fixed-brand,
.kit-preview[data-view="right"] .logo-slot,
.kit-preview[data-view="right"] .sponsor,
.kit-preview[data-view="right"] .marking,
.kit-preview[data-view="right"] .number {
  display: none;
}

.kit-preview[data-view="left"] .sleeve-note,
.kit-preview[data-view="right"] .sleeve-note {
  display: block;
}

.production-note {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 18px;
  margin: 0;
  padding: 10px 12px;
  background: rgba(34,33,31,.78);
  color: #efeee9;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.production-note span {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #ff5b9d;
  color: #fff;
  font-weight: 950;
}

.kit-canvas .production-note {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 18px;
  z-index: 18;
  max-width: none;
  margin: 0;
  padding: 10px 12px;
  background: rgba(34,33,31,.82);
  color: #efeee9;
  border: 1px solid rgba(255,255,255,.14);
  text-align: left;
  font-size: 13px;
  line-height: 1.55;
  justify-content: center;
}

.mockup-panel {
  position: absolute;
  inset: 64px 40px 40px auto;
  width: min(520px, calc(100% - 80px));
  padding: 14px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(32,31,29,.94);
  color: #fff;
  box-shadow: 0 24px 44px rgba(0,0,0,.35);
  transform: translateY(18px);
  opacity: 0;
  pointer-events: none;
  transition: .22s ease;
  z-index: 20;
}

.mockup-panel.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mockup-panel > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

#closeMockup {
  border: 1px solid rgba(255,255,255,.3);
  background: transparent;
  color: #fff;
  padding: 7px 10px;
  cursor: pointer;
}

.mockup-visual {
  height: 420px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 20%, rgba(255,255,255,.16), transparent 38%),
    linear-gradient(180deg, #77746e, #3a3936);
}

.mockup-shirt {
  position: relative;
  width: 260px;
  height: 315px;
  clip-path: polygon(22% 0, 78% 0, 100% 20%, 88% 44%, 76% 37%, 76% 100%, 24% 100%, 24% 37%, 12% 44%, 0 20%);
  background:
    radial-gradient(ellipse at 50% 0, rgba(255,255,255,.32), transparent 25%),
    var(--kit-motif),
    var(--kit-color);
  box-shadow: inset 0 0 32px rgba(0,0,0,.32);
}

.mockup-shirt span {
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  color: #111;
  font-size: 24px;
  font-weight: 950;
  white-space: nowrap;
}

.kit-summary ul {
  list-style: none;
  padding: 0;
  margin: 18px 0;
  border-top: 1px solid #d7d4cc;
}

.kit-summary li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #d7d4cc;
  color: #716d66;
  font-size: 13px;
}

.kit-summary strong {
  color: #22211f;
  text-align: right;
}

.share-dialog {
  width: min(560px, calc(100vw - 34px));
  border: 0;
  padding: 22px;
  background: #f7f6f2;
  color: #242321;
  box-shadow: 0 24px 80px rgba(0,0,0,.35);
}

.share-dialog::backdrop {
  background: rgba(0,0,0,.55);
}

.dialog-close {
  float: right;
  border: 1px solid #c9c6bd;
  background: #fff;
  padding: 8px 10px;
  cursor: pointer;
}

.share-card {
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: 16px;
  align-items: stretch;
  margin: 18px 0;
}

.share-thumb {
  min-height: 132px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(rgba(255,255,255,.08), rgba(255,255,255,.08)),
    var(--kit-motif),
    var(--kit-color);
  border: 1px solid #cbc8bf;
}

.share-thumb span {
  color: #111;
  font-size: 21px;
  font-weight: 950;
}

#shareUrl {
  width: 100%;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid #cbc8bf;
  background: #fff;
}

@media (max-width: 1120px) {
  .kit-builder {
    grid-template-columns: 320px 1fr;
  }

  .kit-summary {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .kit-builder {
    grid-template-columns: 1fr;
    padding: 10px;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .kit-tools,
  .kit-preview-stage,
  .kit-summary {
    width: 100%;
    box-sizing: border-box;
  }

  .preview-top,
  .share-card {
    grid-template-columns: 1fr;
    display: grid;
  }

  .preview-actions,
  .kit-view-tabs {
    width: 100%;
  }

  .preview-actions button,
  .kit-view-tabs button {
    flex: 1;
  }

  .kit-canvas {
    min-height: 560px;
    padding: 12px;
  }

  .kit-tools {
    overflow-x: hidden;
  }

  .kit-fit-options {
    grid-template-columns: 1fr;
  }

  .tool-hint,
  .kit-title p {
    overflow-wrap: anywhere;
    word-break: keep-all;
  }

  .kit-title p {
    max-width: 100%;
  }

  .quick-swatches {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    max-width: 326px;
  }

  .kit-motif-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    max-width: 326px;
  }

  .kit-preview {
    width: min(520px, 94vw);
    min-height: 500px;
  }

  .sponsor {
    font-size: 27px;
    min-width: 150px;
  }

  .number {
    font-size: 84px;
  }
}

.kit-fit-options .kit-choice {
  position: relative;
  min-height: 118px;
  border-color: #c8c5bc;
  background: #d9d7d0;
  color: #2c2b28;
}

.kit-fit-options .kit-choice img {
  height: 70px;
  filter: none;
  opacity: 1;
}

.kit-fit-options .kit-choice.active {
  border-color: #242321;
  background: #575650;
  color: #fff;
}

.kit-fit-options .kit-choice.active img {
  filter: none;
  opacity: 1;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 680px);
  min-height: calc(100vh - 106px);
  background: var(--off);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px clamp(28px, 5vw, 82px);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--red);
  font-size: 13px;
  font-weight: 1000;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 28px;
  font-size: clamp(54px, 6vw, 92px);
  line-height: .95;
  font-weight: 1000;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1;
  font-weight: 1000;
  letter-spacing: 0;
}

h3 {
  font-size: 20px;
}

.lead,
.section-copy p,
.detail-copy p,
.production-note,
.summary-panel p,
.inquiry-section p {
  color: var(--gray-700);
  font-size: 18px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid var(--black);
  background: var(--white);
  color: var(--black);
  font-weight: 1000;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

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

.btn.ghost {
  background: transparent;
}

.btn.full {
  width: 100%;
}

.fit-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 48px;
}

.fit-pills span,
.filter,
.view-tabs button,
.preview-actions button,
.team-login button,
.member-sheet button,
.saved-designs button,
.admin-shell span {
  border: 1px solid var(--black);
  background: var(--white);
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 1000;
}

.hero-media {
  position: relative;
  min-height: 760px;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(.2,.8,.2,1);
}

.hero-media:hover img {
  transform: scale(1.035);
}

.hero-caption {
  position: absolute;
  right: 28px;
  bottom: 28px;
  display: grid;
  gap: 4px;
  width: min(360px, calc(100% - 56px));
  padding: 20px;
  background: rgba(255,255,255,.92);
  border: 1px solid var(--gray-200);
}

.hero-caption strong {
  font-size: 22px;
  font-weight: 1000;
}

.hero-caption span {
  color: var(--gray-700);
  font-size: 13px;
  font-weight: 800;
}

.marquee {
  overflow: hidden;
  border-top: 1px solid var(--black);
  border-bottom: 1px solid var(--black);
  background: var(--white);
}

.marquee div {
  display: flex;
  width: max-content;
  animation: marquee 26s linear infinite;
}

.marquee span {
  padding: 22px 42px;
  font-size: 26px;
  font-weight: 1000;
  white-space: nowrap;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.section {
  padding: 96px clamp(22px, 5vw, 72px);
}

.split-section {
  display: grid;
  grid-template-columns: .82fr 1fr;
  gap: 64px;
  align-items: start;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--black);
  border-left: 1px solid var(--black);
}

.process-grid article {
  min-height: 220px;
  padding: 28px;
  border-right: 1px solid var(--black);
  border-bottom: 1px solid var(--black);
  background: var(--white);
}

.process-grid span {
  color: var(--red);
  font-weight: 1000;
}

.process-grid p {
  color: var(--gray-700);
  line-height: 1.6;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 34px;
}

.text-link {
  border-bottom: 2px solid var(--black);
  font-size: 13px;
  font-weight: 1000;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}

.filter.active,
.filter:hover {
  background: var(--black);
  color: var(--white);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.product-card {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 518px;
  border: 1px solid var(--gray-200);
  background: var(--white);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}

.product-card .card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.product-card .wishlist {
  z-index: 2;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 54px rgba(0,0,0,.12);
}

.product-card img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  background: var(--gray-100);
}

.product-card div {
  position: relative;
  z-index: 2;
  padding: 20px;
  background: var(--white);
}

.product-card span {
  color: var(--red);
  font-size: 11px;
  font-weight: 1000;
}

.product-card h3 {
  margin: 8px 0;
  font-weight: 1000;
}

.product-card p {
  margin-bottom: 16px;
  color: var(--gray-500);
}

.wishlist {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 1px solid var(--gray-200);
  background: rgba(255,255,255,.86);
  font-size: 20px;
}

.detail-section {
  display: grid;
  grid-template-columns: 1.16fr .84fr;
  gap: 54px;
  background: var(--gray-50);
}

.detail-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.detail-gallery img {
  width: 100%;
  height: 330px;
  object-fit: cover;
  background: var(--gray-100);
}

.detail-gallery .large {
  grid-row: span 2;
  height: 668px;
}

.detail-copy {
  align-self: center;
}

.spec-list {
  display: grid;
  margin: 34px 0;
  border-top: 1px solid var(--black);
}

.spec-list div {
  display: grid;
  grid-template-columns: 110px 1fr;
  padding: 18px 0;
  border-bottom: 1px solid var(--gray-200);
}

.spec-list dt {
  font-weight: 1000;
}

.spec-list dd {
  margin: 0;
  color: var(--gray-700);
}

.builder-section {
  display: grid;
  grid-template-columns: 340px minmax(420px, 1fr) 320px;
  min-height: 1060px;
  border-top: 1px solid var(--black);
  border-bottom: 1px solid var(--black);
  background: var(--off);
}

.tool-panel,
.summary-panel {
  padding: 32px 28px;
  background: var(--white);
}

.tool-panel {
  border-right: 1px solid var(--black);
}

.summary-panel {
  border-left: 1px solid var(--black);
}

.tool-panel h2,
.summary-panel h2 {
  font-size: 28px;
}

.tool-group {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.tool-group label,
.summary-panel li span {
  color: var(--gray-500);
  font-size: 12px;
  font-weight: 1000;
}

.tool-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.choice {
  min-height: 116px;
  padding: 8px;
  border: 1px solid var(--gray-200);
  background: var(--white);
  font-size: 11px;
  font-weight: 1000;
}

.choice img {
  height: 70px;
  margin: 0 auto 8px;
  object-fit: contain;
}

.choice.active,
.motif.active,
.segmented button.active {
  border-color: var(--black);
  background: var(--black);
  color: var(--white);
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.segmented button,
.motif {
  min-height: 42px;
  border: 1px solid var(--gray-200);
  background: var(--white);
  font-size: 12px;
  font-weight: 1000;
}

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

.swatches button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--gray-200);
  background: var(--swatch);
}

.swatches button.active {
  outline: 3px solid var(--black);
  outline-offset: 2px;
}

.motif-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.ai-box textarea {
  min-height: 82px;
  resize: vertical;
  border: 1px solid var(--gray-200);
  padding: 12px;
}

.btn span {
  margin-left: 10px;
  opacity: .7;
  font-size: 11px;
}

.preview-stage {
  display: flex;
  flex-direction: column;
  padding: 28px;
}

.preview-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
}

.view-tabs,
.preview-actions {
  display: flex;
  gap: 8px;
}

.view-tabs button.active,
.preview-actions button:hover {
  background: var(--black);
  color: var(--white);
}

.jersey-preview {
  position: relative;
  display: grid;
  place-items: center;
  flex: 1;
  min-height: 680px;
  perspective: 1200px;
  transition: transform .4s ease;
}

.jersey-preview.is-3d {
  transform: rotateY(-10deg) rotateX(4deg);
}

.body-shape {
  position: relative;
  width: min(360px, 58vw);
  height: 510px;
  border: 1px solid var(--gray-200);
  border-radius: 34px 34px 18px 18px;
  background-color: var(--body-color);
  background-image: var(--motif);
  box-shadow: 0 46px 90px rgba(0,0,0,.14);
  transition: background .3s ease, transform .3s ease;
}

.body-shape::before,
.body-shape::after {
  position: absolute;
  top: 64px;
  width: 132px;
  height: 178px;
  border: 1px solid var(--gray-200);
  background: color-mix(in srgb, var(--body-color) 86%, #000 14%);
  content: "";
}

.body-shape::before {
  left: -112px;
  transform: skewY(24deg);
  border-radius: 28px 0 10px 28px;
}

.body-shape::after {
  right: -112px;
  transform: skewY(-24deg);
  border-radius: 0 28px 28px 10px;
}

.neck {
  position: absolute;
  left: 50%;
  top: -2px;
  width: 112px;
  height: 54px;
  transform: translateX(-50%);
  border-radius: 0 0 56px 56px;
  border: 14px solid var(--black);
  border-top: 0;
  background: var(--off);
  z-index: 3;
}

.fixed-brand {
  position: absolute;
  top: 112px;
  left: 78px;
  width: 46px;
}

.logo-slot {
  position: absolute;
  top: 94px;
  right: 70px;
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border: 1px dashed var(--red);
  border-radius: 50%;
  color: var(--red);
  font-size: 11px;
  font-weight: 1000;
  text-align: center;
}

.sponsor,
.marking,
.number {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  outline: 0;
  font-weight: 1000;
}

.sponsor {
  top: 210px;
  min-width: 220px;
  color: var(--red);
  font-size: 38px;
}

.marking {
  display: none;
  top: 142px;
  font-size: 28px;
}

.number {
  display: none;
  top: 190px;
  font-size: 148px;
  line-height: 1;
}

.jersey-preview[data-view="back"] .sponsor,
.jersey-preview[data-view="left"] .sponsor,
.jersey-preview[data-view="right"] .sponsor,
.jersey-preview[data-view="back"] .logo-slot,
.jersey-preview[data-view="left"] .logo-slot,
.jersey-preview[data-view="right"] .logo-slot,
.jersey-preview[data-view="back"] .fixed-brand,
.jersey-preview[data-view="left"] .fixed-brand,
.jersey-preview[data-view="right"] .fixed-brand {
  display: none;
}

.jersey-preview[data-view="back"] .marking,
.jersey-preview[data-view="back"] .number {
  display: block;
}

.watermark {
  position: absolute;
  right: 24px;
  bottom: 20px;
  color: rgba(0,0,0,.18);
  font-size: 12px;
  font-weight: 1000;
}

.production-note {
  max-width: 850px;
  margin: 18px auto 0;
  font-size: 13px;
  text-align: center;
}

.summary-panel ul {
  display: grid;
  gap: 18px;
  padding: 0;
  margin: 28px 0;
  list-style: none;
}

.summary-panel li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gray-200);
}

.team-section {
  background: var(--white);
}

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

.team-login input {
  width: 140px;
  height: 42px;
  border: 1px solid var(--gray-200);
  padding: 0 12px;
}

.team-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 18px;
}

.team-profile {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 24px;
  border: 1px solid var(--gray-200);
  background: var(--off);
}

.crest {
  display: grid;
  place-items: center;
  width: 130px;
  height: 130px;
  border: 1px dashed var(--gray-500);
  border-radius: 50%;
  background: var(--white);
  color: var(--gray-500);
  font-weight: 1000;
  text-align: center;
}

.team-profile label {
  display: grid;
  gap: 6px;
  color: var(--gray-500);
  font-size: 12px;
  font-weight: 1000;
}

.team-profile input,
.member-sheet input,
.inquiry-form input,
.inquiry-form select,
.inquiry-form textarea {
  min-height: 42px;
  border: 1px solid var(--gray-200);
  background: var(--white);
  padding: 0 12px;
}

.saved-designs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.saved-designs article {
  display: grid;
  justify-items: start;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--gray-200);
}

.mini-jersey {
  width: 120px;
  height: 156px;
  border: 1px solid var(--gray-200);
  border-radius: 18px 18px 8px 8px;
  background: repeating-linear-gradient(90deg, transparent 0 18px, rgba(0,0,0,.08) 18px 24px), var(--white);
}

.mini-jersey.blue {
  background-color: var(--blue);
}

.mini-jersey.black {
  background-color: var(--black);
}

.member-sheet {
  margin-top: 24px;
  padding: 24px;
  border: 1px solid var(--black);
  background: #242424;
  color: var(--white);
}

.sheet-title {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.member-sheet p {
  color: var(--gray-200);
}

.size-guide {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  justify-content: flex-end;
  margin: 14px 0 20px;
}

.size-guide strong,
.size-guide span {
  border: 1px solid var(--green);
  padding: 10px 18px;
  color: var(--green);
  font-size: 13px;
  font-weight: 1000;
}

.sheet-scroll {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 1220px;
  border-collapse: collapse;
  background: var(--white);
  color: var(--black);
}

th {
  background: var(--green);
  padding: 12px;
  border: 1px solid var(--black);
  font-size: 13px;
}

td {
  border: 1px solid var(--black);
  padding: 8px;
}

td input,
td select {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: center;
}

.row-delete {
  width: 58px;
  min-height: 34px;
  padding: 0;
  border-color: #c7c4bd;
  background: #f7f6f2;
  color: #55534e;
}

.inquiry-section {
  display: grid;
  grid-template-columns: .72fr 1fr;
  gap: 54px;
  background: var(--off);
}

.inquiry-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 28px;
  border: 1px solid var(--gray-200);
  background: var(--white);
}

.inquiry-form label {
  display: grid;
  gap: 8px;
  color: var(--gray-700);
  font-size: 13px;
  font-weight: 1000;
}

.inquiry-form textarea {
  min-height: 130px;
  padding-top: 12px;
}

.wide {
  grid-column: 1 / -1;
}

fieldset {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  border: 1px solid var(--gray-200);
  margin: 0;
  padding: 16px;
}

fieldset legend {
  font-size: 13px;
  font-weight: 1000;
}

fieldset label {
  display: flex !important;
  align-items: center;
  color: var(--black);
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--red);
  font-size: 13px;
  font-weight: 1000;
}

.admin-preview {
  background: var(--gray-50);
}

.admin-shell {
  display: grid;
  grid-template-columns: 250px 1fr;
  min-height: 560px;
  border: 1px solid var(--black);
  background: var(--white);
}

.admin-shell aside {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 28px;
  background: var(--black);
}

.admin-shell aside img {
  width: 120px;
  margin-bottom: 30px;
}

.admin-main {
  padding: 28px;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.metric-row article {
  padding: 22px;
  border: 1px solid var(--gray-200);
}

.metric-row span {
  color: var(--gray-500);
  font-size: 13px;
  font-weight: 1000;
}

.metric-row strong {
  display: block;
  margin-top: 18px;
  font-size: 48px;
  font-weight: 1000;
}

.admin-table {
  display: grid;
  gap: 0;
  margin-top: 24px;
  border: 1px solid var(--gray-200);
}

.admin-table div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px;
  border-bottom: 1px solid var(--gray-200);
}

.admin-table div:last-child {
  border-bottom: 0;
}

.admin-table span {
  color: var(--gray-500);
}

.site-footer {
  display: grid;
  gap: 12px;
  padding: 54px 72px;
  background: var(--black);
  color: var(--white);
}

.site-footer img {
  width: 132px;
}

.site-footer p {
  max-width: 980px;
  margin: 0;
  color: var(--gray-200);
  font-size: 13px;
  line-height: 1.7;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}

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

@media (max-width: 1120px) {
  .site-header {
    grid-template-columns: 130px auto;
  }

  .menu-toggle {
    display: block;
    justify-self: end;
  }

  .mobile-menu-fallback {
    position: absolute;
    right: 22px;
    top: 50%;
    z-index: 90;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 36px;
    border: 1px solid #4a4946;
    background: #4a4946;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    transform: translateY(-50%);
  }

  .main-nav,
  .header-link {
    display: none;
  }

  .site-header.is-open .main-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    justify-content: stretch;
    border-bottom: 1px solid var(--black);
    background: var(--white);
  }

  .site-header.is-open .main-nav a {
    padding: 18px 28px;
    border-top: 1px solid var(--gray-200);
  }

  .hero,
  .split-section,
  .detail-section,
  .inquiry-section,
  .team-layout,
  .admin-shell,
  .page-visual-hero,
  .home-gateway,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .hero-media {
    min-height: 580px;
  }

  .product-grid,
  .saved-designs,
  .metric-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .builder-section {
    grid-template-columns: 1fr;
  }

  .tool-panel,
  .summary-panel {
    border: 0;
    border-bottom: 1px solid var(--black);
  }

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

@media (max-width: 720px) {
  .top-strip {
    justify-content: flex-start;
    gap: 20px;
    overflow: hidden;
    padding-left: 18px;
    white-space: nowrap;
  }

  .site-header {
    padding: 0 18px;
  }

  .hero {
    display: flex;
    flex-direction: column-reverse;
  }

  .hero-copy {
    padding: 42px 22px 58px;
  }

  .service-grid article {
    min-height: auto;
    padding: 28px 22px;
  }

  .service-grid h2,
  .service-grid p {
    min-height: 0;
  }

  .hero-media {
    min-height: 460px;
  }

  .section {
    padding: 64px 18px;
  }

  .process-grid,
  .product-grid,
  .saved-designs,
  .metric-row,
  .tool-options,
  .inquiry-form {
    grid-template-columns: 1fr;
  }

  .section-head,
  .preview-top,
  .sheet-title {
    align-items: start;
    flex-direction: column;
  }

  .detail-gallery {
    grid-template-columns: 1fr;
  }

  .detail-gallery .large,
  .detail-gallery img {
    height: 460px;
  }

  .page-visual-hero img {
    height: 460px;
  }

  .page-visual-hero > div {
    padding: 42px 22px 64px;
  }

  .body-shape {
    width: 260px;
    height: 380px;
  }

  .body-shape::before,
  .body-shape::after {
    width: 84px;
    height: 130px;
  }

  .body-shape::before {
    left: -72px;
  }

  .body-shape::after {
    right: -72px;
  }

  .sponsor {
    top: 168px;
    font-size: 28px;
  }

  .number {
    font-size: 108px;
  }

  .jersey-preview {
    min-height: 520px;
  }

  .team-login {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .team-login input,
  .team-login button {
    width: 100%;
  }

  .site-footer {
    padding: 44px 22px;
  }
}

/* Minimal gray/white redesign overrides */
body {
  background:
    linear-gradient(180deg, #f7f7f5 0, #ffffff 42vh),
    var(--white);
  color: var(--charcoal);
}

.top-strip {
  height: 28px;
  gap: 34px;
  background: #4a4946;
  color: #f0efea;
  font-size: 11px;
  font-weight: 600;
}

.site-header {
  grid-template-columns: 74px 1fr auto;
  min-height: 70px;
  padding: 0 34px;
  background: rgba(247, 247, 245, .92);
  border-bottom: 1px solid var(--soft-line);
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset;
}

.brand {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 46px;
}

.brand img {
  width: 46px;
  height: auto;
}

.main-nav {
  gap: 42px;
  color: #55544f;
  font-size: 11px;
  font-weight: 700;
}

.main-nav a {
  padding: 29px 0;
}

.main-nav a::after {
  bottom: 22px;
  height: 1px;
  background: #8d8a84;
}

.header-link,
.menu-toggle {
  color: #55544f;
  font-size: 11px;
  font-weight: 700;
}

.hero {
  position: relative;
  display: block;
  min-height: min(760px, calc(100vh - 98px));
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(24,24,22,.82) 0%, rgba(40,40,38,.68) 28%, rgba(40,40,38,.18) 58%, rgba(40,40,38,.08) 100%),
    url("./assets/legacy-main-models-02.jpg") center center / cover no-repeat;
}

.hero-video-shell {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #252522;
  opacity: 1;
  pointer-events: none;
  transition: opacity 720ms ease;
}

.hero-video-shell::after {
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    linear-gradient(90deg, rgba(24,24,22,.82) 0%, rgba(40,40,38,.68) 28%, rgba(40,40,38,.18) 58%, rgba(40,40,38,.08) 100%),
    radial-gradient(circle at 54% 48%, rgba(255,255,255,.08), transparent 42%);
  content: "";
  pointer-events: none;
}

.hero-tv-video {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 1;
  filter: saturate(.88) contrast(1.05) brightness(.92);
  transition: opacity 720ms ease;
}

.hero.video-running .hero-tv-video {
  opacity: 1;
}

.hero.tv-booting .hero-tv-video {
  opacity: 0;
}

.hero.video-ended .hero-tv-video {
  opacity: 0;
}

.hero.video-ended .hero-video-shell {
  opacity: 0;
}

.hero-tv-static {
  position: absolute;
  inset: -8%;
  z-index: 4;
  opacity: 0;
  mix-blend-mode: screen;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.16) 0 1px, rgba(0,0,0,.16) 1px 2px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.12) 0 2px, rgba(0,0,0,.18) 2px 4px),
    radial-gradient(circle at 30% 45%, rgba(255,255,255,.28), transparent 12%),
    radial-gradient(circle at 68% 40%, rgba(0,0,0,.32), transparent 18%);
  transform: translate3d(0,0,0);
  pointer-events: none;
}

.hero.tv-booting .hero-tv-static {
  opacity: .78;
  animation: tvStatic 105ms steps(2, end) infinite, tvTuning 1850ms ease-out forwards;
}

.hero.video-running .hero-tv-static {
  opacity: .1;
  animation: tvStatic 150ms steps(2, end) 4;
}

.hero.video-ended .hero-tv-static {
  opacity: 0;
  animation: none;
}

@keyframes tvStatic {
  0% { transform: translate3d(-1.4%, -.8%, 0) scale(1.02); filter: contrast(1.4); }
  25% { transform: translate3d(.8%, 1.2%, 0) scale(1.015); filter: contrast(2.1); }
  50% { transform: translate3d(1.5%, -.7%, 0) scale(1.02); filter: contrast(1.6); }
  75% { transform: translate3d(-.9%, 1.1%, 0) scale(1.01); filter: contrast(2.3); }
  100% { transform: translate3d(.6%, -.4%, 0) scale(1.02); filter: contrast(1.5); }
}

@keyframes tvTuning {
  0% { clip-path: inset(0 0 0 0); opacity: .9; }
  18% { clip-path: inset(32% 0 26% 0); opacity: .85; }
  34% { clip-path: inset(0 0 0 0); opacity: .78; }
  52% { clip-path: inset(12% 0 40% 0); opacity: .72; }
  74% { clip-path: inset(0 0 0 0); opacity: .5; }
  100% { clip-path: inset(0 0 0 0); opacity: .12; }
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(560px, calc(100% - 44px));
  min-height: min(760px, calc(100vh - 98px));
  justify-content: end;
  padding: 0 0 118px clamp(38px, 5vw, 72px);
  background: transparent;
}

.eyebrow {
  color: #8a8881;
  font-size: 11px;
  font-weight: 800;
}

h1 {
  max-width: 560px;
  margin-bottom: 26px;
  color: rgba(244,244,240,.9);
  font-size: clamp(42px, 4.6vw, 70px);
  line-height: 1.02;
  font-weight: 800;
}

h2 {
  color: #4d4c48;
  font-size: clamp(30px, 3.3vw, 48px);
  line-height: 1.08;
  font-weight: 800;
}

h3 {
  color: #4b4a46;
  font-weight: 750;
}

.lead,
.section-copy p,
.detail-copy p,
.production-note,
.summary-panel p,
.inquiry-section p {
  color: #706f69;
  font-size: 16px;
  line-height: 1.72;
}

.hero .eyebrow {
  color: rgba(218,216,210,.68);
}

.hero .lead {
  color: rgba(236,235,229,.82);
  max-width: 520px;
}

.hero .btn.primary {
  background: rgba(98,97,91,.86);
  border-color: rgba(98,97,91,.86);
}

.hero .btn.ghost {
  background: rgba(255,255,255,.88);
  border-color: rgba(255,255,255,.88);
}

.hero .fit-pills {
  display: none;
}

.home-gateway {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--soft-line);
  padding: 0;
}

.home-gateway article {
  min-height: 280px;
  padding: 42px;
  background: #f2f1ed;
}

.home-gateway span,
.process-page span {
  color: #8a8881;
  font-weight: 800;
}

.home-gateway h2 {
  margin-top: 18px;
  font-size: 34px;
}

.home-gateway p {
  color: #706f69;
  line-height: 1.7;
}

.page-title {
  padding: 110px clamp(22px, 5vw, 72px) 62px;
  background: #f3f3f0;
}

.page-title h1,
.team-section h1,
.inquiry-section h1,
.admin-preview h1 {
  max-width: 760px;
  color: #5a5954;
  font-size: clamp(42px, 5vw, 72px);
}

.page-title p {
  max-width: 680px;
  color: #706f69;
  font-size: 17px;
  line-height: 1.7;
}

.page-visual-hero {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  min-height: 680px;
  background: #f3f3f0;
}

.page-visual-hero img {
  width: 100%;
  height: 680px;
  object-fit: cover;
  filter: saturate(.78) contrast(.95);
}

.page-visual-hero > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px;
}

.page-visual-hero h1 {
  color: #5a5954;
  font-size: clamp(40px, 4.4vw, 64px);
}

.page-visual-hero p {
  color: #706f69;
  line-height: 1.75;
}

.process-page h2 {
  margin-bottom: 32px;
}

.builder-page {
  min-height: calc(100vh - 100px);
}

.loading,
.team-status {
  color: #706f69;
  font-weight: 700;
}

.team-status {
  margin: 0 0 22px;
  padding: 16px 18px;
  border: 1px solid var(--soft-line);
  background: #f5f4f0;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--soft-line);
  padding: 0;
}

.service-grid article {
  min-height: 300px;
  padding: 38px;
  background: #f6f5f1;
}

.service-grid h2 {
  min-height: 86px;
  font-size: 30px;
  line-height: 1.15;
}

.service-grid p {
  min-height: 78px;
  color: #706f69;
  line-height: 1.7;
}

.btn {
  min-height: 46px;
  border-color: #8d8a84;
  color: #514f4a;
  font-size: 13px;
  font-weight: 750;
}

.btn.primary {
  background: #5b5a55;
  border-color: #5b5a55;
  color: #fff;
}

.btn.ghost {
  background: rgba(255,255,255,.45);
}

.fit-pills {
  margin-top: 44px;
}

.fit-pills span,
.filter,
.view-tabs button,
.preview-actions button,
.team-login button,
.member-sheet button,
.saved-designs button,
.admin-shell span {
  border-color: #aaa7a0;
  background: rgba(255,255,255,.48);
  color: #605f59;
  font-size: 11px;
  font-weight: 700;
}

.hero-media {
  display: none;
}

.hero-media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(61,60,56,.2), rgba(61,60,56,.05));
  content: "";
  pointer-events: none;
}

.hero-media img {
  filter: saturate(.78) contrast(.94) brightness(.92);
}

.hero-caption {
  display: none;
}

.hero-caption strong {
  color: #565550;
  font-size: 19px;
  font-weight: 800;
}

.marquee {
  border-color: var(--soft-line);
  background: #f6f6f3;
}

.marquee span {
  color: #817f78;
  font-size: 18px;
  font-weight: 700;
}

.section {
  padding-top: 88px;
  padding-bottom: 88px;
}

.process-grid,
.spec-list,
.builder-section,
.member-sheet,
.admin-shell {
  border-color: var(--soft-line);
}

.process-grid article,
.product-card,
.team-profile,
.saved-designs article,
.inquiry-form,
.metric-row article,
.admin-table,
.admin-shell,
.summary-panel,
.tool-panel {
  border-color: var(--soft-line);
  background: rgba(255,255,255,.72);
  box-shadow: none;
}

.process-grid article {
  min-height: 198px;
}

.process-grid span,
.product-card span,
.form-status {
  color: #8a8881;
}

.product-grid {
  gap: 12px;
}

.product-card {
  min-height: 500px;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.product-card img {
  height: 348px;
  filter: saturate(.78) contrast(.95);
}

.wishlist {
  border-color: rgba(255,255,255,.65);
  color: #77756f;
}

.detail-section,
.admin-preview,
.inquiry-section {
  background: #f4f4f1;
}

.detail-gallery img {
  filter: saturate(.78) contrast(.96);
}

.builder-section {
  background: #efefeb;
}

.tool-panel,
.summary-panel {
  background: rgba(250,250,247,.9);
}

.tool-panel {
  border-right-color: var(--soft-line);
}

.summary-panel {
  border-left-color: var(--soft-line);
}

.choice.active,
.motif.active,
.segmented button.active,
.filter.active,
.filter:hover,
.view-tabs button.active,
.preview-actions button:hover {
  background: #5b5a55;
  border-color: #5b5a55;
  color: #fff;
}

.preview-stage {
  background:
    linear-gradient(90deg, rgba(255,255,255,.22) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, rgba(255,255,255,.22) 0 1px, transparent 1px 100%),
    #eeeeea;
  background-size: 34px 34px;
}

.body-shape {
  box-shadow: 0 36px 70px rgba(77,76,72,.12);
}

.member-sheet {
  background: #4a4946;
}

.member-sheet p {
  color: #dad8d2;
}

.size-guide strong,
.size-guide span {
  border-color: #c5c2bb;
  color: #f0efea;
}

th {
  background: #d7d4cb;
  color: #44433f;
}

.admin-shell aside,
.site-footer {
  background: #3f3e3b;
}

.admin-shell aside img {
  width: 34px;
  margin-bottom: 28px;
}

.site-footer {
  padding: 48px 72px;
}

.site-footer img {
  width: 34px;
}

.site-footer p {
  color: #d8d6cf;
}

@media (max-width: 720px) {
  .site-header {
    grid-template-columns: 62px auto;
    position: sticky;
    padding: 0 22px;
  }

  .site-header::before {
    position: absolute;
    right: 22px;
    top: 50%;
    z-index: 70;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 36px;
    border: 1px solid #4a4946;
    background: #4a4946;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    content: "MENU";
    transform: translateY(-50%);
    pointer-events: none;
  }

  .menu-toggle {
    position: absolute;
    right: 22px;
    top: 50%;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    z-index: 80;
    width: 58px;
    min-width: 58px;
    height: 36px;
    border: 1px solid #4a4946;
    background: #4a4946;
    color: #fff;
    font-size: 0;
    transform: translateY(-50%);
  }

  .menu-toggle::before {
    display: block;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    content: "MENU";
  }

  .mobile-menu-fallback {
    position: absolute;
    right: 22px;
    top: 50%;
    z-index: 90;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 36px;
    border: 1px solid #4a4946;
    background: #4a4946;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    transform: translateY(-50%);
  }

  .hero {
    display: block;
    min-height: 640px;
    background:
      linear-gradient(90deg, rgba(24,24,22,.84) 0%, rgba(40,40,38,.5) 56%, rgba(40,40,38,.16) 100%),
      url("./assets/legacy-main-models-02.jpg") 58% center / cover no-repeat;
  }

  .hero-tv-video {
    object-position: 58% center;
  }

  .brand img,
  .site-footer img,
  .admin-shell aside img {
    width: 40px;
  }

  .hero-copy {
    width: min(360px, calc(100% - 44px));
    min-height: 640px;
    padding: 0 0 62px 22px;
  }

  .hero h1 {
    font-size: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-tv-video {
    transition: none;
  }
}
