.charm-image {
  --mount: #f0ebe4;
  display: block;
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--photo) center / contain no-repeat var(--mount);
  background-blend-mode: multiply;
}

body.studio-v18 main .charm-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0 !important;
}

.charm-image-rainbow { --photo: url(charm-front/rainbow.webp); --mount: #efe9e0; }
.charm-image-orbit { --photo: url(charm-front/orbit.webp); --mount: #e6e8ec; }
.charm-image-bunny { --photo: url(charm-front/bunny.webp); --mount: #f2e5e9; }
.charm-image-coal { --photo: url(charm-front/coal.webp); --mount: #efe1df; }
.charm-image-purple { --photo: url(charm-front/purple.webp); --mount: #eae4f1; }
.charm-image-forest { --photo: url(charm-front/forest.webp); --mount: #ebe7d8; }
.charm-image-duck { --photo: url(charm-front/duck.webp); --mount: #f4ebd5; }
.charm-image-coral { --photo: url(charm-front/coral.webp); --mount: #f2e5dd; }
.charm-image-bat { --photo: url(charm-front/bat.webp); --mount: #e2dce8; }

.studio-v18 .studio-hero {
  background: #25232e;
  color: #faf4ec;
  grid-template-columns: minmax(0, 0.91fr) minmax(0, 1.09fr);
}

.studio-v18 .studio-hero h1 { font-size: clamp(46px, 5.75vw, 96px); }
.studio-v18 .studio-hero p { color: #efe7de; }
.studio-v18 .studio-hero .studio-primary { background: #f3d972; border-color: #f3d972; }
.studio-v18 .studio-mosaic { background: #dad0cf; }
.studio-v18 .studio-mosaic .charm-image { height: 100%; }
.studio-v18 .studio-mosaic-main { background: #efe9e0; }
.studio-v18 .studio-mosaic .studio-mosaic-top { background: #f2e5e9 !important; padding: 0; }
.studio-v18 .studio-mosaic .studio-mosaic-bottom { background: #f4ebd5 !important; padding: 0; }
.studio-v18 .studio-mosaic figcaption { color: #433a44; }

.studio-v18 .studio-plate {
  align-content: start;
  padding: clamp(20px, 3.5vw, 60px);
  grid-template-rows: auto auto;
  background: #e2dce8;
}
.studio-v18 .studio-plate .charm-image { aspect-ratio: 1.1; align-self: start; }
.studio-v18 .studio-plate figcaption { align-self: start; }
.studio-v18 .studio-inner-art .charm-image { aspect-ratio: 1.2; }

.charm-section {
  padding: clamp(46px, 6.5vw, 102px) var(--studio-margin);
  color: var(--studio-ink);
}
.charm-section h1,
.charm-section h2 {
  font-weight: 500;
  letter-spacing: -.05em;
  line-height: 1.04;
  text-wrap: balance;
}
.charm-section h1 { font-size: clamp(44px, 6vw, 92px); max-width: 15ch; }
.charm-section h2 { font-size: clamp(32px, 4.5vw, 65px); }
.charm-section > h2 { margin: 0 0 clamp(20px, 3vw, 40px); }
.charm-section h3 { margin: 0 0 7px; font-weight: 600; font-size: clamp(17px, 1.9vw, 25px); line-height: 1.15; }
.charm-section p { font-size: clamp(16px, 1.32vw, 19px); line-height: 1.5; max-width: 56ch; }
.charm-heading, .charm-intro { display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.charm-heading { margin-bottom: clamp(20px, 4vw, 44px); }
.charm-heading :is(h2, p), .charm-intro :is(h1, p) { margin: 0; }
.charm-heading p, .charm-intro p { margin-top: 15px; }
.charm-intro { background: #e9dfe8; }
.charm-home { background: #f2eae4; }

.charm-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 48px);
}
.charm-card { min-width: 0; scroll-margin-top: 105px; }
.charm-card a { display: block; color: inherit; text-decoration: none; }
.charm-card a:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.charm-card .charm-image { aspect-ratio: 1; background-size: auto 89%; }
.charm-card .charm-image-bat { background-size: 89% auto; }
.charm-card > div, .charm-card > a > div { padding-top: 13px; }
.charm-card p { margin: 0; font-size: 15px; }
.charm-card:target .charm-image { outline: 2px solid #766019; outline-offset: 3px; }

.charm-selection { background: #eae5df; }
.charm-selection ul, .charm-advice ol { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 26px; padding: 0; list-style: none; }
.charm-selection li, .charm-advice li { background: #f2ede7; padding: clamp(16px, 2.5vw, 32px); }
.charm-selection li a { display: grid; gap: 8px; color: inherit; }
.charm-selection li strong { font-size: clamp(19px, 2vw, 27px); }
.charm-selection li p, .charm-advice li p { font-size: 16px; margin-bottom: 0; }
.charm-advice { background: #eae5df; }
.charm-advice ol { margin: 22px 0 28px; }

.page-solutions .studio-inner-art { background: #e9dfe8; }
.page-solutions .solution-detail {
  padding: clamp(24px, 4vw, 54px);
  background: #ede8e0;
  margin-block: clamp(16px, 3vw, 34px);
}
.page-solutions .solution-detail:nth-of-type(odd) { background: #e8e0e8; }
.page-quality .studio-inner-art { background: #e3e8e1; }
.page-quality .factory-grid figure {
  aspect-ratio: auto !important;
  display: grid !important;
  grid-template-rows: minmax(0, 1fr) auto;
}
.page-quality .factory-grid figure img {
  aspect-ratio: 4 / 3;
  transform: none !important;
  object-fit: contain !important;
}
.page-quality .factory-grid figure figcaption {
  position: static !important;
  color: #34312d !important;
  background: transparent !important;
  padding: 8px 14px 16px !important;
  font-size: 14px !important;
}

@media (max-width: 850px) {
  .studio-v18 .studio-hero { grid-template-columns: minmax(0,1fr); }
  .charm-heading, .charm-intro { align-items: start; flex-direction: column; }
}

@media (max-width: 620px) {
  .charm-grid { grid-template-columns: repeat(2,minmax(0, 1fr)); gap: 22px 12px; }
  .charm-home .charm-grid, .charm-selection ul, .charm-advice ol { grid-template-columns: minmax(0,1fr); }
  .charm-home .charm-card a { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1fr); align-items: center; gap: 14px; }
  .charm-home .charm-card > a > div { padding-top: 0; }
  .charm-card p { font-size: 14px; }
}
