/* /implementation only */

.im-page { color: var(--bv-ink); }
.im-sec {
  position: relative;
  padding: clamp(88px, 11vw, 136px) 0;
}
.im-sec--deep { background: var(--bv-cream-deep); }
.im-sec--mist { background: #eef6fc; }
.im-sec--leaf { background: #eef7f3; }
.im-sec--warm { background: #f7f1e6; }
.im-hero { overflow: hidden; padding-top: clamp(72px, 9vw, 112px); padding-bottom: clamp(72px, 9vw, 120px); }
.im-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
  background:
    radial-gradient(ellipse 58% 68% at 90% 16%, rgba(240, 168, 87, 0.14), transparent 64%),
    radial-gradient(ellipse 52% 62% at 6% 84%, rgba(55, 198, 160, 0.12), transparent 66%);
}
.im-hero__glow {
  position: absolute;
  width: 48vw;
  height: 70%;
  filter: blur(18px);
  opacity: 0.55;
  animation: im-glow 20s ease-in-out infinite;
}
.im-hero__glow--you {
  left: -12%;
  bottom: -12%;
  background: radial-gradient(ellipse at 30% 60%, color-mix(in srgb, #37C6A0 30%, transparent), transparent 70%);
}
.im-hero__glow--us {
  right: -10%;
  top: -10%;
  background: radial-gradient(ellipse at 70% 40%, color-mix(in srgb, #F0A857 22%, transparent), transparent 70%);
  animation-delay: -9s;
}
.im-hero__glow--paper {
  width: 36vw;
  height: 48%;
  left: 32%;
  top: 8%;
  background: radial-gradient(ellipse at 50% 50%, color-mix(in srgb, #4FA0EA 14%, transparent), transparent 72%);
  animation-delay: -14s;
}
.im-hero__lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.42;
}
.im-hero__lines path {
  fill: none;
  stroke-width: 1.45;
  stroke-dasharray: 8 16;
  stroke-linecap: round;
  stroke: color-mix(in srgb, #37C6A0 62%, #F0A857);
  animation: im-line 24s linear infinite;
}
.im-hero__lines path:nth-child(even) {
  stroke: color-mix(in srgb, #4FA0EA 48%, #F0A857);
  animation-direction: reverse;
  animation-duration: 30s;
}
.im-hero__lines .im-hero__route {
  stroke: color-mix(in srgb, #2E8DB6 55%, #37C6A0);
  stroke-width: 1.85;
  stroke-dasharray: 3 12;
  opacity: 0.85;
}
.im-hero__scraps em,
.im-hero__drift span {
  position: absolute;
  left: var(--x);
  top: var(--y);
  white-space: nowrap;
}
.im-hero__scraps em {
  max-width: 16em;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid color-mix(in srgb, var(--bv-line) 55%, transparent);
  font-size: 13px;
  font-style: italic;
  font-weight: 550;
  color: color-mix(in srgb, var(--bv-ink) 52%, transparent);
  transform: rotate(var(--r));
  animation: im-scrap 15s ease-in-out infinite;
}
.im-hero__drift span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  border: 1px solid color-mix(in srgb, var(--bv-line) 55%, transparent);
  color: color-mix(in srgb, var(--bv-ink) 50%, transparent);
  font-size: 12px;
  font-weight: 600;
  backdrop-filter: blur(8px);
  animation: im-chip 16s ease-in-out infinite;
  animation-delay: var(--d);
}
.im-hero__grid > div:first-child {
  position: relative;
}
.im-hero__grid > div:first-child::before {
  content: "";
  position: absolute;
  inset: -36px -48px -40px -44px;
  background: radial-gradient(ellipse at 30% 40%, color-mix(in srgb, var(--bv-cream) 94%, transparent), transparent 72%);
  pointer-events: none;
  z-index: -1;
}
.im-page h1,
.im-page h2 {
  margin: 0;
  font-size: clamp(1.85rem, 3.4vw, 2.7rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.1;
  max-width: 16em;
}
.im-page p {
  margin: 14px 0 0;
  max-width: 36em;
  color: var(--bv-muted);
  font-size: 17px;
  line-height: 1.6;
}
.im-line {
  font-weight: 650;
  color: var(--bv-ink);
}
.im-hero__grid,
.im-sec__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(240px, 0.9fr);
  gap: clamp(36px, 6vw, 72px);
  align-items: center;
}
.im-sec--flip .im-sec__grid > :first-child { order: 2; }
.im-sec--wide .im-sec__head { max-width: 46em; }
.im-sec__head { max-width: 42em; margin-bottom: 36px; }
.im-hero .bv-page-hero__actions,
.im-sec .bv-page-hero__actions { margin-top: 18px; }
#project,
#lead,
#years,
#plan,
#shared,
#work,
#feedback,
#launch,
#after { scroll-margin-top: 88px; }

.im-lead,
.im-side,
.im-path li,
.im-card,
.im-loop li,
.im-years li,
.im-slips li,
.im-tray,
.im-board article,
.im-map__src li,
.im-map__mod li,
.im-map__layer,
.im-site,
.im-pin,
.im-check li,
.im-cal {
  background: var(--bv-paper);
  border: 1px solid var(--bv-line);
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(17, 24, 39, 0.06);
}

.im-lead {
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 16px;
  padding: 10px 14px 10px 10px;
}
.im-lead__face {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 50%;
  background: #e8f6f1;
  color: #1f8a72;
  font-size: 20px;
}
.im-lead small,
.im-side small,
.im-card small,
.im-loop small,
.im-years small,
.im-tray small,
.im-board small,
.im-cal small,
.im-caption {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2e8db6;
}
.im-lead b,
.im-card header b,
.im-tray b { display: block; margin-top: 2px; font-size: 14px; letter-spacing: -0.02em; }
.im-caption { margin: 0 0 10px; }

.im-lanes { display: grid; gap: 16px; }
.im-lanes .im-lead { margin: 0; }
.im-lanes__pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.im-side { padding: 14px; }
.im-side--you { background: #eef6fc; }
.im-side--us { background: #e8f6f1; }
.im-side b { display: block; margin: 6px 0 8px; font-size: 16px; letter-spacing: -0.02em; }
.im-side ol,
.im-path,
.im-loop ol,
.im-years,
.im-slips,
.im-board ul,
.im-map__src,
.im-map__mod,
.im-check,
.im-cal ol,
.im-notes ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
.im-side li {
  display: inline-block;
  margin: 0 4px 4px 0;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  font-weight: 700;
}
.im-path {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}
.im-path li {
  padding: 8px 6px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  opacity: 0.4;
}
.im-lanes.is-play .im-path li,
.im-lanes.is-done .im-path li { opacity: 1; transition: opacity 280ms ease, box-shadow 280ms ease; }
.im-lanes[data-step="0"] .im-side--you,
.im-lanes[data-step="1"] .im-side--us,
.im-lanes[data-step="2"] .im-path li:last-child {
  box-shadow: 0 0 0 3px rgba(79, 160, 234, 0.16);
}
.im-lanes[data-step="2"] .im-path li { opacity: 1; }

.im-contact .im-card { padding: 16px; }
.im-card header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.im-thread p {
  margin: 0 0 8px;
  max-width: none;
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 13px;
}
.im-thread .is-them { background: #f4f1ea; }
.im-thread .is-us { background: #eef6fc; margin-left: 18px; }
.im-card ul {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.im-card li {
  padding: 8px 10px;
  border-radius: 10px;
  background: #faf8ef;
  font-size: 13px;
  font-weight: 650;
}

.im-loop { margin-top: 36px; }
.im-loop ol {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}
.im-loop li {
  padding: 12px;
  opacity: 0.55;
  box-shadow: none;
}
.im-loop li.is-on {
  opacity: 1;
  box-shadow: 0 0 0 3px rgba(79, 160, 234, 0.16);
}
.im-loop b { display: block; margin-top: 4px; font-size: 13px; letter-spacing: -0.02em; }

.im-years {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}
.im-years li {
  padding: 14px 12px;
  opacity: 0.4;
}
.im-years.is-play li,
.im-years.is-done li { opacity: 1; transition: opacity 280ms ease, box-shadow 280ms ease; }
.im-years b { display: block; margin-top: 4px; font-size: 14px; letter-spacing: -0.02em; }
.im-years[data-step="0"] [data-im-bit="0"],
.im-years[data-step="1"] [data-im-bit="1"],
.im-years[data-step="2"] [data-im-bit="2"],
.im-years[data-step="3"] [data-im-bit="3"],
.im-years[data-step="4"] [data-im-bit="4"],
.im-years[data-step="5"] [data-im-bit="5"] {
  box-shadow: 0 0 0 3px rgba(79, 160, 234, 0.16);
}

.im-intake { display: grid; gap: 10px; }
.im-slips { display: grid; gap: 8px; }
.im-slips li {
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 650;
  opacity: 0.38;
  transform: translateX(-12px);
  transition: opacity 220ms var(--bv-ease, cubic-bezier(.2,.7,.2,1)), transform 220ms var(--bv-ease, cubic-bezier(.2,.7,.2,1));
}
.im-slips li[data-im-slip="0"] { background: #eef6fc; }
.im-slips li[data-im-slip="1"] { background: #f6eee6; }
.im-slips li[data-im-slip="2"] { background: #e8f6f1; }
.im-slips li[data-im-slip="3"] { background: #faf8ef; }
.im-intake[data-step="0"] [data-im-slip="0"],
.im-intake[data-step="1"] [data-im-slip="0"],
.im-intake[data-step="1"] [data-im-slip="1"],
.im-intake[data-step="2"] [data-im-slip="0"],
.im-intake[data-step="2"] [data-im-slip="1"],
.im-intake[data-step="2"] [data-im-slip="2"],
.im-intake[data-step="3"] [data-im-slip],
.im-intake.is-done [data-im-slip] {
  opacity: 1;
  transform: none;
}
.im-tray { padding: 14px; opacity: 0.35; }
.im-intake[data-step="3"] .im-tray,
.im-intake.is-done .im-tray { opacity: 1; background: #e8f6f1; }

.im-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.im-board article { padding: 14px; opacity: 0.45; }
.im-board.is-play article,
.im-board.is-done article { opacity: 1; transition: opacity 280ms ease, box-shadow 280ms ease; }
.im-board li {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #faf8ef;
  font-size: 13px;
  font-weight: 650;
}
.im-board .is-done { background: #e8f6f1; }
.im-board[data-step="0"] [data-im-bit="0"],
.im-board[data-step="1"] [data-im-bit="1"],
.im-board[data-step="2"] [data-im-bit="2"] {
  box-shadow: 0 0 0 3px rgba(79, 160, 234, 0.16);
}

.im-map { display: grid; gap: 10px; }
.im-map__src,
.im-map__mod {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.im-map__src li,
.im-map__mod li { padding: 10px 12px; font-size: 13px; font-weight: 650; text-align: center; }
.im-map__src li { background: #eef6fc; }
.im-map__mod li { background: #e8f6f1; opacity: 0.28; }
.im-map__layer {
  width: fit-content;
  margin: 0 auto;
  padding: 8px 14px;
  border-radius: 999px;
  background: #f3f8fd;
  font-size: 12px;
  font-weight: 700;
}
.im-map[data-step="1"] .im-map__layer,
.im-map[data-step="2"] .im-map__layer,
.im-map.is-done .im-map__layer {
  box-shadow: 0 0 0 3px rgba(79, 160, 234, 0.16);
}
.im-map[data-step="2"] .im-map__mod li,
.im-map.is-done .im-map__mod li { opacity: 1; }

.im-revise {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.8fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.im-site { overflow: hidden; }
.im-site header {
  display: flex;
  justify-content: space-between;
  padding: 10px 12px;
  background: #fff;
  border-bottom: 1px solid #e6e6e8;
  font-size: 12px;
  font-weight: 700;
}
.im-site__hero { padding: 16px 14px 18px; display: grid; gap: 8px; }
.im-site__hero strong { font-size: 18px; letter-spacing: -0.03em; }
.im-site__ghost {
  display: block;
  height: 8px;
  border-radius: 6px;
  background: #e6e6e8;
}
.im-site__btn {
  display: inline-flex;
  align-items: center;
  width: max-content;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 6px;
  background: #4fa0ea;
  color: #fff;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}
.im-pin {
  margin: 0 0 10px;
  padding: 14px 16px;
  background: #fff6e8;
  border-color: color-mix(in srgb, #d8845c 35%, var(--bv-line));
  font-size: 15px;
  font-weight: 650;
  line-height: 1.45;
  opacity: 0;
}
.im-revise.is-play .im-pin,
.im-revise.is-done .im-pin { opacity: 1; }
.im-notes ol { display: flex; flex-wrap: wrap; gap: 6px; }
.im-notes li {
  padding: 4px 8px;
  border-radius: 999px;
  background: #f4f1ea;
  font-size: 11px;
  font-weight: 700;
  color: var(--bv-faint);
}
.im-notes .is-on { background: #eef6fc; color: var(--bv-ink); }
.im-site--first .im-site__btn { margin-top: 4px; }
.im-revise[data-step="0"] .im-site--first .im-site__btn {
  box-shadow: 0 0 0 6px rgba(79, 160, 234, 0.2);
}
.im-site--next .im-site__btn { opacity: 0; }
.im-revise[data-step="2"] .im-site--next .im-site__btn,
.im-revise.is-done .im-site--next .im-site__btn { opacity: 1; }

.im-check { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.im-check li {
  position: relative;
  padding: 12px 14px 12px 40px;
  font-size: 14px;
  font-weight: 650;
  opacity: 0.38;
}
.im-check li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  border-radius: 4px;
  border: 2px solid #d9dee3;
  background: #fff;
}
.im-check.is-play li,
.im-check.is-done li { opacity: 1; transition: opacity 280ms ease; }
.im-check[data-step="0"] [data-im-bit="0"]::before,
.im-check[data-step="1"] [data-im-bit="0"]::before,
.im-check[data-step="1"] [data-im-bit="1"]::before,
.im-check[data-step="2"] [data-im-bit="0"]::before,
.im-check[data-step="2"] [data-im-bit="1"]::before,
.im-check[data-step="2"] [data-im-bit="2"]::before,
.im-check[data-step="3"] [data-im-bit="0"]::before,
.im-check[data-step="3"] [data-im-bit="1"]::before,
.im-check[data-step="3"] [data-im-bit="2"]::before,
.im-check[data-step="3"] [data-im-bit="3"]::before,
.im-check[data-step="4"] [data-im-bit="0"]::before,
.im-check[data-step="4"] [data-im-bit="1"]::before,
.im-check[data-step="4"] [data-im-bit="2"]::before,
.im-check[data-step="4"] [data-im-bit="3"]::before,
.im-check[data-step="4"] [data-im-bit="4"]::before,
.im-check[data-step="5"] [data-im-bit]::before,
.im-check.is-done [data-im-bit]::before {
  background: #37c6a0;
  border-color: #37c6a0;
}

.im-cal { padding: 14px; }
.im-cal ol { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.im-cal li {
  padding: 10px 12px;
  border-radius: 12px;
  background: #faf8ef;
  opacity: 0.4;
}
.im-after.is-play .im-cal li,
.im-after.is-done .im-cal li { opacity: 1; transition: opacity 280ms ease, box-shadow 280ms ease; }
.im-cal b { display: block; font-size: 13px; }
.im-cal span { font-size: 12px; color: var(--bv-muted); }
.im-after[data-step="0"] [data-im-bit="0"],
.im-after[data-step="1"] [data-im-bit="1"],
.im-after[data-step="2"] [data-im-bit="2"],
.im-after[data-step="3"] [data-im-bit="3"] {
  box-shadow: 0 0 0 3px rgba(79, 160, 234, 0.16);
}

.im-page .bv-finale { text-align: center; }
.im-page .bv-finale h2 {
  margin-left: auto;
  margin-right: auto;
  color: var(--bv-cream);
}
.im-page .bv-finale p {
  margin-left: auto;
  margin-right: auto;
  color: rgba(250, 248, 239, 0.68);
}

@keyframes im-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
@keyframes im-glow {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-3%, 4%, 0) scale(1.05); }
}
@keyframes im-line { to { stroke-dashoffset: -240; } }
@keyframes im-scrap {
  0%, 100% { transform: rotate(var(--r)) translate3d(0, 0, 0); opacity: 0.4; }
  50% { transform: rotate(var(--r)) translate3d(8px, -10px, 0); opacity: 0.78; }
}
@keyframes im-chip {
  0%, 100% { transform: translate3d(0, 0, 0); opacity: 0.5; }
  40% { transform: translate3d(10px, -14px, 0); opacity: 0.9; }
  70% { transform: translate3d(-8px, 8px, 0); opacity: 0.64; }
}
.im-lanes.is-play,
.im-contact.is-play { animation: im-in 420ms var(--bv-ease, cubic-bezier(.2,.7,.2,1)) both; }

@media (max-width: 860px) {
  .im-sec { padding: clamp(56px, 12vw, 80px) 0; }
  .im-hero { padding-top: 48px; }
  .im-hero__grid,
  .im-sec__grid,
  .im-lanes__pair,
  .im-loop ol,
  .im-years,
  .im-board,
  .im-revise,
  .im-map__src,
  .im-map__mod,
  .im-check,
  .im-cal ol { grid-template-columns: 1fr; }
  .im-sec--flip .im-sec__grid > :first-child { order: 0; }
  .im-years,
  .im-loop ol { grid-template-columns: 1fr 1fr; }
  .im-path { grid-template-columns: 1fr 1fr 1fr; }
  .im-hero__scraps,
  .im-hero__drift { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .im-hero__glow,
  .im-hero__lines path,
  .im-hero__scraps em,
  .im-hero__drift span,
  .im-path li,
  .im-loop li,
  .im-years li,
  .im-slips li,
  .im-tray,
  .im-board article,
  .im-map__mod li,
  .im-pin,
  .im-site__btn,
  .im-check li,
  .im-cal li {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}
