.customization-pages { background: #fff; color: #191a18; }
.ct-wrap { width: min(92%, 1480px); margin-inline: auto; }
.customization-pages :is(h1,h2,h3) { font-weight: 400; letter-spacing: -.04em; line-height: 1.08; }
.ct-intro h1, .ct-library h2 { font-family: Poppins, Arial, sans-serif; }
.ct-intro { max-width: 900px; margin-inline: auto; padding-block: clamp(32px,4.5vw,72px) clamp(26px,3vw,48px); text-align: center; }
.ct-intro h1 { font-size: clamp(44px,5.5vw,88px); text-wrap: balance; }
.ct-intro p { max-width: 69ch; margin: 16px auto 20px; color: var(--muted); font-size: clamp(15px,1.16vw,18px); line-height: 1.65; text-wrap: pretty; }
.ct-intro strong { color: var(--ink); }
.ct-hero-content p { line-height: 1.65; font-size: clamp(16px,1.25vw,20px); max-width: 50ch; }
.ct-guides { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(12px,1.6vw,26px); }
.ct-feature-card { display: flex; flex-direction: column; min-width: 0; border: 1px solid #deded7; border-radius: 12px; background: #fafaf7; overflow: hidden; }
.ct-feature-image { overflow: hidden; background: #eeeee8; }
.ct-feature-image img { width: 100%; height: auto; aspect-ratio: 1.8; object-fit: cover; }
.ct-feature-body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: 8px; padding: clamp(16px,1.5vw,24px); }
.customization-pages .ct-feature-body h2 { font-size: clamp(21px,2vw,31px); }
.ct-feature-body p { margin-bottom: 8px; color: var(--muted); font-size: clamp(13px,1vw,16px); line-height: 1.5; }
.ct-feature-button { margin-top: auto; padding: 8px 16px; border: 1px solid #c7c8bf; border-radius: var(--button-radius); background: white; color: var(--ink); font-size: 13px; font-weight: 600; }
.ct-feature-card:is(:hover,:focus-visible) { border-color: #8e9085; }
.ct-feature-card:is(:hover,:focus-visible) .ct-feature-button { background: var(--ink); color: white; border-color: var(--ink); }
.ct-guide { display: block; min-width: 0; }
.ct-guide img { width: 100%; aspect-ratio: 1.28; object-fit: cover; }
.customization-pages img[data-technique="print"] { object-position: center bottom; }
.ct-guide span,.ct-sample-link span { display: block; border-bottom: 1px solid; padding-block: 14px; font-size: clamp(16px,1.35vw,22px); }
.ct-guide:hover span,.ct-sample-link:hover span { text-decoration: underline; text-underline-offset: .2em; }
.ct-library { margin-top: clamp(48px,6vw,88px); border-top: 1px solid var(--line); padding-block: clamp(30px,3.2vw,52px) clamp(54px,6vw,90px); }
.ct-library h2,.ct-sample h2,.ct-related h2 { font-size: clamp(32px,3.1vw,54px); }
.ct-library-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; }
.ct-result-count { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.ct-filter-menu { margin: 22px 0 28px; padding-inline: clamp(16px,2vw,32px); border: 1px solid #e1e0d9; border-radius: 12px; background: #f8f8f5; }
.ct-filter-row { display: grid; grid-template-columns: 148px minmax(0,1fr); align-items: center; gap: 16px; padding-block: 18px; }
.ct-filter-row + .ct-filter-row { border-top: 1px solid #deded7; }
.ct-filter-label { color: #52554c; font-size: 11px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; }
.ct-filters { display: flex; flex-wrap: wrap; gap: 7px; }
.ct-filters button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 38px; padding: 6px 9px 6px 14px; border: 1px solid #d9dad2;
  background: #fff; color: var(--ink); font-size: 13px; line-height: 1.3;
}
.ct-filter-count {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding-inline: 4px;
  border-radius: 12px; background: #f1f2ec; color: #565a50; font-size: 11px; font-variant-numeric: tabular-nums;
}
.ct-filters button:enabled:hover { border-color: #868b7c; }
.ct-filters button[aria-pressed=true] { background: var(--ink); color: white; border-color: var(--ink); }
.ct-filters button[aria-pressed=true] .ct-filter-count { background: #41433c; color: #fff; }
.ct-filters button:disabled { background: transparent; border-color: #e3e4dc; color: #787b72; cursor: default; }
.ct-filters button:disabled .ct-filter-count { background: transparent; color: inherit; }
.ct-filters button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.ct-swatches { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 30px 18px; }
.ct-swatches img { width: 100%; aspect-ratio: 1.45; object-fit: cover; }
.ct-swatches a { display: block; height: 100%; }
.ct-swatches a:is(:hover,:focus-visible) h3 { text-decoration: underline; text-underline-offset: .18em; }
.ct-swatches h3 { margin: 13px 0 5px; font-size: clamp(18px,1.5vw,24px); }
.ct-swatches p { font-size: 14px; color: var(--muted); }
.ct-crumb { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; padding-block: 16px; font-size: 12px; color: var(--muted); }
.ct-crumb a:hover { text-decoration: underline; }
.ct-hero { background: #202020; color: white; display: grid; grid-template-columns: 1fr 1fr; max-width: 1760px; margin-inline: auto; }
.ct-hero-content { padding: clamp(36px,5.6vw,94px) max(7%,calc((100% - 740px) / 2)); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.ct-hero-content h1 { font-size: clamp(43px,4.7vw,84px); }
.ct-hero-content p { color: #e5e5e5; margin: 18px 0 26px; }
.ct-action { color: #151515; background: #fff; }
.ct-action:is(:hover,:focus-visible) { background: #e6e6e2; }
.ct-hero-detail { width: 100%; height: 100%; max-height: 550px; min-height: 330px; object-fit: cover; }
.ct-sample { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 8%; padding-block: clamp(38px,5vw,80px); }
.ct-sample-link { display: block; }
.ct-sample figure img { width: 100%; height: clamp(330px,32vw,525px); object-fit: contain; }
.ct-sample figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); }
.ct-sample dl { margin: 24px 0 0; }
.ct-sample dl > div { display: block; font-size: 16px; padding-block: 16px; }
.ct-sample dd { margin-top: 4px; }
.ct-guide-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-block: 16px; border-bottom: 1px solid var(--line); }
.ct-development, .ct-brief > div { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,1fr); align-items: start; gap: clamp(28px,7vw,110px); padding-block: clamp(38px,5vw,80px); }
.ct-development { border-bottom: 1px solid var(--line); }
.ct-development h2,.ct-brief h2 { font-size: clamp(32px,3.1vw,54px); }
.ct-method { font-size: clamp(16px,1.25vw,20px); line-height: 1.65; margin: 18px 0 28px; }
.ct-design-choice { padding: 16px 0 0; border-top: 1px solid var(--line); margin-top: 18px; }
.ct-design-choice h3 { font-weight: 600; font-size: clamp(18px,1.45vw,24px); letter-spacing: -.025em; }
.ct-design-choice p { margin-top: 8px; color: var(--muted); line-height: 1.65; }
.ct-development figure { align-self: center; }
.ct-study-photo { overflow: hidden; background: #f6f6f3; }
.ct-study-photo img { width: 100%; aspect-ratio: 1.15; object-fit: contain; }
.ct-study-photo[data-technique="print"] img { object-fit: cover; object-position: 50% 88%; transform: scale(1.65); transform-origin: 43% 68%; }
.ct-development figcaption { font-size: 14px; line-height: 1.55; color: var(--muted); margin-top: 12px; }
.ct-brief { background: var(--paper); border-top: 1px solid var(--line); }
.ct-brief h2 { max-width: 16ch; }
.ct-brief .action { margin-top: 18px; }
.ct-brief ul { margin: 0; padding-left: 1.25em; }
.ct-brief li { padding-left: .35em; line-height: 1.65; }
.ct-brief li + li { margin-top: 12px; }
#development, #review-title, #design-brief { scroll-margin-top: 16px; }
@media(max-width: 760px) {
  .ct-development,.ct-brief > div { grid-template-columns: 1fr; }
  .ct-study-photo img { max-height: 390px; }
  .ct-brief h2 { max-width: none; }
}
.ct-related { background: #202020; color: white; padding-block: clamp(32px,4vw,65px); }
.ct-related > div { display: grid; align-items: center; grid-template-columns: 1.6fr 1fr 1fr; gap: 4%; }
.ct-related h2 { margin-bottom: 15px; }
.ct-related img { aspect-ratio: 2.2; }
@media(max-width: 800px) {
  .ct-swatches { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .ct-related > div { grid-template-columns: 1fr 1fr; row-gap: 20px; }
  .ct-related > div > div { grid-column: 1/-1; }
}
@media(max-width: 650px) {
  .ct-wrap { width: calc(100% - 36px); }
  .ct-hero,.ct-sample { grid-template-columns: 1fr; }
  .ct-intro { padding-block: 32px 24px; }
  .ct-intro h1 { font-size: clamp(44px,12vw,62px); }
  .ct-guides { grid-template-columns: 1fr; gap: 19px; }
  .ct-feature-image img { aspect-ratio: 2.1; }
  .ct-guide span,.ct-sample-link span { padding-block: 10px; }
  .ct-swatches { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px 12px; }
  .ct-swatches p { font-size: 13px; }
  .ct-filter-menu { padding-inline: 12px; margin: 16px 0 22px; }
  .ct-filter-row { grid-template-columns: 1fr; gap: 9px; padding-block: 13px; }
  .ct-filters { gap: 6px; }
  .ct-filters button { min-height: 36px; gap: 5px; padding: 5px 7px 5px 10px; font-size: 12px; }
  .ct-hero-content { padding: 30px 18px; }
  .ct-hero-detail { height: auto; min-height: 0; aspect-ratio: 1.85; }
  .ct-sample { gap: 30px; }
  .ct-sample figure img { height: 290px; }
  .ct-related img { aspect-ratio: 1.4; }
}

.ct-closeups { padding-block: clamp(34px,4.2vw,68px); border-bottom: 1px solid var(--line); scroll-margin-top: 16px; }
.ct-closeups h2 { font-size: clamp(32px,3.1vw,54px); margin-bottom: clamp(18px,2vw,32px); }
.ct-closeup-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(16px,2vw,32px); }
.ct-closeup-thumb { display: block; position: relative; width: 100%; padding: 0; border: 0; background: var(--paper); border-radius: 0; cursor: zoom-in; }
.ct-closeup-thumb img { width: 100%; height: auto; aspect-ratio: 4/3; }
.ct-closeup-thumb span { position: absolute; bottom: 10px; right: 10px; padding: 4px 10px; font-size: 12px; background: #fffffff2; color: var(--ink); border-radius: var(--button-radius); }
.ct-closeup-thumb:is(:hover,:focus-visible) span { background: var(--ink); color: white; }
.ct-closeup-grid figcaption { margin-top: 12px; }
.ct-closeup-grid h3 { font-size: clamp(19px,1.6vw,27px); margin-bottom: 6px; }
.ct-closeup-grid p,.ct-viewer-caption { color: var(--muted); line-height: 1.55; font-size: 14px; }
.ct-viewer { width: min(1060px,95vw); max-height: 94dvh; padding: clamp(12px,2vw,22px); color: var(--ink); overscroll-behavior: contain; }
.ct-viewer-head,.ct-viewer-controls,.ct-viewer-controls > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ct-viewer-head { margin-bottom: 12px; }
.ct-viewer-head strong { font-size: clamp(16px,2vw,24px); line-height: 1.2; }
.ct-viewer-stage { height: min(60dvh,710px); background: #f1f1ed; overflow: auto; overscroll-behavior: contain; }
.ct-viewer-stage[data-actual=false] { display: grid; grid-template: minmax(0,1fr) / minmax(0,1fr); place-items: center; }
.ct-viewer-stage img { width: auto; height: auto; max-height: 100%; max-width: 100%; object-fit: contain; }
.ct-viewer-stage[data-actual=true] img { max-width: none; max-height: none; margin-inline: auto; }
.ct-viewer-caption { margin: 10px 0 14px; }
.ct-viewer-controls { flex-wrap: wrap; }
.ct-viewer-controls span { font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; }
@media(max-width: 650px) {
  .ct-closeup-grid { grid-template-columns: 1fr; gap: 24px; }
  .ct-viewer-stage { height: min(54dvh,530px); }
  .ct-viewer-controls, .ct-viewer-controls > div { gap: 6px; }
}
