/* =========================================================
   THE CREATE² METHOD  (section 2) + transition to the Lab
   Uses the tokens and keyframes defined in styles.css
   ========================================================= */
@property --b1 { syntax: "<color>"; inherits: true; initial-value: #cbbcff; }
@property --b2 { syntax: "<color>"; inherits: true; initial-value: #a9d3ff; }
@property --b3 { syntax: "<color>"; inherits: true; initial-value: #ffd0e0; }

.method {
  --b1: #cbbcff; --b2: #a9d3ff; --b3: #ffd0e0;
  position: relative;
  isolation: isolate;
  padding: 104px var(--gutter) 24px;
  background: linear-gradient(180deg, var(--cream) 0%, #f4effb 45%, var(--cream) 100%);
  transition: --b1 1.8s ease, --b2 1.8s ease, --b3 1.8s ease;
}
.method[data-step="1"] { --b1: #ffd0e2; --b2: #cbbcff; --b3: #ffe6cc; }
.method[data-step="2"] { --b1: #a9d3ff; --b2: #d0c2ff; --b3: #bfeaff; }
.method[data-step="3"] { --b1: #dccfff; --b2: #ffd0e0; --b3: #a9d3ff; }
.method[data-step="4"] { --b1: #ffc9dd; --b2: #a9d3ff; --b3: #d8ccff; }
.method[data-step="5"] { --b1: #cbbcff; --b2: #ffd9c2; --b3: #a9d3ff; }

.m-bg {
  position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 74%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 74%, transparent 100%);
}
.m-blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .85; will-change: transform; }
.m-blob--1 { width: 60vw; height: 60vw; left: -18vw; top: -8vw; background: radial-gradient(circle, var(--b1), transparent 68%); animation: driftA 24s ease-in-out infinite alternate; }
.m-blob--2 { width: 56vw; height: 56vw; right: -16vw; top: 10vh; background: radial-gradient(circle, var(--b2), transparent 68%); animation: driftB 28s ease-in-out infinite alternate; }
.m-blob--3 { width: 50vw; height: 50vw; left: 22vw; bottom: -20vw; background: radial-gradient(circle, var(--b3), transparent 68%); animation: driftC 26s ease-in-out infinite alternate; }

.m-particles span {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, rgba(183, 165, 255, .55) 60%, rgba(143, 195, 255, .2));
  box-shadow: 0 0 14px rgba(160, 140, 255, .35);
  opacity: 0;
  animation: mFloat var(--dur, 14s) var(--del, 0s) ease-in-out infinite;
}
@keyframes mFloat { 0% { opacity: 0; transform: translateY(20px); } 20%, 80% { opacity: .8; } 100% { opacity: 0; transform: translateY(-60px) translateX(14px); } }

/* ---- header ---- */
.m-head { text-align: center; max-width: 780px; margin: 0 auto; }
.m-head__k {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px;
  padding: 7px 16px 7px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .55); border: 1px solid rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  font-size: 11.5px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-2);
}
.m-head__dot { width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, var(--lav-2), var(--sky-2), var(--blush-2)); box-shadow: 0 0 0 4px rgba(183, 165, 255, .2); }
.m-head__t { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 5vw, 72px); line-height: 1; letter-spacing: -.02em; }
.m-head__t sup { font-size: .5em; vertical-align: super; }
.m-head__t em { font-style: italic; background: linear-gradient(100deg, #8c74ff, #5aa2ff 50%, #ff86ad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .05em; }
.m-head__s { margin: 14px auto 0; max-width: 32em; color: var(--ink-2); font-size: clamp(15px, 1.2vw, 17px); }

/* ---- the word (mobile: sticky letter rail) ---- */
.m-stage { position: sticky; top: 92px; z-index: 6; margin: 26px auto 8px; max-width: 460px; }
.m-word {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .62); border: 1px solid rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 14px 34px -18px rgba(60, 50, 120, .4), inset 0 1px 0 #fff;
}
.ml { position: relative; text-align: center; }
.ml__g {
  display: inline-block; font-family: var(--serif); font-size: 34px; line-height: 1;
  background: linear-gradient(180deg, #ffffff 0%, var(--c1) 30%, var(--c2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: 1px rgba(140, 116, 255, .28);
  opacity: .4; filter: saturate(.55);
  transition: opacity .8s var(--ease), filter .8s var(--ease), transform .9s var(--ease);
  transform-origin: 50% 90%;
}
.ml__g sup { font-size: .5em; vertical-align: super; }
.ml__cap { display: none; }
.ml[data-i="0"] { --c1: #b9a6ff; --c2: #8a72ff; }
.ml[data-i="1"] { --c1: #aab2ff; --c2: #7a8fff; }
.ml[data-i="2"] { --c1: #9cc0ff; --c2: #6aa2ff; }
.ml[data-i="3"] { --c1: #a2d4ff; --c2: #6cbcff; }
.ml[data-i="4"] { --c1: #d4b6ff; --c2: #b088ff; }
.ml[data-i="5"] { --c1: #ffb8d4; --c2: #ff85b4; }
.ml.is-done .ml__g { opacity: .78; filter: saturate(.9); }
.ml.is-active .ml__g { opacity: 1; filter: saturate(1.2) drop-shadow(0 6px 18px rgba(140, 116, 255, .5)); transform: scale(1.22); }

.m-line { display: none; }

/* ---- steps (mobile: vertical sequence) ---- */
.m-panel { position: relative; max-width: 560px; margin: 0 auto; padding-left: 26px; }
.m-vline { position: absolute; left: 4px; top: 40px; bottom: 40px; width: 2px; border-radius: 2px; background: rgba(140, 116, 255, .16); }
.m-vline i { position: absolute; inset: 0; border-radius: 2px; background: linear-gradient(180deg, #8c74ff, #5aa2ff, #ff86ad); transform-origin: top; transform: scaleY(0); will-change: transform; }

.mstep {
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "l i" "b b"; align-items: center; align-content: center; row-gap: 16px;
  min-height: 64svh; padding: 34px 0;
  opacity: .28; transform: translateY(10px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.mstep.is-active { opacity: 1; transform: none; }
.mstep__l {
  grid-area: l; font-family: var(--serif); font-size: clamp(110px, 34vw, 170px); line-height: .85;
  background: linear-gradient(180deg, #fff 0%, #b9a6ff 34%, #8a72ff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: 1.4px rgba(255, 255, 255, .9);
  filter: drop-shadow(0 10px 26px rgba(150, 128, 255, .4));
}
.mstep[data-i="1"] .mstep__l { background-image: linear-gradient(180deg, #fff 0%, #aab2ff 34%, #7a8fff 100%); }
.mstep[data-i="2"] .mstep__l { background-image: linear-gradient(180deg, #fff 0%, #9cc0ff 34%, #6aa2ff 100%); }
.mstep[data-i="3"] .mstep__l { background-image: linear-gradient(180deg, #fff 0%, #a2d4ff 34%, #6cbcff 100%); }
.mstep[data-i="4"] .mstep__l { background-image: linear-gradient(180deg, #fff 0%, #d4b6ff 34%, #b088ff 100%); }
.mstep[data-i="5"] .mstep__l { background-image: linear-gradient(180deg, #fff 0%, #ffb8d4 34%, #ff85b4 100%); }
.mstep__icon {
  grid-area: i; width: 104px; height: 104px; border-radius: 32px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .5); border: 1px solid rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5);
  box-shadow: 0 24px 44px -22px rgba(70, 60, 150, .4), inset 0 1px 0 #fff;
}
.mstep__icon svg { width: 66px; height: 66px; overflow: visible; }
.mstep__body { grid-area: b; }
.mstep__n { display: block; font-size: 11px; font-weight: 700; letter-spacing: .26em; color: var(--ink-3); margin-bottom: 6px; }
.mstep h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 9vw, 46px); line-height: 1.05; letter-spacing: -.01em; }
/* German explanation (DE only): secondary to the English step name */
.mstep__de {
  display: block; margin-top: 8px;
  font-family: var(--serif); font-style: italic; font-size: clamp(20px, 5.4vw, 26px); line-height: 1.15;
  background: linear-gradient(100deg, #8c74ff, #5aa2ff 60%, #ff86ad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.mstep__de:empty { display: none; }
.mstep p { margin: 10px 0 0; font-size: 17px; color: var(--ink-2); max-width: 28em; }

/* icon line-drawing */
.mstep .dr { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.5s var(--ease) .15s; }
.mstep .fillfade { opacity: 0; transition: opacity 1.1s ease .6s; }
.mstep.is-active .dr { stroke-dashoffset: 0; }
.mstep.is-active .fillfade { opacity: 1; }

.m-count { display: none; }

/* ---- finale ---- */
.m-finale { margin: 30px auto 0; padding: 30px 0 10px; display: flex; flex-direction: column; align-items: center; gap: 26px; text-align: center; }
.m-ring { --d: min(76vw, 330px); position: relative; width: var(--d); aspect-ratio: 1; flex: none; }
.m-ring__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.m-ring__c { fill: none; stroke: url(#mg); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.2s var(--ease) .2s; }
.m-ring__c--soft { stroke: rgba(140, 116, 255, .18); stroke-dasharray: none; stroke-dashoffset: 0; transition: none; }
.m-finale.is-in .m-ring__c:not(.m-ring__c--soft) { stroke-dashoffset: 0; }
.m-ring__orbit { position: absolute; inset: 0; animation: spin 16s linear infinite; }
.m-ring__orbit i { position: absolute; left: 50%; top: 12.5%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #c9b9ff 60%, #8fa2ff); box-shadow: 0 0 18px rgba(150, 130, 255, .9); }
.m-node {
  position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px;
  display: grid; place-items: center; border-radius: 50%;
  font-family: var(--serif); font-size: 26px; line-height: 1;
  color: var(--ink);
  background: rgba(255, 255, 255, .7); border: 1px solid #fff;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 14px 26px -12px rgba(90, 70, 220, .45), inset 0 1px 0 #fff;
  transform: rotate(var(--a)) translateY(calc(var(--d) * -.375)) rotate(calc(var(--a) * -1)) scale(.4);
  opacity: 0; transition: transform 1.2s var(--ease), opacity 1s ease;
}
.m-node sup { font-size: .55em; vertical-align: super; }
.m-node span { display: block; }
.m-finale.is-in .m-node { opacity: 1; transform: rotate(var(--a)) translateY(calc(var(--d) * -.375)) rotate(calc(var(--a) * -1)) scale(1); }
.m-node:nth-of-type(2) { transition-delay: .1s; }
.m-node:nth-of-type(3) { transition-delay: .2s; }
.m-node:nth-of-type(4) { transition-delay: .3s; }
.m-node:nth-of-type(5) { transition-delay: .4s; }
.m-node:nth-of-type(6) { transition-delay: .5s; }
.m-ring__core {
  position: absolute; left: 50%; top: 50%; width: 30%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 30% 24%, rgba(255, 255, 255, .95) 0 8%, rgba(255, 255, 255, 0) 32%), radial-gradient(circle at 72% 82%, rgba(255, 168, 208, .85), rgba(255, 168, 208, 0) 56%), radial-gradient(circle at 42% 42%, #c1b0ff, #86bfff 78%);
  box-shadow: inset -6px -8px 20px rgba(90, 70, 200, .25), inset 5px 6px 14px rgba(255, 255, 255, .7), 0 24px 40px -16px rgba(110, 90, 230, .55);
  animation: float 7s ease-in-out infinite;
}
.m-ring__core span { font-family: var(--serif); font-size: clamp(44px, 9vw, 84px); line-height: 1; color: #fff; text-shadow: 0 4px 18px rgba(90, 70, 200, .5); transform: translateY(-.06em); }
.m-finale__t { margin: 0; font-family: var(--serif); font-size: clamp(34px, 8.5vw, 60px); line-height: 1.05; letter-spacing: -.015em; }
.m-finale__s { margin: 12px 0 0; font-size: 17px; color: var(--ink-2); }

/* =========================================================
   TRANSITION → THE LAB (teaser only)
   ========================================================= */
.lab { position: relative; isolation: isolate; overflow: hidden; padding: clamp(84px, 16vh, 150px) var(--gutter) clamp(90px, 16vh, 160px); text-align: center; background: linear-gradient(180deg, var(--cream), #f1ecfb 60%, #f7e9f1); }
.lab__glow { position: absolute; z-index: -1; left: 50%; top: 40%; width: min(1100px, 130vw); aspect-ratio: 1.6; translate: -50% -50%; border-radius: 50%; background: radial-gradient(closest-side, rgba(190, 170, 255, .5), rgba(150, 200, 255, .3) 50%, rgba(255, 190, 215, .18) 72%, transparent); filter: blur(30px); animation: breathe 10s ease-in-out infinite; }
.lab__inner { max-width: 900px; margin: 0 auto; }
.lab__k { margin: 0 0 14px; font-size: 12px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-3); }
.lab__t { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(54px, 10vw, 148px); line-height: .96; letter-spacing: -.028em; }
.lab__t a { background: linear-gradient(100deg, #8c74ff 0%, #5aa2ff 46%, #ff86ad 100%); background-size: 160% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 9s ease-in-out infinite alternate; }
.lab__pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: clamp(26px, 5vh, 44px) 0; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 11px 20px 11px 16px; border-radius: 999px; background: rgba(255, 255, 255, .6); border: 1px solid rgba(255, 255, 255, .95); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 12px 28px -16px rgba(60, 50, 120, .4), inset 0 1px 0 #fff; font-size: 14px; }
.pill b { font-weight: 600; letter-spacing: .01em; }
.pill i { width: 9px; height: 9px; border-radius: 50%; background: linear-gradient(135deg, var(--lav-2), var(--sky-2), var(--blush-2)); }

/* =========================================================
   PINNED SCROLL STORY (desktop)
   ========================================================= */
@media (min-width: 900px) and (min-height: 600px) {
  .method { height: calc(100svh * 8); padding: 0; }
  .method__pin { position: sticky; top: 0; height: 100svh; overflow: hidden; display: flex; flex-direction: column; padding: 118px var(--gutter) 30px; }
  .m-head { transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); }
  .m-head__t { font-size: clamp(34px, 4.2vw, 60px); }
  .m-head__k { margin-bottom: 10px; }
  .m-head__s { margin-top: 10px; }

  .m-stage { position: relative; top: 0; z-index: 2; width: 100%; max-width: 1240px; margin: clamp(10px, 2.4vh, 28px) auto 0; padding-bottom: 66px; transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); }
  .m-word { padding: 0 1.5vw; background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; border-radius: 0; align-items: flex-end; }
  .ml { flex: 1; }
  .ml__g { font-size: clamp(76px, min(12vw, 22vh), 210px); line-height: .88; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .95); opacity: .42; filter: saturate(.6) drop-shadow(0 8px 26px rgba(140, 116, 255, .12)); }
  .ml__g sup { font-size: .46em; margin-left: .04em; }
  .ml.is-done .ml__g { opacity: .72; filter: saturate(.85) drop-shadow(0 8px 26px rgba(140, 116, 255, .22)); }
  .ml.is-active .ml__g { transform: translateY(-12px) scale(1.12); filter: saturate(1.25) drop-shadow(0 12px 40px rgba(140, 116, 255, .6)); }
  .ml__cap { display: block; margin-top: 10px; height: 16px; font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); opacity: 0; transform: translateY(6px); transition: opacity .8s var(--ease), transform .8s var(--ease); white-space: nowrap; }
  .ml.is-done .ml__cap { opacity: .5; transform: none; }
  .ml.is-active .ml__cap { opacity: 1; transform: none; color: var(--ink); }

  .m-line { display: block; position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 66px; overflow: visible; pointer-events: none; }
  .m-line__bg, .m-line__fg { fill: none; stroke-linecap: round; }
  .m-line__bg { stroke: rgba(140, 116, 255, .28); stroke-width: 1.2; stroke-dasharray: 2 7; }
  .m-line__fg { stroke: url(#mg); stroke-width: 2.2; }
  .m-spark { fill: #fff; filter: drop-shadow(0 0 8px #9d8cff) drop-shadow(0 0 16px rgba(255, 134, 173, .7)); }
  .m-spark__halo { fill: rgba(160, 140, 255, .25); filter: blur(6px); }

  .m-panel { flex: 1; position: relative; min-height: 176px; width: 100%; max-width: 1000px; margin: 0 auto; padding: 0; transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); }
  .m-vline { display: none; }
  .mstep { position: absolute; inset: 0; min-height: 0; padding: 0; grid-template-columns: 136px 1fr; grid-template-areas: "i b"; column-gap: clamp(26px, 3.4vw, 52px); pointer-events: none; opacity: 0; transform: translateY(20px); filter: blur(6px); transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); }
  .mstep.is-active { opacity: 1; transform: none; filter: none; pointer-events: auto; }
  .mstep__l { display: none; }
  .mstep__icon { width: 136px; height: 136px; border-radius: 40px; animation: float 7s ease-in-out infinite; }
  .mstep__icon svg { width: 84px; height: 84px; }
  .mstep h3 { font-size: clamp(36px, 3.8vw, 58px); }
  .mstep__de { font-size: clamp(20px, 1.8vw, 27px); margin-top: 6px; }
  .mstep p { font-size: clamp(16px, 1.35vw, 20px); margin-top: 12px; max-width: 30em; }

  .m-count { display: flex; align-items: baseline; gap: 6px; position: absolute; right: var(--gutter); bottom: 34px; font-family: var(--serif); transition: opacity .8s ease; }
  .m-count__n { font-size: 38px; line-height: 1; background: linear-gradient(100deg, #8c74ff, #ff86ad); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .m-count__t { font-size: 16px; color: var(--ink-3); }

  /* finale overlay */
  .m-finale { position: absolute; inset: 0; margin: 0; padding: 96px var(--gutter) 30px; flex-direction: row; justify-content: center; gap: clamp(36px, 6vw, 96px); text-align: left; opacity: 0; visibility: hidden; transform: scale(.96); transition: opacity 1.1s var(--ease), transform 1.2s var(--ease), visibility 1.1s; }
  .m-ring { --d: min(54vh, 430px, 40vw); }
  .m-node { width: 60px; height: 60px; margin: -30px 0 0 -30px; font-size: 30px; }
  .m-finale__txt { max-width: 460px; }
  .m-finale__t { font-size: clamp(40px, 4.6vw, 68px); }
  .m-finale__s { font-size: clamp(17px, 1.5vw, 21px); }

  .method.is-final .m-finale { opacity: 1; visibility: visible; transform: none; }
  .method.is-final .m-head, .method.is-final .m-stage, .method.is-final .m-panel { opacity: 0; transform: translateY(-16px) scale(.98); filter: blur(8px); pointer-events: none; }
  .method.is-final .m-count { opacity: 0; }
}
@media (min-width: 900px) and (min-height: 600px) and (max-height: 780px) {
  .m-head__s { display: none; }
}
