/* Hero, redesign and craft scenes in src/website-build.mjs. Base rules are the finished state, motion is added at the end. */
@font-face { font-family: "Mona Sans"; src: url(mona-sans.woff2) format("woff2"); font-weight: 200 900; font-stretch: 75% 125%; font-display: swap; }
.theme-websites, .theme-websites :is(h1, h2) { font-family: "Mona Sans", Inter, "Helvetica Neue", Arial, sans-serif; }
.theme-websites :is(h1, h2) { font-weight: 560; font-stretch: 100%; letter-spacing: -.045em; }
body:has(> .theme-websites) > .top { background: #fff; border-color: #0000; }
[data-silk] { display: block; width: 100%; height: 100%; background: linear-gradient(120deg, #0b1030, #1f3ae0 60%, #ff6a3d); }

/* Hero: the headline is set like type in a design tool, below it websites come to life. */
.land-build { padding: clamp(.6rem, 1.6svh, 1.4rem) 0 2.2rem; }
.theme-websites .land-build h1 { margin: 0; line-height: .95; }
.type-live { position: relative; display: block; width: fit-content; font-size: clamp(1.8rem, calc(9.75 * var(--vw)), 13rem); font-weight: 600; letter-spacing: -.06em; line-height: 1; white-space: nowrap; }
.type-live { --x: 0px; --y: 0px; --sx: 1; --sy: 1; translate: var(--x) var(--y); scale: var(--sx) var(--sy); cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.type-live.is-held { cursor: grabbing; }
.type-live i { --grip: clamp(7px, .8vw, 12px); position: absolute; inset: 0 -.06em 0 -.04em; border: 2px solid #1f3ae0; opacity: 0; transition: opacity .2s; background: conic-gradient(#1f3ae0 0 0) 0 0 / var(--grip) var(--grip), conic-gradient(#1f3ae0 0 0) 100% 0 / var(--grip) var(--grip), conic-gradient(#1f3ae0 0 0) 0 100% / var(--grip) var(--grip), conic-gradient(#1f3ae0 0 0) 100% 100% / var(--grip) var(--grip); background-repeat: no-repeat; pointer-events: none; }
.type-live:is(:hover, .is-held) i { opacity: 1; animation: none !important; }
.land-build { overflow-x: clip; }
/* While the visitor plays with the headline, the examples below stay on their tab. */
.land-build:has(.type-live:is(:hover, .is-held)) [data-showcase] :checked + .showcase-time::after { animation-play-state: paused; }
.land-build .wrap { position: relative; }
.build-intro strong { display: block; margin-bottom: .25rem; font-size: clamp(1.3rem, calc(2 * var(--vw)), 2.1rem); font-weight: 480; letter-spacing: -.035em; line-height: 1.15; }
.build-intro { display: grid; grid-template-columns: minmax(0, 46rem) auto; justify-content: space-between; align-items: center; gap: 1rem 3rem; margin: clamp(.8rem, 2svh, 1.6rem) 0; }
.build-intro p { margin: 0; font-size: clamp(1rem, calc(1.2 * var(--vw)), 1.15rem); line-height: 1.5; }
.build-intro .hero-actions { margin: 0; }
.build-intro .land-assurance { margin-top: .5rem; font-size: .9rem; }
.studio-stage { position: relative; height: clamp(22rem, 100svh - 29.5rem, 46rem); container-type: size; overflow: hidden; border-radius: 1.4rem; background: #eaedf6; }
.studio .showcase-tabs { margin-top: .9rem; }
.studio .showcase-tabs b { font-size: 1.05rem; }
.work, .final, .work > .final > img:first-child, .work-energie canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.work { visibility: hidden; }
.studio:has([value="gastro"]:checked) .work-gastro, .studio:has([value="energie"]:checked) .work-energie, .studio:has([value="shop"]:checked) .work-shop { visibility: visible; z-index: 1; }
.final { overflow: hidden; color: #fff; }
.draft, .cursor { display: none; }
.work-gastro .final::after { content: ""; position: absolute; inset: 0; background: linear-gradient(#120a0880, #120a0800 30%, #120a0800 45%, #120a08cc); }
.work-gastro .final > img:first-child { object-position: 50% 35%; }
.work-energie .final::after { content: ""; position: absolute; inset: 0; background: linear-gradient(#050a24b3, #050a2400 34%), linear-gradient(75deg, #050a24d9 10%, #050a2400 62%); }
.final > div, .final > p { z-index: 1; }
.work-nav { position: absolute; inset: 1.4rem 2rem auto; display: flex; align-items: center; gap: 2rem; font-size: .95rem; }
.work-nav strong { margin-right: auto; font-size: 1.35rem; font-weight: 600; letter-spacing: -.03em; }
.work-nav b { padding: .55rem 1.1rem; border-radius: 2rem; background: #fff; color: #0b0e1a; font-weight: 600; }
.theme-websites .work-title { position: absolute; left: 2rem; bottom: 1.6rem; max-width: none; margin: 0; color: inherit; font-size: min(8cqw, 25cqh); font-weight: 480; line-height: .98; letter-spacing: -.055em; }
.work-title span { display: block; overflow: hidden; padding: .04em .06em .14em 0; margin-bottom: -.16em; }
.work-title i { display: block; font-style: normal; }
.theme-websites .work-gastro .work-title, .work-gastro .work-nav strong, .theme-websites .redesign .work-title { font-family: Newsreader, Georgia, serif; font-weight: 300; }
.work-panel { position: absolute; right: 2rem; bottom: 2rem; width: 19rem; padding: 1.1rem; border-radius: 1.1rem; background: #fff; color: #0b0e1a; box-shadow: 0 1.6rem 4rem #0b0e1a4d; line-height: 1.3; }
.work-panel small { display: block; font-size: .8rem; color: #525b73; }
.work-button { display: grid; overflow: hidden; margin-top: .9rem; border-radius: 2rem; background: #0b0e1a; color: #fff; font-weight: 600; text-align: center; }
.work-button span { grid-area: 1 / 1; padding: .75rem; }
.work-button span:last-child { background: #12804a; }
.chips { display: grid; grid-template-columns: 4.6rem 1fr; align-items: center; margin-bottom: .45rem; }
.chips div { display: grid; grid-template-columns: repeat(3, 1fr); gap: .3rem; }
.chips span { padding: .42rem 0; border-radius: .55rem; background: #f0eeea; text-align: center; font-size: .88rem; font-weight: 600; }
.chips span:nth-child(2) { background: #8c2f1b; color: #fff; }
.work-energie .work-panel { background: #ffffffeb; }
.usage-value { counter-reset: a var(--kwh); font-size: 2.6rem; font-weight: 520; letter-spacing: -.05em; line-height: 1.1; }
.usage-value::before { content: counter(a) " kWh"; }
.usage svg { display: block; width: 100%; height: 5.2rem; margin: .5rem 0 .7rem; overflow: visible; }
.usage-line { fill: none; stroke: #1f3ae0; stroke-width: 3; vector-effect: non-scaling-stroke; }
.usage-area { fill: #1f3ae022; }
.usage-switch { display: flex; justify-content: space-between; align-items: center; font-size: .92rem; font-weight: 600; }
.usage-switch i { width: 2.8rem; height: 1.6rem; padding: .2rem; border-radius: 1rem; background: #12804a; }
.usage-switch i::after { content: ""; display: block; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: #fff; translate: 1.2rem 0; }
.work-shop .final { background: #f2b632; color: #0b0e1a; }
.shop-word { position: absolute; inset: 0 19rem 0 0; display: grid; place-items: center; font-size: min(31cqw, 100cqh); font-weight: 760; font-stretch: 112%; line-height: 1; letter-spacing: -.07em; color: #fff; }
.shop-vase { position: absolute; left: 0; right: 21rem; bottom: 4cqh; z-index: 1; margin-inline: auto; width: auto; height: 84cqh; max-width: none; filter: drop-shadow(0 2rem 1.6rem #0007); }
.work-shop .work-nav b { background: #0b0e1a; color: #fff; }
.product strong { font-size: 1.3rem; letter-spacing: -.03em; }
.product > span { display: block; }
.swatches { display: flex; gap: .6rem; margin-top: .8rem; }
.swatches i { width: 1.9rem; aspect-ratio: 1; border-radius: 50%; background: #1f3f9d; }
.swatches i:nth-child(2) { background: #1d7a58; }
.swatches i:nth-child(3) { background: #a2324f; }

/* Before and after. */
.redesign { position: relative; height: clamp(26rem, 46vw, 42rem); overflow: hidden; border-radius: 0 0 1.25rem 1.25rem; container-type: size; }
.redesign > div:not(.redesign-handle) { position: absolute; inset: 0; }
.redesign-old { padding: 1.5rem; background: #d8d8c8; color: #000080; font-family: "Times New Roman", Times, serif; text-align: center; }
.theme-websites .redesign-old p { max-width: none; margin: 1rem 0; color: #000080; }
.redesign-old > b { display: block; padding: .8rem; border: 3px outset #eee; background: #800000; color: #ffff99; font-size: clamp(1.2rem, 2.6cqw, 2.2rem); }
.redesign-old > div { max-width: 44rem; margin: 2rem auto; padding: 1.5rem; border: 2px inset #eee; background: #fff; text-align: left; }
.redesign-new { background: #10382d; color: #f3f6f1; }
.redesign .work-button { background: #10382d; }
.redesign .work-nav b { background: #d9f25f; }
.lawyer-slots { display: grid; gap: .35rem; margin-top: .7rem; }
.lawyer-slots span { padding: .6rem .9rem; border-radius: .6rem; background: #edf1ec; font-weight: 600; }
.lawyer-slots span:nth-child(2) { background: #d9f25f; }
.redesign-handle { display: none; }

/* Craft: four details that run by themselves. */
.craft-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(2rem, 3.5vw, 3.5rem) 1.5rem; margin-top: clamp(1.6rem, 3vw, 3rem); }
.theme-websites .craft-grid article { padding: 0; border: 0; background: none; }
.craft-layout { grid-column: span 7; }
.craft-type { grid-column: span 5; }
.craft-color { grid-column: span 7; }
.craft-flow { grid-column: span 5; }
.craft-scene { position: relative; height: clamp(20rem, 32vw, 29rem); overflow: hidden; border-radius: 1.4rem; container-type: size; }
.craft-grid h3 { margin: 1.2rem 0 .3rem; font-size: 1.5rem; font-weight: 600; letter-spacing: -.03em; }
.craft-layout .craft-scene { display: grid; justify-items: center; padding: 2rem; background: #cdd6ff; }
.resize { position: relative; width: 100%; height: 100cqh; }
.resize-page { display: grid; grid-template: minmax(0, 1fr) 5.5rem / repeat(3, 1fr); gap: .7rem; height: 100%; padding: .7rem; overflow: hidden; border-radius: .9rem; background: #fff; box-shadow: 0 1.4rem 3rem #1f3ae033; }
.resize { container-type: inline-size; }
.resize img { grid-area: 1 / 1 / 2 / 4; width: 100%; height: 100%; min-height: 0; object-fit: cover; border-radius: .5rem; }
.resize strong { grid-area: 1 / 1 / 2 / 4; align-self: end; padding: 1rem 1.2rem; color: #fff; font-size: clamp(1.5rem, 9cqw, 3.6rem); font-weight: 560; line-height: 1; letter-spacing: -.045em; text-shadow: 0 0 1.5rem #0009; }
.theme-websites .resize p { margin: 0; border-radius: .5rem; background: #eaedf6; }
.theme-websites .resize p:nth-of-type(2) { background: #1f3ae0; }
@container (max-width: 30rem) { .resize-page { grid-template: minmax(0, 1fr) 4.5rem 4.5rem / 1fr 1fr; } .resize-page > :is(img, strong) { grid-area: 1 / 1 / 2 / 3; } .resize-page p:last-child { grid-column: span 2; } }
@container (max-width: 17rem) { .resize-page { grid-template: minmax(0, 1fr) 2.6rem 2.6rem 2.6rem / 1fr; } .resize-page > :is(img, strong) { grid-area: 1 / 1 / 2 / 2; } .resize-page p:last-child { grid-column: auto; } }
.resize > i { position: absolute; right: -1rem; top: 50%; width: .4rem; height: 3.4rem; margin-top: -1.7rem; border-radius: 1rem; background: #1f3ae0; }
.craft-type .craft-scene { padding: 1.8rem; background: #ff6a3d; color: #0b0e1a; display: grid; grid-template-rows: 1fr auto auto; gap: .8rem; }
.glyph { align-self: center; justify-self: center; font-size: min(58cqw, 66cqh); font-weight: 620; font-stretch: 100%; line-height: .9; letter-spacing: -.06em; }
.axis { display: grid; grid-template-columns: 4rem 1fr; align-items: center; font-weight: 600; font-size: .95rem; }
.craft-flow .craft-scene { display: grid; place-items: center; background: #d9f25f; }

@media (max-width: 60rem) {
  .build-intro { grid-template-columns: minmax(0, 1fr); }
  .studio-stage { height: clamp(22rem, 100svh - 36rem, 46rem); }
  .craft-grid article { grid-column: 1 / -1; }
}
@media (max-width: 47rem) {
  .studio-stage { height: 30rem; }
  .work-nav { inset-inline: 1.1rem; gap: .6rem; }
  .work-nav strong { font-size: 1.15rem; }
  .work-nav b { padding-inline: .8rem; font-size: .88rem; }
  .work-nav span { display: none; }
  .work-nav :is(strong, b) { white-space: nowrap; }
  .theme-websites .work-title { left: 1.1rem; top: 5rem; bottom: auto; font-size: 14.5cqw; }
  .work-panel { right: 1.1rem; left: 1.1rem; bottom: 1.1rem; width: auto; }
  .shop-vase { right: 0; bottom: auto; top: 5.5rem; height: 13.5rem; }
  .shop-word { inset: 0; place-items: start center; padding-top: 6.5rem; font-size: 38cqw; }
  .redesign { height: 34rem; }
  .theme-websites .redesign .work-title { font-size: 15cqw; }
}

@media screen and (prefers-reduced-motion: no-preference) {
  .has-motion .showcase.studio { --time: 9.5s; }
  /* The headline is drawn wide once, then again every 14 seconds. */
  /* One layer for type and frame, otherwise the moving frame leaves lines behind. */
  .has-motion .land-build h1 { will-change: transform; }
  .has-motion .type-live { animation: type-live 14s .3s cubic-bezier(.6, 0, .1, 1) infinite both; }
  .has-motion .type-live i { animation: type-frame 14s .3s infinite both; }

  /* One website in 9.5 seconds: draft, click, design, use. */
  .has-motion .work { display: none; }
  .has-motion .studio:has([value="gastro"]:checked) .work-gastro, .has-motion .studio:has([value="energie"]:checked) .work-energie, .has-motion .studio:has([value="shop"]:checked) .work-shop { display: block; }
  .has-motion .draft { display: block; position: absolute; inset: 0; background: radial-gradient(circle, #b9c2da 1px, #0000 1.5px) 0 0 / 1.6rem 1.6rem #eaedf6; }
  .draft i { position: absolute; border: 2px solid #1f3ae0; border-radius: .4rem; background: #1f3ae01a; animation: draft-box .55s var(--out) both; transform-origin: 0 0; }
  .draft i:nth-child(1) { left: 2rem; top: 1.4rem; width: 8rem; height: 2.2rem; }
  .draft i:nth-child(2) { right: 2rem; top: 1.4rem; width: 20rem; max-width: 40%; height: 2.2rem; animation-delay: .12s; }
  .draft i:nth-child(3) { left: 2rem; bottom: 43%; width: 34%; height: 18%; animation-delay: .3s; }
  .draft i:nth-child(4) { left: 2rem; bottom: 2rem; width: 46%; height: 18%; animation-delay: .42s; }
  .draft i:nth-child(5) { right: 2rem; bottom: 2rem; width: 19rem; max-width: 80%; height: 13rem; animation-delay: .6s; }
  .draft i:nth-child(6) { right: 3.1rem; bottom: 11rem; width: 8rem; height: 2rem; animation-delay: .78s; }
  .draft i:nth-child(7) { right: 3.1rem; bottom: 3.1rem; width: 16.8rem; max-width: 70%; height: 2.6rem; animation-delay: .9s; }
  .has-motion .final { animation: final-open 1.3s 1.7s cubic-bezier(.65, 0, .2, 1) both; }
  .has-motion .work-title i { animation: title-rise 1.1s 2.3s var(--out) both; }
  .has-motion .work-title span + span i { animation-delay: 2.45s; }
  .has-motion .studio .work-panel { animation: panel-in .9s 2.9s var(--spring) both; }
  .has-motion .work-nav { animation: nav-in .8s 2.6s var(--out) both; }
  .has-motion .work > .final > img:first-child { animation: photo-settle 9s 1.7s cubic-bezier(.1, .6, .2, 1) both; }
  .has-motion .cursor { display: block; position: absolute; z-index: 3; left: 0; top: 0; width: 1.5rem; height: 1.7rem; filter: drop-shadow(0 3px 5px #0005); }
  .cursor::before { content: ""; position: absolute; inset: 0; background: var(--cursor, #1f3ae0); clip-path: polygon(0 0, 100% 62%, 52% 66%, 28% 100%); }
  .cursor b { position: absolute; left: 1.2rem; top: 1.5rem; padding: .2rem .7rem; border-radius: .2rem 1rem 1rem; background: var(--cursor, #1f3ae0); color: #fff; font-size: .82rem; font-weight: 600; }
  .cursor-design { animation: cursor-design 3.1s cubic-bezier(.5, 0, .2, 1) both; }
  .cursor-visitor { --cursor: #c2380f; }
  .work-energie .cursor-visitor b { left: auto; right: .6rem; border-radius: 1rem .2rem 1rem 1rem; }
  .has-motion .cursor-visitor { left: auto; top: auto; right: 2rem; bottom: 2rem; animation: cursor-gastro 5.6s 3.4s cubic-bezier(.5, 0, .2, 1) both; }
  .has-motion .work-energie .cursor-visitor { animation-name: cursor-energie; }
  .has-motion .work-shop .cursor-visitor { animation-name: cursor-shop; }
  .has-motion .chips span:nth-child(2) { animation: chip-on .25s 4.5s both; }
  .has-motion .chips:nth-child(2) span:nth-child(2) { animation-delay: 5.4s; }
  .has-motion .chips:nth-child(3) span:nth-child(2) { animation-delay: 6.2s; }
  .has-motion .studio .work-button { animation: scene-press .35s 7.2s both; }
  .has-motion .work-button span:last-child { animation: button-done .6s 7.4s var(--out) both; }
  .has-motion .usage-value { animation: usage-count 2.6s 3.2s cubic-bezier(.2, .6, .2, 1) both; }
  .has-motion .usage-line { stroke-dasharray: 1; animation: draw 2.6s 3.2s ease-in-out both; }
  .has-motion .usage-area { animation: appear 1s 5.2s both; }
  .has-motion .usage-switch i { animation: switch-on .4s 7s both; }
  .has-motion .usage-switch i::after { animation: switch-knob .4s 7s var(--out) both; }
  /* Each example opens its own way: the shop sweeps in diagonally, energy grows out of a card, gastronomy opens from the click. */
  .has-motion .work-shop .final { animation: final-sweep 1.2s 1.7s cubic-bezier(.7, 0, .2, 1) both, shop-ground 5.5s 4s both; }
  .has-motion .work-energie .final { animation: final-grow 1.3s 1.7s cubic-bezier(.65, 0, .2, 1) both; }
  .has-motion .shop-word { animation: shop-word 1.6s 2s var(--out) both; }
  .has-motion .shop-vase { animation: shop-vase 1.5s 2.1s var(--spring) both, shop-glaze 5.5s 4s both; }

  .has-motion .redesign:not(.is-manual) .redesign-new { animation: redesign 11s cubic-bezier(.65, 0, .2, 1) infinite both; }
  .has-motion .redesign:not(.is-manual) .redesign-handle { animation: redesign-handle 11s cubic-bezier(.65, 0, .2, 1) infinite both; }
  .redesign-handle::after { content: ""; position: absolute; left: -1.6rem; top: 50%; width: 3rem; aspect-ratio: 1; margin-top: -1.5rem; border-radius: 50%; background: #fff; box-shadow: 0 .4rem 1.4rem #0006; }
  .has-motion .redesign .work-nav { animation: none; }
  .has-motion .redesign .work-title i { animation: redesign-title 11s var(--out) infinite both; }
  .has-motion .redesign .work-button span:last-child { animation: redesign-done 11s infinite both; }
  .has-motion .redesign:not(.is-manual) .lawyer-doc { animation: lawyer-doc 11s var(--out) infinite both; }
  .has-motion .redesign:not(.is-manual) .lawyer-doc path { stroke-dasharray: 1; animation: lawyer-sign 11s ease-in-out infinite both; }
  .has-motion .redesign:not(.is-manual) .lawyer-stamp { animation: lawyer-stamp 11s var(--spring) infinite both; }

}
@media (max-width: 47rem) {
  .draft i:nth-child(n) { left: 1.1rem; right: 1.1rem; }
  .draft i:nth-child(1) { right: 60%; }
  .draft i:nth-child(2) { left: 58%; width: auto; }
  .draft i:nth-child(3) { top: 5.4rem; bottom: auto; width: 70%; height: 3rem; }
  .draft i:nth-child(4) { top: 9rem; bottom: auto; width: 82%; height: 3rem; }
  .draft i:nth-child(5) { bottom: 1.1rem; width: auto; max-width: none; }
  .draft i:nth-child(n + 6) { left: 2.1rem; right: 2.1rem; width: auto; max-width: none; }
}
@property --kwh { syntax: "<integer>"; inherits: true; initial-value: 34; }
@keyframes type-live { from, 4% { font-stretch: 75%; font-weight: 300; } 20%, 84% { font-stretch: 100%; font-weight: 600; } to { font-stretch: 75%; font-weight: 300; } }
@keyframes type-frame { from { opacity: 0; } 2%, 23% { opacity: 1; } 27%, 80% { opacity: 0; } 83%, to { opacity: 1; } }
@keyframes draft-box { from { opacity: 0; scale: 0; } }
@keyframes final-sweep { from { clip-path: polygon(0 0, 0 0, -40% 100%, 0 100%); } to { clip-path: polygon(0 0, 140% 0, 100% 100%, 0 100%); } }
@keyframes final-grow { from { clip-path: inset(34% 30% 30% 34% round 1.2rem); scale: 1.08; } 60% { scale: 1.02; } to { clip-path: inset(0 round 0); scale: 1; } }
@keyframes final-open { from { clip-path: circle(0 at 46% 52%); } to { clip-path: circle(125% at 46% 52%); } }
@keyframes title-rise { from { translate: 0 115%; rotate: 4deg; } }
@keyframes panel-in { from { opacity: 0; translate: 0 5rem; scale: .85; } }
@keyframes nav-in { from { opacity: 0; translate: 0 -2rem; } }
@keyframes photo-settle { from { scale: 1.25; } }
@keyframes cursor-design { from { opacity: 0; translate: 90cqw 100cqh; } 18% { opacity: 1; } 50%, 58% { translate: 46cqw 52cqh; scale: 1; } 54% { scale: .75; } 80% { opacity: 1; translate: 46cqw 52cqh; } to { opacity: 0; translate: 30cqw 90cqh; } }
@keyframes cursor-gastro { from { opacity: 0; translate: -26rem -2rem; } 10% { opacity: 1; } 18%, 22% { translate: -5.8rem -10.2rem; } 34%, 38% { translate: -5.8rem -7.5rem; } 48%, 54% { translate: -5.8rem -4.8rem; } 66%, 90% { opacity: 1; translate: -8rem -1rem; } to { opacity: 0; translate: -8rem -1rem; } }
@keyframes cursor-energie { from { opacity: 0; translate: -28rem -4rem; } 15% { opacity: 1; translate: -16rem -6rem; } 45% { translate: -7rem -8rem; } 62%, 90% { opacity: 1; translate: -1.6rem -.8rem; } to { opacity: 0; translate: -1.6rem -.8rem; } }
@keyframes cursor-shop { from { opacity: 0; translate: -26rem -2rem; } 8% { opacity: 1; } 16%, 26% { translate: -14rem -4.6rem; } 38%, 48% { translate: -11.5rem -4.6rem; } 66%, 90% { opacity: 1; translate: -8rem -1rem; } to { opacity: 0; translate: -8rem -1rem; } }
@keyframes chip-on { from { background: #f0eeea; color: #0b0e1a; } }
@keyframes button-done { from { translate: 0 100%; } }
@keyframes usage-count { from { --kwh: 0; } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes appear { from { opacity: 0; } }
@keyframes switch-on { from { background: #a9b1c6; } }
@keyframes switch-knob { from { translate: 0 0; } }
@keyframes shop-ground { from, 10% { background: #f2b632; } 14%, 32% { background: #ff8f6b; } 37%, to { background: #f2b632; } }
@keyframes shop-glaze { from, 10% { filter: drop-shadow(0 2rem 1.6rem #0007) hue-rotate(0deg); } 14%, 32% { filter: drop-shadow(0 2rem 1.6rem #0007) hue-rotate(-75deg); } 37%, to { filter: drop-shadow(0 2rem 1.6rem #0007) hue-rotate(0deg); } }
@keyframes shop-word { from { font-stretch: 75%; font-weight: 300; opacity: 0; } }
@keyframes shop-vase { from { translate: 0 110%; rotate: -14deg; } }
@keyframes redesign { from, 14% { clip-path: inset(0 0 0 100%); } 36%, 88% { clip-path: inset(0); } to { clip-path: inset(0 0 0 100%); } }
@keyframes redesign-handle { from, 14% { left: calc(100% - 4px); opacity: 1; } 36% { left: 0; opacity: 1; } 39%, 86% { left: 0; opacity: 0; } 88% { left: 0; opacity: 1; } to { left: calc(100% - 4px); opacity: 1; } }
@keyframes redesign-title { from, 22% { translate: 0 115%; } 38%, to { translate: 0 0; } }
@keyframes lawyer-doc { from, 24% { translate: 0 3rem; opacity: 0; } 36%, to { translate: 0 0; opacity: 1; } }
@keyframes lawyer-sign { from, 40% { stroke-dashoffset: 1; } 52%, to { stroke-dashoffset: 0; } }
@keyframes lawyer-stamp { from, 54% { scale: 1.8; opacity: 0; } 58%, to { scale: 1; opacity: .85; } }
@keyframes redesign-done { from, 60% { translate: 0 100%; } 65%, to { translate: 0 0; } }

/* Play: every example runs first, then the visitor takes over (public/assets/website-play.mjs). */
.theme-websites .land-build { position: relative; background: radial-gradient(42rem 30rem at var(--mx, 78%) var(--my, 25%), #5b6cff4d, #0000 70%), radial-gradient(40rem 28rem at 0 100%, #ff6a3d2e, #0000 70%), var(--ground); }
.type-live { background: linear-gradient(90deg, #a9b6ff, #ff8ac6 40%, #ff6a3d 65%, #d9f25f) 0 0 / 200% 100%; -webkit-background-clip: text; background-clip: text; color: #0000; }
.studio-stage { background: #1a1640; }
.is-free :is(.work, .work *) { animation: none !important; }
.is-free .cursor { display: none !important; }
.is-free :is(.chips span, .swatches i, .work-button, .usage-switch) { cursor: pointer; }
.is-free .chips span { background: #f0eeea; color: #0b0e1a; transition: background .2s, color .2s; }
.is-free .chips span:hover { box-shadow: inset 0 0 0 2px #8c2f1b; }
.is-free .chips span.is-on { background: #8c2f1b; color: #fff; }
.is-free .work-button span:last-child { translate: 0 100%; transition: translate .4s cubic-bezier(.16, 1, .3, 1); }
.is-free .work-button.is-on span:last-child { translate: 0 0; }
.is-free .usage-switch i { transition: background .3s; }
.is-free .usage-switch i::after { transition: translate .3s cubic-bezier(.16, 1, .3, 1); }
.is-free .usage-switch:not(.is-on) i { background: #a9b1c6; }
.is-free .usage-switch:not(.is-on) i::after { translate: 0 0; }
.swatches i.is-on { box-shadow: 0 0 0 3px #fff, 0 0 0 5px #0b0e1a; }
.is-free .work-shop .final { transition: background .5s; }
.is-free .shop-vase { transition: filter .5s; }

.theme-websites .redesign-hint, .theme-websites .craft-intro { margin-top: 1rem; font-size: 1.1rem; opacity: .85; }
.redesign-new { clip-path: inset(0 0 0 calc(var(--pos, 0) * 1%)); }
.redesign-handle { display: block; position: absolute; top: 0; bottom: 0; z-index: 2; left: calc(var(--pos, 0) * 1%); border-left: 4px solid #fff; pointer-events: none; }
.redesign-handle::after { content: ""; position: absolute; left: -1.6rem; top: 50%; width: 3rem; aspect-ratio: 1; margin-top: -1.5rem; border-radius: 50%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b0e1a' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M9 6l-5 6 5 6M15 6l5 6-5 6'/%3E%3C/svg%3E") center / 1.4rem no-repeat; box-shadow: 0 .4rem 1.4rem #0006; }
.redesign-range, .resize-range { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
:is(.redesign, .craft-scene):has(input:focus-visible) { outline: 3px solid #d9f25f; outline-offset: 4px; }
.redesign.is-manual * { animation: none !important; }

.craft-badge { position: absolute; z-index: 1; left: 1rem; top: 1rem; padding: .3rem .8rem; border-radius: 2rem; background: #0b0e1a; color: #fff; font-size: .8rem; font-weight: 650; }
.resize { width: 100%; margin-inline: auto; }
.craft-type .craft-scene { grid-template-rows: 1fr auto auto; }
.glyph { max-width: 100%; padding-bottom: .12em; outline: 0; cursor: text; white-space: nowrap; }
.glyph:focus-visible { outline: 3px dashed #0b0e1a; outline-offset: .1em; }
.axis input { width: 100%; margin: 0; accent-color: #0b0e1a; cursor: pointer; }


.craft-flow .craft-scene { color: #3d4a00; container-type: normal; height: auto; min-height: clamp(20rem, 32vw, 29rem); padding: 1.5rem 1.5rem 3rem; }
.flow-app { position: relative; display: grid; gap: 1rem; width: min(27rem, 100%); padding: 1.3rem; border-radius: 1.2rem; background: #fff; color: #0b0e1a; box-shadow: 0 1.4rem 3rem #4a5a0040; }
.theme-websites .flow-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; margin: 0; padding: 0; list-style: none; font-size: .8rem; font-weight: 650; color: #6b7390; }
.flow-steps li { padding-top: .45rem; border-top: 4px solid #e3e7f2; transition: border-color .3s, color .3s; }
.flow-steps li.is-done { border-color: #1f3ae0; color: #0b0e1a; }
.flow-step { display: grid; gap: .7rem; }
.flow-step[hidden], .flow-done[hidden] { display: none; }
.flow-step b { font-size: 1.3rem; letter-spacing: -.03em; }
.flow-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.flow-app button, .flow-app input { min-height: 2.9rem; padding: .6rem .5rem; border: 2px solid #e3e7f2; border-radius: .8rem; background: #f5f6fb; color: inherit; font: inherit; font-size: .92rem; font-weight: 650; cursor: pointer; }
.flow-app input { width: 100%; padding-inline: .8rem; background: #fff; font-weight: 500; cursor: text; }
.flow-app button:hover { border-color: #1f3ae0; }
.flow-app :is(button, input):focus-visible { outline: 3px solid #1f3ae0; outline-offset: 2px; }
.flow-options .is-on { background: #1f3ae0; border-color: #1f3ae0; color: #fff; }
form.flow-step label { display: grid; gap: .5rem; }
.flow-app [type="submit"] { background: #0b0e1a; border-color: #0b0e1a; color: #fff; }
.theme-websites .flow-done { position: static; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .8rem; padding: 1rem; border-radius: 1rem; background: #0b0e1a; color: #fff; }
.flow-done svg { width: 2.6rem; height: 2.6rem; border-radius: 50%; background: #d9f25f; fill: none; stroke: #0b0e1a; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.theme-websites .flow-done p { margin: 0; }
.flow-done p b { display: block; font-size: 1.2rem; }
.flow-done p span { font-size: .9rem; opacity: .8; }
.flow-done :is(button, .button) { grid-column: 1 / -1; }
.flow-done button { background: #fff; color: #0b0e1a; }
.theme-websites .flow-done .button { min-height: 2.9rem; justify-content: center; }
.theme-websites .flow-note { position: absolute; left: 0; right: 0; bottom: .8rem; margin: 0; text-align: center; font-size: .82rem; font-weight: 600; color: #3d4a00; }
.flow-cursor { display: none; --cursor: #c2380f; }

@media screen and (prefers-reduced-motion: no-preference) {
  .has-motion .type-live { animation-name: type-live, hero-shine; animation-duration: 14s, 8s; animation-direction: normal, alternate; }
  .has-motion .flow-cursor { display: none; }
  .has-motion .is-demo .flow-cursor { display: block; transition: translate .7s cubic-bezier(.5, 0, .2, 1); }
  .has-motion :is(.flow-step, .flow-done):not([hidden]) { animation: scene-up .45s var(--out) both; }
  .has-motion .flow-done:not([hidden]) path { stroke-dasharray: 1; animation: draw .6s .25s ease-out both; }
  .has-motion .redesign:not(.is-manual) .redesign-handle::after { animation: hint-bob 2.4s ease-in-out infinite; }
}
@keyframes hero-shine { to { background-position: 100% 0; } }
@keyframes hint-bob { 50% { translate: 0 -.3rem; } }
@media (max-width: 47rem) {
  .flow-options { grid-template-columns: minmax(0, 1fr); }
}

/* Before and after, framed as one browser window with a glowing edge. */
.redesign-frame { position: relative; margin-top: clamp(1.6rem, 3vw, 3rem); padding: 2px; border-radius: 1.4rem; background: linear-gradient(120deg, #7f95ff, #ff8ac6 45%, #d9f25f); box-shadow: 0 2rem 6rem -1rem #7f95ff59, 0 0 0 1px #fff1; }
.redesign-frame::before { content: ""; position: absolute; inset: 8% 10% -6%; z-index: -1; background: radial-gradient(closest-side, #ff8ac666, #7f95ff33 60%, #0000); filter: blur(3rem); }
.redesign-bar { display: flex; align-items: center; gap: .45rem; padding: .7rem 1rem; border-radius: 1.25rem 1.25rem 0 0; background: #15122f; }
.redesign-bar i { width: .7rem; aspect-ratio: 1; border-radius: 50%; background: #ff6a5f; }
.redesign-bar i:nth-child(2) { background: #ffbd3d; }
.redesign-bar i:nth-child(3) { background: #3ccf6e; }
.redesign-bar span { flex: 0 1 22rem; margin-inline: auto; padding: .3rem 1rem; border-radius: 2rem; background: #241f4d; color: #c9c6e8; font-size: .8rem; text-align: center; }
.old-counter { font-family: "Courier New", monospace; }
.old-counter span { padding: .1rem .4rem; background: #000; color: #3f3; letter-spacing: .15em; }
.theme-websites .redesign-old .old-foot { font-size: .8rem; font-style: italic; color: #555; }
.redesign-old mark { padding: 0 .3rem; background: #ff0; color: #f00; font-weight: 700; }
.theme-websites .redesign-notes { position: absolute; bottom: 1.4rem; display: flex; flex-wrap: wrap; gap: .5rem; max-width: 45%; margin: 0; padding: 0; list-style: none; font-family: inherit; }
.redesign-old .redesign-notes { left: 1.4rem; font-family: Inter, system-ui, sans-serif; }
.redesign-new .redesign-notes { right: 1.4rem; justify-content: flex-end; }
.redesign-notes li { padding: .4rem .9rem .4rem .7rem; border-radius: 2rem; font-size: .85rem; font-weight: 650; box-shadow: 0 .6rem 1.4rem #0003; }
.redesign-old .redesign-notes li { background: #ffe1dc; color: #a0170a; }
.redesign-new .redesign-notes li { background: #d9f25f; color: #10382d; }
.redesign-old .redesign-notes li::before { content: "✕  "; }
.redesign-new .redesign-notes li::before { content: "✓  "; }
.redesign-new { background: radial-gradient(60% 80% at 85% 20%, #2d7a5f 0, #0000 70%), radial-gradient(50% 60% at 10% 100%, #1d5c8a66 0, #0000 70%), #0c2e25; }
.lawyer-hero { position: absolute; left: 2.4rem; top: 50%; translate: 0 -46%; width: min(52%, 38rem); }
.lawyer-hero small { display: inline-block; padding: .3rem .8rem; border: 1px solid #d9f25f66; border-radius: 2rem; color: #d9f25f; font-size: .8rem; font-weight: 600; letter-spacing: .02em; }
.theme-websites .redesign .lawyer-hero .work-title { position: static; margin: 1rem 0; font-size: min(6.4cqw, 11.5cqh); }
.theme-websites .lawyer-hero .work-title span:last-child i { color: #d9f25f; font-style: italic; }
.theme-websites .lawyer-hero > p { max-width: 28rem; margin: 0; color: #c8dbd3; font-size: clamp(.9rem, 1.6cqw, 1.1rem); }
.redesign .work-panel.lawyer { top: auto; bottom: 4.6rem; right: 21%; width: 16rem; translate: none; rotate: -2deg; box-shadow: 0 2rem 4rem #04140f99; }
.theme-websites .lawyer-trust { display: flex; gap: 1.6rem; margin: 1.4rem 0 0; padding: 1.1rem 0 0; border-top: 1px solid #ffffff26; list-style: none; color: #c8dbd3; font-size: clamp(.75rem, 1.2cqw, .9rem); }
.lawyer-trust b { display: block; color: #fff; font: 400 clamp(1.1rem, 2.2cqw, 1.7rem) / 1.1 Newsreader, Georgia, serif; }
.lawyer-doc { position: absolute; right: 3.4%; top: 17%; width: min(27%, 22rem); height: 66%; padding: 1.4rem; border-radius: .5rem; background: #f6f1e7; color: #13261f; rotate: 3deg; box-shadow: 0 2.4rem 5rem #04140fb3; display: grid; align-content: start; gap: .7rem; }
.lawyer-doc > b { font: 400 clamp(1.1rem, 2cqw, 1.6rem) / 1 Newsreader, Georgia, serif; }
.lawyer-doc small { margin-top: -.4rem; color: #6b7a72; font-size: .72rem; }
.lawyer-doc i { height: .45rem; border-radius: 1rem; background: #13261f1f; }
.lawyer-doc i:nth-of-type(2n) { width: 78%; }
.lawyer-doc mark { justify-self: start; padding: .15rem .4rem; background: linear-gradient(transparent 35%, #d9f25f 35%); color: #13261f; font-size: .8rem; font-weight: 650; }
.lawyer-doc svg { position: absolute; right: 1.4rem; bottom: 6rem; width: 55%; fill: none; stroke: #1d3a8f; stroke-width: 2; stroke-linecap: round; }
.lawyer-stamp { position: absolute; right: 1rem; bottom: 1rem; display: grid; place-items: center; width: 4.6rem; aspect-ratio: 1; border: 2px solid #c2380f; border-radius: 50%; color: #c2380f; font-size: .72rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; rotate: -14deg; opacity: .85; }
@media (max-width: 47rem) {
  .lawyer-doc, .theme-websites .lawyer-trust, .lawyer-hero > p:not(.work-title), .lawyer-hero small, .old-foot { display: none; }
  .lawyer-hero { left: 1.1rem; top: 4.8rem; translate: none; width: auto; right: 1.1rem; }
  .theme-websites .redesign .lawyer-hero .work-title { margin: 0; font-size: 11cqw; }
  .redesign .work-panel.lawyer { top: auto; bottom: 4.6rem; left: 1.1rem; right: 1.1rem; width: auto; translate: none; rotate: none; }
  .theme-websites .redesign-notes { bottom: 1rem; max-width: 70%; }
  .redesign-notes li { font-size: .75rem; }
}

/* Colour editor: a small site the visitor designs. */
.craft-color .craft-scene { display: grid; grid-template-columns: minmax(0, 1fr) minmax(8.5rem, 12rem); align-items: center; gap: 1.2rem; padding: 1.4rem; background: #0b0e1a; }
.color-site { --ground: 250; --ink: 250; --accent: 250; display: grid; align-content: start; gap: .8rem; height: 100%; padding: 1rem; border-radius: 1rem; background: hsl(var(--ground) 60% 94%); color: hsl(var(--ink) 50% 16%); cursor: pointer; transition: background .2s, color .2s; outline: 2px dashed #0000; outline-offset: 3px; }
.color-site [data-part] { outline: 2px dashed #0000; outline-offset: 3px; border-radius: .3rem; cursor: text; }
.color-site.is-picked, .color-site [data-part].is-picked { outline-color: #7f95ff; }
.color-site [contenteditable]:focus-visible { outline: 2px solid #1f3ae0; }
.color-nav { display: flex; align-items: center; gap: .4rem; font-size: .85rem; }
.color-nav b { margin-right: auto; white-space: nowrap; overflow: hidden; }
.color-nav i { width: 1.6rem; height: .35rem; border-radius: 1rem; background: currentColor; opacity: .3; }
.color-site strong { font-size: clamp(1.3rem, 8cqw, 2.3rem); font-weight: 650; line-height: 1; letter-spacing: -.05em; overflow-wrap: anywhere; }
.theme-websites .color-site p { margin: -.2rem 0 0; color: inherit; font-size: .85rem; opacity: .8; }
.color-button { justify-self: start; padding: .6rem 1rem; border-radius: 2rem; background: hsl(var(--accent) 85% 55%); color: var(--on-accent, #fff); font-size: .85rem; font-weight: 700; white-space: nowrap; box-shadow: 0 .8rem 1.6rem hsl(var(--accent) 85% 45% / .35); transition: background .2s; }
.color-site { grid-template-rows: auto auto auto auto minmax(0, 1fr); }
.color-photo { position: relative; min-height: 0; overflow: hidden; border-radius: .7rem; }
.color-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.color-photo::after { content: ""; position: absolute; inset: 0; background: hsl(var(--accent) 85% 55% / .3); mix-blend-mode: multiply; transition: background .2s; }
.color-tools { display: grid; justify-items: center; gap: .9rem; }
.color-parts { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem; }
.color-parts button { padding: .35rem .75rem; border: 1.5px solid #4a526b; border-radius: 2rem; background: none; color: #fff; font: inherit; font-size: .78rem; font-weight: 600; cursor: pointer; }
.color-parts button:hover { border-color: #7f95ff; }
.color-parts [aria-pressed="true"] { background: #7f95ff; border-color: #7f95ff; color: #0b0e1a; }
.color-parts button:focus-visible { outline: 3px solid #d9f25f; outline-offset: 2px; }
.color-wheel { --hue: 250; --tone: 85% 55%; position: relative; width: min(100%, 9.5rem); aspect-ratio: 1; border-radius: 50%; background: conic-gradient(hsl(0 85% 55%), hsl(60 85% 55%), hsl(120 85% 55%), hsl(180 85% 55%), hsl(240 85% 55%), hsl(300 85% 55%), hsl(360 85% 55%)); cursor: grab; touch-action: none; }
.color-wheel::before { content: ""; position: absolute; inset: 20%; border-radius: 50%; background: #0b0e1a; }
.color-wheel i { position: absolute; inset: 0; rotate: calc(var(--hue) * 1deg); pointer-events: none; }
.color-wheel i::after { content: ""; position: absolute; left: 50%; top: 1%; width: 18%; aspect-ratio: 1; translate: -50% 0; border: 4px solid #fff; border-radius: 50%; background: hsl(var(--hue) var(--tone)); box-shadow: 0 0 0 2px #0b0e1a; }
.color-wheel:active { cursor: grabbing; }
.theme-websites .color-check { margin: 0; color: #d9f25f; font: .72rem / 1.4 ui-monospace, Menlo, Consolas, monospace; text-align: center; }
.theme-websites .color-check::before { content: "✓ "; }
/* Photos: the old site shows a small framed office picture, the new one a full-height team photo behind the contract. */
.old-photo { display: inline-block; margin: 0 0 .6rem; padding: .3rem; border: 3px ridge #ccc; background: #fff; }
.old-photo img { display: block; width: 9rem; height: 6rem; object-fit: cover; filter: saturate(.5) contrast(.9); image-rendering: pixelated; }
.old-photo figcaption { font-size: .8rem; color: #000080; }
.lawyer-photo { position: absolute; inset: 0 0 0 46%; }
.lawyer-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.lawyer-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #0c2e25 0, #0c2e25cc 25%, #0c2e2559 60%, #0c2e2599), linear-gradient(#0c2e2599, #0000 30%); }
@media (max-width: 47rem) { .lawyer-photo { inset: 0; opacity: .35; } .old-photo { display: none; } }
@media (max-width: 47rem) {
  /* Narrow screens: the sample site on top, parts, wheel and contrast below it. */
  .craft-color .craft-scene { grid-template-columns: minmax(0, 1fr); height: auto; container-type: normal; }
  .color-site { height: 26rem; }
  .color-tools { grid-template-columns: minmax(0, 1fr) 8rem; align-items: center; justify-items: start; }
  .color-parts { justify-content: start; }
  .color-wheel { grid-row: span 2; }
  .theme-websites .color-check { text-align: left; }
}
