/* Kings County  -  editorial B&W system
   Layout structure mapped to The Brooklyn Circus stream (structure only).
   No BK Circus logos, marks, or trademarks. */

:root {
  --white: #ffffff;
  --black: #000000;
  --ink: #000000;
  --muted: #444444;
  --rule: #000000;
  --font: "Sorts Mill Goudy", "EB Garamond", "Times New Roman", Georgia, serif;
  --font-sans: system-ui, -apple-system, "Segoe UI", sans-serif;
  --body-size: 22px;
  --body-lh: 1.15;
  --meta-size: 16px;
  --h1-size: 70px;
  --header-h: 200px;
  --header-h-shrunk: 150px;
  --gutter: 30px;
  --pair-gap: 20px;
  --caption-gap: 10px;
  --max-article: 850px;
  --pad-x: 20px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: var(--body-lh);
  color: var(--ink);
  background: var(--white);
  min-height: 100vh;
}

@media (min-width: 622px) {
  body {
    font-size: var(--body-size);
  }
}

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

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

a:hover {
  opacity: 0.65;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 1px solid var(--black);
  outline-offset: 3px;
}

h1, h2, h3, h4 {
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 0.4em;
}

p {
  margin: 0 0 1em;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  background: var(--black);
  color: var(--white);
  padding: 8px 12px;
  z-index: 2000;
  font-family: var(--font-sans);
  font-size: 14px;
}

.skip-link:focus {
  top: 12px;
}

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

/* ========== HEADER ========== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  height: var(--header-h);
  transition: height 0.25s ease;
}

.site-header.is-shrunk {
  height: var(--header-h-shrunk);
}

.site-header.is-shrunk .wordmark {
  font-size: inherit;
}

.site-header.is-shrunk .wordmark img {
  max-height: 72px;
  max-width: min(420px, 52vw);
}

@media (min-width: 900px) {
  .site-header.is-shrunk .main-nav-link {
    font-size: clamp(1.5rem, 4vw, 2.4rem);
  }
}
@media (max-width: 899px) {
  .site-header.is-shrunk .main-nav-link {
    font-size: clamp(0.68rem, 3.4vw, 1.05rem);
  }
}

.header-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px var(--pad-x) 16px;
  max-width: 1600px;
  margin: 0 auto;
}

/* Utility row */
.utility-row {
  display: none;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.utility-stack {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 90px;
}

.utility-stack a,
.utility-stack button {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.2;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-align: left;
  color: var(--black);
}

.utility-stack.right {
  text-align: right;
  align-items: flex-end;
}

.utility-stack.right a,
.utility-stack.right button {
  text-align: right;
}

.wordmark {
  font-family: var(--font);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  line-height: 1;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wordmark img {
  display: block;
  width: auto;
  height: auto;
  max-height: 100px;
  max-width: min(420px, 70vw);
  object-fit: contain;
}

.wordmark:hover {
  opacity: 1;
}

/* Main nav CULTURE | BESPOKE */
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 4px;
}

.main-nav-link {
  font-family: var(--font);
  font-size: clamp(1.75rem, 5vw, 3.25rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
}

/* Mobile header bar */
.mobile-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.menu-btn {
  font-family: var(--font);
  font-size: 18px;
  background: none;
  border: 0;
  padding: 8px 0;
  cursor: pointer;
  color: var(--black);
  min-width: 64px;
  text-align: left;
}

.mobile-wordmark {
  font-family: var(--font);
  font-size: clamp(1.1rem, 4.5vw, 1.5rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-wordmark img {
  display: block;
  width: auto;
  height: auto;
  max-height: 64px;
  max-width: min(260px, 62vw);
  object-fit: contain;
}

.mobile-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  min-width: 72px;
}

.mobile-actions a {
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.15;
}

.desktop-main-nav {
  display: none;
}

/* Drawer */
.drawer {
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 1100;
  padding: 24px var(--pad-x) 48px;
  transform: translateX(-100%);
  transition: transform 0.25s ease;
  overflow-y: auto;
}

.drawer.is-open {
  transform: translateX(0);
}

.drawer-close {
  font-family: var(--font);
  font-size: 18px;
  background: none;
  border: 0;
  padding: 8px 0;
  cursor: pointer;
  margin-bottom: 32px;
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.drawer-nav a {
  font-size: 28px;
  line-height: 1.15;
}

.drawer-meta {
  margin-top: 48px;
  font-size: 16px;
  line-height: 1.4;
}

.drawer-meta a {
  display: block;
  margin-bottom: 6px;
}

.drawer-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  z-index: 1050;
}

.drawer-backdrop.is-open {
  display: block;
}

body.drawer-open {
  overflow: hidden;
}

@media (min-width: 900px) {
  .mobile-bar {
    display: none;
  }

  .utility-row {
    display: flex;
  }

  .desktop-main-nav {
    display: flex;
  }

  :root {
    --header-h: 210px;
    --header-h-shrunk: 160px;
  }
}

/* Main offset for fixed header */
.site-main {
  padding-top: var(--header-h);
  min-height: 60vh;
}

.site-header.is-shrunk ~ .site-main,
body.has-shrunk-header .site-main {
  padding-top: var(--header-h-shrunk);
}

/* ========== HOMEPAGE STREAM ========== */
.stream {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 24px var(--pad-x) 0;
}

.stream-feature {
  display: block;
  margin-bottom: 48px;
}

.stream-feature .media {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.stream-feature .caption {
  margin-top: var(--caption-gap);
}

.stream-pair {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--pair-gap);
  margin-bottom: 48px;
}

.stream-pair .item {
  display: block;
}

.stream-pair .media {
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
}

.stream-pair .caption {
  margin-top: var(--caption-gap);
}

@media (min-width: 622px) {
  .stream-pair {
    grid-template-columns: 1fr 1fr;
    gap: var(--gutter);
    column-gap: var(--gutter);
    row-gap: var(--pair-gap);
  }
}

.caption-cat {
  font-size: var(--meta-size);
  line-height: 1.2;
  margin: 0 0 2px;
  letter-spacing: 0.01em;
}

.caption-title {
  font-size: clamp(1.15rem, 2.4vw, 1.65rem);
  line-height: 1.15;
  margin: 0;
  font-weight: 400;
}


.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Placeholder media panels (replace with real photos later) */
.ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 20px 24px;
  color: var(--white);
  background: #111;
  font-family: var(--font);
  font-size: clamp(1.25rem, 3vw, 2rem);
  line-height: 1.15;
  letter-spacing: 0.02em;
}

.ph.light {
  background: #e8e8e8;
  color: var(--black);
}

.ph.mid {
  background: #333;
}

.ph.ch { background: #2e3824; }
.ph.pp { background: #24382e; }
.ph.cy { background: #3a2e1e; }
.ph.rh { background: #4a2222; }
.ph.fg { background: #1e2838; }
.ph.gp { background: #1e3830; }
.ph.sp { background: #38281e; }
.ph.olive { background: #3a4228; }
.ph.plum { background: #3a2232; }
.ph.yellow { background: #a88838; color: #111; }

/* ========== CULTURE PAGE ========== */
.culture-page {
  max-width: 1600px;
  margin: 0 auto;
  padding: 40px var(--pad-x) 0;
}

.culture-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin: 0 0 40px;
  padding: 0;
}

.culture-tabs button {
  font-family: var(--font);
  font-size: 16px;
  background: none;
  border: 0;
  border-bottom: 1px solid transparent;
  padding: 4px 0;
  cursor: pointer;
  color: var(--black);
  line-height: 1.2;
}

.culture-tabs button[aria-selected="true"],
.culture-tabs button.active {
  border-bottom-color: var(--black);
}

.culture-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px var(--gutter);
  margin-bottom: 64px;
}

.culture-card {
  display: block;
}

.culture-card.is-hidden {
  display: none;
}

.culture-card .media {
  aspect-ratio: 2 / 3;
  overflow: hidden;
}

.culture-card .caption {
  margin-top: var(--caption-gap);
}

@media (min-width: 622px) {
  .culture-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1025px) {
  .culture-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

/* ========== ARTICLE ========== */
.article-page {
  padding: 48px 0 0;
}

.article-head {
  text-align: center;
  max-width: 1100px;
  margin: 0 auto 32px;
  padding: 0 var(--pad-x);
}

.article-cat {
  font-size: var(--meta-size);
  margin: 0 0 12px;
  letter-spacing: 0.02em;
}

.article-head h1 {
  font-size: clamp(2.5rem, 8vw, var(--h1-size));
  line-height: 1.15;
  margin: 0;
  font-weight: 400;
}

.article-hero {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto 48px;
  padding: 0 var(--pad-x);
}

.article-hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 320px;
}

.article-hero-split .media {
  aspect-ratio: 16 / 9;
  min-height: 280px;
  width: 100%;
  min-width: 0;
  overflow: hidden;
}

.article-hero-split .typo-panel {
  background: var(--black);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 28px;
  text-align: center;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (min-width: 900px) {
  .article-hero-split {
    grid-template-columns: 1.2fr 1fr;
  }

  .article-hero-split .media {
    aspect-ratio: auto;
    min-height: 420px;
  }
}

.article-body {
  max-width: var(--max-article);
  margin: 0 auto;
  padding: 0 var(--pad-x) 64px;
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.35;
}

.article-body .lede {
  font-size: 1.15em;
  margin-bottom: 1.4em;
}

.article-body h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-top: 1.6em;
}

.article-body a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pull-quote {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  line-height: 1.25;
  margin: 1.6em 0;
  padding: 0;
  border: 0;
  quotes: none;
}

.related {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 var(--pad-x) 80px;
}

.related h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 28px;
  text-align: center;
}

.related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px var(--gutter);
}

@media (min-width: 622px) {
  .related-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1025px) {
  .related-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.related-grid .media {
  aspect-ratio: 2 / 3;
}

.related-grid .caption {
  margin-top: var(--caption-gap);
}

/* ========== INNER PAGES ========== */
.page-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px var(--pad-x) 80px;
}

.page-wrap.wide {
  max-width: 1400px;
}

.page-kicker {
  font-size: var(--meta-size);
  margin: 0 0 8px;
}

.page-wrap h1 {
  font-size: clamp(2.4rem, 7vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 16px;
}

.page-lead {
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.3;
  max-width: 40em;
  margin-bottom: 40px;
}

.page-wrap h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-top: 2em;
}

.text-muted {
  color: var(--muted);
}

.look-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px var(--gutter);
  margin: 32px 0 48px;
}

@media (min-width: 622px) {
  .look-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1025px) {
  .look-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.look-grid .media {
  aspect-ratio: 2 / 3;
}

.look-grid .caption {
  margin-top: var(--caption-gap);
}

.section-block {
  margin-bottom: 64px;
}

.section-block .section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}

.section-block .section-head a {
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: var(--meta-size);
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin: 40px 0;
}

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

@media (min-width: 700px) {
  .timeline-item {
    grid-template-columns: 140px 1fr;
    gap: 32px;
  }
}

.timeline-label {
  font-size: var(--meta-size);
  margin: 0;
  letter-spacing: 0.02em;
}

.materials {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin: 32px 0;
}

@media (min-width: 700px) {
  .materials {
    grid-template-columns: 1fr 1fr;
  }
}

.materials h3 {
  font-size: 1.4rem;
  margin-bottom: 6px;
}

/* Forms: clean sans only where needed */
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  margin-top: 32px;
}

@media (min-width: 800px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-item {
  margin-bottom: 24px;
}

.contact-item strong {
  display: block;
  font-weight: 400;
  font-size: var(--meta-size);
  margin-bottom: 4px;
}

.contact-item a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.3;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid var(--black);
  background: transparent;
  border-radius: 0;
  color: var(--black);
  appearance: none;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
  border: 1px solid var(--black);
  padding: 10px 12px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--black);
}

.hint {
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
  margin: 6px 0 0;
}

.btn {
  display: inline-block;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.2;
  padding: 12px 0;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--black);
  color: var(--black);
  cursor: pointer;
  text-decoration: none;
}

.btn:hover {
  opacity: 0.65;
}

.btn-full {
  width: 100%;
  text-align: left;
}

.btn-solid {
  background: var(--black);
  color: var(--white);
  border: 0;
  padding: 14px 24px;
  text-align: center;
}

.btn-solid:hover {
  opacity: 0.8;
}

/* ========== BESPOKE ROOM (Kickflip-style layout; KC content only) ========== */

.page-bespoke .site-main {
  padding-bottom: 0;
}

body.kc-config-open .site-footer {
  margin-top: 0;
  padding-bottom: 100px;
}

/* Collection grid */
.kc-collection {
  padding-bottom: 80px;
}

.kc-collection-intro {
  padding-bottom: 16px;
}

.kc-product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--pad-x) 40px;
}

@media (min-width: 622px) {
  .kc-product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (min-width: 960px) {
  .kc-product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.kc-product-card {
  display: flex;
  flex-direction: column;
  background: #f0f0f0;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-align: left;
  color: var(--black);
  font-family: var(--font);
  transition: opacity 0.15s ease;
}

.kc-product-card:hover {
  opacity: 0.85;
}

.kc-product-card-img {
  aspect-ratio: 1 / 1;
  background: #e6e6e6;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kc-product-card-img span {
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #777;
}

.kc-product-card-meta {
  padding: 14px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.kc-product-card-name {
  font-size: 18px;
  line-height: 1.2;
}

.kc-product-card-blurb {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--muted);
}

/* Configurator shell */
.kc-configurator {
  max-width: 1600px;
  margin: 0 auto;
}

.kc-config-toolbar {
  padding: 8px var(--pad-x) 12px;
  max-width: 1600px;
}

.kc-back {
  font-family: var(--font-sans);
  font-size: 13px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: var(--muted);
  margin-bottom: 8px;
}

.kc-back:hover {
  color: var(--black);
}

.kc-config-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  margin: 0 0 4px;
}

.kc-config-lead {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.kc-config-form {
  position: relative;
}

.kc-config-layout {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--header-h-shrunk) - 160px);
}

@media (min-width: 960px) {
  .kc-config-layout {
    flex-direction: row;
    align-items: stretch;
    height: calc(100vh - var(--header-h-shrunk) - 120px);
    min-height: 560px;
  }
}

/* LEFT preview ~65–68% */
.kc-preview-pane {
  background: #f3f3f3;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 360px;
}

@media (min-width: 960px) {
  .kc-preview-pane {
    flex: 0 0 67%;
    width: 67%;
    max-width: 67%;
    height: 100%;
  }
}

.kc-preview-canvas {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 24px 16px 8px;
}

.kc-preview-stage {
  width: min(94%, 560px);
  position: relative;
  transition: transform 0.2s ease;
  transform-origin: center center;
  transform: scale(1); /* no accidental zoom-in on load */
}

.kc-preview-stack {
  position: relative;
  width: 100%;
}

.kc-preview-stack[hidden],
.kc-preview-stack:not(.is-active) {
  display: none !important;
}

.kc-preview-view {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f3f3f3;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}

.kc-preview-view[hidden],
.kc-preview-view:not(.is-active) {
  display: none !important;
}

.kc-preview-photo {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
  background: #f3f3f3;
  transform: none;
}

.kc-zone-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  /* Blend whole SVG with the photo under it (inner g blend does not pierce SVG root). */
  mix-blend-mode: multiply;
}

/* Quick-ship: hide zone tint fills so Photoroom hero stays fully visible.
   Accordion + build-summary chips still capture color for FormSubmit. */
.kc-zone-overlay--hidden,
.kc-zone-overlay[hidden] {
  display: none !important;
}

.kc-tint-layer path[data-zone][fill="#ffffff"],
.kc-tint-layer path[data-zone][fill="#fff"],
.kc-tint-layer path[data-zone][fill="white"] {
  /* never paint solid white over the photo if overlay is re-enabled */
  fill-opacity: 0;
}

.kc-svg-fallback[hidden] {
  display: none !important;
}

.kc-tint-layer {
  /* fills only; blend handled on .kc-zone-overlay */
}

.kc-tint-layer path[data-zone],
.kc-tint-layer g[data-zone] path,
.kc-tint-layer g[data-zone] circle {
  transition: fill 0.15s ease, stroke 0.15s ease;
}

.kc-product-svg-inline,
.kc-product-svg {
  width: 100%;
  height: auto;
  max-height: min(68vh, 640px);
  display: block;
}

.kc-product-svg { display: none; } /* prefer inline for coloring */

.kc-preview-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 56px;
  height: auto;
  opacity: 0.92;
  pointer-events: none;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.18));
}

.kc-preview-note {
  margin: 0;
  padding: 0 20px 6px;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #666;
  text-align: center;
  font-family: var(--font-sans);
}

.kc-build-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding: 4px 16px 10px;
}

.kc-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #ddd;
  background: #fff;
  padding: 4px 8px;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: var(--font-sans);
  color: #222;
}

.kc-chip-swatch {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.25);
  flex: 0 0 auto;
}

.kc-glove-svg {
  width: 100%;
  height: auto;
  display: block;
  max-height: min(68vh, 640px);
}

.kc-glove-svg[hidden],
.kc-glove-svg:not(.is-active) {
  display: none !important;
}

.kc-preview-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 8px 20px 18px;
  position: relative;
}

.kc-view-dots {
  display: flex;
  gap: 10px;
  align-items: center;
}

.kc-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid #333;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.kc-dot.is-active {
  background: #111;
}

.kc-chevron {
  width: 36px;
  height: 36px;
  border: 1px solid #333;
  background: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  font-family: var(--font-sans);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.kc-chevron:hover {
  background: #111;
  color: #fff;
}

.kc-zoom-controls {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.kc-zoom-controls button {
  width: 32px;
  height: 32px;
  border: 1px solid #333;
  background: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  font-family: var(--font-sans);
}

/* RIGHT accordion ~32% */
.kc-controls-pane {
  background: #fff;
  display: flex;
  flex-direction: column;
  border-top: 2px solid #000;
}

@media (min-width: 960px) {
  .kc-controls-pane {
    flex: 0 0 33%;
    width: 33%;
    max-width: 33%;
    border-top: 0;
    border-left: 2px solid #000;
    height: 100%;
    overflow: hidden;
  }
}

.kc-accordion {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
  padding-bottom: 90px;
  max-height: none;
}

@media (min-width: 960px) {
  .kc-accordion {
    height: 100%;
    max-height: 100%;
  }
}

.kc-acc {
  border-bottom: 2px solid #000;
}

.kc-acc > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  user-select: none;
}

.kc-acc > summary::-webkit-details-marker {
  display: none;
}

.kc-acc > summary::after {
  content: "+";
  font-size: 16px;
  line-height: 1;
  flex-shrink: 0;
}

.kc-acc[open] > summary::after {
  content: "–";
}

.kc-acc-label {
  font-weight: 600;
}

.kc-acc-value {
  color: var(--muted);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-size: 12px;
  margin-left: auto;
  margin-right: 8px;
  max-width: 40%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: right;
}

.kc-acc-body {
  padding: 0 16px 18px;
}

.kc-zone-header {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 12px;
}

/* Circular swatches, 4-col desktop */
.kc-swatches {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 8px;
}

@media (max-width: 959px) {
  .kc-swatches {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 12px;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
  }
  .kc-swatch-item {
    flex: 0 0 auto;
    width: 64px;
  }
}

.kc-swatch-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.kc-swatch {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #ccc;
  padding: 0;
  cursor: pointer;
  background: #fff;
}

.kc-swatch.is-light {
  border-color: #bbb;
}

.kc-swatch.selected {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #000;
}

.kc-swatch-label {
  font-family: var(--font-sans);
  font-size: 10px;
  line-height: 1.15;
  text-align: center;
  color: var(--muted);
  max-width: 72px;
}

.kc-choice-grid,
.kc-size-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

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

.kc-choice {
  font-family: var(--font-sans);
  font-size: 13px;
  padding: 12px 8px;
  border: 1px solid #000;
  background: #fff;
  cursor: pointer;
  color: #000;
}

.kc-choice.selected {
  background: #000;
  color: #fff;
}

.kc-choice-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.kc-choice-block {
  text-align: left;
  font-family: var(--font-sans);
  border: 1px solid #000;
  background: #fff;
  padding: 12px 14px;
  cursor: pointer;
  color: #000;
}

.kc-choice-block strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.kc-choice-block span {
  display: block;
  font-size: 12px;
  line-height: 1.35;
  color: var(--muted);
}

.kc-choice-block.selected {
  background: #000;
  color: #fff;
}

.kc-choice-block.selected span {
  color: #ccc;
}

.kc-confirm {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.4;
  cursor: pointer;
}

.kc-confirm input {
  margin-top: 3px;
  flex-shrink: 0;
}

.kc-text-btn {
  font-family: var(--font-sans);
  font-size: 13px;
  background: none;
  border: 0;
  border-bottom: 1px solid #000;
  padding: 4px 0;
  cursor: pointer;
  margin-top: 8px;
}

.kc-controls-pane .field input[type="file"] {
  border-bottom: 0;
  padding: 8px 0;
  font-size: 13px;
}

.kc-controls-pane .field select {
  border: 1px solid #000;
  padding: 10px 12px;
  background: #fff;
}

/* Sticky submit bar */
.kc-sticky-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  background: #fff;
  border-top: 2px solid #000;
  padding: 10px var(--pad-x);
}

body:not(.kc-config-open) .kc-sticky-bar {
  display: none;
}

.kc-sticky-inner {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.kc-sticky-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: var(--font-sans);
  font-size: 13px;
  min-width: 0;
}

.kc-sticky-meta span:first-child {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kc-sticky-lead {
  color: var(--muted);
  font-size: 12px;
}

.kc-submit {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: #000;
  color: #fff;
  border: 0;
  padding: 14px 22px;
  cursor: pointer;
  white-space: nowrap;
}

.kc-submit:hover {
  opacity: 0.85;
}

@media (max-width: 621px) {
  .kc-sticky-meta {
    display: none;
  }
  .kc-submit {
    width: 100%;
    text-align: center;
  }
  .kc-sticky-inner {
    display: block;
  }
}

/* Thank you */
.thank-you {
  text-align: center;
  padding: 80px var(--pad-x) 120px;
  max-width: 640px;
  margin: 0 auto;
}

.thank-you h1 {
  font-size: clamp(3rem, 10vw, 5rem);
}

.thank-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  margin-top: 32px;
}

/* ========== FOOTER ========== */
.site-footer {
  margin-top: 120px;
  padding: 64px var(--pad-x) 40px;
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
  border-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

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

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

.footer-brand {
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.15;
  margin-bottom: 12px;
}

.footer-brand .footer-logo,
.footer-brand img {
  display: block;
  width: auto;
  height: auto;
  max-height: 72px;
  max-width: 220px;
  object-fit: contain;
}

.footer-brand small {
  display: block;
  font-size: 15px;
  letter-spacing: 0.02em;
  text-transform: none;
  margin-top: 8px;
  color: var(--muted);
}

.kc-product-card-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.craft-badge {
  display: block;
  width: 140px;
  max-width: 140px;
  height: auto;
  aspect-ratio: 1080 / 1350;
  margin: 0 auto 32px;
  object-fit: contain;
  object-position: center;
  background: transparent;
  background-color: transparent;
  box-shadow: none;
  border: 0;
  border-radius: 0;
}

@media (min-width: 900px) {
  .wordmark img {
    max-height: 110px;
    max-width: min(480px, 58vw);
  }
}

.footer-col h3 {
  font-size: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.footer-col a {
  display: block;
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 4px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  color: var(--muted);
  padding-top: 24px;
  border-top: 1px solid #ddd;
}

/* Newsletter anchor target */
#newsletter {
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.newsletter-block {
  max-width: 480px;
  margin: 64px auto;
  padding: 0 var(--pad-x);
  text-align: center;
}

.newsletter-block h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.newsletter-block form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.newsletter-block input[type="email"] {
  font-family: var(--font-sans);
  font-size: 16px;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--black);
  background: transparent;
  text-align: center;
}

@media (min-width: 500px) {
  .newsletter-block form {
    flex-direction: row;
    align-items: stretch;
  }

  .newsletter-block input[type="email"] {
    flex: 1;
    text-align: left;
  }
}

/* Empty media slot (awaiting a licensed or owned photo). No visible "coming soon" text. */
.media.media-empty {
  background: #141414;
  background-image: linear-gradient(160deg, #1c1c1c 0%, #0e0e0e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}
.media-empty-label {
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  padding: 0 16px;
}
.article-hero-split .media.media-empty { border-right: 1px solid rgba(255, 255, 255, 0.08); }

/* Policy page */
.policy-block { max-width: var(--max-article); }
.policy-block h2 { margin-bottom: 16px; }
.policy-block p { margin: 0 0 14px; }

/* Help + legal pages */
.policy-block ul { padding-left: 1.2em; margin: 0 0 14px; }
.policy-block li { margin-bottom: 10px; }
.legal h2 { margin-top: 32px; }
.table-scroll { max-width: 100%; overflow-x: auto; margin: 0 0 16px; -webkit-overflow-scrolling: touch; }
.size-table { border-collapse: collapse; width: 100%; min-width: 260px; font-size: 18px; }
.size-table th, .size-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid #cfcfcf; }
.size-table thead th { font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--black); border-bottom: 2px solid var(--black); }
.faq-list { max-width: var(--max-article); border-top: 1px solid var(--black); margin-top: 24px; }
.faq-item { border-bottom: 1px solid var(--black); }
.faq-item > summary { list-style: none; cursor: pointer; min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; font-size: clamp(1.1rem, 2.4vw, 1.35rem); }
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after { content: "+"; font-size: 1.4em; line-height: 1; flex: none; }
.faq-item[open] > summary::after { content: "\2212"; }
.faq-item > summary:focus-visible { outline: 2px solid var(--black); outline-offset: 2px; }
.faq-body { padding: 0 0 18px; }
.faq-body p { margin: 0; }
.policy-block a, .faq-body a, .page-lead a { text-decoration: underline; text-underline-offset: 3px; }
/* footer: more groups, 44px tap targets */
.footer-col a { display: flex; align-items: center; min-height: 44px; margin-bottom: 0; }
.footer-col h3 + a { margin-top: -6px; }
.footer-col h3.footer-subhead { margin-top: 20px; }
@media (min-width: 1100px) {
  .footer-grid { grid-template-columns: 1.4fr repeat(5, 1fr); }
}
.kc-product-item { display: flex; flex-direction: column; }
.kc-product-item > .kc-product-card { width: 100%; flex: 1 1 auto; }
.kc-product-size-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; text-decoration: underline; text-underline-offset: 3px; align-self: flex-start; }

/* ========== v3 structure: home, record hub, nav ========== */
.mobile-actions { min-width: 0; max-width: 104px; }
.mobile-actions a { display: inline-flex; align-items: center; justify-content: flex-end; min-height: 44px; text-align: right; }
.main-nav-link[aria-current="page"],
.utility-stack a[aria-current="page"],
.drawer-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }

.home-hero { max-width: 1600px; margin: 0 auto; padding: 24px var(--pad-x) 0; }
.home-hero-media { aspect-ratio: 4 / 3; overflow: hidden; }
.home-hero-text { max-width: var(--max-article); padding-top: 32px; }
.home-hero-text h1 { font-size: clamp(2.25rem, 6vw, 4.5rem); line-height: 1.05; font-weight: 400; margin: 0 0 24px; }
.btn-cta { display: inline-flex; align-items: center; min-height: 48px; padding: 12px 24px; }
@media (min-width: 622px) { .home-hero-media { aspect-ratio: 16 / 9; } }

.home-section { max-width: 1600px; margin: 0 auto; padding: 80px var(--pad-x) 0; }
.home-section h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 400; line-height: 1.1; margin: 0 0 32px; }
.home-section .section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.home-section .section-head h2 { margin: 0; }
.home-section .section-head a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: 3px; font-size: var(--meta-size); }
.home-steps { list-style: none; margin: 0 0 32px; padding: 0; display: grid; grid-template-columns: 1fr; gap: 32px; counter-reset: step; }
.home-steps li { counter-increment: step; border-top: 1px solid var(--black); padding-top: 16px; }
.home-steps li::before { content: counter(step, decimal-leading-zero); display: block; font-size: var(--meta-size); margin-bottom: 8px; }
.home-steps h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); font-weight: 400; margin: 0 0 8px; }
.home-steps p { margin: 0; font-size: 18px; line-height: 1.35; }
@media (min-width: 1025px) { .home-steps { grid-template-columns: repeat(3, 1fr); gap: 32px var(--gutter); } }
.home-lead-time { max-width: var(--max-article); margin: 0; font-size: 18px; line-height: 1.35; }
.home-lead-time a, .lookbook-close a { text-decoration: underline; text-underline-offset: 3px; }
.stream.stream-home { padding: 0; }
.home-about { max-width: 1100px; }
.home-about .page-lead { margin-bottom: 24px; }
.home-about .btn { display: inline-flex; align-items: center; min-height: 44px; }
.newsletter-block { margin: 80px auto; }

.record-head { text-align: center; max-width: var(--max-article); margin: 0 auto 32px; }
.record-head h1 { font-size: clamp(2.4rem, 7vw, 4.5rem); font-weight: 400; line-height: 1.1; margin: 0 0 16px; }
.record-head .page-lead { margin: 0 auto; }
.culture-tabs button { min-height: 44px; padding: 8px 0; }
@media (min-width: 622px) {
  .culture-card.is-feature { grid-column: span 2; }
  .culture-card.is-feature .media { aspect-ratio: 4 / 3; }
}

.look-grid-clean { gap: var(--gutter); }
.lookbook-close { max-width: var(--max-article); font-size: 18px; line-height: 1.35; margin: 0; }
@media (min-width: 1025px) { .home-hero-media { aspect-ratio: auto; width: 100%; height: min(62vh, 42vw); } }

/* ========== v4 polish: targets, type, focus, motion ========== */
:root { --frame-offset: var(--header-h); }

/* Focus: visible everywhere, including form fields */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--black); outline-offset: 3px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--black); outline-offset: 2px; }
.btn-solid:focus-visible { outline-offset: 4px; }

/* Tap targets >= 44px */
.menu-btn, .drawer-close { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; }
.drawer-nav { gap: 0; }
.drawer-nav a, .drawer-meta a { display: flex; align-items: center; min-height: 48px; }
.drawer-meta a { margin-bottom: 0; }
.utility-stack { flex-direction: row; gap: 0 24px; min-width: 0; align-items: center; }
.utility-stack a { display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; }
.contact-item > a, .link-row a { display: inline-flex; align-items: center; min-height: 44px; }
.field input, .field select { min-height: 48px; }

/* Readable type: nothing below 16px for reading text */
.field label, .hint, .kc-product-card-blurb, .footer-bottom { font-size: 16px; }
.size-table thead th { font-size: 15px; }

/* No orphaned headings, nicer rag */
h1, h2, h3, .caption-title { text-wrap: balance; }
p, li { text-wrap: pretty; }

/* Images never distort */
.media img, .look-grid img, .related-grid img, .culture-card img { object-fit: cover; }

/* Builder embed (when an iframe embed is used on bespoke-equipment.html) */
.builder-frame { display: block; width: 100%; border: 0; height: 100vh; height: calc(100vh - var(--frame-offset)); height: calc(100dvh - var(--frame-offset)); scroll-margin-top: var(--frame-offset); }

/* Motion: respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
.kc-product-card-img span { color: #555; }
.kc-preview-note { font-size: 14px; color: #555; }
.skip-link { font-size: 16px; }
.size-table thead th { font-size: 16px; letter-spacing: 0.04em; }

/* ========== THE RECORD, WAVE 2 ========== */
.photo-credit { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 14px; line-height: 1.4; color: #555; margin: 8px 0 0; text-align: left; }
.photo-credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.article-hero > .photo-credit { max-width: 1600px; }
.media-record img { object-position: 50% 25%; }
.article-hero-inset { max-width: 320px; margin: 0 auto 48px; padding: 0; }
.article-hero-inset img { display: block; width: 100%; height: auto; }
.article-figure { margin: 40px 0; }
.article-figure img { display: block; width: 100%; height: auto; max-height: 80vh; object-fit: contain; background: #f2f2f2; }
.article-figure.is-small { max-width: 427px; margin-left: auto; margin-right: auto; }
.pull-quote p { margin: 0; }
.pull-quote-cite { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 16px; line-height: 1.4; color: #555; margin-top: 16px; }
.desk-note { font-style: italic; font-size: max(16px, 0.85em); color: #444; margin-top: 48px; padding-top: 24px; border-top: 1px solid #ddd; }
.article-sources h2 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); margin-top: 32px; }
.article-sources ul { padding-left: 1.1em; margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 16px; line-height: 1.5; color: #333; }
.article-sources li { margin: 0 0 8px; overflow-wrap: anywhere; }
.culture-tabs button[hidden] { display: none; }
.media-record img.photo-floor,
.media-record img[src*="ymca-boxing"] { object-position: 50% 70%; }


/* v27 native embed: the Bespoke Room is part of the page and must never trap scroll.
   Keep padding-top so the fixed site header does not cover Style and other top options. */
.page-bespoke .site-main,
.page-bespoke .kc-equip-main {
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  overflow: visible !important;
  padding: 0;
  padding-top: var(--header-h) !important;
  background: #fff;
}
.site-header.is-shrunk ~ .page-bespoke .site-main,
.site-header.is-shrunk ~ .kc-equip-main,
body.has-shrunk-header.page-bespoke .site-main,
body.has-shrunk-header .kc-equip-main {
  padding-top: var(--header-h-shrunk) !important;
}
.page-bespoke .builder-frame { display: none !important; }
#kc-customizer {
  scroll-margin-top: calc(var(--header-h) + 8px);
}
body.has-shrunk-header #kc-customizer,
.site-header.is-shrunk ~ * #kc-customizer {
  scroll-margin-top: calc(var(--header-h-shrunk) + 8px);
}
#kc-customizer .accordion-head,
#kc-customizer .studio-top,
#kc-customizer .preview-pane,
#kc-customizer .kc-stage {
  scroll-margin-top: calc(var(--header-h) + 8px);
}
body.has-shrunk-header #kc-customizer .accordion-head,
.site-header.is-shrunk ~ * #kc-customizer .accordion-head {
  scroll-margin-top: calc(var(--header-h-shrunk) + 8px);
}
#kc-customizer .preview-pane {
  top: var(--header-h);
}
body.has-shrunk-header #kc-customizer .preview-pane,
.site-header.is-shrunk ~ * #kc-customizer .preview-pane {
  top: var(--header-h-shrunk);
}

@media (max-width: 860px) {
  #kc-customizer .preview-pane {
    position: relative !important;
    top: auto !important;
    overflow: visible !important;
    min-height: 0 !important;
    padding-bottom: 12px;
  }
  #kc-customizer .stage-wrap,
  #kc-customizer .stage,
  #kc-customizer .kc-stage {
    min-height: 0 !important;
  }
  #kc-customizer .preview-tools {
    position: relative !important;
    left: auto !important;
    bottom: auto !important;
    margin: 8px 8px 16px;
  }
}


/* v28: SHOP left, BESPOKE EQUIPMENT exactly under the logo, THE RECORD right.
   Logo and the middle nav word share the same horizontal center of the header.
   A 1fr / auto / 1fr grid keeps the middle word centered even when Shop and
   The Record have different widths. Do not pull the middle word out of the
   grid with position:absolute, that lets The Record slide into the center
   column and hide under Bespoke Equipment. */
.header-inner { position: relative; }
.utility-row {
  position: relative;
  /* Reserve the logo's height so BESPOKE EQUIPMENT sits under it, not beneath it.
     The mark itself stays absolutely centered so it lines up with the nav's
     middle column even when the left/right utility stacks have different widths. */
  min-height: 100px;
}
.site-header.is-shrunk .utility-row { min-height: 72px; }
.wordmark {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  flex: none;
  z-index: 1;
}
.mobile-bar { position: relative; }
.mobile-wordmark {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  flex: none;
  z-index: 1;
}
@media (min-width: 900px) {
  :root {
    --header-h: 230px;
    --header-h-shrunk: 180px;
  }
}
.main-nav,
.desktop-main-nav {
  display: grid !important;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  position: relative;
  width: 100%;
  justify-content: unset;
  column-gap: 8px;
}
.main-nav .main-nav-link:nth-child(1),
.desktop-main-nav .main-nav-link:nth-child(1) {
  grid-column: 1;
  justify-self: start;
  text-align: left;
}
.main-nav .main-nav-link:nth-child(2),
.desktop-main-nav .main-nav-link:nth-child(2) {
  grid-column: 2;
  justify-self: center;
  text-align: center;
  white-space: nowrap;
}
.main-nav .main-nav-link:nth-child(3),
.desktop-main-nav .main-nav-link:nth-child(3) {
  grid-column: 3;
  justify-self: end;
  text-align: right;
}
.main-nav-link { font-size: clamp(0.92rem, 3.6vw, 3.25rem); }

/* Mobile: keep Menu + centered logo, hide the duplicate Bespoke Equipment
   action, and put the 3-word row under the logo without overlapping it. */
@media (max-width: 899px) {
  :root {
    --header-h: 160px;
    --header-h-shrunk: 160px;
  }
  .mobile-actions { display: none; }
  .mobile-bar { min-height: 72px; }
  .main-nav,
  .desktop-main-nav { margin-top: 4px; }
  .main-nav-link {
    font-size: clamp(0.72rem, 3.6vw, 1.05rem);
    letter-spacing: 0.04em;
  }
}
@media (min-width: 900px) {
  .desktop-main-nav { display: grid !important; }
}

/* v29: breathing room between the logo and BESPOKE EQUIPMENT, and between
   the three nav words on desktop. Do not change the 390 mobile typesetting. */
@media (min-width: 900px) {
  :root {
    --header-h: 248px;
    --header-h-shrunk: 196px;
  }
  .wordmark {
    top: 0;
  }
  .utility-row {
    min-height: 96px;
    margin-bottom: 0;
  }
  .wordmark img {
    max-height: 96px;
    max-width: min(400px, 46vw);
  }
  .site-header.is-shrunk .utility-row {
    min-height: 64px;
  }
  .site-header.is-shrunk .wordmark img {
    max-height: 64px;
    max-width: min(340px, 40vw);
  }
  .main-nav,
  .desktop-main-nav {
    margin-top: 18px;
    column-gap: 40px;
  }
  .main-nav-link {
    font-size: clamp(1.65rem, 2.5vw, 2.35rem);
    letter-spacing: 0.03em;
  }
  .site-header.is-shrunk .main-nav-link {
    font-size: clamp(1.5rem, 2.3vw, 2.15rem);
  }
}
/* Tablet (not 390): keep the mobile bar, add a clear gap under the logo. */
@media (min-width: 700px) and (max-width: 899px) {
  :root {
    --header-h: 176px;
    --header-h-shrunk: 176px;
  }
  .main-nav,
  .desktop-main-nav {
    margin-top: 16px;
  }
}

/* Shop bag count in the utility row; same type as sibling utility links. */
.kc-bag-link { white-space: nowrap; }

/* ========== v33 atelier reframe ========== */
/* Spec sheet: maker's definition list, hairline rows */
.spec-sheet { margin: 0 0 32px; padding: 0; border-top: 1px solid var(--black); }
.spec-sheet > div { display: grid; grid-template-columns: minmax(7rem, 10rem) 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid #cfcfcf; align-items: baseline; }
.spec-sheet dt { font-family: var(--font-sans); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0; }
.spec-sheet dd { margin: 0; font-size: 19px; line-height: 1.3; }
.spec-sheet .todo { display: inline-block; font-family: var(--font-sans); font-size: 13px; line-height: 1.3; padding: 3px 8px; background: #fff4c2; border: 1px solid #8a6a00; color: #000; }

.btn-quiet { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 0; border-bottom: 1px solid var(--black); transition: opacity 200ms ease; }
.btn-solid, .btn { transition: opacity 200ms ease; }

/* Home */
.home-hero-text { max-width: 980px; padding-top: 40px; }
.home-hero-text .page-kicker { font-family: var(--font-sans); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }
.home-hero-text h1 { margin-bottom: 32px; max-width: 14em; }
.home-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 32px; }
.home-section { padding-top: 96px; }
.home-section > .page-kicker { font-family: var(--font-sans); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.home-steps-4 { margin-bottom: 24px; }
.home-steps-4 li::before { font-family: var(--font-sans); font-size: 13px; letter-spacing: .08em; color: var(--muted); }
@media (min-width: 750px) { .home-steps-4 { grid-template-columns: repeat(2, 1fr); gap: 40px var(--gutter); } }
@media (min-width: 990px) { .home-steps-4 { grid-template-columns: repeat(4, 1fr); } .home-section { padding-top: 128px; } }
.home-heritage { display: grid; grid-template-columns: 1fr; gap: 32px; }
.home-heritage .heritage-media { overflow: hidden; }
.home-heritage .heritage-media img { width: 100%; height: auto; object-fit: cover; aspect-ratio: 4 / 3; }
.home-heritage .heritage-text { max-width: 36rem; }
.home-heritage .page-lead { margin-bottom: 28px; }
.home-heritage .btn { display: inline-flex; align-items: center; min-height: 44px; margin-right: 28px; }
.spec-sheet-home { max-width: 34rem; }
@media (min-width: 990px) { .home-heritage { grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; } .home-about { max-width: 1600px; } }
.home-about.home-heritage { max-width: 1600px; }
@media (prefers-reduced-motion: reduce) { .btn, .btn-solid, .btn-quiet { transition: none; } }
@media (min-width: 990px) { .home-hero-media { height: min(54vh, 40vw); } }
/* v33: larger hit areas without changing layout */
.main-nav-link { position: relative; }
.main-nav-link::after { content: ""; position: absolute; inset: -16px -8px; }


/* v34: 1984 story, founder note, subtle pending spec values */
.home-story .story-prose,
.home-founder .founder-prose,
.home-upcoming .story-prose {
  max-width: 38em;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.4;
}
.home-story .story-prose p,
.home-founder .founder-prose p,
.home-upcoming .story-prose p { margin: 0 0 1.15em; }
.home-founder .founder-prose p:last-child { margin-bottom: 0; }
.founder-sign {
  font-size: 16px;
  font-style: italic;
  letter-spacing: 0.08em;
  margin-top: 0.4em !important;
  margin-bottom: 0;
}
.spec-sheet .spec-note { color: var(--muted); font-style: normal; }

.founder-placeholder {
  max-width: 38em;
  margin: 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.4;
}

/* v37 sticky preview offsets (header + The Bespoke Room bar) */
.page-bespoke{
  --studio-top-h: 56px;
  --preview-pin-h: 38vh;
  --studio-sticky-top: var(--header-h);
  --preview-sticky-top: calc(var(--studio-sticky-top) + var(--studio-top-h));
}
body.has-shrunk-header.page-bespoke,
.site-header.is-shrunk ~ * {
  --studio-sticky-top: var(--header-h-shrunk);
}
@media (max-width: 860px){
  .page-bespoke{ --studio-top-h: 52px; }
}

#kc-customizer .studio-top{
  position: sticky;
  top: var(--studio-sticky-top, var(--header-h));
  z-index: 5;
  min-width: 0;
}
#kc-customizer .preview-pane{
  position: sticky !important;
  top: var(--preview-sticky-top, calc(var(--header-h) + 56px)) !important;
  align-self: start;
  z-index: 4;
  min-height: 0 !important;
  max-height: calc(100dvh - var(--preview-sticky-top, 248px));
  overflow-x: clip;
}
#kc-customizer .accordion-head{
  scroll-margin-top: calc(var(--preview-sticky-top, 248px) + 8px);
}
body.has-shrunk-header #kc-customizer .accordion-head,
.site-header.is-shrunk ~ * #kc-customizer .accordion-head{
  scroll-margin-top: calc(var(--preview-sticky-top) + 8px);
}

@media (max-width: 860px){
  #kc-customizer .preview-pane{
    position: sticky !important;
    top: var(--preview-sticky-top) !important;
    max-height: var(--preview-pin-h, 38vh) !important;
    min-height: 0 !important;
    overflow: hidden !important;
    padding-bottom: 0;
  }
  #kc-customizer .accordion-head{
    scroll-margin-top: calc(var(--preview-sticky-top) + var(--preview-pin-h, 38vh) + 8px) !important;
  }
  #kc-customizer .stage-wrap,
  #kc-customizer .stage,
  #kc-customizer .kc-stage{
    min-height: 0 !important;
  }
}


/* About / materials desk: editorial frames, one dominant image per view */
.craft-frame {
  margin: 0 0 72px;
  padding: 0;
}
.craft-frame picture,
.craft-frame img {
  display: block;
  width: 100%;
  height: auto;
  background: transparent;
}
.craft-frame-hero {
  margin: 8px 0 80px;
}
.craft-frame-hero img {
  max-height: 92vh;
  object-fit: cover;
  object-position: center 18%;
}
.craft-frame-portrait {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 80px;
}
.craft-frame-wide {
  margin-bottom: 80px;
}
.craft-frame-plate {
  max-width: 860px;
  margin: 0 auto 80px;
}
.craft-frame-product {
  max-width: 420px;
  margin: 0 auto 72px;
}
.image-credits {
  margin-top: 64px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
  max-width: 42em;
}
.image-credits a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 859px) {
  .craft-frame,
  .craft-frame-hero,
  .craft-frame-portrait,
  .craft-frame-wide,
  .craft-frame-plate {
    margin-bottom: 56px;
  }
  .craft-frame-hero img {
    max-height: 88vh;
  }
  .craft-frame-product {
    max-width: 88vw;
    margin-bottom: 56px;
  }
}

/* v37c: upcoming collections, lower on the home page */
.home-upcoming .page-lead { max-width: 38em; margin: 0 0 36px; }
.home-upcoming .upcoming-story {
  max-width: 38em;
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.home-upcoming .upcoming-story .page-kicker { margin-bottom: 16px; }
.home-upcoming .upcoming-story h3 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 400;
  line-height: 1.1;
  margin: 0 0 32px;
}
.home-upcoming .upcoming-story .story-prose p:last-child { margin-bottom: 0; }


/* From the Archive (draft list on The Record) */
.archive-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 80px var(--pad-x) 40px;
}
.archive-section .page-kicker { margin-bottom: 16px; }
.archive-section h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 400;
  line-height: 1.1;
  margin: 0 0 16px;
}
.archive-intro {
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--muted, #555);
  margin: 0 0 40px;
}
.archive-item {
  border-top: 1px solid var(--line, #ddd);
  padding: 28px 0 8px;
}
.archive-item h3 {
  font-size: 1.25rem;
  font-weight: 400;
  margin: 0 0 8px;
  line-height: 1.25;
}
.archive-meta {
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted, #555);
  margin: 0 0 16px;
}
.archive-excerpt {
  margin: 0 0 16px;
  padding: 0;
  border: 0;
}
.archive-excerpt p {
  font-style: italic;
  margin: 0;
  line-height: 1.55;
}
.archive-why { margin: 0 0 12px; line-height: 1.5; }
.archive-read { margin: 0 0 16px; }
.archive-read a { text-decoration: underline; text-underline-offset: 3px; }


/* Full-width article hero, used when a typo-panel would fight the photograph */
.article-hero-full .media {
  aspect-ratio: 16 / 9;
  min-height: 280px;
  width: 100%;
  overflow: hidden;
}
@media (min-width: 900px) {
  .article-hero-full .media {
    min-height: 520px;
  }
}
.article-hero-full .media img {
  object-position: 50% 50%;
}


/* Mobile-only Record / article card grid (phone widths, below the 622px tablet breakpoint).
   Two equal columns that stay inside the padded viewport, a 4:5 cover crop
   (zoomed out from the desktop 2:3 crop, no letterbox), and a soft shadow on all sides.
   Desktop and tablet article grids stay exactly as in v38c. */
@media (max-width: 621px) {
  .culture-grid,
  .related-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px var(--pad-x);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    /* Vertical room for the card shadow. Side space already comes from the page pad-x,
       which matches the column gutter so the two cards sit evenly in the viewport. */
    padding: 8px 0 12px;
    overflow: visible;
  }
  .culture-card,
  .related-grid > a,
  .related-grid > * {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }
  .culture-card .media,
  .related-grid .media {
    aspect-ratio: 4 / 5;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    /* Visible so the shadow can paint on every side; the img is sized to the box. */
    overflow: visible;
    background: transparent;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
  }
  .culture-card .media img,
  .culture-card img,
  .related-grid .media img,
  .related-grid img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    display: block;
    object-fit: cover;
    object-position: 50% 50%;
    /* Clip the photo to the 4:5 box without clipping the media's own shadow. */
    border-radius: 0;
  }
  .culture-card .caption,
  .related-grid .caption {
    min-width: 0;
    margin-top: var(--caption-gap);
    overflow-wrap: break-word;
    word-wrap: break-word;
  }
  .culture-card .caption-title,
  .related-grid .caption-title,
  .related-grid .caption h3 {
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
  }
}
