/* USPEH88 | SERVICES
   One selector per block. Section content is in index.html.
   Responsive rules follow the original cascade order. */

.services {
  padding: clamp(95px,13vw,190px) var(--pad);
  position: relative;
}

.services .section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 8vw;
  margin-bottom: 90px;
}

.services .section-index {
  font-size: 11px;
  color: #777;
  letter-spacing: .18em;
}

.services h2 {
  font-size: clamp(42px,6.3vw,94px);
  letter-spacing: -.055em;
  font-weight: 400;
  line-height: 1.04;
  margin: 0;
}

.services h2 em {
  font-style: normal;
  color: #626968;
}

.services {
  background: #0d1011;
  overflow: hidden;
}

.service-visual {
  height: clamp(280px,39vw,570px);
  margin: 0 calc(var(--pad) * -1) 90px;
  position: relative;
  background: #090b0c center/cover no-repeat;
}

.service-visual:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,#0d1011 0%,rgba(13,16,17,.2) 43%,rgba(13,16,17,.3) 70%,#0d1011 100%),linear-gradient(0deg,#0d1011 0%,transparent 35%,transparent 70%,#0d1011 100%);
}

.service-visual span {
  position: absolute;
  z-index: 1;
  left: var(--pad);
  bottom: 17%;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.72);
}

.service-list {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 18px;
}

.service {
  min-height: 410px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid var(--line);
  border-radius: 3px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: transform .65s cubic-bezier(.22,1,.36,1),border-color .45s;
}

.service:after {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background: var(--service-image) center/cover no-repeat;
  opacity: .42;
  transform: scale(1.05);
  transition: opacity .65s,transform .9s cubic-bezier(.22,1,.36,1);
}

.service:before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg,rgba(7,9,10,.12),rgba(7,9,10,.46) 42%,#0b0e0f 91%);
  transition: .5s;
}

.service:hover {
  transform: translateY(-7px);
  border-color: rgba(255,255,255,.32);
}

.service:hover:after {
  opacity: .62;
  transform: scale(1);
}

.service .num {
  position: absolute;
  top: 25px;
  left: 28px;
  color: rgba(255,255,255,.72);
  font-size: 11px;
  letter-spacing: .15em;
}

.service .arrow {
  position: absolute;
  right: 25px;
  top: 21px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25);
  display: grid;
  place-items: center;
  font-size: 17px;
  transition: .5s;
}

.service:hover .arrow {
  background: #eef0ed;
  color: #090b0c;
  transform: rotate(45deg);
}

.service h3 {
  font-size: clamp(29px,3.5vw,52px);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: 1;
  margin: 0 0 18px;
}

.service p {
  color: #a0a6a3;
  line-height: 1.65;
  margin: 0;
  max-width: 460px;
  font-size: 14px;
}

.service .tags {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 25px;
}

.service .tags i {
  font-style: normal;
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  color: #aeb3b1;
  background: rgba(7,9,10,.25);
  backdrop-filter: blur(5px);
}

.services {
  background: radial-gradient(circle at 11% 20%,rgba(38,58,82,.5),transparent 32%),radial-gradient(circle at 88% 32%,rgba(24,86,107,.34),transparent 31%),radial-gradient(circle at 22% 88%,rgba(107,40,49,.3),transparent 34%),radial-gradient(circle at 84% 84%,rgba(72,51,66,.42),transparent 34%),#090b0c;
}

.service-visual {
  display: none;
}

.service {
  background: linear-gradient(145deg,rgba(255,255,255,.105),rgba(255,255,255,.025) 48%,rgba(255,255,255,.055));
  backdrop-filter: blur(22px) saturate(125%);
  -webkit-backdrop-filter: blur(22px) saturate(125%);
  border-color: rgba(255,255,255,.17);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14),0 24px 70px rgba(0,0,0,.22);
  will-change: transform;
}

.service:before {
  opacity: 1;
  background: linear-gradient(135deg,var(--glass-a),transparent 44%,var(--glass-b));
  background-size: 180% 180%;
  animation: glassFlow 9s ease-in-out infinite alternate;
}

.service:after {
  opacity: 1;
  background: radial-gradient(circle at var(--px,82%) var(--py,16%),var(--flare),transparent 27%),linear-gradient(120deg,transparent 38%,rgba(255,255,255,.065) 48%,transparent 58%);
  transform: none;
  animation: glassSheen 8s ease-in-out infinite;
}

.service:nth-child(1) {
  --glass-a: rgba(38,58,82,.55);
  --glass-b: rgba(24,86,107,.19);
  --flare: rgba(77,133,157,.25);
}

.service:nth-child(2) {
  --glass-a: rgba(24,86,107,.44);
  --glass-b: rgba(72,51,66,.2);
  --flare: rgba(55,153,168,.24);
}

.service:nth-child(3) {
  --glass-a: rgba(107,40,49,.42);
  --glass-b: rgba(89,43,54,.29);
  --flare: rgba(155,65,76,.23);
}

.service:nth-child(4) {
  --glass-a: rgba(89,43,54,.39);
  --glass-b: rgba(72,51,66,.34);
  --flare: rgba(112,76,111,.27);
}

.service:nth-child(2):before {
  animation-direction: alternate-reverse;
}

.service:nth-child(4):before {
  animation-direction: alternate-reverse;
}

.service:nth-child(2):after {
  animation-delay: -2s;
}

.service:nth-child(3):after {
  animation-delay: -4s;
}

.service:nth-child(4):after {
  animation-delay: -6s;
}

.service:hover:after {
  opacity: 1;
}

.service .tags i {
  background: rgba(255,255,255,.055);
  border-color: rgba(255,255,255,.2);
}

@keyframes glassFlow {
0% {
  background-position: 0% 20%;
}
100% {
  background-position: 100% 80%;
}
}

@keyframes glassSheen {
0%,22% {
  transform: translateX(-26%) scale(1.08);
  opacity: .58;
}
55%,100% {
  transform: translateX(24%) scale(1.08);
  opacity: 1;
}
}

.service-cylinder {
  height: clamp(570px,63vw,760px);
  position: relative;
  margin: 0 calc(var(--pad) * -.42);
  perspective: 1350px;
  touch-action: pan-y;
  cursor: grab;
  outline: none;
}

.service-cylinder.is-dragging {
  cursor: grabbing;
}

.cylinder-stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transform-style: preserve-3d;
}

.cylinder-card {
  --card-w: clamp(300px,30vw,430px);
  position: absolute;
  width: var(--card-w);
  aspect-ratio: 1.5925;
  transform-style: preserve-3d;
  will-change: transform,opacity;
  pointer-events: none;
}

.card-volume {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform .85s cubic-bezier(.22,1,.36,1);
  will-change: transform;
}

.cylinder-card.is-flipped .card-volume {
  transform: rotateY(180deg);
}

.card-depth {
  position: absolute;
  inset: 0;
  border-radius: 24px;
}

.card-face {
  position: absolute;
  inset: 0;
  border-radius: 24px;
}

.card-depth {
  background: linear-gradient(90deg,#727879,#353b3e 50%,#8d9090);
  border: 1px solid rgba(255,255,255,.2);
  box-shadow: 0 32px 90px rgba(0,0,0,.48);
}

.depth-1 {
  transform: translateZ(-4px);
}

.depth-2 {
  transform: translateZ(-2px);
}

.depth-3 {
  transform: translateZ(0);
}

.depth-4 {
  transform: translateZ(2px);
}

.card-face {
  overflow: hidden;
  padding: clamp(23px,2.4vw,34px);
  border: 1px solid rgba(255,255,255,.24);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  background: linear-gradient(145deg,var(--tone-a),rgba(8,11,12,.82) 48%,var(--tone-b));
  backdrop-filter: blur(28px) saturate(125%);
  -webkit-backdrop-filter: blur(28px) saturate(125%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2),inset 0 -30px 70px rgba(0,0,0,.23);
}

.card-face:before {
  content: "";
  position: absolute;
  inset: -40%;
  background: linear-gradient(112deg,transparent 38%,rgba(255,255,255,.13) 48%,transparent 58%);
  transform: translateX(-37%) rotate(5deg);
  animation: cylinderSheen 7s ease-in-out infinite;
  pointer-events: none;
}

.card-face:after {
  content: "";
  position: absolute;
  width: 52%;
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 50%;
  right: -18%;
  bottom: -33%;
  box-shadow: 0 0 0 28px rgba(255,255,255,.025),0 0 0 57px rgba(255,255,255,.018);
  pointer-events: none;
}

.card-front {
  transform: translateZ(5px);
  justify-content: space-between;
}

.card-back {
  transform: rotateY(180deg) translateZ(5px);
  justify-content: flex-end;
}

.cylinder-card:nth-child(1) {
  --tone-a: rgba(38,58,82,.88);
  --tone-b: rgba(24,86,107,.6);
}

.cylinder-card:nth-child(2) {
  --tone-a: rgba(24,86,107,.84);
  --tone-b: rgba(72,51,66,.68);
}

.cylinder-card:nth-child(3) {
  --tone-a: rgba(107,40,49,.82);
  --tone-b: rgba(89,43,54,.7);
}

.cylinder-card:nth-child(4) {
  --tone-a: rgba(72,51,66,.86);
  --tone-b: rgba(38,58,82,.66);
}

.cylinder-card:nth-child(2) .card-face:before {
  animation-delay: -1.7s;
}

.cylinder-card:nth-child(3) .card-face:before {
  animation-delay: -3.4s;
}

.cylinder-card:nth-child(4) .card-face:before {
  animation-delay: -5.1s;
}

.card-code {
  position: relative;
  z-index: 1;
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.62);
}

.card-hint {
  position: relative;
  z-index: 1;
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.62);
}

.card-brand {
  position: relative;
  z-index: 1;
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.62);
}

.card-arrow {
  position: absolute;
  z-index: 1;
  right: clamp(23px,2.4vw,34px);
  top: clamp(22px,2.4vw,33px);
  width: 43px;
  height: 43px;
  border: 1px solid rgba(255,255,255,.27);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 17px;
  background: rgba(255,255,255,.035);
}

.card-front h3 {
  position: relative;
  z-index: 1;
  margin: auto 0 14px;
  font-weight: 400;
  font-size: clamp(31px,3.25vw,48px);
  line-height: .95;
  letter-spacing: -.055em;
}

.card-hint {
  align-self: flex-start;
  border-top: 1px solid rgba(255,255,255,.27);
  padding-top: 10px;
}

.card-back p {
  position: relative;
  z-index: 1;
  margin: 0 0 21px;
  font-size: clamp(15px,1.35vw,18px);
  line-height: 1.5;
  color: #e2e5e3;
  max-width: 92%;
}

.card-back .card-code {
  position: absolute;
  left: clamp(23px,2.4vw,34px);
  top: clamp(23px,2.4vw,34px);
}

.card-tags {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.card-tags i {
  font-style: normal;
  font-size: 8px;
  letter-spacing: .13em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,.23);
  border-radius: 999px;
  padding: 7px 9px;
  background: rgba(5,7,8,.13);
}

.card-brand {
  position: absolute;
  z-index: 1;
  right: clamp(23px,2.4vw,34px);
  bottom: clamp(24px,2.4vw,35px);
  color: rgba(255,255,255,.42);
}

.cylinder-ui {
  position: absolute;
  left: 50%;
  bottom: 25px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 10;
}

.cylinder-ui button {
  width: 47px;
  height: 47px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.055);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 18px;
  backdrop-filter: blur(14px);
  cursor: pointer;
  transition: .3s;
}

.cylinder-ui button:hover {
  background: #eef0ed;
  color: #090b0c;
  transform: scale(1.05);
}

.cylinder-counter {
  min-width: 62px;
  text-align: center;
  font-size: 9px;
  letter-spacing: .18em;
  color: #989e9c;
}

.cylinder-instruction {
  position: absolute;
  left: 50%;
  top: 40px;
  transform: translateX(-50%);
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #6f7775;
  white-space: nowrap;
}

.service-cylinder:focus-visible {
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.25);
}

@keyframes cylinderSheen {
0%,18% {
  transform: translateX(-43%) rotate(5deg);
}
62%,100% {
  transform: translateX(43%) rotate(5deg);
}
}

@media(max-width:800px) {
  .services .section-head {
    grid-template-columns: 1fr;
    gap: 25px;
    margin-bottom: 55px;
  }
}

@media(max-width:800px) {
  .service-visual {
    height: 360px;
    margin-bottom: 55px;
  }
}

@media(max-width:800px) {
  .service-list {
    grid-template-columns: 1fr;
  }
}

@media(max-width:800px) {
  .service {
    min-height: 390px;
    padding: 25px;
  }
}

@media(max-width:800px) {
  .service .num {
    left: 24px;
  }
}

@media(max-width:800px) {
  .service .arrow {
    right: 22px;
  }
}

@media(max-width:800px) {
  .service {
    background: linear-gradient(145deg,rgba(255,255,255,.11),rgba(255,255,255,.035));
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }
}

@media(max-width:800px) {
  .service-cylinder {
    height: 525px;
    margin: 0 calc(var(--pad) * -1);
  }
}

@media(max-width:800px) {
  .cylinder-card {
    --card-w: min(78vw,340px);
  }
}

@media(max-width:800px) {
  .card-face {
    border-radius: 20px;
    padding: 23px;
  }
}

@media(max-width:800px) {
  .card-depth {
    border-radius: 20px;
  }
}

@media(max-width:800px) {
  .card-front h3 {
    font-size: clamp(31px,9vw,41px);
  }
}

@media(max-width:800px) {
  .card-arrow {
    right: 22px;
    top: 21px;
    width: 39px;
    height: 39px;
  }
}

@media(max-width:800px) {
  .card-back .card-code {
    left: 23px;
    top: 23px;
  }
}

@media(max-width:800px) {
  .card-back p {
    font-size: 14px;
    line-height: 1.48;
    margin-bottom: 17px;
  }
}

@media(max-width:800px) {
  .card-brand {
    display: none;
  }
}

@media(max-width:800px) {
  .cylinder-ui {
    bottom: 12px;
  }
}

@media(max-width:800px) {
  .cylinder-instruction {
    top: 17px;
  }
}

@media(prefers-reduced-motion:reduce) {
  .service:before {
    animation: none;
  }
}

@media(prefers-reduced-motion:reduce) {
  .service:after {
    animation: none;
  }
}

@media(prefers-reduced-motion:reduce) {
  .card-face:before {
    animation: none;
  }
}

@media(prefers-reduced-motion:reduce) {
  .card-volume {
    transition-duration: .001s;
  }
}

.service-cylinder {
  touch-action: pan-y pinch-zoom;
  overscroll-behavior: contain;
}

.cylinder-card:nth-child(1) {
  --type-accent: #78c9c2;
  --type-soft: #d5f0ed;
}

.cylinder-card:nth-child(2) {
  --type-accent: #8eb7cb;
  --type-soft: #e0edf2;
}

.cylinder-card:nth-child(3) {
  --type-accent: #d47c89;
  --type-soft: #f1c7cd;
}

.cylinder-card:nth-child(4) {
  --type-accent: #b99ac0;
  --type-soft: #eadceb;
}

.card-front h3 {
  color: var(--type-soft);
  background: linear-gradient(120deg,var(--type-soft) 8%,var(--type-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cylinder-card .card-code {
  color: var(--type-accent);
}

.cylinder-card .card-arrow {
  color: var(--type-soft);
  border-color: color-mix(in srgb,var(--type-accent) 58%,transparent);
}

.cylinder-card .card-hint {
  color: var(--type-soft);
  border-color: color-mix(in srgb,var(--type-accent) 45%,transparent);
}

.cylinder-card .card-back p {
  color: var(--type-soft);
}

.cylinder-card .card-tags i {
  color: var(--type-soft);
  border-color: color-mix(in srgb,var(--type-accent) 42%,transparent);
}

.cylinder-card .card-brand {
  color: color-mix(in srgb,var(--type-accent) 70%,transparent);
}

.services .section-index {
  font-size: 12px;
  letter-spacing: .2em;
  color: #9bacaf;
}

.services {
  padding-top: 140px;
  padding-bottom: 140px;
}

.services h2 {
  font-size: clamp(50px,6.7vw,104px);
  letter-spacing: -.06em;
}

.services h2 em {
  color: #7b969b;
}

.services .section-head {
  grid-template-columns: .8fr 2fr;
  gap: 8vw;
  margin-bottom: 70px;
}

.services {
  background: linear-gradient(160deg,#080d11,#101b24 50%,#20131b);
  padding-bottom: 90px;
}

.services .section-head {
  margin-bottom: 10px;
}

.service-cylinder {
  height: 640px;
  margin: 0 calc(var(--pad)*-1);
  perspective: 1350px;
}

.cylinder-card {
  --card-w: clamp(320px,36vw,510px);
}

.card-face {
  padding: 32px;
  border-radius: 24px;
  background: linear-gradient(135deg,var(--tone-a),#0a121c 65%,var(--tone-b));
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.card-face:after {
  width: 72%;
  right: -38%;
  bottom: -90%;
  box-shadow: 0 0 0 30px #b3d6dd09,0 0 0 60px #b3d6dd07;
}

.card-front h3 {
  font-size: clamp(38px,4.1vw,60px);
  letter-spacing: -.05em;
  line-height: 1.04;
}

.card-code {
  font-size: 12px;
  letter-spacing: .12em;
}

.card-hint {
  font-size: 12px;
  letter-spacing: .12em;
}

.card-brand {
  font-size: 12px;
  letter-spacing: .12em;
}

.card-back p {
  font-size: 18px;
  line-height: 1.6;
  max-width: 100%;
  margin-bottom: 22px;
}

.card-back .card-code {
  font-size: 12px;
  top: 25px;
}

.card-tags i {
  font-size: 12px;
}

.card-brand {
  display: none;
}

.cylinder-instruction {
  font-size: 12px;
  color: #a3b5bb;
  letter-spacing: .1em;
}

.cylinder-counter {
  font-size: 14px;
}

.card-depth {
  box-shadow: none;
}

.depth-1 {
  box-shadow: 0 35px 60px #0008;
}

.card-volume {
  transition-duration: .65s;
}

@media(min-width:1600px) {
  .services {
    padding-left: max(var(--pad),calc((100vw - 1500px)/2));
    padding-right: max(var(--pad),calc((100vw - 1500px)/2));
  }
}

@media(max-width:800px) {
  .services {
    padding-top: 90px;
    padding-bottom: 90px;
  }
}

@media(max-width:800px) {
  .services .section-head {
    grid-template-columns: 1fr;
    gap: 26px;
    margin-bottom: 42px;
  }
}

@media(max-width:800px) {
  .services h2 {
    font-size: clamp(46px,11vw,75px);
  }
}

@media(max-width:800px) {
  .service-cylinder {
    height: 500px;
  }
}

@media(max-width:800px) {
  .cylinder-card {
    --card-w: min(81vw,420px);
  }
}

@media(max-width:800px) {
  .card-face {
    padding: 23px;
  }
}

@media(max-width:800px) {
  .card-front h3 {
    font-size: clamp(32px,8vw,43px);
  }
}

@media(max-width:800px) {
  .card-code {
    font-size: 12px;
  }
}

@media(max-width:800px) {
  .card-hint {
    font-size: 12px;
  }
}

@media(max-width:800px) {
  .card-back p {
    font-size: 16px;
    line-height: 1.4;
    margin-bottom: 12px;
  }
}

@media(max-width:800px) {
  .card-back .card-code {
    top: 20px;
    font-size: 12px;
  }
}

@media(max-width:800px) {
  .card-tags {
    gap: 7px;
  }
}

@media(max-width:800px) {
  .card-tags i {
    font-size: 12px;
  }
}

@media(max-width:800px) {
  .cylinder-instruction {
    font-size: 12px;
    letter-spacing: 0;
    top: 25px;
  }
}

.cylinder-instruction {
  display: none!important;
}

.card-hint {
  display: none!important;
}
