.atlas-heading > p {
  width: min(100%, 310px);
}

.atlas {
  --atlas-line: #4a4535;
  --atlas-muted: #c7c1ae;
  --atlas-light: #ffdfa0;
}

.atlas-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.atlas-tabs button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  min-width: 0;
  min-height: 96px;
  padding: 13px 15px;
  border: 1px solid var(--atlas-line);
  background: #191915;
  color: #f1ebe0;
  text-align: left;
  transition: border-color .25s, color .25s;
}

.atlas-tabs button::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(0deg, #090906f5 0%, #090906bb 26%, #09090620 87%);
}

.atlas-tabs img {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 51%;
  filter: saturate(.66);
  transition: filter .35s, transform .55s var(--motion-ease);
}

.atlas-tabs button > span {
  display: flex;
  align-items: baseline;
  gap: 9px;
  font-size: 14px;
}

.atlas-tabs small {
  color: var(--atlas-light);
  font-size: 9px;
  letter-spacing: .06em;
}

.atlas-tabs button:is(:hover, :focus-visible, [aria-selected="true"]) {
  border-color: var(--gold);
  color: var(--atlas-light);
}

.atlas-tabs button:is(:hover, :focus-visible, [aria-selected="true"]) img {
  filter: saturate(1);
}

.atlas-tabs button[aria-selected="true"] {
  box-shadow: inset 0 -2px var(--gold);
}

@media (hover: hover) and (pointer: fine) {
  .atlas-tabs button:hover img {
    transform: scale(1.055);
  }
}

.atlas-panel {
  display: grid;
  grid-template-columns: minmax(0, 2.08fr) minmax(0, 1fr);
  border: 1px solid var(--atlas-line);
  background: #13140f;
}

.atlas-frame {
  min-width: 0;
  align-self: start;
}

.atlas-visual {
  --focus-x: 22%;
  --focus-y: 58%;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 3 / 2;
  background: #222019;
  touch-action: pan-y pinch-zoom;
}

.atlas-visual > img,
.atlas-shade,
.atlas-markers {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.atlas-visual > img {
  display: block;
  object-fit: cover;
}

.atlas-shade {
  pointer-events: none;
  background: radial-gradient(ellipse at var(--focus-x) var(--focus-y), transparent 13%, #11100e30 62%, #0b0b0968);
}

.atlas-photo-label,
.atlas-active-label {
  position: absolute;
  left: clamp(11px, 1.5vw, 20px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  color: #fff2d8;
  background: #0d0e0bdd;
  border: 1px solid #dac18e74;
  font-size: 8px;
  letter-spacing: .11em;
  pointer-events: none;
}

.atlas-photo-label {
  top: clamp(11px, 1.5vw, 20px);
}

.atlas-active-label {
  bottom: clamp(11px, 1.5vw, 20px);
  color: var(--atlas-light);
}

.atlas-photo-label i {
  width: 5px;
  height: 5px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 10px #e9b956b5;
}

.atlas-markers {
  pointer-events: none;
}

.atlas-markers button {
  position: absolute;
  top: var(--y);
  left: var(--x);
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  color: #fff7e4;
  border: 0;
  border-radius: 50%;
  background: transparent;
  pointer-events: auto;
}

.atlas-markers button > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #fff3d8;
  border-radius: 50%;
  background: #11110dea;
  box-shadow: 0 0 0 4px #0b0b0960, 0 3px 14px #0b0b09aa;
  font: 10px var(--mono);
  transition: background .2s, color .2s, scale .25s var(--motion-ease);
}

.atlas-markers button:is(:hover, :focus-visible) > span {
  scale: 1.1;
  color: var(--atlas-light);
}

.atlas-markers button[aria-pressed="true"] > span {
  color: #151209;
  background: var(--gold);
  border-color: #ffe5a2;
  box-shadow: 0 0 0 5px #e9b95655, 0 0 22px #ffb750aa;
}

.atlas-controls {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) 60px;
  border-top: 1px solid var(--atlas-line);
  background: #171812;
}

.atlas-controls button {
  min-height: 58px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--gold);
  font-size: 24px;
  transition: background .2s, color .2s;
}

.atlas-controls button:is(:hover, :focus-visible) {
  background: var(--gold);
  color: var(--ink);
}

.atlas-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2vw, 24px);
  padding: 0 12px;
  border-inline: 1px solid var(--atlas-line);
}

.atlas-progress > span:first-child {
  color: var(--atlas-muted);
  font-size: 9px;
  letter-spacing: .1em;
  white-space: nowrap;
}

.atlas-track {
  width: min(33%, 110px);
  height: 2px;
  background: #49432e;
}

.atlas-track span {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: left;
  transform: scaleX(var(--atlas-progress, .25));
  background: var(--gold);
  transition: transform .45s var(--motion-ease);
}

.atlas-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(18px, 2.1vw, 30px);
  padding: clamp(22px, 2.6vw, 42px);
  min-width: 0;
  border-left: 1px solid var(--atlas-line);
  background: linear-gradient(150deg, #1e1d15, #13140f 70%);
}

.atlas-eyebrow,
.atlas-point-detail > .mono {
  display: block;
  color: var(--atlas-light);
  font-size: 9px;
  letter-spacing: .14em;
}

.atlas-copy h3 {
  margin: 10px 0 12px;
  color: var(--paper);
  font: clamp(29px, 3.4vw, 57px)/.98 var(--serif);
  letter-spacing: -.025em;
}

.atlas-copy p {
  max-width: 48ch;
  color: var(--atlas-muted);
  font-size: 14px;
  line-height: 1.55;
}

.atlas-point-detail {
  padding: 16px 17px 18px;
  border: 1px solid #5e5136;
  border-left: 2px solid var(--gold);
  background: #252218;
}

.atlas-point-detail h4 {
  margin: 9px 0 6px;
  color: var(--paper);
  font: 24px/1 var(--serif);
}

.atlas-point-detail p {
  font-size: 13px;
}

.atlas-product {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 46px;
  padding: 0 13px;
  gap: 16px;
  border: 1px solid #897247;
  color: var(--atlas-light);
  font-size: 13px;
  transition: background .22s, color .22s;
}

.atlas-product:is(:hover, :focus-visible) {
  color: var(--ink);
  background: var(--gold);
}

.atlas-product > span {
  font-size: 20px;
}

.atlas-status {
  margin-top: 13px;
  color: var(--atlas-muted);
  font-size: 8px;
  letter-spacing: .14em;
}

@media (max-width: 900px) {
  .atlas-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .atlas-copy {
    border-left: 0;
    border-top: 1px solid var(--atlas-line);
  }

  .atlas-copy h3 {
    font-size: clamp(33px, 6vw, 52px);
  }

  .atlas-product {
    width: min(100%, 340px);
  }
}

@media (max-width: 700px) {
  .atlas-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 10px;
  }

  .atlas-tabs button {
    min-height: 62px;
    padding: 9px 11px;
  }

  .atlas-tabs button > span {
    font-size: 12px;
  }

  .atlas-controls {
    grid-template-columns: 48px minmax(0, 1fr) 48px;
  }

  .atlas-controls button {
    min-height: 48px;
  }

  .atlas-copy {
    padding: 20px;
  }

  .atlas-point-detail {
    padding-inline: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .atlas *,
  .atlas *::after {
    transition: none;
  }

  .atlas-tabs button:hover img {
    transform: none;
  }

  .atlas-markers button:is(:hover, :focus-visible) > span {
    scale: 1;
  }
}
