.technology-layer {
  --tech-entry: 0;
  --tech-dissolve: 0;
  --tech-drift-x: 0px;
  --tech-drift-y: 0px;
  --tech-turn: 0deg;
  --tech-float: 0px;
  position: absolute;
  inset: 0;
  isolation: isolate;
  overflow: hidden;
  opacity: var(--tech-opacity, 0);
  visibility: hidden;
  background:
    radial-gradient(ellipse at 66% 45%, #14404892 0%, #0716203c 53%, transparent 71%),
    linear-gradient(116deg, #050913ce 6%, #081b2540 81%);
}

.motion .technology-layer.is-visible { visibility: visible; }

.technology-layer::before {
  content: "";
  position: absolute;
  inset: 6% -10% -70%;
  transform: perspective(460px) rotateX(49deg) translateY(calc(var(--tech-dissolve) * -11%));
  background-image: linear-gradient(#76dad32b 1px, transparent 1px), linear-gradient(90deg, #76dad32b 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 63% 43%, #000 1%, #0009 24%, transparent 62%);
}

.technology-layer::after {
  content: "";
  position: absolute;
  inset: 11% 1% 5%;
  background: linear-gradient(110deg, transparent 18%, #42b6b841 50%, transparent 80%);
  mask-image: linear-gradient(transparent, #000 49%, #000 50%, transparent 51%);
  transform: translateY(calc(11% - var(--tech-entry) * 15% - var(--tech-dissolve) * 31%));
  pointer-events: none;
}

.technology-code, .technology-devices { position: absolute; inset: 0; width: 100%; height: 100%; }
.technology-devices { perspective: 970px; }
.technology-device { position: absolute; transform-style: preserve-3d; }

.technology-monitor {
  width: clamp(21rem, 42vw, 49rem);
  left: 54%;
  top: 19%;
  transform: translate3d(
    calc(-38% + var(--tech-drift-x) + (1 - var(--tech-entry)) * 27vw - var(--tech-dissolve) * 9vw),
    calc(var(--tech-drift-y) + var(--tech-float) + (1 - var(--tech-entry)) * 12vh - var(--tech-dissolve) * 21vh),
    calc((1 - var(--tech-entry)) * -260px + var(--tech-dissolve) * -130px)
  ) rotateY(calc(-23deg + var(--tech-entry) * 12deg + var(--tech-turn) - var(--tech-dissolve) * 17deg))
    rotateX(calc(8deg - var(--tech-entry) * 6deg)) rotateZ(calc(-5deg + var(--tech-entry) * 2deg));
}

.technology-frame {
  position: relative;
  padding: 1.8%;
  border: 1px solid #b4ece6a6;
  border-radius: clamp(.43rem, 1vw, 1rem);
  background: linear-gradient(146deg, #41616a, #111f2b 21%, #0a141c 62%, #263e49);
  box-shadow:
    0 1px 0 #b4efdb61 inset,
    1px -1px 0 #103543 inset,
    0 0 30px #50dbcf26,
    11px 19px 48px #010609ad;
}

.technology-monitor .technology-frame { padding-bottom: 3.4%; }

.technology-monitor .technology-frame::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 1.2%;
  width: .26rem;
  height: .26rem;
  border-radius: 50%;
  background: #b8ffe2;
  box-shadow: 0 0 .78rem #75f4d9;
}

.technology-monitor-screen {
  aspect-ratio: 16 / 10;
  display: grid;
  grid-template-rows: 8% 1fr;
  overflow: hidden;
  border: 1px solid #6ce5d174;
  border-radius: .4rem;
  background: #101e2a;
  box-shadow: 0 0 18px #64dddd25 inset;
}

.technology-toolbar {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: .28rem;
  padding-inline: 3%;
  color: #c0e1e2;
  background: #0c1723;
  border-bottom: 1px solid #8fe7db36;
  font: 500 clamp(.42rem, .64vw, .7rem)/1 ui-monospace, monospace;
}

.technology-toolbar i { width: .25em; height: .25em; border-radius: 50%; background: #79cbbd; box-shadow: 0 0 .25rem #93ffea; }
.technology-toolbar i:nth-child(2) { background: #79adc8; }
.technology-toolbar i:nth-child(3) { background: #bdb4f6; }
.technology-toolbar span { margin-inline: 3% auto; opacity: .88; }

.technology-monitor-content { display: grid; grid-template-columns: .87fr 1.13fr; min-height: 0; }

.technology-editor {
  overflow: hidden;
  display: grid;
  align-content: center;
  gap: .46em;
  padding: 7%;
  background: linear-gradient(150deg, #0b1825, #132640);
  font: 500 clamp(.43rem, .81vw, .94rem)/1.32 ui-monospace, monospace;
  color: #b1cce7;
  white-space: nowrap;
}

.technology-editor span { color: #cbeee7; padding-bottom: .68em; margin-bottom: .24em; border-bottom: 1px solid #72cabc39; }
.technology-editor em { font-style: normal; color: #7cddd1; }
.technology-editor b { color: #dabcf9; font-weight: inherit; }

.technology-website {
  min-width: 0;
  display: grid;
  grid-template-rows: 18% 1fr 20%;
  align-items: stretch;
  overflow: hidden;
  padding: 6% 8% 0;
  color: #192837;
  background: linear-gradient(139deg, #f1e8e4, #e8d9d3 72%);
}

.technology-site-nav { display: flex; align-items: center; gap: 7%; border-bottom: 1px solid #31413e38; }
.technology-site-nav b { margin-right: auto; font: 700 clamp(.57rem, 1.22vw, 1.4rem)/1 var(--sans); }
.technology-site-nav i, .technology-site-footer i { flex: none; width: 12%; height: 1px; background: #5d5966; }

.technology-site-content { display: grid; align-items: center; gap: 5%; grid-template-columns: 1.25fr .75fr; }
.technology-site-content > div:first-child { min-width: 0; }
.technology-site-content span { display: block; font-size: clamp(.28rem, .45vw, .56rem); margin-bottom: .55em; letter-spacing: .08em; }
.technology-site-content strong {
  display: block;
  margin-bottom: .45em;
  font: 400 clamp(.69rem, 1.9vw, 2.2rem)/.94 var(--serif);
  letter-spacing: -.045em;
}
.technology-site-content i, .technology-laptop-content i { display: block; width: 34%; height: .49em; border-radius: 999px; background: #3c5d60; }
.technology-site-image { aspect-ratio: 3 / 4; background: #a87975 url("./media/trabajo-valentina.jpg") center 37% / cover; }
.technology-site-footer { display: flex; gap: 5%; align-items: center; border-top: 1px solid #31413e38; }
.technology-site-footer i:nth-child(2) { width: 17%; }

.technology-monitor-stand {
  position: absolute;
  left: 41%;
  top: 98.5%;
  width: 18%;
  height: 23%;
  clip-path: polygon(34% 0, 66% 0, 71% 75%, 100% 83%, 100% 91%, 0 96%, 0 87%, 27% 75%);
  background: linear-gradient(166deg, #233747, #132632 61%, #5e8f95 83%, #1e3743);
  box-shadow: 0 0 20px #67d6dc55;
}

.technology-laptop {
  width: clamp(11rem, 26vw, 30rem);
  left: 74%;
  top: 58%;
  transform: translate3d(
    calc(-50% - var(--tech-drift-x) - (1 - var(--tech-entry)) * 12vw + var(--tech-dissolve) * 19vw),
    calc(var(--tech-drift-y) * -.55 - var(--tech-float) + (1 - var(--tech-entry)) * 24vh + var(--tech-dissolve) * 7vh),
    calc((1 - var(--tech-entry)) * -230px + var(--tech-dissolve) * -140px)
  ) rotateY(calc(21deg - var(--tech-entry) * 7deg + var(--tech-turn))) rotateZ(7deg);
}

.technology-laptop-screen { aspect-ratio: 16 / 10; background: #dce8e1; display: grid; grid-template-rows: 10% 1fr; overflow: hidden; border-radius: .38rem; }

.technology-laptop-content {
  display: grid;
  grid-template-columns: .79fr 1fr;
  min-height: 0;
  gap: 5%;
  padding: 6%;
  color: #153338;
  background: linear-gradient(134deg, #d7e4dc, #a9c8c1);
}

.technology-laptop-content > div:first-child { align-self: center; }
.technology-laptop-content b { display: block; margin-bottom: .7em; font: 600 clamp(.37rem, .7vw, .7rem)/1 var(--sans); }
.technology-laptop-content strong { display: block; font: 400 clamp(.66rem, 1.44vw, 1.7rem)/.9 var(--serif); margin-bottom: .4em; }
.technology-laptop-photo { background: #3d5254 url("./media/trabajo-valeria.jpg") center 36% / cover; }

.technology-keyboard {
  position: absolute;
  top: 99%;
  left: -6.5%;
  width: 113%;
  height: 55%;
  transform-origin: top;
  transform: rotateX(64deg);
  border: 1px solid #a5c5cd82;
  border-bottom: .33rem solid #58727c;
  border-radius: 3% 3% 9% 9%;
  background: linear-gradient(177deg, #435965, #2b4654 77%, #86a6ae);
  box-shadow: 0 0 13px #6ccbde28 inset, 0 8px 25px #030915af;
}

.technology-keyboard i {
  position: absolute;
  inset: 5% 10% 45%;
  border-radius: .18rem;
  background:
    repeating-linear-gradient(90deg, transparent 0 7%, #344a59 7.3% 8%),
    repeating-linear-gradient(#0a171e 0 20%, #425c65 21% 24%);
  border: 1px solid #617d8b6b;
}

.technology-keyboard b {
  position: absolute;
  width: 23%;
  height: 31%;
  bottom: 6%;
  left: 38.5%;
  border-radius: .28rem;
  border: 1px solid #a3b7bc91;
  background: #8aa2ad38;
}

.technology-phone {
  width: clamp(3.5rem, 8vw, 8.4rem);
  aspect-ratio: 9 / 17;
  left: 51%;
  top: 68%;
  padding: 3px;
  border-radius: clamp(.62rem, 1.65vw, 1.55rem);
  border: 1px solid #a6d4da9c;
  background: #152632;
  box-shadow: 7px 12px 25px #01060ad6, 0 0 25px #53e5d62e;
  transform: translate3d(
    calc(var(--tech-drift-x) * 1.2 - (1 - var(--tech-entry)) * 23vw - var(--tech-dissolve) * 16vw),
    calc(var(--tech-drift-y) * -.85 + var(--tech-float) * .65 + (1 - var(--tech-entry)) * 17vh + var(--tech-dissolve) * 14vh),
    22px
  ) rotateY(calc(-12deg + var(--tech-turn))) rotateZ(-11deg);
}

.technology-phone-screen { display: grid; gap: 6%; height: 100%; padding: 15% 11% 10%; border-radius: inherit; overflow: hidden; color: #f6d9d8; background: linear-gradient(157deg, #392c43, #191b35 80%); }
.technology-phone-screen > div:first-child { display: flex; justify-content: space-between; align-items: center; }
.technology-phone-screen b { font-size: clamp(.4rem, .82vw, .8rem); }
.technology-phone-screen i { width: 28%; height: 2px; border-radius: 9px; background: #dbaabc; }
.technology-phone-screen strong { font: 400 clamp(.65rem, 1.29vw, 1.38rem)/.91 var(--serif); }
.technology-phone-photo { height: 100%; min-height: 0; aspect-ratio: 5 / 4; background: #352b40 url("./media/trabajo-katherine.jpg") center 32% / cover; border-radius: .15rem; }

@media (max-width: 850px) {
  .technology-monitor { left: 58%; top: 15%; }
  .technology-laptop { left: 77%; top: 50%; }
  .technology-phone { left: 54%; top: 60%; }
}

@media (max-width: 600px) {
  .technology-layer {
    background:
      radial-gradient(ellipse at 49% 35%, #17464f78 0%, #07162045 52%, transparent 79%),
      linear-gradient(0deg, #050b14ed, transparent 56%);
  }
  .technology-devices { mask-image: linear-gradient(#000 36%, #000a 46%, transparent 61%); }
  .technology-monitor { left: 44%; top: 11%; width: min(77vw, 23rem); }
  .technology-laptop { left: 73%; top: 28%; width: min(49vw, 14rem); }
  .technology-phone { left: 12%; top: 32%; width: clamp(3.1rem, 14vw, 4.6rem); }
  .technology-editor { font-size: clamp(.36rem, 1.77vw, .62rem); }
  .technology-site-content strong { font-size: clamp(.78rem, 3.45vw, 1.13rem); }
  .technology-laptop-content strong { font-size: clamp(.66rem, 2.8vw, 1rem); }
}

@media (max-height: 575px) and (orientation: landscape) {
  .technology-monitor { width: min(42vw, 65vh); top: 15%; }
  .technology-laptop { width: min(26vw, 38vh); }
  .technology-phone { width: min(8vw, 12vh); }
}

.section-code {
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  height: min(100%, 100svh);
  transform: translateY(var(--section-code-offset, 0));
  pointer-events: none;
  mask-image: linear-gradient(transparent, #000 14% 86%, transparent);
}

html:not(.motion) .section-code { display: none; }

:is(.process, .work) > .section-inner {
  position: relative;
  z-index: 1;
}
