.block-2 {
  position: relative;
  z-index: 3;
  padding-bottom: clamp(48px, 6vh, 90px);
}

.block2-canvas {
  position: relative;
  width: fit-content;
  max-width: min(100%, 1000px);
  margin: 0 auto;
  min-height: 580px;
  background: var(--paper);
  padding: clamp(30px, 2.6vw, 44px) clamp(18px, 1.9vw, 30px) clamp(46px, 3.3vw, 68px);
  overflow: visible;
  --block2-tilt-angle: -0.85deg;
  --block2-swap-distance: clamp(56px, 7vw, 110px);
  transform: translate3d(0, 0, 0) rotate(var(--block2-tilt-angle));
  transform-origin: 50% 50%;
  transition: transform 220ms ease;
  will-change: transform, opacity;
}

.block2-mobile-tabs {
  display: none;
}

.block2-authoring-save {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 18;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 122px;
  height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(4, 12, 29, 0.16);
  background: #00c88b;
  color: #040c1d;
  font: 700 0.78rem/1 var(--font-main);
  letter-spacing: 0.01em;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease, background-color 160ms ease;
  transform: translate3d(0, -6px, 0);
}

.block2-authoring-save:hover {
  background: #1de0a2;
}

.block2-canvas.is-layout-editing .block2-authoring-save {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
}

.block2-canvas.is-mode-switching {
  pointer-events: none;
}

.block2-canvas.mode-swap-out-left {
  animation: block2SwapOutLeft 170ms cubic-bezier(0.65, 0.05, 0.95, 0.35) both;
}

.block2-canvas.mode-swap-out-right {
  animation: block2SwapOutRight 170ms cubic-bezier(0.65, 0.05, 0.95, 0.35) both;
}

.block2-canvas.mode-swap-in-left {
  animation: block2SwapInLeft 250ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.block2-canvas.mode-swap-in-right {
  animation: block2SwapInRight 250ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes block2SwapOutLeft {
  from {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(var(--block2-tilt-angle));
  }
  to {
    opacity: 0;
    transform: translate3d(calc(var(--block2-swap-distance) * -1), 0, 0) rotate(var(--block2-tilt-angle));
  }
}

@keyframes block2SwapOutRight {
  from {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(var(--block2-tilt-angle));
  }
  to {
    opacity: 0;
    transform: translate3d(var(--block2-swap-distance), 0, 0) rotate(var(--block2-tilt-angle));
  }
}

@keyframes block2SwapInLeft {
  from {
    opacity: 0;
    transform: translate3d(calc(var(--block2-swap-distance) * -1), 0, 0) rotate(var(--block2-tilt-angle));
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(var(--block2-tilt-angle));
  }
}

@keyframes block2SwapInRight {
  from {
    opacity: 0;
    transform: translate3d(var(--block2-swap-distance), 0, 0) rotate(var(--block2-tilt-angle));
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(var(--block2-tilt-angle));
  }
}

.block2-clip-system {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
  z-index: 9;
}

.block2-grid {
  display: grid;
  width: max-content;
  max-width: 100%;
  margin: 0 auto;
  grid-template-columns: minmax(400px, 470px) minmax(285px, 365px);
  gap: clamp(14px, 1.4vw, 24px);
  align-items: start;
}

.block2-left {
  position: relative;
  min-height: 396px;
}

.licence-card {
  position: relative;
  width: min(100%, 470px);
  z-index: 1;
  perspective: 1200px;
}

.licence-card-svg {
  display: block;
  width: 100%;
  height: auto;
  transform-origin: 86% 2%;
  transform: rotate(0deg) translate3d(0, 0, 0);
  transition: transform 340ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.block2-canvas.is-designer .licence-card.is-tape-dropped .licence-card-svg {
  animation: none;
  transform: rotate(-13.6deg) translate3d(-6px, 8px, 0);
}

.block2-canvas:not(.is-designer) .licence-card.is-tape-top-dropped .licence-card-svg {
  animation: none;
  transform-origin: 14% 84%;
  transform: rotate(5.8deg) translate3d(5px, 4px, 0);
}

.licence-card.is-tape-returning .licence-card-svg {
  animation: none;
  transform: rotate(0deg) translate3d(0, 0, 0);
}

.licence-stamp {
  position: relative;
  display: grid;
  grid-template-columns: 182px minmax(0, 1fr);
  gap: 16px;
  background: radial-gradient(circle at 20% 15%, #1f2632, #060913 68%);
  color: #f4f6f8;
  border-radius: 18px;
  padding: 14px 16px 14px 14px;
  z-index: 1;
}

.licence-stamp::before {
  content: "";
  position: absolute;
  inset: -15px;
  background:
    radial-gradient(circle, var(--paper) 0 13px, transparent 13.3px) top left / 32px 32px repeat-x,
    radial-gradient(circle, var(--paper) 0 13px, transparent 13.3px) bottom left / 32px 32px repeat-x,
    radial-gradient(circle, var(--paper) 0 13px, transparent 13.3px) top left / 32px 32px repeat-y,
    radial-gradient(circle, var(--paper) 0 13px, transparent 13.3px) top right / 32px 32px repeat-y;
  border-radius: 22px;
  pointer-events: none;
  z-index: -1;
}

.licence-photo-wrap {
  width: 182px;
  height: 264px;
  border-radius: 9px;
  overflow: hidden;
  background: #0c1117;
}

.licence-photo-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
}

.licence-copy {
  padding-right: 2px;
}

.licence-title {
  margin: 3px 0 0;
  font-size: clamp(1.26rem, 1.35vw, 1.75rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.015em;
}

.licence-title span {
  color: var(--accent);
}

.licence-code {
  margin: 1px 0 12px;
  color: rgba(244, 246, 248, 0.62);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

.licence-fields {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.licence-fields li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 6px;
  align-items: end;
}

.field-label {
  color: #eceff4;
  font-size: 0.57rem;
  font-weight: 500;
  white-space: nowrap;
}

.field-label i {
  color: var(--accent);
  font-style: normal;
  margin-right: 2px;
}

.field-dots {
  border-bottom: 1px dotted rgba(255, 255, 255, 0.64);
  transform: translateY(-4px);
}

.licence-hand {
  color: #f5faff;
  font-family: var(--hand-font);
  font-size: clamp(1.96rem, 2.06vw, 2.76rem);
  font-weight: 400;
  line-height: 0.74;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.licence-sign-row {
  position: relative;
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  column-gap: 10px;
  padding-bottom: 2px;
}

.licence-sign-row::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  border-bottom: 2px dotted rgba(255, 255, 255, 0.6);
}

.licence-sign {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--accent);
  font-family: var(--hand-font);
  font-size: clamp(3.6rem, 4vw, 5.4rem);
  font-weight: 400;
  line-height: 0.72;
  letter-spacing: 0.012em;
  background: linear-gradient(to right, transparent, #070b14 18%);
  padding-right: 8px;
}

.licence-sign-label {
  position: relative;
  z-index: 1;
  color: rgba(240, 242, 247, 0.88);
  font-size: 0.62rem;
  letter-spacing: 0.09em;
  padding-left: 8px;
  background: linear-gradient(to left, transparent, #070b14 22%);
}

.licence-tape {
  position: absolute;
  pointer-events: none;
  z-index: 4;
}

.licence-card.is-tape-top-reset-hidden .tape-top {
  opacity: 0;
  transition: none !important;
}

.tape-top {
  width: 118px;
  top: -28px;
  right: -24px;
  transform: translate3d(0, 0, 0) rotate(0deg);
  transition: transform 340ms cubic-bezier(0.22, 1, 0.36, 1);
}

.tape-left {
  width: 92px;
  left: -42px;
  bottom: -34px;
  transform: translate3d(0, 0, 0) rotate(0deg);
  transform-origin: 22% 18%;
  transition:
    transform 360ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 120ms linear;
  opacity: 1;
}

.licence-card.is-tape-dropped .tape-left {
  animation: none;
  transform: translate3d(-24px, 135vh, 0) rotate(-62deg);
  opacity: 0;
  transition:
    transform 360ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0ms linear 360ms;
}

.block2-canvas:not(.is-designer) .licence-card.is-tape-top-dropped .tape-top {
  animation: none;
  transform: translate3d(26px, 132vh, 0) rotate(35deg);
}

.licence-card.is-tape-returning .tape-left {
  animation: none;
  transform: translate3d(0, 0, 0) rotate(0deg);
}

.hello-card {
  position: relative;
  width: min(100%, 254px);
  margin-top: 26px;
  margin-left: 44px;
  background: linear-gradient(170deg, #10c893 0%, #00ad78 64%);
  border: 2px solid rgba(255, 255, 255, 0.34);
  border-radius: 16px;
  padding: 12px 12px 10px;
  box-shadow:
    0 14px 26px rgba(0, 0, 0, 0.16),
    inset 0 2px 0 rgba(255, 255, 255, 0.22),
    inset 0 -6px 10px rgba(0, 0, 0, 0.08);
  z-index: 1;
}

.hello-label {
  margin: 0;
  color: #f6fffa;
  font-family: "Courier New", monospace;
  font-size: clamp(1rem, 1.14vw, 1.34rem);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.hello-role {
  margin: 8px 0 0;
  padding: 9px 12px 10px;
  border-radius: 12px;
  background: linear-gradient(180deg, #f4f4f4 0%, #e9e9e9 100%);
  border: 1px solid rgba(33, 38, 46, 0.2);
  color: #151a22;
  font-family: "Courier New", monospace;
  font-size: clamp(0.92rem, 1.08vw, 1.3rem);
  font-weight: 700;
  line-height: 1.06;
}

.sticker {
  position: absolute;
  pointer-events: none;
  z-index: 3;
}

.block2-canvas .sticker,
.block2-canvas .hello-card {
  touch-action: none;
  user-select: none;
}

.block2-canvas .sticker {
  pointer-events: none;
  cursor: default;
}

.block2-canvas .hello-card {
  pointer-events: none;
  cursor: default;
}

.block2-canvas.is-layout-editing .sticker,
.block2-canvas.is-layout-editing .hello-card {
  pointer-events: auto;
  cursor: grab;
}

.block2-canvas .sticker.is-dragging,
.block2-canvas .hello-card.is-dragging {
  cursor: grabbing;
  z-index: 25;
}

.sticker-github {
  width: 96px;
  left: 290px;
  top: 304px;
}

.sticker-raspberry {
  width: 84px;
  left: 368px;
  top: 316px;
}

.sticker-linux {
  width: 90px;
  left: 236px;
  top: 396px;
}

.sticker-docker {
  width: 156px;
  left: 316px;
  top: 412px;
}

.block2-right {
  position: relative;
  padding-top: 12px;
  height: 172px;
}

.block2-canvas.is-designer .block2-left {
  order: 2;
}

.block2-canvas.is-designer {
  --block2-tilt-angle: 0.85deg;
}

.block2-canvas.is-designer .block2-right {
  order: 1;
}

.block2-canvas.is-designer .block2-grid {
  grid-template-columns: minmax(285px, 365px) minmax(400px, 470px);
}

.block2-canvas.is-designer .hello-card {
  margin-top: 16px;
  margin-left: 18px;
  width: min(100%, 230px);
}

.block2-canvas.is-designer .sticker-github {
  width: 96px;
  left: 354px;
  top: 340px;
  z-index: 6;
}

.block2-canvas.is-designer .sticker-github[src*="css_adesivo.svg"] {
  width: clamp(82px, 4.9vw, 92px);
}

.block2-canvas.is-designer .sticker-raspberry {
  width: 78px;
  left: 428px;
  top: 404px;
  z-index: 5;
}

.block2-canvas.is-designer .sticker-linux {
  width: 84px;
  left: 348px;
  top: 418px;
  z-index: 4;
}

.block2-canvas.is-designer .sticker-docker {
  width: 102px;
  left: 278px;
  top: 406px;
  z-index: 3;
}

.block2-canvas.is-designer .sticker-docker[src*="notion_adesivo.svg"] {
  width: clamp(70px, 4.7vw, 84px);
}

.block2-title {
  margin: 0 0 28px;
  color: var(--dark-text);
  font-size: clamp(1.22rem, 1.84vw, 2.02rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.block2-title .title-malcuth {
  position: relative;
  display: inline-block;
  font-weight: 700;
  margin-right: 0.12em;
  padding-bottom: 0.12em;
}

.block2-title .title-malcuth::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0.09em;
  border-radius: 999px;
  background: var(--accent);
}

.block2-title .title-devolper {
  display: inline-block;
  font-weight: 500;
  text-decoration: none;
}

.block2-canvas.is-designer .block2-title .title-devolper {
  font-weight: 500;
}

.block2-title .title-devolper.is-underlined {
  position: relative;
  padding-bottom: 0.12em;
  font-weight: 700;
}

.block2-title .title-devolper.is-underlined::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0.09em;
  border-radius: 999px;
  background: var(--accent);
}

.block2-software-group {
  margin-top: 44px;
}

.software-title {
  margin: 0 0 10px;
  width: fit-content;
  color: var(--dark-text);
  font-size: clamp(1.16rem, 1.34vw, 1.62rem);
  font-weight: 600;
  line-height: 1;
  border-bottom: 4px solid var(--accent);
}

.software-list {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: grid;
  gap: 6px;
  width: min(100%, 332px);
}

.software-list li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 7px;
  align-items: center;
}

.software-list img {
  display: block;
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.software-track {
  position: relative;
  height: 11px;
  border: 1px solid #1f242c;
  border-radius: 999px;
  background: #ededed;
  overflow: hidden;
}

.software-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: 999px;
  background: #1f242c;
  transition: width 720ms cubic-bezier(0.22, 1, 0.36, 1);
}

.block2-canvas.is-software-visible .software-fill {
  width: var(--level);
}

.software-list li:nth-child(1) .software-fill {
  transition-delay: 0ms;
}

.software-list li:nth-child(2) .software-fill {
  transition-delay: 90ms;
}

.software-list li:nth-child(3) .software-fill {
  transition-delay: 170ms;
}

.software-list li:nth-child(4) .software-fill {
  transition-delay: 250ms;
}

.software-list li:nth-child(5) .software-fill {
  transition-delay: 330ms;
}

@media (prefers-reduced-motion: reduce) {
  .software-fill {
    transition: none;
  }

  .licence-card-svg,
  .licence-card.is-tape-dropped .licence-card-svg,
  .licence-card.is-tape-top-dropped .licence-card-svg,
  .licence-card.is-tape-returning .licence-card-svg,
  .licence-card.is-tape-top-dropped .tape-top,
  .licence-card.is-tape-dropped .tape-left,
  .licence-card.is-tape-returning .tape-left {
    animation: none;
    transition: none;
    transform: none;
    opacity: 1;
  }
}

.block2-copy {
  margin: 0;
  max-width: 390px;
  color: #20252d;
  font-size: clamp(0.78rem, 0.84vw, 0.94rem);
  font-weight: 400;
  line-height: 1.12;
}

.block2-scroll-meter {
  position: absolute;
  right: -68px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  z-index: 5;
  pointer-events: none;
  user-select: none;
  opacity: 0.55;
  transition: opacity 180ms ease;
}

.block2-scroll-meter.is-active {
  opacity: 1;
}

.block2-scroll-meter-track {
  position: relative;
  width: 2px;
  height: 196px;
  border-radius: 999px;
  background: rgba(31, 36, 44, 0.18);
  overflow: hidden;
}

.block2-scroll-meter-fill {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #28d9aa 0%, var(--accent) 100%);
  transition: height 160ms ease;
}

.block2-scroll-meter.is-switching .block2-scroll-meter-fill {
  animation: block2MeterPulse 360ms ease-in-out infinite alternate;
}

@keyframes block2MeterPulse {
  from {
    filter: brightness(1);
  }
  to {
    filter: brightness(1.16);
  }
}

