/* V11: Basis-style structure and motion on the MeSee brand. */
@keyframes rise-in{from{opacity:0;transform:translateY(22px);filter:blur(6px)}to{opacity:1;transform:none;filter:none}}
@keyframes drift-left{from{transform:translateX(0)}to{transform:translateX(-50%)}}
@keyframes drift-right{from{transform:translateX(-50%)}to{transform:translateX(0)}}

/* Hero: centered tagline, then the team room across the full width. */
.hero-v11{padding:12px 0 0;text-align:center;overflow:hidden}
.hero-v11-copy h1{font-size:clamp(42px,5.2vw,78px);line-height:1.02;letter-spacing:-.06em;max-width:20ch;margin:0 auto;animation:rise-in .9s cubic-bezier(.2,.65,.2,1) .15s both}
.hero-v11-copy>p{max-width:560px;margin:18px auto 0;color:var(--muted);font-size:18px;line-height:1.55;animation:rise-in .9s cubic-bezier(.2,.65,.2,1) .3s both}
.hero-v11 .hero-actions{justify-content:center;margin:24px 0 0;animation:rise-in .9s cubic-bezier(.2,.65,.2,1) .45s both}
.team-room{margin:10px 0 0;animation:rise-in 1.1s cubic-bezier(.2,.65,.2,1) .55s both}
.team-room video{display:block;width:100%;height:auto;aspect-ratio:2520/640;object-fit:cover;background:var(--paper)}

/* Process: one statement that brightens word by word, then the steps. */
.process{padding:120px 0 110px}
.statement{font-size:clamp(28px,3.6vw,50px);line-height:1.18;font-weight:600;letter-spacing:-.04em;max-width:24ch}
.statement span{color:#c9cbc4;transition:color .35s ease}
.statement span.is-lit{color:var(--ink)}
.process-title{font-size:clamp(24px,2.4vw,34px);margin:110px 0 26px;text-align:center}

/* Step label above each tile heading. */
.step-label{display:flex;align-items:center;gap:10px;font-size:12px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
.step-label span{display:inline-grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--ink);color:#fff;letter-spacing:0;font-size:11px}
.case-experience,.feedback-tile,.drill-section,.improvement-tile,.pricing-section{padding-top:110px}

/* Feedback: three rows of skill pills drifting in alternating directions. */
.skill-rows{display:grid;gap:12px;margin:10px 0 70px;mask-image:linear-gradient(90deg,transparent,#000 9%,#000 91%,transparent);-webkit-mask-image:linear-gradient(90deg,transparent,#000 9%,#000 91%,transparent)}
.skill-row{overflow:hidden}
.skill-track{display:flex;gap:0;width:max-content;animation:drift-left 80s linear infinite}
.skill-row[data-direction=right] .skill-track{animation-name:drift-right;animation-duration:95s}
.skill-row:nth-child(3) .skill-track{animation-duration:88s}
.skill-copy{display:contents}
.skill-rows:hover .skill-track{animation-play-state:paused}
.skill-pill{margin-right:12px;display:inline-flex;align-items:center;gap:9px;white-space:nowrap;padding:11px 18px 11px 13px;border-radius:999px;background:var(--tint);color:var(--ink);font-size:15px;font-weight:600;border:1px solid color-mix(in srgb,var(--ink) 18%,transparent)}
.skill-pill svg{width:20px;height:20px;fill:none;stroke:var(--ink);stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;flex:none}
.tile-subhead{text-align:center;margin:0 auto 10px;max-width:620px}
.tile-subhead h3{font-size:clamp(24px,2.4vw,34px)}
.tile-subhead p{color:var(--muted);margin-top:12px}
.feedback-tile .family{padding-top:0}

/* Improvement: the score history line draws itself when it scrolls into view. */
.public-history svg path[fill="none"]{stroke-dasharray:1000;stroke-dashoffset:1000;transition:stroke-dashoffset 1.6s cubic-bezier(.4,.1,.2,1) .2s}
.public-history svg path:not([fill="none"]){opacity:0;transition:opacity 1s ease 1.2s}
.public-history svg circle,.public-history svg .history-score{opacity:0;transition:opacity .4s ease}
.public-history.is-drawn svg path[fill="none"]{stroke-dashoffset:0}
.public-history.is-drawn svg path,.public-history.is-drawn svg circle,.public-history.is-drawn svg .history-score{opacity:1}

/* Soft blur-in for content blocks, as on the reference site. */
.soft-in{opacity:0;transform:translateY(20px);filter:blur(6px);transition:opacity .8s cubic-bezier(.2,.65,.2,1) var(--soft-delay,0ms),transform .8s cubic-bezier(.2,.65,.2,1) var(--soft-delay,0ms),filter .8s ease var(--soft-delay,0ms)}
.soft-in.is-in{opacity:1;transform:none;filter:none}
.reveal{filter:blur(5px);transition:opacity .75s ease-out var(--reveal-delay,0ms),transform .75s ease-out var(--reveal-delay,0ms),filter .75s ease-out var(--reveal-delay,0ms)}
.reveal.is-revealed,.reveal:focus-within{filter:none}


@media (max-width:760px){
  .hero-v11{padding-top:20px}
  .hero-v11-copy>p{font-size:16px}
  .hero-v11 .hero-actions{flex-direction:column;align-items:center;gap:16px}
  .team-room-mobile video{aspect-ratio:1080/800}
  .process{padding:80px 0 70px}
  .process-title{margin-top:70px}
  .skill-pill{font-size:13px;padding:9px 14px 9px 11px}
  .case-experience,.feedback-tile,.drill-section,.improvement-tile,.pricing-section{padding-top:80px}
  }
@media (prefers-reduced-motion:reduce){
  .hero-v11-copy h1,.hero-v11-copy>p,.hero-v11 .hero-actions,.team-room{animation:none}
  .skill-track{animation:none;flex-wrap:wrap;width:auto;justify-content:center}
  .skill-copy{display:none}
  .skill-rows{mask-image:none;-webkit-mask-image:none;padding:0 20px}
  .soft-in,.reveal{opacity:1;transform:none;filter:none;transition:none}
  .public-history svg *{transition:none!important}
}

/* Tile headings stack and center, like the reference site. */
.case-experience .section-head,.feedback-tile .section-head,.drill-section .section-head,.improvement-tile .section-head{flex-direction:column;align-items:center;text-align:center;gap:16px}
.case-experience .section-head p,.feedback-tile .section-head p,.drill-section .section-head p,.improvement-tile .section-head p{max-width:640px}
.section-head p.step-label{justify-content:center;max-width:none;width:100%;margin:0 0 6px}
.improvement-tile .public-overview{margin-bottom:20px}

/* Round two: centered statement, process as four tiles with loops. */
.statement{margin:0 auto;text-align:center}
.process-tiles{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.process-tiles a{display:flex;flex-direction:column;gap:8px;height:100%;padding:14px 14px 22px;border:1px solid var(--line);border-radius:22px;background:#fff;color:inherit;text-decoration:none;transition:transform .3s cubic-bezier(.2,.65,.2,1),box-shadow .3s}
.process-tiles a:hover{transform:translateY(-4px);box-shadow:0 14px 34px rgba(24,35,59,.08)}
.process-art{border-radius:14px;overflow:hidden;background:var(--paper);margin-bottom:10px}
.process-art video{display:block;width:100%;aspect-ratio:4/3;object-fit:cover}
.process-tiles .process-number{font-size:13px;font-weight:700;color:var(--violet);padding:0 6px}
.process-tiles b{font-size:clamp(19px,1.6vw,23px);font-weight:600;letter-spacing:-.03em;line-height:1.15;padding:0 6px}
.process-body{color:var(--muted);font-size:15px;line-height:1.5;padding:0 6px;flex:1}
.process-more{font-size:13px;font-weight:600;padding:6px 6px 0}

/* Character carousel shows each character's loop. */
.character-art{height:250px}
.character-art video{height:100%;aspect-ratio:4/3;object-fit:cover;border-radius:16px;background:var(--paper)}

/* Afterglow exhibit: night-themed, one row per format, bars grow when the tab opens. */
.night-board{background:#191d3d;border-radius:18px;padding:22px 22px 10px;color:#fff;margin:16px 0 14px}
.night-board-head{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:12px;color:#b9bde0;margin-bottom:12px}
.night-key{display:flex;align-items:center;gap:7px}
.night-key i{width:12px;height:12px;border-radius:3px;display:inline-block}
.key-revenue{background:linear-gradient(90deg,#F7A1C4,#F6C95A)}
.key-cost{background:repeating-linear-gradient(135deg,rgba(255,255,255,.55) 0 3px,rgba(255,255,255,.15) 3px 6px);margin-left:10px}
.night-format{display:grid;grid-template-columns:44px 104px 1fr;align-items:center;gap:12px;padding:12px 0;border-top:1px solid rgba(255,255,255,.08)}
.night-icon{width:44px;height:44px;border-radius:12px;display:grid;place-items:center;background:color-mix(in srgb,var(--accent) 22%,transparent)}
.night-icon svg{width:26px;height:26px;fill:none;stroke:var(--accent);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.night-format b{font-size:14px}
.night-track{position:relative;height:40px}
.night-track>span{position:absolute;left:0;border-radius:8px;display:flex;align-items:center;justify-content:flex-end;width:0;transition:width 1s cubic-bezier(.2,.65,.2,1) var(--delay)}
.night-revenue{top:0;height:40px;background:linear-gradient(90deg,color-mix(in srgb,var(--accent) 55%,#191d3d),var(--accent));box-shadow:0 0 18px color-mix(in srgb,var(--accent) 45%,transparent)}
.night-cost{top:8px;height:24px;background:repeating-linear-gradient(135deg,rgba(25,29,61,.55) 0 4px,rgba(25,29,61,.3) 4px 8px)}
.night-track em{font-style:normal;font-weight:700;font-size:13px;padding:0 8px;opacity:0;transition:opacity .4s ease calc(var(--delay) + .7s)}
.night-revenue em{color:#191d3d}
.night-cost em{color:#fff}
.case-slide.is-active .night-revenue{width:var(--revenue)}
.case-slide.is-active .night-cost{width:var(--cost)}
.case-slide.is-active .night-track em{opacity:1}

@media (max-width:1000px){.process-tiles{grid-template-columns:repeat(2,1fr)}}
@media (max-width:560px){.process-tiles{grid-template-columns:1fr}.night-format{grid-template-columns:36px 1fr;}.night-format .night-track{grid-column:1/-1}.night-icon{width:36px;height:36px}}
@media (prefers-reduced-motion:reduce){.night-track>span,.night-track em{transition:none}}

/* No divider between the skill rows and the character carousel. */
.feedback-tile .family{border-top:0}
.feedback-tile .tile-subhead p{max-width:560px;margin-left:auto;margin-right:auto}
/* Cost figures sit at the start of their bar so they never collide with revenue. */
.night-track>.night-cost{justify-content:flex-start}
