:root {
  --ink: #263033;
  --muted: #667073;
  --milk: #f3efe6;
  --paper: #faf8f2;
  --blue: #51738f;
  --deep: #405c5e;
  --sand: #d9c8ac;
  --line: rgba(38, 48, 51, .14);
  --shadow: 0 18px 45px rgba(42, 51, 50, .12)
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}


button,
input {
  font: inherit
}

a {
  color: inherit
}

#next {
  display: none;
}

.wrap {
  margin: auto
}

.skip {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  transform: translateY(-150%);
  background: #fff;
  padding: 12px
}

.skip:focus {
  transform: none
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .17em;
  font-size: 12px;
  font-weight: 500;
  color: var(--deep)
}

h1.main-title-h1 {
  font-size: 33px;
  color: #555;
  margin: 6px;
  font-weight: normal;
}

section h2,
section h3,
section h4 {
  text-align: left;
  margin-top: 20px;
  margin-bottom: 20px;
  font-weight: normal;
}

.lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 650px;
  line-height: 1.6
}

.directions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 38px
}

.direction {
  position: relative;
  min-height: 350px;
  padding: 36px;
  border-radius: 26px;
  overflow: hidden;
  display: flex;
  background: linear-gradient(145deg, #f1eadc, #d5c0a3);
  box-shadow: inset 0 1px #fff9, var(--shadow);
  transition: .2s
}

.direction--fabric {
  background: linear-gradient(145deg, #d7e0de, #9eb3b3)
}

.direction:hover,
.direction:focus-within {
  transform: translateY(-4px);
  box-shadow: inset 0 1px #fff9, 0 25px 55px #2630332b
}

.direction>div:first-child {
  position: relative;
  z-index: 2;
  max-width: 58%
}

.direction__num {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .16em
}

.direction h2 {
  font-size: 32px;
  font-weight: normal;
  margin: 18px 0 10px;
}

.direction p {
  line-height: 1.5
}

.direction a {
  display: block;
  margin-top: 17px;
  font-size: 14px
}

.btn {
  border: 0;
  border-radius: 12px;
  padding: 13px 18px;
  min-height: 46px;
  background: linear-gradient(var(--blue),var(--deep));
  color: white;
  box-shadow: inset 0 1px #ffffff55, 0 8px 18px #314c4d3d;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: .18s
}

.btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px)
}

.btn:active {
  transform: translateY(1px);
  box-shadow: inset 0 2px 5px #0004
}

.btn:focus-visible,
button:focus-visible,
a:focus-visible,
input:focus-visible,
.table-scroll:focus-visible {
  outline: 3px solid #bd713e;
  outline-offset: 3px
}

.btn:disabled {
  opacity: .45;
  cursor: not-allowed
}

.btn--light {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 8px 20px #2630331d
}

.art {
  position: absolute;
  right: 5%;
  bottom: 0;
  width: 38%;
  height: 90%;
  filter: drop-shadow(0 18px 20px #25333444)
}

.art--roll i {
  position: absolute;
  display: block;
  border-radius: 45% 45% 8px 8px;
  background: repeating-linear-gradient(135deg, #a79472 0 3px, #d8caaf 3px 18px);
  box-shadow: inset -12px 0 20px #594e3b33
}

.art--roll i:nth-child(1) {
  width: 45%;
  height: 78%;
  bottom: -8%;
  left: 0;
  transform: rotate(-6deg)
}

.art--roll i:nth-child(2) {
  width: 42%;
  height: 92%;
  right: 8%;
  bottom: -20%;
  background: repeating-linear-gradient(70deg, #526a6c 0 2px, #92a7a5 2px 24px);
  transform: rotate(7deg)
}

.art--roll i:nth-child(3) {
  width: 28%;
  height: 28%;
  border-radius: 50%;
  bottom: 60%;
  left: 10%;
  background: radial-gradient(circle, #544a3d 0 16%, #c9b791 17% 30%, #887957 31%)
}

.art--fold i {
  position: absolute;
  width: 46%;
  height: 105%;
  top: 8%;
  border-radius: 50% 50% 6px 6px;
  background: linear-gradient(90deg, #718b8b, #c6d2cf 45%, #637d7e);
  transform: rotate(10deg)
}

.art--fold i:nth-child(2) {
  right: 3%;
  transform: rotate(-9deg);
  background: linear-gradient(90deg, #526e70, #b7c7c5 50%, #5a7677)
}

.art--fold i:nth-child(3) {
  height: 45%;
  width: 78%;
  bottom: -8%;
  top: auto;
  left: 4%;
  border-radius: 50%;
  transform: none;
  background: radial-gradient(ellipse, #d1dad7, #718a8a 70%)
}

.finder {
  padding: 30px 0;
}

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

.section-head h2 {
  line-height: 1.15;
  margin: 8px 0 0
}

.section-head>p {
  max-width: 360px;
  color: var(--muted)
}

.finder__panel {
  display: grid;
  background: var(--paper);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow)
}

.finder__main {
  padding: 36px
}

.kind-tabs,
.layer-tabs {
  display: flex;
  gap: 5px;
  background: #e5e3dd;
  border-radius: 12px;
  padding: 4px;
  width: max-content
}

.kind-tabs button,
.layer-tabs button {
  border: 0;
  background: transparent;
  padding: 10px 20px;
  border-radius: 9px;
  cursor: pointer
}

.kind-tabs button[aria-selected=true],
.layer-tabs .selected {
  background: #fff;
  box-shadow: 0 3px 12px #26303315
}

#finder .progress {
  height: 40px;
  padding: 10px;
  margin: 18px 0 18px;
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px
}

.progress i {
  height: 3px;
  background: #ddd;
  width: 140px
}

.progress b {
  display: block;
  height: 100%;
  background: var(--deep);
  width: 33%;
  transition: .2s
}

.finder h3 {
}

.answers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px
}

button.answer:disabled {
  cursor:default;
  background-color: var(--milk);
}
.answer {
  min-height: 78px;
  text-align: left;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 12px;
  cursor: pointer;
  transition: .18s
}

.answer:before {
  content: '';
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 7px;
  background: linear-gradient(145deg, var(--answer, #c7b69b), #fff);
  margin-bottom: 8px;
  box-shadow: inset 0 1px #fff, 0 4px 8px #0002
}

.answer.selected {
  border-color: var(--deep);
  background: #e9efec;
  box-shadow: inset 0 0 0 1px var(--deep)
}

.finder__nav {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px
}

.finder__nav .btn {
  margin-left: auto
}

.text-btn {
  border: 0;
  background: none;
  cursor: pointer;
  padding: 10px
}

.summary {
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px
}

.summary span {
  background: #ffffff1c;
  border-radius: 20px
}

.quick {
  padding: 20px 0;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px
}

.quick-grid article {
  display: flex;
  flex-direction: column;
  min-height: 220px;
  padding: 25px;
  border-radius: 20px;
  background: var(--paper);
  box-shadow: var(--shadow)
}

.quick-grid article>b {
  font-size: 12px;
  color: var(--deep)
}

.quick-grid h3 {
  margin: 22px 0 12px
}

.quick-grid p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6
}

.quick-grid label {
  font-size: 12px;
  margin-bottom: 5px
}

.input-row {
  display: flex
}

.input-row input {
  min-width: 0;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px 0 0 10px;
  padding: 10px
}

.input-row .btn {
  border-radius: 0 10px 10px 0
}

.quick-grid small {
  margin-top: auto;
  padding-top: 15px;
  color: var(--muted)
}

.client label.btn {
  font-size: 14px;
}

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

.swatches a.btn {
  width: 100%;
}

.swatches button {
  width: 16px;
  height: 16px;
  margin-left: 6px;
  border-radius: 50%;
  border: 1px solid white;
  background: var(--c);
  box-shadow: 0 0 0 1px var(--line);
  cursor: pointer
}

.answers-wrapper {
  position: relative;
  width: 100%;
}

.answers-loader {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(222, 212, 192, 0.4); 
  backdrop-filter: blur(4px);
  border-radius: 8px;
  
  /* Hidden states by default */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Active class triggers the smooth fade-in */
.answers-loader.active {
  opacity: 0.6;
  visibility: visible;
}

.spinner {
  --size: 40px;
  --color-track: rgba(114, 134, 125, 0.2);
  --color-spin: #536f70;
  --speed: 0.8s;

  width: var(--size);
  height: var(--size);
  border: 4px solid var(--color-track);
  border-top-color: var(--color-spin);
  border-radius: 50%;
  animation: spin var(--speed) linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.toast.show {
  transform: translate(-50%, 0)
}

@media(max-width:900px) {

  .directions {
    grid-template-columns: 1fr
  }

  .direction {
    min-height: 300px
  }

  .finder__panel {
    grid-template-columns: 1fr
  }

  .quick-grid {
    grid-template-columns: 1fr
  }

}

@media(max-width:600px) {
  .directions {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 24px
  }

  .direction {
    min-height: 250px;
    padding: 17px;
    border-radius: 18px
  }

  .direction>div:first-child {
    max-width: 100%
  }

  .direction h2 {
    margin: 12px 0 8px
  }

  .direction p {
    font-size: 14px;
    min-height: 50px
  }

  .direction .btn {
    width: 100%;
    padding: 9px;
    font-size: 14px
  }

  .direction a {
    font-size: 12px
  }

  .art {
    opacity: .23;
    width: 60%
  }

  .finder,
  .quick {
    padding: 60px 0
  }

  .section-head {
    align-items: start;
    flex-direction: column
  }

  .finder__main {
    padding: 20px 15px
  }

  .answers {
    grid-template-columns: 1fr 1fr;
    gap: 7px
  }

  .answer {
    min-height: 74px;
    padding: 9px;
    font-size: 14px
  }

  .finder__nav {
    gap: 3px
  }

  .finder__nav .text-btn {
    font-size: 12px
  }
}

@media(max-width:340px) {
  .directions {
    grid-template-columns: 1fr
  }

  .answers {
    grid-template-columns: 1fr
  }
}

@media(prefers-reduced-motion:reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important
  }
}

/* v2: local editorial imagery generated specifically for this concept */
.direction--wall {
  background-image: linear-gradient(90deg, rgba(244, 239, 229, .96) 0%, rgba(244, 239, 229, .78) 44%, rgba(244, 239, 229, .04) 76%), url('/image/home/hero-wallpaper.webp');
  background-size: cover;
  background-position: center
}

.direction--fabric {
  background-image: linear-gradient(90deg, rgba(220, 229, 226, .96) 0%, rgba(220, 229, 226, .76) 44%, rgba(220, 229, 226, .03) 76%), url('/image/home/hero-fabric.webp');
  background-size: cover;
  background-position: center
}

.direction--wall .art,
.direction--fabric .art {
  display: none
}

@media(max-width:600px) {

  .direction--wall,
  .direction--fabric {
    background-position: 62% center
  }

  .direction--wall:after,
  .direction--fabric:after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(244, 239, 229, .96), rgba(244, 239, 229, .72) 70%, transparent)
  }

  .direction--fabric:after {
    background: linear-gradient(90deg, rgba(220, 229, 226, .96), rgba(220, 229, 226, .72) 70%, transparent)
  }

  .direction>div:first-child {
    z-index: 3
  }
}

/* mobile */
@media(max-width:600px) {
  
  .hero .eyebrow {
    font-size: 12px
  }

  .hero h1 {
    line-height: 1.04;
    margin: 12px 0
  }

  .hero h1 br {
    display: none
  }

  .lead {
    font-size: 14px;
    line-height: 1.45;
    max-width: 350px
  }

  .directions {
    margin-top: 18px;
    gap: 7px
  }

  .direction {
    min-height: 218px;
    padding: 14px;
    border-radius: 15px
  }

  .direction h2 {
    margin: 8px 0 5px
  }

  .direction p {
    font-size: 12px;
    line-height: 1.35;
    min-height: 42px;
    margin-bottom: 8px
  }

  .direction__num {
    font-size: 8px
  }

  .direction .btn {
    min-height: 40px
  }

  .direction a {
    margin-top: 10px
  }

  .direction--wall,
  .direction--fabric {
    background-position: 66% center
  }

  .finder,
  .quick {
    padding: 46px 0
  }

  .section-head {
    gap: 8px;
    margin-bottom: 0px
  }

  .section-head h2 {
    line-height: 1.1
  }

  .section-head h2 br {
    display: none
  }

  .eyebrow {
    font-size: 12px
  }

  .section-head>p {
    font-size: 14px;
    margin: 0
  }

  .finder__panel {
    border-radius: 18px
  }

  .finder__main {
    padding: 16px 12px
  }

  .kind-tabs button,
  .layer-tabs button {
    padding: 8px 14px;
    font-size: 12px
  }

  .progress {
    margin: 18px 0 15px
  }

  .finder h3 {
    margin-bottom: 12px
  }

  .answers {
    gap: 6px
  }

  .answer {
    min-height: 62px;
    padding: 8px;
    font-size: 12px;
    line-height: 1.25
  }

  .answer:before {
    width: 14px;
    height: 14px;
    margin-bottom: 5px
  }

  .finder__nav {
    margin-top: 14px
  }

  .finder__nav .btn {
    min-height: 40px;
    padding: 8px 11px;
    font-size: 12px
  }

  .quick-grid {
    gap: 8px
  }

  .quick-grid article {
    min-height: 0;
    padding: 16px;
    border-radius: 14px
  }

  .quick-grid h3 {
    margin: 10px 0 7px
  }

  .quick-grid p {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 10px
  }

  .quick-grid small {
    font-size: 12px;
    padding-top: 9px
  }

  .input-row .btn {
    min-height: 42px
  }

  .swatches button {
    width: 32px;
    height: 32px
  }
}

@media(max-width:600px) {

  .client h1,
  .client h2,
  .client h3,
  .direction h2,
  .finder h3,
  .quick-grid h3,
  .hero h1 {
    line-height: 1.02
  }

  .section-head h2 {
    line-height: 1.06
  }

  .direction h2 {
  }
}
