/* Room stories and mineral studies: a quieter, more tactile layer of OceanEmber. */
.spaces-section {
  position: relative;
  padding-top: 72px;
  background: linear-gradient(180deg, #f3f1e8 0, var(--cream) 100%);
  border-block: 1px solid #d9dccd;
}

.spaces-section .section-heading,
.finishes-section .section-heading {
  align-items: flex-end;
}

.room-tabs {
  display: flex;
  align-items: stretch;
  gap: 12px;
  padding: 7px 2px 17px;
  margin: -7px -2px 22px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #aab49b #e9ecdf;
  scroll-padding-inline: 4px;
  scroll-snap-type: x proximity;
}

.room-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 0 0 auto;
  min-height: 46px;
  padding: 12px 21px;
  border: 1px solid #cdd1c0;
  border-radius: 3px;
  background: #faf7f06b;
  color: #52604c;
  font-size: 12px;
  line-height: 1.5;
  white-space: nowrap;
  scroll-snap-align: start;
  transition: background .2s, color .2s, border-color .2s;
}

.room-tab::before {
  content: '';
  width: 5px;
  height: 5px;
  margin-right: 2px;
  border: 1px solid #a18c65;
  transform: rotate(45deg);
  transition: background .2s, border-color .2s;
}

.room-tab > span {
  opacity: .65;
  font-size: 9px;
  letter-spacing: .5px;
}

.room-tab:hover {
  border-color: #a3ae94;
  background: #e9ecdf;
}

.room-tab[aria-selected='true'] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--cream);
  box-shadow: inset 0 1px 0 #ffffff21;
}

.room-tab[aria-selected='true']::before {
  border-color: #dbba8b;
  background: #dbba8b;
}

.room-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  border: 1px solid #cfd3c2;
  border-radius: 4px;
  background: #fcfaf4;
  box-shadow: 0 10px 35px #293f3605;
}

.room-scene {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 38px 24px 23px;
  overflow: hidden;
  border-right: 1px solid #d5d9c9;
  border-radius: 3px 0 0;
  background: radial-gradient(ellipse at 58% 41%, #fff7dd8c, transparent 62%), #e9e9dd;
  isolation: isolate;
}

.room-scene::before {
  content: '';
  position: absolute;
  inset: 15px;
  z-index: -1;
  border: 1px solid #fbfaf0b3;
  border-radius: 2px;
  pointer-events: none;
}

.room-scene::after {
  content: '';
  position: absolute;
  top: 15px;
  right: 15px;
  width: 34px;
  height: 34px;
  border-top: 1px solid #ad967061;
  border-right: 1px solid #ad967061;
  pointer-events: none;
}

.room-illustration {
  display: block;
  width: 100%;
  height: auto;
  margin: auto;
  overflow: visible;
  pointer-events: none;
}

.room-scene-caption {
  display: block;
  position: relative;
  margin: 22px 12px 0;
  padding-top: 13px;
  border-top: 1px solid #c2c9b4;
  color: #5e6a55;
  font-size: 11px;
  line-height: 1.7;
  letter-spacing: .15px;
}

.room-scene-caption::before {
  content: '';
  position: absolute;
  left: 0;
  top: -2px;
  width: 30px;
  height: 3px;
  background: #b18a5d;
}

.room-editorial {
  min-width: 0;
  padding: 38px clamp(26px, 3.4vw, 52px) 35px;
}

.room-editorial > .eyebrow {
  margin-bottom: 14px;
  color: #89603c;
  font-size: 10px;
  letter-spacing: 1.8px;
}

.room-title {
  max-width: 470px;
  margin-bottom: 16px;
  font-family: var(--serif);
  font-size: clamp(30px, 3.1vw, 42px);
  letter-spacing: -1.1px;
  line-height: 1.23;
}

.room-description {
  max-width: 470px;
  margin-bottom: 24px;
  color: #626d5b;
  font-size: 13px;
  line-height: 1.85;
}

.room-tips {
  display: grid;
  gap: 17px;
  padding: 21px 0 0;
  margin: 0 0 25px;
  border-top: 1px solid #dfe1d4;
  list-style: none;
}

.room-tips > li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}

.tip-number {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  margin-top: 1px;
  border: 1px solid #d2c4a6;
  border-radius: 50%;
  color: #8c633f;
  font-size: 9px;
  line-height: 1;
}

.room-tips strong {
  display: block;
  margin-bottom: 4px;
  color: #3e5140;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.6;
}

.room-tips p {
  margin-bottom: 0;
  color: #69725f;
  font-size: 12px;
  line-height: 1.75;
}

.room-palette {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 17px;
  margin: 0 0 24px;
}

.palette-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #626d5b;
  font-size: 10px;
  line-height: 1.7;
}

.palette-chip i {
  display: inline-block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  border: 1px solid #293f3621;
  border-radius: 50%;
  background: var(--swatch, #d4bd98);
  box-shadow: 0 0 0 2px #fcfaf4, 0 0 0 3px #c8ccba66;
}

.room-editorial > .button {
  gap: 24px;
  font-size: 12px;
}

.room-picks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-column: 1 / -1;
  gap: 0;
  border-top: 1px solid #cfd3c2;
  border-radius: 0 0 3px 3px;
  background: #f5f4eb;
}

.room-pick {
  display: flex;
  align-items: center;
  gap: 19px;
  min-width: 0;
  padding: 20px 26px;
  text-align: left;
  transition: background .2s;
}

.room-pick + .room-pick {
  border-left: 1px solid #d7dacb;
}

.room-pick:hover {
  background: #eaeede;
}

.room-pick > img {
  flex-shrink: 0;
  width: 76px;
  height: 86px;
  padding: 5px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.room-pick > span:not(:last-child) {
  min-width: 0;
  flex: 1;
}

.room-pick small {
  display: block;
  margin-bottom: 5px;
  color: #737e66;
  font-size: 9px;
  letter-spacing: 1px;
  line-height: 1.5;
  text-transform: uppercase;
}

.room-pick-name {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: -.3px;
  line-height: 1.4;
}

.room-pick-price {
  color: #905b3b;
  font-size: 12px;
  line-height: 1.6;
}

.room-pick > span:last-child {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  margin-left: auto;
  border: 1px solid #bec6ae;
  border-radius: 50%;
  font-size: 17px;
  line-height: 1;
  transition: border-color .2s, color .2s;
}

.room-pick:hover > span:last-child {
  border-color: #a0774a;
  color: #905b3b;
}

.finishes-section {
  padding-top: 74px;
  padding-bottom: 70px;
}

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

.finish-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #d7d9cc;
  border-radius: 4px;
  background: #fcfaf4;
}

.finish-sample {
  --mineral-light: #f6d4b5;
  --mineral-mid: #d99571;
  --mineral-dark: #aa5f44;
  position: relative;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  height: 224px;
  overflow: hidden;
  border-bottom: 1px solid #dfd9c9;
  background: radial-gradient(ellipse at 50% 50%, #fff7e47a, transparent 70%), #eee7db;
  isolation: isolate;
}

.finish-sample::before {
  content: '';
  position: absolute;
  width: 187px;
  height: 187px;
  border: 1px solid #ac997a4d;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 75%, #b37a4533, transparent 65%);
  box-shadow: 0 0 0 11px #fff9e82b, 0 0 0 12px #b9a1801a;
  transform: translateY(4px);
  pointer-events: none;
}

.finish-sample::after {
  content: '';
  position: absolute;
  width: 142px;
  height: 172px;
  clip-path: polygon(39% 1%, 66% 6%, 76% 19%, 88% 25%, 91% 49%, 100% 66%, 89% 93%, 61% 99%, 23% 96%, 3% 82%, 0 60%, 11% 40%, 16% 16%);
  background:
    linear-gradient(112deg, transparent 37%, #fff8e645 37% 39%, transparent 39% 67%, #80482e2b 67% 68%, transparent 68%),
    linear-gradient(34deg, transparent 30%, #fff4da29 30% 44%, transparent 44% 74%, #fff6e64d 74%),
    repeating-linear-gradient(142deg, #fff5e11f 0 2px, transparent 2px 19px, #8e513218 19px 20px, transparent 20px 35px),
    linear-gradient(123deg, var(--mineral-light) 3%, var(--mineral-mid) 44%, var(--mineral-dark) 100%);
  box-shadow: inset 19px 5px 22px #fff9e742;
  transform: rotate(-8deg);
  pointer-events: none;
}

.finish-sample > span {
  position: absolute;
  left: 18px;
  bottom: 14px;
  z-index: 1;
  color: #6c715e;
  font-size: 9px;
  letter-spacing: 1.3px;
  line-height: 1.6;
}

.finish-white {
  --mineral-light: #fffef1;
  --mineral-mid: #e1d5bd;
  --mineral-dark: #b4a68c;
  border-bottom-color: #dbddcf;
  background: radial-gradient(ellipse at 50% 50%, #fffef37a, transparent 70%), #eaeade;
}

.finish-white::before {
  background: radial-gradient(ellipse at 50% 75%, #b9ab7d22, transparent 65%);
}

.finish-white::after {
  width: 158px;
  height: 159px;
  clip-path: polygon(38% 0, 67% 8%, 87% 22%, 94% 44%, 99% 66%, 82% 92%, 53% 100%, 16% 91%, 0 63%, 5% 33%, 18% 13%);
  transform: rotate(8deg);
}

.finish-gray {
  --mineral-light: #c6c5b7;
  --mineral-mid: #8b8b7c;
  --mineral-dark: #4b554c;
  border-bottom-color: #d1d6c7;
  background: radial-gradient(ellipse at 50% 50%, #eff0df7a, transparent 70%), #e1e6d9;
}

.finish-gray::before {
  border-color: #8d9c7b4d;
  background: radial-gradient(ellipse at 50% 75%, #596b5126, transparent 65%);
}

.finish-gray::after {
  width: 150px;
  height: 164px;
  clip-path: polygon(29% 0, 61% 5%, 74% 24%, 94% 35%, 100% 62%, 85% 93%, 58% 100%, 18% 90%, 0 68%, 4% 40%, 16% 26%);
  transform: rotate(-3deg);
}

.finish-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 25px 25px 29px;
}

.finish-content > .eyebrow {
  margin-bottom: 11px;
  color: #8b6947;
  font-size: 9px;
  letter-spacing: 1.55px;
}

.finish-content h3 {
  margin-bottom: 13px;
  font-family: var(--serif);
  font-size: 27px;
  letter-spacing: -.55px;
  line-height: 1.35;
}

.finish-content > p:not(.eyebrow) {
  flex: 1;
  min-height: 92px;
  margin-bottom: 21px;
  color: #65715d;
  font-size: 13px;
  line-height: 1.85;
}

.finish-content .underlined-link {
  justify-content: space-between;
  width: 100%;
  min-height: 36px;
  color: #4d604b;
  font-size: 12px;
}

.finish-note {
  display: block;
  max-width: 760px;
  margin: 23px auto 0;
  color: #717a66;
  font-size: 11px;
  line-height: 1.8;
  text-align: center;
}

@media (min-width: 1450px) {
  .room-scene { padding: 40px 40px 26px; }
  .room-illustration { max-width: 680px; }
  .room-editorial { padding-top: 52px; padding-bottom: 45px; }
}

@media (max-width: 1000px) {
  .room-panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
  .room-scene { padding: 30px 14px 24px; }
  .room-editorial { padding: 30px 25px; }
  .room-title { font-size: 33px; }
  .room-description { margin-bottom: 20px; }
  .room-tips { gap: 15px; }
  .room-pick { gap: 13px; padding: 18px; }
  .room-pick > img { width: 67px; height: 78px; }
  .room-pick-name { font-size: 19px; }
  .finish-grid { gap: 17px; }
  .finish-content { padding: 24px 20px 26px; }
  .finish-content h3 { font-size: 25px; }
  .finish-content > p:not(.eyebrow) { min-height: 120px; }
}

@media (max-width: 760px) {
  .room-panel { grid-template-columns: 1fr; }
  .room-scene { border-right: 0; border-bottom: 1px solid #d5d9c9; border-radius: 3px 3px 0 0; padding: 23px 27px 22px; }
  .room-illustration { max-width: 520px; }
  .room-scene-caption { margin-top: 14px; }
  .room-editorial { padding: 31px 30px 34px; }
  .room-title { max-width: none; font-size: 36px; }
  .room-description { max-width: 560px; font-size: 14px; }
  .room-picks { grid-column: auto; }
  .room-tips strong, .room-tips p { font-size: 13px; }
  .room-palette { gap: 13px 20px; }
  .palette-chip { font-size: 11px; }
  .room-pick { flex-wrap: wrap; position: relative; gap: 11px; padding: 18px; }
  .room-pick > img { width: 63px; height: 74px; }
  .room-pick > span:not(:last-child) { flex-basis: calc(100% - 78px); }
  .room-pick-name { font-size: 18px; }
  .room-pick > span:last-child { width: 27px; height: 27px; font-size: 16px; }
  .finish-grid { gap: 14px; }
  .finish-sample { height: 196px; }
  .finish-sample::before { width: 152px; height: 152px; }
  .finish-sample::after { width: 116px; height: 149px; }
  .finish-white::after { width: 129px; height: 135px; }
  .finish-gray::after { width: 125px; height: 143px; }
  .finish-content { padding: 22px 17px 24px; }
  .finish-content h3 { font-size: 24px; }
  .finish-content > .eyebrow { font-size: 9px; letter-spacing: 1px; }
  .finish-content > p:not(.eyebrow) { min-height: 168px; font-size: 12px; }
}

@media (max-width: 680px) {
  .spaces-section { padding-top: 53px; padding-bottom: 53px; }
  .spaces-section .section-heading, .finishes-section .section-heading { align-items: flex-start; gap: 17px; }
  .room-tabs { gap: 9px; margin-bottom: 17px; }
  .room-tab { min-height: 45px; padding: 11px 15px; font-size: 12px; }
  .room-scene { padding: 22px 18px 20px; }
  .room-scene::before { inset: 11px; }
  .room-scene::after { top: 11px; right: 11px; width: 27px; height: 27px; }
  .room-scene-caption { margin-inline: 7px; font-size: 11px; line-height: 1.65; }
  .room-editorial { padding: 28px 23px 30px; }
  .room-editorial > .eyebrow { font-size: 10px; letter-spacing: 1.35px; }
  .room-title { font-size: 32px; letter-spacing: -.8px; }
  .room-description { margin-bottom: 22px; font-size: 13px; }
  .room-tips { gap: 17px; margin-bottom: 23px; }
  .room-tips > li { gap: 11px; }
  .room-tips strong, .room-tips p { font-size: 12px; }
  .room-palette { gap: 12px 17px; margin-bottom: 24px; }
  .room-editorial > .button { width: 100%; padding-inline: 15px; justify-content: space-between; }
  .room-picks { grid-template-columns: 1fr; }
  .room-pick { flex-wrap: nowrap; gap: 15px; padding: 17px 21px; }
  .room-pick + .room-pick { border-left: 0; border-top: 1px solid #d7dacb; }
  .room-pick > img { width: 65px; height: 77px; }
  .room-pick > span:not(:last-child) { flex-basis: auto; }
  .room-pick small { font-size: 10px; letter-spacing: .6px; }
  .room-pick-name { font-size: 20px; }
  .room-pick > span:last-child { width: 29px; height: 29px; }
  .finishes-section { padding-top: 53px; padding-bottom: 52px; }
  .finish-grid { grid-template-columns: 1fr; gap: 22px; }
  .finish-sample { height: 215px; }
  .finish-sample::before { width: 176px; height: 176px; }
  .finish-sample::after { width: 135px; height: 164px; }
  .finish-white::after { width: 147px; height: 151px; }
  .finish-gray::after { width: 141px; height: 157px; }
  .finish-content { padding: 24px 24px 27px; }
  .finish-content h3 { font-size: 28px; }
  .finish-content > .eyebrow { font-size: 10px; letter-spacing: 1.4px; }
  .finish-content > p:not(.eyebrow) { min-height: 0; margin-bottom: 19px; font-size: 13px; }
  .finish-content .underlined-link { min-height: 39px; font-size: 12px; }
  .finish-note { margin-top: 21px; padding-inline: 4px; text-align: left; }
}

@media (max-width: 360px) {
  .room-editorial { padding-inline: 19px; }
  .room-title { font-size: 30px; }
  .room-pick { gap: 12px; padding-inline: 15px; }
  .room-pick > img { width: 55px; height: 71px; }
  .room-pick-name { font-size: 19px; }
  .finish-content { padding-inline: 21px; }
}

@media (prefers-reduced-motion: reduce) {
  .room-tab, .room-tab::before, .room-pick, .room-pick > span:last-child { transition: none; }
}

/* Keep keyboard focus clear on the editorial controls. */
.room-panel:focus-visible{outline:2px solid var(--amber);outline-offset:5px}
.room-tab:focus-visible{outline-offset:-4px}
.room-tab[aria-selected="true"]:focus-visible{outline-color:#d9b68a}
.room-pick-name{display:block}
.room-styling-link{display:flex;width:fit-content;margin-top:12px}
.room-editorial>.eyebrow,.finish-content>.eyebrow,.room-pick small{font-size:11px}
