.bath-opening,
.bath-projects {
  width: min(88%, 1400px);
  margin-inline: auto;
}

.bath-opening { padding: clamp(24px, 3vw, 50px) 0 clamp(30px, 3.4vw, 60px); }
.bath-opening .breadcrumb { margin-bottom: clamp(24px, 3vw, 44px); }
.bath-opening-copy {
  display: grid;
  grid-template-columns: 1.25fr .8fr;
  gap: 7vw;
  align-items: end;
}
.bath-opening h1 {
  font-size: clamp(50px, 5.8vw, 94px);
  line-height: 1;
  letter-spacing: -.065em;
}
.bath-opening h1 em { display: block; }
.bath-opening-copy p { max-width: 36em; font-size: clamp(15px, 1.2vw, 18px); color: #53594f; }

.bath-projects { margin-bottom: clamp(40px, 6vw, 90px); }
.bath-switcher {
  display: flex;
  border-top: 1px solid #b9beb1;
  border-bottom: 1px solid #b9beb1;
  margin-bottom: 16px;
}
.bath-switcher a {
  flex: 1;
  position: relative;
  padding: 16px 10px;
  text-align: center;
  font-size: clamp(14px, 1.3vw, 21px);
  line-height: 1.35;
  color: #465048;
}
.bath-switcher a + a::before {
  content: "";
  position: absolute;
  inset: 28% auto 28% 0;
  border-left: 1px solid #d4d5cb;
}
.bath-switcher a:hover { background: #eeeee6; }
.bath-switcher [aria-selected="true"] {
  box-shadow: inset 0 -3px #34493c;
  background: #e6e9e0;
  color: #20392c;
}
.bath-switcher a:focus-visible { outline-offset: -4px; }
.bath-study {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: clamp(420px, 39vw, 610px);
  background: #eee5df;
  scroll-margin-top: 66px;
}
.bath-study + .bath-study { margin-top: 16px; }
.bath-study[role="tabpanel"] { margin-top: 0; }
.bath-study:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.primary-study { background: #e9e5d9; }
.renovation-study { background: #e4e9df; }
.bath-visual {
  margin: 0;
  position: relative;
  min-width: 0;
  overflow: hidden;
}
.bath-visual:not(.bath-drawing) { display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.bath-visual > img { grid-area: 1 / 1 / 2 / 2; position: absolute; inset: 0; width: 100%; height: 100%; }
.guest-study .bath-visual > img { object-position: 50% 68%; }
.primary-study .bath-visual > img { object-position: 50% 60%; }
.bath-visual:not(.bath-drawing) figcaption {
  grid-row: 2;
  padding: 8px 12px;
  color: #465348;
  font-size: 11px;
  line-height: 1.5;
}
.bath-drawing figcaption {
  position: absolute;
  inset: auto auto 14px 14px;
  max-width: calc(100% - 28px);
  padding: 7px 11px;
  background: #faf8f0f2;
  color: #283b30;
  font-size: 11px;
  line-height: 1.5;
}
.bath-visual figcaption a { text-decoration: underline; text-underline-offset: 2px; }
.bath-study-copy { align-self: center; padding: clamp(28px, 4vw, 74px); }
.bath-study-copy h2 { max-width: 12em; font-size: clamp(35px, 3.7vw, 60px); }
.bath-study-copy p,
.bath-study-copy li { font-size: clamp(14px, 1.08vw, 17px); line-height: 1.62; color: #434c43; }
.bath-study-copy p { margin-top: 20px; }
.bath-study-copy ul { margin: 22px 0 12px; padding: 0; list-style: none; }
.bath-study-copy li { border-top: 1px solid #545c4638; padding-block: 8px; }
.bath-study-copy .text-link { font-weight: 600; font-size: 14px; }

.bath-drawing {
  --pencil: #e2e8d6;
  display: grid;
  place-items: center;
  padding: 30px 7% 52px;
  color: var(--pencil);
  background-color: #31483f;
  background-image: linear-gradient(#d5e0c90d 1px, transparent 1px), linear-gradient(90deg, #d5e0c90d 1px, transparent 1px);
  background-size: 24px 24px;
}
.bath-plan-sheet { width: min(100%, 380px); padding: 5%; }
.bath-floorplan {
  position: relative;
  aspect-ratio: 1.12;
  border: 5px double var(--pencil);
  background: #52665a;
  box-shadow: 0 0 0 7px #31483f, 0 0 0 8px #c4cdb57d;
}
.bath-floorplan span {
  font-size: clamp(9px, .82vw, 12px);
  text-transform: uppercase;
  letter-spacing: .12em;
}
.bath-floorplan > div { position: absolute; }
.plan-shower, .plan-linen, .plan-vanity { display: grid; place-items: center; border: 1px solid var(--pencil); }
.plan-shower {
  top: 0; left: 0; width: 49%; height: 45%;
  background: repeating-linear-gradient(135deg, transparent 0 7px, #e2e8d62b 7px 8px);
}
.plan-shower::after { content: ""; width: 7%; aspect-ratio: 1; border: 1px solid var(--pencil); border-radius: 50%; position: absolute; right: 12%; bottom: 12%; }
.plan-linen { right: 0; top: 0; width: 27%; height: 20%; }
.plan-vanity { right: 0; bottom: 0; width: 31%; height: 58%; align-content: center; gap: 12px; }
.plan-vanity i { width: 62%; aspect-ratio: 1.3; border: 2px solid var(--pencil); border-radius: 28%; }
.plan-wc { left: 52%; top: 0; width: 17%; height: 26%; border: 1px solid var(--pencil); border-top-width: 5px; border-radius: 0 0 52% 52%; }
.plan-door { bottom: -5px; left: 20%; width: 29%; aspect-ratio: 1; border: 1px dashed var(--pencil); border-left: 3px solid var(--pencil); border-bottom: 5px solid #52665a; border-radius: 0 100% 0 0; }

@media (max-width: 800px) {
  .bath-opening, .bath-projects { width: calc(100% - 40px); }
  .bath-opening-copy { grid-template-columns: 1fr; gap: 15px; }
  .bath-opening h1 { font-size: clamp(46px, 7.4vw, 64px); }
  .bath-opening h1 em { display: inline; }
  .bath-study { grid-template-columns: 1fr 1fr; }
  .bath-study-copy { padding: 24px; }
}
@media (max-width: 600px) {
  .bath-opening, .bath-projects { width: calc(100% - 32px); }
  .bath-opening { padding: 22px 6px 26px; }
  .bath-opening .breadcrumb { margin-bottom: 19px; }
  .bath-opening h1 { max-width: 8em; }
  .bath-switcher { margin-bottom: 10px; }
  .bath-switcher a { display: grid; place-content: center; min-height: 52px; padding: 8px 5px; font-size: 13px; }
  .bath-study { grid-template-columns: 1fr; }
  .bath-visual { aspect-ratio: 1.25; }
  .bath-drawing { padding: 20px 16% 44px; }
  .bath-plan-sheet { max-width: 235px; }
  .bath-study-copy { padding: 27px 23px 32px; }
  .bath-study-copy p { margin-top: 15px; }
  .bath-study-copy ul { margin-top: 17px; }
  .bath-drawing figcaption { bottom: 8px; left: 8px; max-width: calc(100% - 16px); font-size: 10px; }
}
