/* ImagiMates. Colours sampled from the logo; photos sit on their own studio grey. */
:root {
  --white: #FFFFFF;
  --studio: #F4F5F7;     /* background of the product photos */
  --ink: #2A1E38;
  --ink-soft: #5E5470;
  --red: #EE3042;
  --cyan: #54C7E2;
  --blue: #4660AB;
  --yellow: #FED133;
  --lime: #90C947;
  --orange: #EC9921;
  --pink: #FF567A;
  --purple: #90469B;

  --display: "Lilita One", "Arial Rounded MT Bold", sans-serif;
  --sans: "Rubik", system-ui, sans-serif;
  --wrap: 74rem;
  --gap: clamp(1.25rem, 3vw, 2.25rem);
  --section: clamp(4rem, 9vw, 7rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5.5rem; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 1.0625rem/1.65 var(--sans); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.2em; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.08; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: clamp(2.8rem, 7vw, 5.4rem); }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; max-width: 62ch; }
.lede { font-size: clamp(1.15rem, 1.6vw, 1.3rem); color: var(--ink-soft); max-width: 48ch; }
.small { font-size: 0.95rem; }
.wrap { width: min(100% - 2 * var(--gap), var(--wrap)); margin-inline: auto; }
.section { padding-block: var(--section); }
.section-intro { color: var(--ink-soft); margin-bottom: 2.25rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--ink); color: var(--white); padding: .6rem 1rem; border-radius: 8px; z-index: 50; }
.skip:focus { top: 1rem; }

/* Buttons and chips */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 3.1rem; padding: .7rem 1.6rem;
  background: var(--ink); color: var(--white); border: 3px solid var(--ink); border-radius: 999px;
  font: 400 1.15rem/1 var(--display); letter-spacing: .01em; text-decoration: none; cursor: pointer;
  box-shadow: 0 4px 0 var(--pink); transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--pink); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--pink); }
.btn-ghost { background: var(--white); color: var(--ink); box-shadow: 0 4px 0 var(--cyan); }
.btn-ghost:hover { box-shadow: 0 6px 0 var(--cyan); }
.btn-light { background: var(--white); color: var(--ink); border-color: var(--white); box-shadow: 0 4px 0 var(--yellow); }
.btn-small { min-height: 2.6rem; padding: .5rem 1.15rem; font-size: 1.02rem; box-shadow: 0 3px 0 var(--pink); }
.actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.75rem; }
.chip {
  min-height: 2.75rem; padding: .45rem 1.1rem; cursor: pointer;
  background: var(--white); color: var(--ink); border: 2px solid var(--ink); border-radius: 999px;
  font: 500 1rem var(--sans);
}
.chip:hover { background: var(--studio); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--white); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid #ECEAF0; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.75rem; }
.brand img { width: 11rem; }
.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.site-nav a:not(.btn) { font-weight: 500; text-decoration: none; padding-block: .35rem; border-bottom: 3px solid transparent; }
.site-nav a:not(.btn):hover { border-color: var(--yellow); }
.site-nav a[aria-current="page"]:not(.btn) { border-color: var(--pink); }
.nav-toggle { display: none; }
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; min-height: 2.75rem; padding: .4rem 1.1rem; background: var(--white); border: 2px solid var(--ink); border-radius: 999px; font: 400 1.05rem var(--display); color: var(--ink); cursor: pointer; }
  .site-nav { position: absolute; inset: 100% 0 auto; display: none; flex-direction: column; align-items: stretch; gap: 0; background: var(--white); padding: .5rem var(--gap) 1.5rem; border-bottom: 1px solid #ECEAF0; }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: .9rem 0; border-bottom: 1px solid #ECEAF0; font-size: 1.1rem; }
  .site-nav .btn { margin-top: 1rem; }
  .brand img { width: 9rem; }
}

/* Hero: the pile of ImagiMates is the hero */
.hero { padding-block: clamp(2rem, 5vw, 3.5rem) clamp(2.5rem, 5vw, 4rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.hero h1 { max-width: 10ch; }
.tagline { font: 400 1.25rem var(--display); color: var(--purple); margin-top: 1.5rem; }
.hero-pile { margin: 0; }
.hero-pile img { width: 100%; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero-pile { margin-inline: calc(var(--gap) * -1); } }

/* How it works: a real sequence */
.how { background: var(--studio); }
.how-list { list-style: none; counter-reset: how; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.how-list li { counter-increment: how; background: var(--white); border-radius: 28px; padding: 2rem 1.75rem 1.75rem; position: relative; }
.how-list li::before {
  content: counter(how); display: grid; place-items: center; width: 3rem; height: 3rem; margin-bottom: 1rem;
  border-radius: 50%; background: var(--c); color: var(--white); font: 400 1.6rem var(--display);
}
.how-list h3 { font-size: 2rem; }
.how-list p { color: var(--ink-soft); margin: 0; }
@media (max-width: 760px) { .how-list { grid-template-columns: 1fr; } }

/* What do you need today? */
.feel-buttons { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2rem; }
.feel-set { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.feel-set[hidden] { display: none; }
.feel-card {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: .35rem; text-decoration: none;
  padding: 1.5rem 1.25rem 1.75rem; border-radius: 32px; background: var(--studio);
  border-bottom: 8px solid var(--body); transition: transform .2s;
}
.feel-card:hover { transform: translateY(-4px) rotate(-1deg); }
.feel-card .face { width: 9rem; height: 9rem; display: grid; place-items: center; }
.feel-card .face img { border-radius: 50%; }
.feel-name { font: 400 1.9rem/1 var(--display); margin-top: .5rem; }
.feel-power { color: var(--ink-soft); }
.feel-more { margin-top: 2rem; font-weight: 700; }
@media (max-width: 700px) { .feel-set { grid-template-columns: 1fr 1fr; } .feel-set .feel-card:last-child { display: none; } }

/* Who it's for */
.who { background: var(--ink); color: var(--white); }
.who h2 { color: var(--white); max-width: 18ch; }
.who-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); margin-top: 2rem; }
.who article { border-top: 6px solid var(--c); padding-top: 1.25rem; }
.who h3 { color: var(--c); }
.who ul { list-style: none; margin: 0; padding: 0; }
.who li { padding: .45rem 0; border-bottom: 1px solid rgba(255,255,255,.14); color: #E4DFEC; }
@media (max-width: 900px) { .who-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .who-grid { grid-template-columns: 1fr; } }

/* Ranges */
.range-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.range-card { text-decoration: none; display: block; }
.range-art { display: grid; place-items: center; aspect-ratio: 1; background: var(--studio); border-radius: 32px; overflow: hidden; margin-bottom: 1rem; transition: transform .2s; }
.range-art img { width: 100%; height: 100%; object-fit: cover; }
.range-art-drawn img { width: 60%; height: auto; object-fit: contain; }
.range-card:hover .range-art { transform: rotate(-2deg) scale(1.02); }
.range-card h3 { margin-bottom: .3em; }
.range-card p { color: var(--ink-soft); margin: 0; }
@media (max-width: 900px) { .range-grid { grid-template-columns: 1fr 1fr; } }

/* Animation */
.animation { background: #1F3A4D; color: #F1F6F8; }
.animation h2 { color: var(--white); }
.animation p { color: #D6E3EA; }
.anim-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.anim-stills { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.anim-stills img { border-radius: 20px; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.still-a { grid-column: 1 / -1; }
@media (max-width: 860px) { .anim-grid { grid-template-columns: 1fr; } }

/* Share */
.share-band { display: grid; grid-template-columns: auto 1fr auto; gap: 1.5rem 2.5rem; align-items: center; background: var(--studio); border-radius: 40px; padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1.5rem, 4vw, 3rem); }
.share-band img { width: 7rem; transform: rotate(-8deg); }
.share-band h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: .25em; }
.share-band p { margin: 0; color: var(--ink-soft); }
@media (max-width: 760px) { .share-band { grid-template-columns: 1fr; text-align: center; justify-items: center; } }

/* Inner page heads */
.page-head { padding-top: clamp(3rem, 7vw, 5rem); }
.page-head .lede { max-width: 60ch; }

/* Animal totems */
.totems { padding-top: 2rem; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
html:not(.tabs-ready) .filters { display: none; }
.totem-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.animal-tabs { display: grid; grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr)); gap: .6rem; }
html:not(.tabs-ready) .animal-tabs { display: none; }
.animal-tabs [role="tab"] {
  display: flex; flex-direction: column; align-items: center; gap: .2rem; padding: .7rem .4rem .6rem; cursor: pointer;
  background: var(--studio); border: 3px solid transparent; border-radius: 22px; color: var(--ink);
  font: 500 .95rem var(--sans); transition: transform .15s;
}
.animal-tabs [role="tab"][hidden] { display: none; }
.animal-tabs [role="tab"]:hover { transform: translateY(-2px); }
.animal-tabs [role="tab"][aria-selected="true"] { border-color: var(--ink); background: var(--white); box-shadow: 0 4px 0 var(--body); }
.animal-tabs .face { width: 4.25rem; height: 4.25rem; display: grid; place-items: center; }
.animal-tabs .face .mate { width: 3.6rem; height: auto; }
.animal-tabs .face img { width: 4.25rem; height: 4.25rem; object-fit: cover; border-radius: 50%; }
.totem-panels { position: sticky; top: 6rem; }
html:not(.tabs-ready) .totem-panels { position: static; }
.totem {
  background: var(--white); border: 3px solid var(--ink); border-radius: 36px; padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: 0 8px 0 var(--body);
}
.totem[hidden] { display: none; }
.totem:focus { outline: none; }
.totem:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
html:not(.tabs-ready) .totem + .totem { margin-top: 2rem; }
.totem-art { float: right; width: clamp(8rem, 16vw, 11rem); margin: 0 0 1rem 1.25rem; }
.totem-art img { border-radius: 50%; aspect-ratio: 1; object-fit: cover; background: var(--studio); }
.totem-art .mate { width: 100%; height: auto; }
.totem-meta { color: var(--ink-soft); font-size: .95rem; margin-bottom: .4rem; }
.totem h2 { font-size: clamp(2.4rem, 4vw, 3.4rem); }
.totem-lists { clear: both; display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 2rem; margin: 1.5rem 0 1.75rem; }
.totem-lists h3 { font-size: 1.2rem; margin-bottom: .4em; }
.totem-lists ul { list-style: none; margin: 0; padding: 0; }
.totem-lists li { padding: .3rem 0 .3rem 1.3rem; position: relative; }
.totem-lists li::before { content: ""; position: absolute; left: 0; top: .78rem; width: .6rem; height: .6rem; border-radius: 50%; background: var(--body); box-shadow: 0 0 0 1.5px var(--ink); }
.powers { grid-column: 1 / -1; }
.powers ul { columns: 2 14rem; column-gap: 2rem; }
@media (max-width: 900px) {
  .totem-layout { grid-template-columns: 1fr; }
  .totem-panels { position: static; scroll-margin-top: 6rem; }
  .totem-panels .totem { scroll-margin-top: 6rem; }
}
@media (max-width: 520px) { .totem-lists { grid-template-columns: 1fr; } .totem-art { float: none; margin: 0 auto 1rem; } }

/* Shop */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.product { background: var(--studio); border-radius: 32px; padding: 1.25rem 1.5rem 1.75rem; border-top: 8px solid var(--c); display: flex; flex-direction: column; }
.product .btn { align-self: flex-start; margin-top: auto; }
.product-art { aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; border-radius: 22px; margin: 0 0 1rem; }
.product-art img { width: 100%; height: 100%; object-fit: cover; }
.product-art-drawn img { width: auto; height: 80%; object-fit: contain; }
.price { font: 400 1.8rem/1 var(--display); color: var(--purple); margin-bottom: .6rem; }
.price-big { font-size: 2.6rem; }
.swatch-label { font-weight: 700; margin-bottom: .4rem; }
.swatches { list-style: none; margin: 0 0 1.5rem; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.swatches li { font-size: 0; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--s); box-shadow: inset 0 0 0 1.5px rgba(42,30,56,.25); }
.swatches.metallic li { background: radial-gradient(circle at 30% 30%, #fff 0 12%, var(--s) 45%); }
.hair-note { margin-top: 2rem; color: var(--ink-soft); }
@media (max-width: 900px) { .product-grid { grid-template-columns: 1fr; max-width: 32rem; } }

.jumbo { background: var(--studio); }
.jumbo-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.jumbo-art img { border-radius: 40px; transform: rotate(-3deg); }
@media (max-width: 760px) { .jumbo-grid { grid-template-columns: 1fr; } .jumbo-art { max-width: 20rem; } }

.table-wrap { overflow-x: auto; margin-bottom: 2rem; }
.packs { width: 100%; border-collapse: collapse; min-width: 32rem; font-variant-numeric: tabular-nums; }
.packs th, .packs td { text-align: left; padding: 1rem 1.1rem; border-bottom: 2px solid var(--studio); }
.packs thead th { font: 400 1.15rem var(--display); border-bottom: 3px solid var(--ink); }
.packs tbody th { font-weight: 700; }

.branding { background: var(--yellow); }
.branding-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.ticks { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.ticks li { padding: .5rem 0 .5rem 2rem; position: relative; font-weight: 500; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .75rem; width: 1.1rem; height: .6rem; border-left: 3px solid var(--ink); border-bottom: 3px solid var(--ink); transform: rotate(-45deg); }
.branding-steps { background: var(--white); border-radius: 32px; padding: clamp(1.5rem, 3vw, 2.25rem); border: 3px solid var(--ink); }
.branding-steps ol { padding-left: 1.3rem; margin: 0 0 1.75rem; }
.branding-steps li { margin-bottom: .7rem; }
@media (max-width: 860px) { .branding-grid { grid-template-columns: 1fr; } }

.order-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.order-form { background: var(--studio); border-radius: 32px; padding: clamp(1.5rem, 3.5vw, 2.5rem); }
.field { margin-bottom: 1.2rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { display: block; font-weight: 700; margin-bottom: .35rem; }
.opt { font-weight: 400; color: var(--ink-soft); }
.field input, .field textarea { width: 100%; min-height: 3rem; padding: .65rem .9rem; font: 400 1.05rem var(--sans); color: var(--ink); background: var(--white); border: 2px solid #D9D6E0; border-radius: 14px; }
.field input:focus-visible, .field textarea:focus-visible { border-color: var(--ink); }
.field [aria-invalid="true"] { border-color: var(--red); }
.error { color: #B3122A; font-weight: 700; font-size: .95rem; margin: .35rem 0 0; }
.form-note { white-space: pre-line; margin: 1.25rem 0 0; color: var(--ink-soft); }
.form-note:empty { display: none; }
@media (max-width: 860px) { .order-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--studio); border-top: 8px solid var(--lime); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--gap); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.footer-logo { width: 12rem; margin-bottom: 1rem; }
.site-footer p { color: var(--ink-soft); max-width: 36ch; }
.site-footer h2 { font-size: 1.4rem; margin-bottom: .7rem; }
.site-footer ul { list-style: none; margin: 0 0 1rem; padding: 0; }
.site-footer li { margin-bottom: .45rem; }
.site-footer nav a, .site-footer ul a { text-decoration: none; }
.site-footer nav a:hover, .site-footer ul a:hover { text-decoration: underline; }
.legal { font-size: .9rem; color: var(--ink-soft); padding-bottom: 2rem; margin: 0 auto; max-width: none; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Tight crop for photo thumbnails, which have a lot of studio space */
.animal-tabs .face, .feel-card .face { border-radius: 50%; overflow: hidden; }
.animal-tabs .face .photo img, .feel-card .face .photo img, .totem-art .photo img { transform: scale(1.75); transform-origin: 50% 45%; }
.totem-art .photo { display: block; border-radius: 50%; overflow: hidden; background: var(--studio); }
.powers li { break-inside: avoid; }
.product-art { aspect-ratio: 1; }
.product-art .photo, .product-art picture { display: block; width: 100%; height: 100%; }
.product-art picture img { transform: scale(1.3); transform-origin: 50% 55%; }
.feel-set { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 700px) {
  .feel-set { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
  .feel-card { padding: 1rem .6rem 1.2rem; border-radius: 24px; }
  .feel-card .face { width: 6.5rem; height: 6.5rem; }
  .feel-card .face .mate { width: 5rem; height: auto; }
  .feel-name { font-size: 1.5rem; }
  .feel-power { font-size: .92rem; }
}



/* Hero stage: one ImagiMate goes from round to shaped */
.stage { width: 100%; max-width: 34rem; justify-self: end; }
.stage-frame { position: relative; aspect-ratio: 1; border-radius: 40px; overflow: hidden; background: #F3F3F5; border: 3px solid var(--ink); box-shadow: 0 10px 0 var(--yellow); }
.stage-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .7s ease, transform .7s cubic-bezier(.34,1.56,.64,1); }
.stage-round { opacity: 0; transform: scale(.94); }
.stage-shaped { opacity: 1; transform: scale(1); }
.stage:not(.is-shaped) .stage-round { opacity: 1; transform: scale(1); }
.stage:not(.is-shaped) .stage-shaped { opacity: 0; transform: scale(1.06); }
.stage-tag { position: absolute; left: 1.1rem; top: 1.1rem; padding: .3rem .9rem; border-radius: 999px; background: var(--white); border: 2px solid var(--ink); font: 400 1.05rem var(--display); transition: opacity .4s; }
.stage-tag-round { opacity: 0; }
.stage:not(.is-shaped) .stage-tag-round { opacity: 1; }
.stage:not(.is-shaped) .stage-tag-shaped { opacity: 0; }
.stage-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 1.6rem 0 1rem; }
.stage-caption { margin: 0; color: var(--ink-soft); }
.stage-caption b { display: block; font: 400 1.9rem/1 var(--display); color: var(--ink); }
.stage-pick { display: flex; flex-wrap: wrap; gap: .5rem; }
.stage-pick button { width: 3.6rem; height: 3.6rem; padding: 0; border-radius: 50%; overflow: hidden; cursor: pointer; background: #F3F3F5; border: 3px solid transparent; transition: transform .15s; }
.stage-pick button:hover { transform: translateY(-2px); }
.stage-pick button[aria-pressed="true"] { border-color: var(--ink); }
.stage-pick img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.35); transform-origin: 50% 62%; }
@media (max-width: 860px) { .stage { justify-self: stretch; max-width: none; } }
@media (prefers-reduced-motion: reduce) { .stage-img { transition: none; } }

/* How it works photos */
.how-img { display: block; margin: -1rem -.75rem 1.25rem; border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 3; }
.how-img img { width: 100%; height: 100%; object-fit: cover; }
.how-list li::before { position: absolute; top: 1.4rem; left: 1.4rem; z-index: 1; margin: 0; box-shadow: 0 0 0 4px var(--white); }

/* Who: lifestyle photo beside the heading */
.who-head { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; margin-bottom: 1rem; }
.who-photo img { border-radius: 28px; aspect-ratio: 3 / 2; object-fit: cover; }
@media (max-width: 760px) { .who-head { grid-template-columns: 1fr; } }

/* Range cards: wide product shots */
.range-art-wide img { object-fit: cover; transform: scale(1.25); }
.product-art-chart { background: var(--white); }
.product-art-chart img { object-fit: contain; }

/* Totem panel: round and shaped side by side */
.totem-art { float: none; width: auto; margin: 0 0 1.5rem; }
.pair { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.pair > div { position: relative; }
.pair .photo { display: block; border-radius: 24px; overflow: hidden; aspect-ratio: 1; background: #F3F3F5; }
.pair .photo img { width: 100%; height: 100%; object-fit: cover; transform: none; border-radius: 0; }
.pair figcaption { margin-top: .45rem; font-weight: 500; font-size: .95rem; color: var(--ink-soft); text-align: center; }
.pair > div:first-child .photo { filter: saturate(.9); }

/* Branding photo */
.branding-grid { grid-template-columns: 1fr 1fr; }
.branding-steps { grid-column: 2; grid-row: 1 / span 2; }
.branding-photo img { border-radius: 28px; border: 3px solid var(--ink); }
@media (max-width: 860px) { .branding-steps { grid-column: auto; grid-row: auto; } }
/* New studio crops are already framed; zoom thumbnails only a little */
.animal-tabs .face .photo img { transform: scale(1.3); transform-origin: 50% 62%; }
.feel-card .face .photo img { transform: scale(1.15); transform-origin: 50% 60%; }
.feel-card .face { background: #F3F3F5; }
.stage-toggle { white-space: nowrap; }
@media (max-width: 520px) {
  .stage-pick { gap: .35rem; flex-wrap: nowrap; }
  .stage-pick button { width: 2.65rem; height: 2.65rem; border-width: 2px; flex: none; }
  .stage-caption b { font-size: 1.6rem; }
}

/* Hover to shape: the squishy layer */
.stage-frame { cursor: grab; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.stage.is-squeezed .stage-frame { cursor: grabbing; }
.stage-squish { position: absolute; inset: 0; transform-origin: 50% 88%; transition: translate .35s cubic-bezier(.34,1.56,.64,1), rotate .35s cubic-bezier(.34,1.56,.64,1), scale .25s cubic-bezier(.34,1.56,.64,1); }
.stage.is-squeezed .stage-squish { scale: 1.12 .84; transition-duration: .12s; }
.stage-squish.jelly { animation: jelly .65s cubic-bezier(.3,1.4,.6,1); }
@keyframes jelly {
  0% { scale: 1 1; }
  22% { scale: 1.1 .88; }
  45% { scale: .95 1.07; }
  68% { scale: 1.03 .97; }
  100% { scale: 1 1; }
}
.stage-hint {
  position: absolute; left: 50%; bottom: 1rem; translate: -50% 0; padding: .35rem .95rem; border-radius: 999px;
  background: var(--ink); color: var(--white); font: 400 1rem var(--display); white-space: nowrap; pointer-events: none;
  transition: opacity .4s; animation: hint-bob 2.4s ease-in-out infinite;
}
.stage.touched .stage-hint { opacity: 0; animation: none; }
@keyframes hint-bob { 0%, 100% { translate: -50% 0; } 50% { translate: -50% -5px; } }
.hint-tap { display: none; }
@media (hover: none), (pointer: coarse) { .hint-hover { display: none; } .hint-tap { display: inline; } }
@media (prefers-reduced-motion: reduce) {
  .stage-squish, .stage.is-squeezed .stage-squish { transition: none; scale: none; }
  .stage-squish.jelly { animation: none; }
  .stage-hint { animation: none; }
}

/* Free-form sculpting */
.sculpt { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; opacity: 0; transition: opacity .3s; }
.stage.sculpt-ready .sculpt { opacity: 1; }
.stage.sculpt-ready .stage-round { opacity: 0; }
.stage.is-dragging .sculpt { cursor: grabbing; }
.stage.needs-start .sculpt { touch-action: pan-y; }
.stage-shaped { pointer-events: none; }
.stage.show-ours .stage-shaped { opacity: 1; transform: none; }
.stage.show-ours .stage-tag-shaped { opacity: 1; }
.stage-tag-shaped { opacity: 0; }
.stage-start { display: none; position: absolute; left: 50%; bottom: 1.1rem; translate: -50% 0; }
.stage.needs-start .stage-start { display: inline-flex; }
.stage.needs-start .stage-hint { display: none; }
.stage-tools { display: flex; flex-wrap: wrap; gap: .5rem; margin: .25rem 0 1rem; }
.finger { display: flex; align-items: center; gap: .6rem; font-weight: 500; font-size: .95rem; color: var(--ink-soft); white-space: nowrap; }
.finger input { accent-color: var(--pink); width: 7rem; }
.stage-note { margin: 0 0 .5rem; color: var(--purple); font-weight: 500; min-height: 1.4em; }
.stage-note:empty { display: none; }

/* Pull out / Push in switch */
.tool-switch { display: inline-flex; padding: 3px; gap: 3px; border: 3px solid var(--ink); border-radius: 999px; background: var(--white); }
.tool { min-height: 2.3rem; padding: .3rem .95rem; border: 0; border-radius: 999px; background: transparent; color: var(--ink); font: 400 1rem var(--display); cursor: pointer; }
.tool:hover { background: var(--studio); }
.tool[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.stage[data-tool="push"] .sculpt { cursor: cell; }
.stage.is-pushing .sculpt { cursor: cell; }

/* Shop: animal totem feature and branding colour options */
.classic-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: var(--gap); align-items: start; }
.classic-grid .product h2 { font-size: 1.9rem; margin-bottom: .3em; }
.classic-side h3 { margin-top: .5rem; }
.mini-mates { list-style: none; margin: 1rem 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.mini-mates a { display: block; text-decoration: none; text-align: center; font-weight: 500; }
.mini-mates img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 24px; background: var(--studio); transition: transform .2s; }
.mini-mates a:hover img { transform: rotate(-2deg) scale(1.03); }
.mini-mates span { display: block; margin-top: .35rem; }
@media (max-width: 860px) { .classic-grid { grid-template-columns: 1fr; } }
.colour-options { margin-top: clamp(2.5rem, 5vw, 4rem); background: var(--white); border-radius: 32px; border: 3px solid var(--ink); padding: clamp(1.5rem, 3.5vw, 2.5rem); }
.colour-options h3 { font-size: 1.7rem; }
.chart-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); margin: 1.5rem 0 1rem; }
.chart-grid figure { margin: 0; }
.chart-grid img { border-radius: 20px; width: 100%; }
.chart-grid figcaption { font: 400 1.2rem var(--display); margin-top: .5rem; }
@media (max-width: 760px) { .chart-grid { grid-template-columns: 1fr; } }

/* Show every photo whole: the studio crops already leave room for the hair,
   so no zoom anywhere, and wide shots are fitted rather than cropped. */
.product-art picture img,
.range-art-wide img,
.stage-pick img,
.animal-tabs .face .photo img,
.feel-card .face .photo img,
.totem-art .photo img { transform: none; }
.range-art-wide { background: var(--white); }
.range-art-wide img { object-fit: contain; }
.how-img { aspect-ratio: 1; }
.range-art-wide { box-shadow: inset 0 0 0 2px var(--studio); }

/* Colour options built from whole-ImagiMate photos (hair included) */
.chart-grid { grid-template-columns: 1fr; gap: 1.75rem; }
.colour-set h4 { font: 400 1.25rem var(--display); margin: 0 0 .75rem; }
.colour-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr)); gap: .6rem; }
.colour-grid li { text-align: center; font-weight: 500; font-size: .95rem; }
.colour-grid img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 18px; background: var(--studio); margin-bottom: .3rem; }
@media (max-width: 520px) { .colour-grid { grid-template-columns: repeat(3, 1fr); } }

/* Episode player */
.episode { margin: 0; }
.episode-video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 24px; background: #0F2230; box-shadow: 0 10px 0 var(--yellow); }
.episode figcaption { margin-top: 1.1rem; font: 400 1.1rem var(--display); color: #D6E3EA; }
.episode-label { font-weight: 500; color: var(--yellow); margin-bottom: .25rem; }
.episode-title { color: var(--white); font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
.sculpt { -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }

/* Hero headline glitter (same effect as dk villas; see site.js): sparkles burst from the
   letters under the pointer and the word there catches the light. Logo colours, for white. */
.hero h1.glitter { position: relative; }
.hero h1 .gw { transition: color .45s ease, text-shadow .45s ease; }
.hero h1 .gw.lit { color: var(--pink); text-shadow: 0 0 1px rgba(42, 30, 56, .35), 0 0 18px rgba(255, 86, 122, .45), 0 0 34px rgba(254, 209, 51, .45); }
.sparkle {
  position: absolute; left: 0; top: 0; width: var(--s, 12px); height: var(--s, 12px); pointer-events: none; z-index: 2;
  background: radial-gradient(circle, #ffffff 0 10%, var(--c, #FED133) 38%);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  filter: drop-shadow(0 0 1px rgba(42, 30, 56, .7)) drop-shadow(0 0 5px var(--c, #FED133));
  animation: sparkle var(--d, 800ms) cubic-bezier(.22, 1, .36, 1) forwards;
}
@keyframes sparkle {
  0% { transform: translate(var(--x), var(--y)) translate(-50%, -50%) scale(0) rotate(0deg); opacity: 1; }
  45% { transform: translate(var(--x), var(--y)) translate(-50%, -50%) translate(var(--dx), var(--dy)) scale(1) rotate(60deg); opacity: 1; }
  100% { transform: translate(var(--x), var(--y)) translate(-50%, -50%) translate(calc(var(--dx) * 2), calc(var(--dy) * 2 - 8px)) scale(0) rotate(140deg); opacity: 0; }
}

/* Candy-cane frame round the hero: tilted logo-colour stripes with rounded ends on white,
   drawn as an SVG by site.js (drawCane). The CSS stripes are only the fallback. Static. */
.cane {
  --cane: 20px;
  position: relative; padding: var(--cane); border-radius: 46px;
  background: repeating-linear-gradient(45deg,
    #FF567A 0 14px, #fff 14px 20px, #54C7E2 20px 34px, #fff 34px 40px,
    #90C947 40px 54px, #fff 54px 60px, #FED133 60px 74px, #fff 74px 80px,
    #EC9921 80px 94px, #fff 94px 100px, #90469B 100px 114px, #fff 114px 120px);
  box-shadow: 0 8px 22px rgba(42, 30, 56, .12);
}
.cane.drawn { background: #fff; }
.cane-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 2; }
.stage-frame { border: 0; background: var(--bg, #F3F3F5); border-radius: 30px; box-shadow: none; z-index: 1; }
@media (max-width: 640px) { .cane { --cane: 15px; border-radius: 40px; } .stage-frame { border-radius: 28px; } }
