.hero-composition {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 40%);
  align-items: center;
  gap: 35px;
}

.home-hero .hero-composition h1 {
  font-size: clamp(46px, 5.6vw, 82px);
  line-height: 1.04;
}

.hero-message p {
  margin-top: 26px;
  max-width: 540px;
}

.hero-customiser {
  min-width: 0;
  width: 100%;
  max-width: 490px;
  justify-self: center;
}

.customiser-heading,
.customiser-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 5px 12px;
}

.customiser-heading h2 {
  font-size: 20px;
  letter-spacing: -.035em;
}

.customiser-heading span {
  color: var(--muted);
  font-size: 12px;
}

.customiser-controls {
  margin-top: 10px;
}

.customiser-controls[hidden] {
  display: none;
}

.preview-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.preview-buttons button {
  min-width: 44px;
  min-height: 44px;
  padding: 6px 9px;
  border: 1px solid #bdc8e3;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  font: 600 12px Manrope, sans-serif;
  cursor: pointer;
}

.preview-buttons button[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.customiser-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 6px;
  margin-left: -6px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hero-customiser :is(button, a):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.panel-sculpture {
  --page-bg: #fafaf5;
  --page-ink: #242c2a;
  --page-accent: #345a53;
  --button-ink: #fff;
  --panel-width: calc(100% - 34px);
  --panel-height: 228px;
  position: relative;
  height: 274px;
  perspective: 1000px;
  isolation: isolate;
}

.panel-orbit {
  position: absolute;
  inset: 0 14px 0 0;
  transform-style: preserve-3d;
  transform: rotateX(var(--panel-x, 2deg)) rotateY(var(--panel-y, -4deg)) rotateZ(-1deg);
  transition: transform 320ms ease-out;
}

.sculpture-panel {
  position: absolute;
  width: var(--panel-width);
  height: var(--panel-height);
  top: 50%;
  left: 50%;
  border: 1px solid #7290dd;
  border-radius: 11px;
  box-shadow: 1px 2px 0 #516fc0, 0 10px 23px #3155c520;
  transform: translate(-50%, -50%) translate3d(var(--px), var(--py), var(--pz));
}

.panel-back {
  --px: 26px;
  --py: -15px;
  --pz: -30px;
  background: #e1e7f7;
}

.panel-middle {
  --px: 13px;
  --py: -8px;
  --pz: -15px;
  background: #edf1fc;
}

.panel-front {
  --px: 0px;
  --py: 0px;
  --pz: 0px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--page-bg);
}

.sculpture-chrome {
  display: flex;
  align-items: center;
  flex: none;
  gap: 5px;
  height: 23px;
  padding: 0 9px;
  background: #e8edfa;
  border-bottom: 1px solid #c2ceec;
}

.sculpture-chrome i {
  width: 4px;
  height: 4px;
  flex: none;
  background: #4D76F0;
  border-radius: 50%;
}

.sculpture-chrome span {
  margin: auto;
  color: #38466b;
  font: 9px ui-monospace, monospace;
}

.sculpture-page {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
  padding: 13px;
  color: var(--page-ink);
  font: 11px/1.3 Manrope, sans-serif;
}

.sculpture-brand {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2px 8px;
}

.sculpture-brand strong {
  font-size: 14px;
}

.sculpture-brand span {
  font-size: 8px;
}

.sculpture-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .94fr);
  align-items: center;
  gap: 10px;
  min-height: 0;
}

.sculpture-copy small {
  display: block;
  color: var(--page-accent);
  text-transform: uppercase;
  letter-spacing: .09em;
  font-size: 7px;
  font-weight: 800;
}

.sculpture-copy strong {
  display: block;
  margin: 5px 0;
  font-size: clamp(18px, 2vw, 27px);
  line-height: 1.06;
  letter-spacing: -.05em;
}

.home-hero .sculpture-copy p {
  margin: 6px 0 9px;
  font: inherit;
  color: inherit;
}

.sculpture-cta {
  display: inline-block;
  padding: 5px 7px;
  background: var(--page-accent);
  color: var(--button-ink);
  border-radius: 3px;
  font-size: 8px;
  font-weight: 700;
}

.sculpture-image {
  position: relative;
  overflow: hidden;
  height: 100%;
  min-height: 0;
  border-radius: 5px;
}

.sculpture-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.panel-sculpture[data-style="bold"] {
  --page-bg: #292331;
  --page-ink: #fff5ea;
  --page-accent: #ffad78;
  --button-ink: #2b2027;
}

[data-style="bold"] .sculpture-content {
  grid-template-columns: minmax(0, .83fr) minmax(0, 1fr);
}

[data-style="bold"] .sculpture-copy {
  order: 1;
}

[data-style="bold"] .sculpture-copy strong {
  font-family: system-ui, sans-serif;
  font-weight: 900;
  text-transform: uppercase;
}

[data-style="bold"] .sculpture-image {
  border-radius: 0;
  border-right: 4px solid var(--page-accent);
  background: #fbb086;
}

[data-style="bold"] .sculpture-image img {
  mix-blend-mode: multiply;
  filter: grayscale(1) contrast(1.25);
  object-position: 32% center;
}

.panel-sculpture[data-style="elegant"] {
  --page-bg: #f7eddf;
  --page-ink: #392e33;
  --page-accent: #724b54;
}

[data-style="elegant"] .sculpture-brand {
  border-bottom: 1px solid #bba1a4;
  padding-bottom: 5px;
}

[data-style="elegant"] .sculpture-brand strong,
[data-style="elegant"] .sculpture-copy strong {
  font-family: Georgia, serif;
  font-weight: 400;
  letter-spacing: -.025em;
}

[data-style="elegant"] .sculpture-copy {
  text-align: center;
}

[data-style="elegant"] .sculpture-content {
  grid-template-columns: minmax(0, 1fr) minmax(0, .72fr);
  gap: 15px;
}

[data-style="elegant"] .sculpture-image {
  border: 3px solid #d4def7;
  border-radius: 50% 50% 4px 4px;
}

[data-style="elegant"] .sculpture-image img {
  filter: saturate(.63) sepia(.12);
}

.panel-sculpture[data-device="mobile"] {
  --panel-width: 167px;
  --panel-height: 248px;
}

[data-device="mobile"] .sculpture-page {
  padding: 8px 10px;
  gap: 5px;
}

[data-device="mobile"] .sculpture-brand {
  flex-direction: column;
}

[data-device="mobile"] .sculpture-content {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  align-items: start;
  gap: 7px;
}

[data-device="mobile"] .sculpture-copy strong {
  font-size: 18px;
}

[data-device="mobile"] .sculpture-copy p {
  margin: 4px 0 5px;
  font-size: 9px;
}

[data-device="mobile"][data-style="bold"] .sculpture-content {
  grid-template-rows: minmax(0, 1fr) auto;
}

[data-device="mobile"][data-style="elegant"] .sculpture-image {
  width: 78%;
  justify-self: center;
}

@media (max-width: 899px) {
  .hero-composition {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-hero .hero-composition h1 {
    font-size: clamp(40px, 8vw, 76px);
  }
}

@media (min-width: 761px) and (max-width: 899px) {
  .hero-customiser {
    justify-self: start;
  }
}

@media (max-width: 440px) {
  .hero-composition {
    gap: 26px;
  }

  .panel-sculpture {
    --panel-width: calc(100% - 25px);
  }

  .sculpture-page {
    padding: 10px;
  }

  .sculpture-copy strong {
    font-size: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .panel-orbit {
    transition: none;
  }
}
