/* Taschendaten 2.0 – front page chapters (design variant D) and their motion. */

/* 1 Hero */
.hero { position: relative; min-height: calc(940px * var(--k-hero)); padding: calc(200px * var(--k-hero)) 0 calc(120px * var(--k)); background: radial-gradient(1100px 700px at 78% 45%, var(--glow-blue), rgba(45, 140, 255, 0) 70%), radial-gradient(700px 500px at 8% 100%, var(--glow-cyan), rgba(87, 199, 255, 0) 70%), var(--brand-midnight); }
.hero__grid { position: relative; align-items: start; }
.hero__copy { grid-column: 1 / span 6; position: relative; z-index: 2; }
.hero__lead { margin-top: 40px; max-width: 470px; font-size: 20px; line-height: 1.6; color: var(--text-secondary); }
.hero__copy .actions { margin-top: 48px; }
.hero__comp { grid-column: 7 / span 6; position: relative; height: 700px; margin-right: -220px; }
.hero__comp .frame { position: absolute; }
.hero__comp-back { top: -40px; left: 200px; width: 660px; border-radius: 14px; }
.hero__comp-mid { top: 210px; left: 0; width: 640px; border-radius: 14px; }
.hero__comp-front { top: 455px; left: 440px; width: 360px; border-radius: 16px; }
.hero__comp-back .frame__chrome { height: 38px; }
.hero__comp-mid .frame__bar { height: 30px; }

@media (prefers-reduced-motion: no-preference) {
  :root:not([data-motion="off"]) .hero__copy > :not(h1), :root:not([data-motion="off"]) .hero__line { animation: td-rise 1000ms var(--ease) both; }
  :root:not([data-motion="off"]) .hero__line + br + .hero__line { animation-delay: 120ms; }
  :root:not([data-motion="off"]) .hero__lead { animation-delay: 240ms; }
  :root:not([data-motion="off"]) .hero__copy .actions { animation-delay: 360ms; }
  :root:not([data-motion="off"]) .hero__comp .frame { animation: td-comp 1300ms var(--ease) both; }
  :root:not([data-motion="off"]) .hero__comp-back { animation-delay: 150ms; }
  :root:not([data-motion="off"]) .hero__comp-mid { animation-delay: 330ms; }
  :root:not([data-motion="off"]) .hero__comp-front { animation-delay: 510ms; }
}
/* inline-block for the rise animation; max-width lets a long word break instead of running out of the box. */
.hero__line { display: inline-block; max-width: 100%; }
/* Pointer and scroll parallax: three depths. */
@media (min-width: 1101px) {
  .is-motion .hero__comp .frame { will-change: transform; }
  .is-motion .hero__comp-back { transform: translate3d(calc(var(--px, 0) * -14px), calc(var(--py, 0) * -10px + var(--sy, 0) * -40px), 0); }
  .is-motion .hero__comp-mid { transform: translate3d(calc(var(--px, 0) * 12px), calc(var(--py, 0) * 8px + var(--sy, 0) * -110px), 0); }
  .is-motion .hero__comp-front { transform: translate3d(calc(var(--px, 0) * 30px), calc(var(--py, 0) * 20px + var(--sy, 0) * -190px), 0); }
}

/* 2 Products */
.products { padding: calc(80px * var(--k)) 0 calc(200px * var(--k)); }
.products__head { align-items: end; }
.products__head > div { grid-column: 1 / span 9; }
.products__head .h-xl { margin-top: 20px; }
.products__all { grid-column: 10 / span 3; justify-self: end; padding-bottom: 12px; font-weight: 600; }
.product { align-items: center; }
.product--1 { margin-top: calc(128px * var(--k)); }
.product--2 { margin-top: calc(200px * var(--k)); }
.product--1 .product__visual { grid-column: 1 / span 8; margin-left: -140px; }
.product--1 .product__copy { grid-column: 9 / span 4; padding-left: 40px; }
.product--2 .product__copy { grid-column: 1 / span 4; padding-right: 40px; }
.product--2 .product__visual { grid-column: 5 / span 8; margin-right: -56px; order: 1; }
.product.product--text .product__copy { grid-column: 1 / -1; max-width: 720px; padding: 0; }
.product__copy .h-l { margin-top: 16px; }
.product__lead { margin-top: 24px; font-size: 20px; line-height: 1.55; color: var(--text-secondary); }
.product__features { margin-top: 32px; font-size: 15px; line-height: 1.9; color: var(--text-muted); }
.product__price { margin-top: 32px; font: 700 30px/1.2 var(--font-display); }
.product__price-suffix { font: 400 15px/1.5 var(--font-sans); color: var(--text-muted); }
.product__note { margin-top: 6px; font-size: 15px; line-height: 1.55; color: var(--text-muted); }
.product .actions { margin-top: 32px; }
.product__more { display: inline-block; margin-top: 16px; font-size: 15px; color: var(--text-secondary); }
/* Screens settle into place while they scroll in (scroll-driven, no JS). */
@supports (animation-timeline: view()) {
  .is-motion .product__visual { animation: td-settle linear both; animation-timeline: view(); animation-range: entry 0% cover 38%; }
  .is-motion .case__phone { animation: td-float linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
}
@keyframes td-settle { from { opacity: 0.25; scale: 0.9; translate: 0 90px; } to { opacity: 1; scale: 1; translate: 0 0; } }
@keyframes td-float { from { translate: 0 120px; } to { translate: 0 -60px; } }
.more { margin-top: calc(200px * var(--k)); }
.more .grid { align-items: start; }
.more__eyebrow { grid-column: 1 / span 3; padding-top: 10px; }
.more__body { grid-column: 4 / span 9; }
.more__product { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 32px; align-items: baseline; padding-bottom: 28px; color: var(--text-primary); }
.more__product:hover { text-decoration: none; }
.more__product:hover .more__link { text-decoration: underline; }
.more__name { font: 700 30px/1.2 var(--font-display); }
.more__soon { font: 600 13px/1 var(--font-sans); color: var(--accent-cyan); vertical-align: middle; }
.more__price { font: 700 22px/1.3 var(--font-display); }
.more__desc { font-size: 17px; color: var(--text-secondary); }
.more__link { font-size: 15px; font-weight: 600; color: var(--link); }
.more__product + .more__product { padding-top: 28px; border-top: 1px solid var(--border); }
.more__all { margin-bottom: 28px; }
.maint { padding-top: 28px; border-top: 1px solid var(--border); }
.maint__head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 16px 32px; }
.maint__title { font: 700 30px/1.2 var(--font-display); }
.maint__head .link-strong { font-size: 15px; }
.maint__text { margin-top: 8px; font-size: 17px; color: var(--text-secondary); }
.maint__tiers { margin-top: 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.tier { padding: 24px; border: 1px solid var(--border); border-radius: var(--radius-l); background: rgba(13, 27, 42, 0.6); }
.tier--recommended { border-color: var(--border-strong); background: var(--surface); }
.tier__name { font-size: 15px; font-weight: 600; color: var(--text-secondary); }
.tier--recommended .tier__name { color: var(--text-primary); }
.tier__badge { color: var(--link); }
.tier__price { margin-top: 6px; font: 700 30px/1.2 var(--font-display); }
.tier__period { font: 400 15px/1.5 var(--font-sans); color: var(--text-muted); }
.tier__desc { margin-top: 10px; font-size: 15px; line-height: 1.55; color: var(--text-muted); }
.maint__note { margin-top: 24px; font-size: 15px; color: var(--text-muted); }
.terms { margin-top: 72px; font: 600 22px/1.5 var(--font-display); }
.terms__legal { margin-top: 16px; font-size: 13px; color: var(--text-muted); }

/* 3 Philosophy */
.philosophy { padding: calc(200px * var(--k)) 0 calc(160px * var(--k)); }
.philosophy__headline { margin-top: 32px; max-width: 1100px; line-height: 1.08; }
.is-motion .philosophy__headline.is-filling .w { opacity: 0.16; transition: opacity 450ms var(--ease); }
.is-motion .philosophy__headline.is-filling .w.on { opacity: 1; }
.principles { margin-top: calc(128px * var(--k)); display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 48px 40px; counter-reset: principle; }
.principle { position: relative; padding-top: 28px; counter-increment: principle; }
.principle::before { content: counter(principle, decimal-leading-zero); display: block; margin-bottom: 18px; font: 500 12px/1 var(--font-mono); letter-spacing: 0.06em; color: var(--primary); }
.principle::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--border-strong); transform-origin: 0 50%; transition: transform 1100ms var(--ease); transition-delay: calc(var(--i, 0) * 90ms + 150ms); }
.is-motion .principle:not(.is-in)::after { transform: scaleX(0); }
.principle__title { font: 700 22px/1.3 var(--font-display); }
.principle__text { margin-top: 10px; font-size: 15px; line-height: 1.55; color: var(--text-secondary); }

/* 4 Case study */
.case { padding: calc(120px * var(--k)) 0 calc(200px * var(--k)); }
.case .grid { align-items: start; }
.case__copy { grid-column: 1 / span 5; padding: 24px 32px 0 0; }
.case__title { margin-top: 24px; font-size: 42px; line-height: 1.08; hyphens: auto; }
.case__subline { margin-top: 12px; color: var(--text-secondary); }
.case__text { margin-top: 40px; }
.kpis { margin-top: 48px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.kpis > div { padding-top: 16px; border-top: 1px solid var(--border-strong); }
.kpis dt { font: 700 40px/1 var(--font-display); letter-spacing: -0.03em; color: var(--primary); font-variant-numeric: tabular-nums; white-space: nowrap; }
.kpis dd { margin-top: 8px; font-size: 13px; line-height: 1.45; color: var(--text-secondary); }
.kpis__note { margin-top: 12px; font-size: 12px; line-height: 1.5; color: var(--text-secondary); }
.case__services { margin-top: 40px; font-size: 15px; line-height: 1.8; color: var(--text-secondary); }
.case__copy .actions { margin-top: 40px; gap: 24px; }
.case__visual { grid-column: 6 / span 7; position: relative; margin-right: -180px; padding-bottom: 80px; }
.case__desktop { box-shadow: var(--shadow-4); }
.case__phone { position: absolute; right: 180px; bottom: 0; width: 250px; }

/* 5 Development */
.dev__headline { margin-top: 32px; font-size: 80px; line-height: 1; letter-spacing: -0.045em; }
.dev__lead { margin-top: 32px; max-width: 620px; font-size: 22px; line-height: 1.5; color: var(--text-secondary); }
.dev__words { margin-top: calc(96px * var(--k)); font: 600 44px/1.3 var(--font-display); letter-spacing: -0.02em; }
.dev__sep { margin: 0 0.2em; color: var(--border-strong); }
.is-motion .dev__word { color: var(--text-muted); animation: td-word calc(var(--n, 6) * 1.6s) var(--ease) infinite; animation-delay: calc(var(--i, 0) * 1.6s); }
@keyframes td-word { 0%, 100% { color: var(--text-muted); } 3%, 14% { color: var(--text-primary); } 20% { color: var(--text-muted); } }
.dev__grid { margin-top: calc(112px * var(--k)); align-items: start; }
.code { grid-column: 1 / span 7; border-radius: var(--radius-l); overflow: hidden; background: var(--surface); border: 1px solid var(--border); }
.frame__chrome--code { background: var(--surface-2); border-bottom: 1px solid var(--border); }
.frame__chrome--code > span:not(.code__file) { background: var(--border-strong); }
.code__file { margin-left: 14px; font: 500 12px/1 var(--font-mono); color: var(--text-muted); }
.code pre { padding: 28px 32px 28px 16px; font: 400 15px/1.75 var(--font-mono); color: var(--text-primary); overflow-x: auto; }
.code code { display: block; counter-reset: line; }
.code__line { display: block; min-height: 1.75em; white-space: pre; counter-increment: line; }
.code__line::before { content: counter(line); display: inline-block; width: 2em; margin-right: 1.4em; text-align: right; color: var(--text-muted); opacity: 0.45; user-select: none; }
.is-typing .code__line:not(.is-on) { visibility: hidden; }
.is-typing .code__line.is-on { animation: td-type 260ms var(--ease) both; }
@keyframes td-type { from { opacity: 0; translate: -8px 0; } }
.is-typing .code__line.is-current::after, .is-typed .code__line:last-child::after { content: ""; display: inline-block; width: 0.55em; height: 1.15em; margin-left: 3px; vertical-align: -0.2em; background: var(--accent-digital-blue); animation: td-blink 1.1s steps(2, start) infinite; }
@keyframes td-blink { to { visibility: hidden; } }
.code .kw { color: var(--accent-digital-blue); }
.code .ty { color: var(--accent-cyan); }
.code .st { color: var(--text-secondary); }
.code .cm { color: var(--text-muted); }
.code .fn { color: var(--text-primary); font-weight: 600; }
.dev__copy { grid-column: 9 / span 4; }
.dev__text { font-size: 20px; line-height: 1.6; color: var(--text-secondary); }
.dev__copy .actions { margin-top: 40px; }
.ladder { margin-top: 56px; display: grid; grid-template-columns: auto 1fr; gap: 0; align-items: stretch; font-size: 15px; line-height: 1.5; }
.ladder dt, .ladder dd { padding: 14px 0; border-top: 1px solid var(--border); }
.ladder dt { padding-right: 24px; font: 700 22px/1.2 var(--font-display); }
.ladder dt.ladder__text { max-width: 11em; font-size: 16px; line-height: 1.35; }
.ladder dd { padding-top: 18px; color: var(--text-secondary); }
.dev__links { margin-top: 48px; display: flex; flex-direction: column; gap: 14px; font-size: 15px; line-height: 1.5; }
.dev__links > a { color: var(--text-primary); }
.dev__links .muted a { color: var(--text-secondary); }

/* 6 Website check */
.check .grid { align-items: center; }
.check__copy { grid-column: 1 / span 5; }
.check__copy .h-xl { margin-top: 24px; font-size: 56px; }
.check__text { margin-top: 24px; max-width: 440px; font-size: 18px; line-height: 1.6; color: var(--text-secondary); }
.check__form { margin-top: 40px; display: flex; flex-direction: column; gap: 10px; max-width: 480px; }
.check__label { font: 600 15px/1.4 var(--font-sans); }
.check__form .btn { margin-top: 6px; }
.check__hint { font-size: 13px; line-height: 1.5; color: var(--text-muted); }
.result { grid-column: 7 / span 6; margin-right: -100px; border-radius: var(--radius-l); overflow: hidden; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-3); }
.result__head { position: relative; padding: 24px 32px; background: var(--bg); border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: end; gap: 16px; }
.result__head::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--primary); transform: scaleX(var(--scan, 0)); transform-origin: 0 50%; opacity: 0; transition: transform 400ms var(--ease), opacity 400ms var(--ease); }
.is-scanning .result__head::after { opacity: 1; }
.result__kicker, .result__count { display: block; font-size: 13px; color: var(--text-muted); }
.result__domain { display: block; margin-top: 4px; font: 700 22px/1.3 var(--font-display); }
.result__rows { padding: 4px 32px 20px; }
.result__row { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--surface-2); }
.result__row:last-child { border-bottom: 0; }
.result__row .badge { transition: opacity 300ms var(--ease), scale 300ms var(--ease); }
.is-scanning .result__row:not(.is-done) .badge { opacity: 0; scale: 0.8; }
.is-scanning .result__row:not(.is-done)::after { content: ""; position: absolute; right: 0; top: 50%; width: 92px; height: 24px; margin-top: -12px; border-radius: var(--radius-pill); background: linear-gradient(90deg, var(--surface-2) 0%, #ffffff 50%, var(--surface-2) 100%) 0 0 / 200% 100%; animation: td-shimmer 1.1s linear infinite; }
@keyframes td-shimmer { to { background-position: -200% 0; } }
.result__title { display: block; font-weight: 600; }
.result__desc { font-size: 13px; color: var(--text-secondary); }

/* 7 Final CTA */
.final { padding: calc(220px * var(--k)) 0 calc(180px * var(--k)); background: radial-gradient(1000px 600px at 20% 100%, rgba(45, 140, 255, 0.12), rgba(45, 140, 255, 0) 70%), var(--brand-midnight); }
.final__headline { max-width: 1180px; font-size: 88px; line-height: 1; letter-spacing: -0.045em; }
.final .actions { margin-top: 64px; }

/* Stacked layout */
@media (max-width: 1100px) {
  .hero__copy, .hero__comp, .products__head > div, .products__all, .product .product__visual, .product .product__copy, .more__eyebrow, .more__body, .case__copy, .case__visual, .code, .dev__copy, .check__copy, .result { grid-column: auto; }
  .hero { min-height: 0; padding: 120px 0 88px; }
  .hero__comp { height: auto; margin-right: 0; display: flex; flex-direction: column; gap: 16px; }
  .hero__comp .frame { position: relative; inset: auto; width: 100%; }
  .hero__comp-mid, .hero__comp-front { display: none; }
  .products { padding: 40px 0 88px; }
  .products__all { justify-self: start; padding-bottom: 0; }
  .product--1, .product--2 { margin-top: 64px; }
  .product--1 .product__visual, .product--2 .product__visual { margin: 0; order: -1; }
  .product--1 .product__copy, .product--2 .product__copy { padding: 0; }
  .more { margin-top: 88px; }
  .more__eyebrow { padding-top: 0; }
  .more__product { grid-template-columns: minmax(0, 1fr); }
  .philosophy { padding: 88px 0; }
  .principles { margin-top: 56px; }
  .case { padding: 0 0 88px; }
  .case__title { font-size: 40px; }
  .case__visual { margin: 0; padding: 0; }
  .case__phone { display: none; }
  .dev__headline { font-size: 44px; }
  .dev__words { margin-top: 48px; font-size: 28px; }
  .dev__grid { margin-top: 56px; }
  .code pre { padding: 20px 16px 20px 4px; font-size: 13px; }
  .check__copy .h-xl { font-size: 40px; }
  .result { margin: 0; }
  .result__head, .result__rows { padding-left: 20px; padding-right: 20px; }
  .result__row { flex-wrap: wrap; }
  .final { padding: 88px 0; }
  .final__headline { font-size: 44px; }
  .terms { font-size: 19px; }
}
@media (max-width: 640px) {
  .maint__tiers, .kpis { grid-template-columns: minmax(0, 1fr); }
  .ladder { grid-template-columns: minmax(0, 1fr); }
  .ladder dd { border-top: 0; padding-top: 0; }
}

/* Optional chapter: frequently asked questions */
.faqs .grid { align-items: start; }
.faqs__head { grid-column: 1 / span 5; position: sticky; top: 120px; }
.faqs__title { margin-top: 24px; font-size: 56px; }
.faqs__text { margin-top: 20px; max-width: 440px; font-size: 18px; color: var(--text-secondary); }
.faqs__list { grid-column: 7 / span 6; }
.faqs__item { border-top: 1px solid var(--border-strong); }
.faqs__item:last-child { border-bottom: 1px solid var(--border-strong); }
.faqs__item summary { display: grid; grid-template-columns: 44px minmax(0, 1fr) 24px; align-items: baseline; padding: 26px 0; font: 600 20px/1.4 var(--font-display); cursor: pointer; list-style: none; }
.faqs__item summary::-webkit-details-marker { display: none; }
.faqs__item summary::after { content: "+"; justify-self: end; color: var(--primary); font-size: 26px; line-height: 1; transition: transform var(--duration-base) var(--ease); }
.faqs__item[open] summary::after { transform: rotate(45deg); }
.faqs__no { font: 500 12px/1 var(--font-mono); color: var(--primary); }
.faqs__answer { padding: 0 40px 28px 44px; font-size: 17px; line-height: 1.7; color: var(--text-secondary); }
@media (max-width: 1100px) {
  .faqs__head, .faqs__list { grid-column: auto; }
  .faqs__head { position: static; }
  .faqs__title { font-size: 40px; }
  .faqs__item summary { font-size: 18px; }
  .faqs__answer { padding: 0 0 24px 44px; }
}@media (min-width: 1101px) { body.header-pinned .faqs__head { top: calc(var(--header-height) + 40px); } }

/* Chapter: webdesign. Beside the steps a website builds itself while
 * scrolling: 1 sketch, 2 grid, 3 design, 4 online (front.js sets
 * data-stage). Without JavaScript the markup carries stage 4. */
.web { padding: calc(160px * var(--k)) 0; }
.web__intro { max-width: 900px; }
.web__headline { margin-top: 32px; }
.web__lead { margin-top: 28px; max-width: 660px; font-size: 21px; line-height: 1.55; color: var(--text-secondary); }
.web__tags { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 28px; font-size: 15px; color: var(--text-secondary); }
.web__tags li { display: inline-flex; align-items: center; gap: 8px; }
.web__tags svg { flex: none; color: var(--accent-cyan); }
.web__intro .actions { margin-top: 40px; }
.web__price { display: flex; flex-wrap: wrap; gap: 8px 32px; margin-top: 28px; font-size: 15px; color: var(--text-secondary); }
.web__amount { margin-left: 6px; font: 700 18px/1.3 var(--font-display); letter-spacing: -0.01em; color: var(--text-primary); white-space: nowrap; }
.web__body { margin-top: calc(112px * var(--k)); align-items: start; }
.web__steps { grid-column: 1 / span 5; }
.web__step { padding: 32px 0 56px; border-top: 1px solid var(--border-strong); transition: opacity var(--duration-base) var(--ease); }
.web__num { font: 500 12px/1 var(--font-mono); letter-spacing: 0.06em; color: var(--accent-digital-blue); }
.web__step-title { margin-top: 14px; font: 700 26px/1.25 var(--font-display); letter-spacing: -0.02em; }
.web__step-text { margin-top: 10px; max-width: 440px; font-size: 17px; line-height: 1.6; color: var(--text-secondary); }
.web.is-live .web__step { opacity: 0.38; }
.web.is-live .web__step.is-done { opacity: 0.66; }
.web.is-live .web__step.is-active { opacity: 1; }
.web__visual { grid-column: 7 / span 6; position: sticky; top: calc(var(--wp-admin--admin-bar--height, 0px) + 140px); align-self: start; }
.web__regions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: calc(72px * var(--k)); }
.web__regions-label { margin-right: 8px; font: 500 12px/1.4 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.web__regions a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--border-strong); border-radius: var(--radius-pill); color: var(--text-primary); font-size: 15px; font-weight: 600; }
.web__regions a:hover { text-decoration: none; border-color: var(--text-muted); }

/* The drawn website */
.web__frame { position: relative; overflow: hidden; border-radius: var(--radius-l); background: #fff; color: #091321; box-shadow: 0 0 0 1px rgba(183, 195, 209, 0.12), 0 40px 100px rgba(0, 0, 0, 0.45); }
.web__frame .frame__url { display: inline-flex; align-items: center; gap: 7px; }
.web__lock { position: relative; flex: none; width: 8px; height: 6px; margin-top: 3px; border-radius: 1px; background: #2fa36b; opacity: 0; transition: opacity var(--duration-base) var(--ease); }
.web__lock::before { content: ""; position: absolute; bottom: 5px; left: 1px; width: 6px; height: 5px; box-sizing: border-box; border: 1.5px solid #2fa36b; border-bottom: 0; border-radius: 4px 4px 0 0; }
.web__page { position: relative; display: grid; grid-template-rows: 9% 33% 21% 17% 8%; gap: 3%; aspect-ratio: 16 / 10.5; padding: 3.5% 4.5%; background: #fbfcfe; }
.web__page::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, rgba(45, 140, 255, 0.1) 1px, transparent 1px) 0 0 / calc(100% / 12) 100%, linear-gradient(to bottom, rgba(45, 140, 255, 0.1) 1px, transparent 1px) 0 0 / 100% 10%; transition: opacity 700ms var(--ease); }
.wf { position: relative; z-index: 1; min-height: 0; border: 1.5px dashed rgba(45, 140, 255, 0.6); border-radius: 8px; opacity: 0; transform: translateY(10px); transition: opacity 500ms var(--ease), transform 600ms var(--ease), background-color 600ms var(--ease), border-color 600ms var(--ease); transition-delay: calc(var(--n, 0) * 90ms); }
.wf::after { content: attr(data-label); position: absolute; top: -9px; left: 10px; padding: 0 5px; background: #fbfcfe; font: 600 9px/16px var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--primary); opacity: 0; transition: opacity 400ms var(--ease); }
.wf > * { display: block; opacity: 0; background: #d5dde6; transition: opacity 500ms var(--ease), background-color 600ms var(--ease); transition-delay: calc(var(--n, 0) * 90ms + 120ms); }
.wf--nav { display: flex; align-items: center; gap: 3.5%; padding: 0 3%; }
.wf--nav b { width: 15%; height: 46%; border-radius: 4px; }
.wf--nav i { width: 8%; height: 22%; border-radius: 3px; }
.wf--nav i:first-of-type { margin-left: auto; }
.wf--nav i:last-child { width: 13%; height: 48%; border-radius: 999px; }
.wf--hero { display: flex; flex-direction: column; justify-content: center; gap: 8%; padding: 0 6%; }
.wf--hero b { width: 62%; height: 13%; border-radius: 4px; }
.wf--hero b + b { width: 42%; }
.wf--hero em { width: 20%; height: 15%; border-radius: 999px; }
.wf--cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4%; }
.wf--cards span { border-radius: 6px; }
.wf--text { display: flex; flex-direction: column; justify-content: center; gap: 12%; padding: 0 4%; }
.wf--text b { height: 13%; border-radius: 3px; }
.wf--text b:nth-child(2) { width: 92%; }
.wf--text b:nth-child(3) { width: 68%; }
.wf--foot { display: flex; align-items: center; gap: 4%; padding: 0 4%; }
.wf--foot b { width: 18%; height: 32%; border-radius: 3px; }

/* 1 sketch: dashed areas with labels */
.web__frame:not([data-stage="0"]) .wf { opacity: 1; transform: none; }
.web__frame:is([data-stage="1"], [data-stage="2"]) .wf::after { opacity: 1; }
/* 2 grid: solid blocks and placeholders */
.web__frame:is([data-stage="2"], [data-stage="3"], [data-stage="4"]) .wf { border-style: solid; border-color: #dce3ea; background: #eef2f6; }
.web__frame:is([data-stage="2"], [data-stage="3"], [data-stage="4"]) .wf > * { opacity: 1; }
.web__frame:is([data-stage="2"], [data-stage="3"], [data-stage="4"]) .wf--cards { border-color: transparent; background: transparent; }
.web__frame:is([data-stage="2"], [data-stage="3"], [data-stage="4"]) .wf--cards span { background: #e3e9f0; }
/* 3 design: colours, type, buttons */
.web__frame:is([data-stage="3"], [data-stage="4"]) .web__page::before { opacity: 0; }
.web__frame:is([data-stage="3"], [data-stage="4"]) .wf--nav { border-color: transparent; background: transparent; }
.web__frame:is([data-stage="3"], [data-stage="4"]) .wf--nav b { background: var(--brand-midnight); }
.web__frame:is([data-stage="3"], [data-stage="4"]) .wf--nav i { background: #c8d2dd; }
.web__frame:is([data-stage="3"], [data-stage="4"]) .wf--nav i:last-child { background: var(--primary); }
.web__frame:is([data-stage="3"], [data-stage="4"]) .wf--hero { border-color: transparent; background: radial-gradient(120% 140% at 85% 0%, rgba(45, 140, 255, 0.45), rgba(45, 140, 255, 0) 60%), var(--brand-midnight); }
.web__frame:is([data-stage="3"], [data-stage="4"]) .wf--hero b { background: #f8fafc; }
.web__frame:is([data-stage="3"], [data-stage="4"]) .wf--hero b + b { background: #8795a8; }
.web__frame:is([data-stage="3"], [data-stage="4"]) .wf--hero em { background: var(--primary); }
.web__frame:is([data-stage="3"], [data-stage="4"]) .wf--cards span { background: #fff; box-shadow: inset 0 3px 0 var(--accent-digital-blue), 0 0 0 1px #dce3ea; }
.web__frame:is([data-stage="3"], [data-stage="4"]) .wf--text { border-color: transparent; background: transparent; }
.web__frame:is([data-stage="3"], [data-stage="4"]) .wf--text b { background: #c8d2dd; }
.web__frame:is([data-stage="3"], [data-stage="4"]) .wf--foot { border-color: transparent; background: var(--brand-midnight); }
.web__frame:is([data-stage="3"], [data-stage="4"]) .wf--foot b { background: #36506b; }
/* 4 online */
.web__live { position: absolute; right: 4%; bottom: 7%; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 999px; background: #fff; box-shadow: 0 10px 30px rgba(7, 17, 31, 0.22); font: 600 13px/1 var(--font-sans); color: #091321; opacity: 0; transform: translateY(8px) scale(0.96); transition: opacity 500ms var(--ease), transform 500ms var(--ease); }
.web__live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #2fa36b; }
.web__frame[data-stage="4"] .web__live { opacity: 1; transform: none; }
.web__frame[data-stage="4"] .web__lock { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  :root:not([data-motion="off"]) .web__frame[data-stage="4"] .web__live::before { animation: web-pulse 1800ms ease-out infinite; }
}
@keyframes web-pulse { 0% { box-shadow: 0 0 0 0 rgba(47, 163, 107, 0.55); } 100% { box-shadow: 0 0 0 9px rgba(47, 163, 107, 0); } }

@media (min-width: 1101px) {
  /* Room to scroll through the four stages beside the sticky website. */
  .web.is-live .web__step { min-height: 30vh; }
}
@media (max-width: 1100px) {
  .web { padding: 88px 0; }
  .web__lead { font-size: 18px; }
  .web__body { margin-top: 56px; row-gap: 40px; }
  .web__steps, .web__visual { grid-column: auto; }
  .web__visual { position: static; order: -1; }
  .web__step { padding: 24px 0 28px; }
  .web__step-title { font-size: 22px; }
  .web.is-live .web__step, .web.is-live .web__step.is-done { opacity: 1; }
  .wf::after { font-size: 8px; line-height: 14px; top: -8px; }
}
