/* Foundation */
:root {
  color-scheme: dark;
  --bg: #0a0f17;
  --surface: #101722;
  --line: #293345;
  --text: #eff1fa;
  --muted: #a9b4ca;
  --accent: #9aabff;
  --width: 1180px;
  --header-height: 88px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-snap-type: y proximity;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  /* cursor: url("../assets/icons/cursor.png") 8 5, auto; */
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid #b6bcff;
  outline-offset: 6px;
}

a:hover {
  color: #bdc8ff;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  line-height: 1.12;
  letter-spacing: -.04em;
}

h2 {
  font-size: clamp(2rem, 3.4vw, 3rem);
  font-weight: 600;
}

h3 {
  font-size: 1.3rem;
  font-weight: 600;
}

p {
  color: var(--muted);
}

.hidden {
  display: none !important;
}

.container {
  width: min(var(--width), calc(100% - 80px));
  margin: auto;
}

/* Viewport-height sections share one rule; header-aware sections subtract its height. */
section.full-scroll,
.hero,
.main-about,
.services-page .page-intro {
  min-height: calc(100vh - var(--viewport-offset, 0px));
  min-height: calc(100svh - var(--viewport-offset, 0px));
}

.hero,
.main-about,
.services-page .page-intro {
  --viewport-offset: var(--header-height);
}

@media (max-width: 760px) {
  :root {
    --header-height: 76px;
  }
}


section.full-scroll {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 126px;
  padding-bottom: 126px;
  scroll-snap-align: start;
  scroll-margin-top: -87px !important;
  overflow-y: hidden;
}

section.full-scroll>.container:not(.hero-footer) {
  margin-block: auto;
}

.skip {
  position: fixed;
  top: -90px;
  left: 20px;
  z-index: 10;
  padding: 12px;
  background: var(--text);
  color: var(--bg);
}

.skip:focus {
  top: 12px;
}

.section-dots {
  position: fixed;
  z-index: 4;
  top: 50%;
  right: clamp(8px, 1.6vw, 24px);
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  max-height: calc(100svh - 32px);
  overflow-y: auto;
  scrollbar-width: none;
  padding: 8px 0;
  border-radius: 999px;
  background: #0a101b99;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 200ms ease, visibility 200ms ease;
}

.section-dots::-webkit-scrollbar {
  display: none;
}

.section-dots.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.section-dots::before {
  content: '';
  position: absolute;
  top: 27px;
  bottom: 27px;
  width: 1px;
  background: #8295bb7a;
}

.section-dots a {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.section-dots a span {
  width: 8px;
  height: 8px;
  border: 1px solid #9cadd0;
  border-radius: 50%;
  background: #101a2a;
  box-shadow: 0 0 0 3px #0a101bc9;
  transition: transform 180ms ease, background 180ms ease;
}

.section-dots a[aria-current="location"] span {
  background: #b4c9ff;
  box-shadow: 0 0 0 4px #172640, 0 0 0 5px #9cadd0;
}

.section-dots a:hover span,
.section-dots a:focus-visible span {
  transform: scale(1.35);
  background: #d8e3ff;
}

.section-dots a:focus-visible {
  outline: 2px solid #c2d1ff;
  outline-offset: 1px;
}

.eyebrow {
  display: block;
  color: var(--accent);
  font-size: .75rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 22px;
  font-weight: 600;
}

.section {
  padding: 90px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: -87px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin-bottom: 38px;
}

.section-head h2 {
  max-width: 650px;
}

.section-head p {
  max-width: 350px;
  font-size: .9rem;
}

.text-link {
  display: inline-flex;
  color: var(--accent);
  font-size: .875rem;
  border-bottom: 1px solid #515f94;
  padding-bottom: 5px;
}

.text-link.right {
  margin-left: auto;
}

.text-link span {
  margin-left: 14px;
}

.text-link svg {
  display: block;
  flex: none;
  width: 24px;
  height: 24px;
  animation: text-link-arrow-bounce 3.2s ease-in-out infinite;
  transition: transform 180ms ease;
}

@keyframes text-link-arrow-bounce {

  0%,
  68%,
  100% {
    transform: translateX(0);
  }

  76% {
    transform: translateX(8px);
  }

  84% {
    transform: translateX(0);
  }

  90% {
    transform: translateX(4px);
  }
}

.text-link:hover svg,
.text-link:focus-visible svg {
  animation: none;
  transform: translateX(3px);
}

.lead {
  font-size: 1.1rem;
  max-width: 600px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-height: 48px;
  padding: 12px 23px;
  border-radius: 5px;
  border: 1px solid #697798;
  font-size: .875rem;
  font-weight: 600;
}

.button.primary {
  border: 0;
  background: linear-gradient(110deg, #8c71fa, #638ffd);
  color: #080d1b;
}

.button:hover {
  transform: translateY(-2px);
  color: var(--text);
}

.button.primary:hover {
  color: #080d1b;
  background: #a6afff;
}

.tag {
  display: inline-block;
  border: 1px solid #303b50;
  background: #151e2c;
  border-radius: 3px;
  padding: 3px 8px;
  color: #c3cee5;
  font-size: .75rem;
  line-height: 1.5;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 22px;
}

/* Header and navigation */
.site-header {
  height: 88px;
  position: relative;
  z-index: 5;
  border-bottom: 1px solid #ffffff0b;
  background: #0b111bee;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 28px;
}

.brand {
  font-weight: 750;
  font-size: 1.4rem;
  letter-spacing: -.06em;
}

.brand span {
  color: #99a9ff;
}

.nav {
  display: flex;
  gap: 29px;
  margin-left: auto;
}

.nav a {
  font-size: .875rem;
  padding: 9px 0;
  position: relative;
}

.nav a[aria-current=page]:after {
  content: '';
  position: absolute;
  bottom: 1px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--accent);
}

.menu-toggle {
  display: none;
  color: var(--text);
  background: none;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 7px 12px;
}

/* Hero: original abstract landscape, no portrait substitute */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #101826;
}

.hero-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-art .layer {
  position: absolute;
  top: -160px;
  left: -80px;
  width: calc(100% + 160px);
  max-width: none;
  height: calc(100% + 320px);
  object-fit: cover;
  object-position: right center;
  transform: translate3d(0, var(--parallax-shift, 0px), 0);
}

.hero-art .layer:not(.sky) {
  top: auto;
  left: auto;
  right: -4%;
  bottom: 4%;
  width: clamp(960px, 66vw, 1100px);
  height: auto;
  aspect-ratio: 16 / 11;
  object-fit: contain;
  object-position: center;
}

.hero-art .layer.back,
.hero-art .layer.mid,
.hero-art .layer.front {
  left: 0;
  right: auto;
  bottom: 0;
  width: 100%;
  height: min(70svh, 700px);
  aspect-ratio: auto;
  object-fit: fill;
}

.js .hero-art .layer:not(.sky):not(.orbits) {
  animation: hero-art-rise var(--rise-duration) cubic-bezier(.16, 1, .3, 1) both;
  animation-delay: var(--rise-delay);
}

.hero-art .front {
  --rise-distance: 28px;
  --rise-duration: 1050ms;
  --rise-delay: 0ms;
}

.hero-art .mid {
  --rise-distance: 52px;
  --rise-duration: 1250ms;
  --rise-delay: 140ms;
}

.hero-art .back {
  --rise-distance: 88px;
  --rise-duration: 1450ms;
  --rise-delay: 280ms;
}

.hero-art .planet {
  --rise-distance: 120px;
  --rise-duration: 1650ms;
  --rise-delay: 420ms;
}

.js .hero-art .orbits {
  animation: hero-orbits-reveal 1100ms ease-out 650ms both;
}


/* estrella fugaz */
.shooting-stars {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}

.shooting-star {
  position: absolute;
  width: 120px;
  height: 1px;

  background: linear-gradient(190deg, transparent, rgba(160, 180, 255, 0.4), #fff);
  border-radius: 999px;
  filter: drop-shadow(0 0 3px #fff) drop-shadow(0 0 7px #7289ff);
  opacity: 0;
  transform-origin: right center;
  transform: rotate(-35deg);
}


.shooting-star.shoot {
  animation: shooting-star 1.2s ease-out forwards;
}

@keyframes shooting-star {
  0% {
    opacity: 0;
    transform: :translate(0, 0, 0) rotate(-35deg);
  }

  10% {
    opacity: 1;
  }

  75% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform:
      translate3d(-600px, 420px, 0) rotate(-35deg);
  }
}


@keyframes hero-art-rise {
  from {
    opacity: 0;
    translate: 0 var(--rise-distance);
  }

  to {
    opacity: 1;
    translate: 0 0;
  }
}

@keyframes hero-orbits-reveal {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@media (max-width: 1050px) {
  .hero-art .layer:not(.sky) {
    top: auto;
    left: auto;
    right: -8%;
    bottom: 4%;
    width: min(132%, 960px);
    height: auto;
    aspect-ratio: 16 / 11;
    object-fit: contain;
    object-position: center;
  }

  .hero-art .layer.back,
  .hero-art .layer.mid,
  .hero-art .layer.front {
    bottom: 0;
    width: max(100%, min(132%, 960px));
  }
}

@media (min-width: 900px) and (max-width: 1050px) {

  .hero-art .layer.back,
  .hero-art .layer.mid,
  .hero-art .layer.front {
    left: 0;
    right: auto;
  }
}

@media (max-width: 600px) {
  .hero-art .layer:not(.sky) {
    right: -11%;
    bottom: 10%;
    width: 145%;
  }

  .hero-art .layer.back,
  .hero-art .layer.mid,
  .hero-art .layer.front {
    bottom: 0;
  }
}

.hero:after {
  content: '';
  position: absolute;
  inset: 0;
  /* background: linear-gradient(180deg, #0a101ba8 0%, #0a101b14 30%, #0a101b40 58%, #0a0f17f5 100%); */
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 78px 0 100px;
}


.hero .hello {
  font-size: 1.1rem;
  margin-bottom: 17px;
}

.hero h1 {
  font-size: clamp(3.2rem, 5.65vw, 5.25rem);
  letter-spacing: -.055em;
  font-weight: 650;
  max-width: 780px;
  line-height: 1.03;
}

.hero h1 span {
  color: #b9bfd8;
}

.hero .role {
  color: var(--text);
  font-size: 1rem;
  margin: 26px 0 8px;
}

.hero .lead {
  max-width: 490px;
}

.hero-bottom {
  margin-top: 65px;
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: .75rem;
  letter-spacing: .09em;
}

.hero-bottom:before {
  content: '';
  width: 95px;
  height: 1px;
  background: #566077;
}

.hero_main_page_data {
  display: flex;
  justify-content: space-between;
}

.hero-orbit {
  position: relative;
  z-index: 1;
  align-self: center;
  display: grid;
  min-width: 188px;
  margin-left: 28px;
  padding-left: 28px;
  color: #cbd6e9;
  font-size: .78rem;
  letter-spacing: .01em;
}

.hero-orbit::before {
  content: '';
  position: absolute;
  top: 15px;
  bottom: 15px;
  left: 5px;
  width: 1px;
  background: linear-gradient(#99abc5aa, #54698599);
}

.hero-orbit span {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 32px;
  white-space: nowrap;
  text-shadow: 0 1px 8px #07101d;
}

.hero-orbit span::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -23px;
  width: 6px;
  height: 6px;
  transform: translate(-50%, -50%);
  border: 1px solid #91a3bf;
  border-radius: 50%;
  background: #101a2a;
  box-shadow: 0 0 0 3px #101a2aca;
}

.hero-orbit span:first-child {
  color: #f0f4ff;
}

.hero-orbit span:first-child::before {
  width: 11px;
  height: 11px;
  border-color: #dde7ff;
  background: radial-gradient(circle, #e4edff 0 1px, #18263a 2px);
  box-shadow: 0 0 0 4px #142239bb, 0 0 13px #a8c2ff77;
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 20px;
}

.service-card {
  padding: 29px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, #151d29aa, #0d131c);
}

.service-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #7460c72b;
  color: #baacff;
  font-size: 1.2rem;
  margin-bottom: 27px;
}

.service-card:nth-child(2) .service-icon {
  background: #168caa26;
  color: #74cce4;
}

.service-card:nth-child(3) .service-icon {
  background: #4469eb2b;
  color: #9baaff;
}

.service-card p {
  font-size: .9rem;
  margin-top: 16px;
}

#work .section-head {
  margin-bottom: 70px;
}

#work .section-head h2 {
  max-width: 760px;
}

#work .section-head p {
  max-width: 560px;
  margin-top: 18px;
  font-size: 1rem;
}

#work .work-content>.text-link.right {
  display: flex;
  width: max-content;
  margin: 24px 0 0 auto;
}

#work .intro-grid {
  position: relative;
  gap: 22px;
}

#work .intro-grid::before {
  content: '';
  position: absolute;
  top: -30px;
  left: 16.66%;
  right: 16.66%;
  border-top: 1px solid #819bd166;
}

#work .service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 315px;
  padding: 24px 28px 22px;
  border-color: #60749d9c;
  border-radius: 14px;
  background: linear-gradient(145deg, #142138e8, #09111ff2 65%);
  box-shadow: inset 0 1px #b0c1ff12, 0 22px 45px #0004;
}

#work .service-card::before {
  content: attr(data-number);
  position: absolute;
  top: -69px;
  left: 50%;
  transform: translateX(-50%);
  color: #a8bcff;
  font-size: .9rem;
  letter-spacing: .08em;
}

#work .service-card::after {
  content: '';
  position: absolute;
  top: -37px;
  left: 50%;
  width: 14px;
  height: 14px;
  transform: translateX(-50%);
  border: 3px solid #c3d1ff;
  border-radius: 50%;
  background: #738ee1;
  box-shadow: 0 0 0 4px #15253e, 0 0 13px #819dff88;
}

#work .service-art {
  position: absolute;
  top: 22px;
  right: 6px;
  width: 63%;
  height: 155px;
  object-fit: contain;
  pointer-events: none;
}

#work .service-icon {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  margin: 10px 0 0;
  border: 1px solid #a99cff55;
  border-radius: 10px;
  background: #7774d027;
}

#work .service-card h3 {
  position: relative;
  z-index: 1;
  max-width: 220px;
  margin-top: 47px;
  font-size: 1.23rem;
  line-height: 1.17;
}

#work .service-card p {
  position: relative;
  z-index: 1;
  max-width: 245px;
  margin-top: 12px;
  line-height: 1.4;
}

#work .service-card .tags {
  position: relative;
  z-index: 1;
  padding-right: 38px;
  margin-top: auto;
  padding-top: 12px;
}

#work .service-card .tag {
  padding: 2px 6px;
  background: #142238bb;
  border-color: #5d729790;
  font-size: .67rem;
  white-space: nowrap;
}

#work .service-card-link {
  position: absolute;
  right: 25px;
  bottom: 25px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #9aaed088;
  border-radius: 50%;
  color: #e4eaff;
  font-size: 1.25rem;
  line-height: 1;
  transition: background 180ms ease, transform 180ms ease;
}

#work .service-card-link:hover,
#work .service-card-link:focus-visible {
  transform: translateX(3px);
  background: #273c62;
}

@media (max-width: 980px) {
  #work .intro-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #work .intro-grid::before,
  #work .service-card::after {
    display: none;
  }

  #work .service-card::before {
    top: 20px;
    right: 22px;
    left: auto;
    transform: none;
  }

  #work .service-card:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  #work .section-head {
    margin-bottom: 30px;
  }

  #work .section-head h2 br {
    display: none;
  }

  #work .intro-grid {
    grid-template-columns: 1fr;
  }

  #work .service-card {
    min-height: 330px;
  }

  #work .service-card:last-child {
    grid-column: auto;
  }
}

.about-grid {
  display: grid;
  grid-template-columns: 1.3fr .8fr .5fr;
  align-items: center;
  gap: 46px;
}

.about-copy p {
  margin-top: 20px;
  font-size: .95rem;
}

.about-copy .text-link {
  margin-top: 28px;
}

.portrait {
  aspect-ratio: 4/5;
  border: 1px solid #4d586d;
  border-radius: 6px;
  background: radial-gradient(ellipse at 65% 30%, #53607655, transparent 55%), linear-gradient(145deg, #263248, #0c121d);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}



.portrait:after {
  transform: rotate(50deg);
}

.portrait-label {
  z-index: 1;
  text-align: center;
  background: #152030;
  padding: 20px 12px;
  border: 1px solid #3b4c68;
  border-radius: 4px;
}

.portrait-label strong {
  display: block;
  font-size: 2.3rem;
  letter-spacing: -.07em;
  color: #a8b4cf;
}

.portrait-label span {
  font-size: .75rem;
  color: var(--muted);
}

.page-section.about-section {
  position: relative;
  overflow: hidden;
  gap: 28px;
  padding-top: 50px;
  padding-bottom: 90px;
  background: radial-gradient(ellipse at 90% 0%, #29345466, transparent 65%);
  scroll-margin-top: 0px;
}

#about-home {
  overflow: hidden;
  overflow: clip;
}

.about-section>.container:not(.hero-footer) {
  position: relative;
  z-index: 1;
  margin-block: 0;
}

.container.about-intro {
  margin-bottom: 0px !important;
}

.about-intro h1 {
  font-size: clamp(2.9rem, 5.5vw, 4.8rem);
  max-width: 860px;
}

.about-intro .lead {
  margin-top: 25px;
}




/* fondo */
#work {
  overflow: hidden;
  isolation: isolate;
  padding-top: 40px;
  padding-bottom: 90px;
}

#work>.container {
  z-index: 2;
}



.prevent_text_2_lines {
  min-height: 2lh;
}

/* que hago fondo */
/* Círculo superior izquierdo */
#work::before {
  content: "";
  position: absolute;

  width: clamp(550px, 65vw, 1200px);
  aspect-ratio: 1;

  left: -10vw;
  top: -35vh;

  border: 1px solid rgba(125, 145, 210, 0.06);

  border-radius:
    42% 58% 35% 65% / 55% 38% 62% 45%;

  background: radial-gradient(circle,
      transparent 55%,
      rgba(100, 120, 190, 0.025) 72%,
      transparent 73%);

  pointer-events: none;
  z-index: 0;


  animation: float-shape-1 24s ease-in-out infinite alternate;
}


/* Forma inferior derecha */
#work::after {
  content: "";
  position: absolute;

  width: clamp(550px, 65vw, 1200px);
  aspect-ratio: 1;

  right: -38vw;
  bottom: -15%;

  border: 1px solid rgba(125, 145, 210, 0.06);

  border-radius:
    42% 58% 35% 65% / 55% 38% 62% 45%;

  background: radial-gradient(circle,
      transparent 55%,
      rgba(100, 120, 190, 0.025) 72%,
      transparent 73%);

  pointer-events: none;
  z-index: 0;

  animation: float-shape-2 24s ease-in-out infinite alternate;
}

@keyframes float-shape-1 {

  0% {
    transform:
      translate3d(0, 0, 0) rotate(0deg);

    border-radius:
      63% 37% 54% 46% / 48% 58% 42% 52%;
  }

  50% {
    transform:
      translate3d(4vw, 3vh, 0) rotate(8deg);

    border-radius:
      45% 55% 38% 62% / 60% 40% 58% 42%;
  }

  100% {
    transform:
      translate3d(-2vw, 6vh, 0) rotate(-5deg);

    border-radius:
      55% 45% 65% 35% / 40% 62% 38% 60%;
  }
}


@keyframes float-shape-2 {

  0% {
    transform:
      translate3d(0, 0, 0) rotate(0deg);

    border-radius:
      42% 58% 35% 65% / 55% 38% 62% 45%;
  }

  50% {
    transform:
      translate3d(-5vw, -2vh, 0) rotate(-7deg);

    border-radius:
      60% 40% 52% 48% / 38% 58% 42% 62%;
  }

  100% {
    transform:
      translate3d(2vw, -5vh, 0) rotate(6deg);

    border-radius:
      48% 52% 62% 38% / 65% 35% 55% 45%;
  }
}

/* acercar de mi orbita  */
.about-section::before,
.about-section::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  border: 1px solid rgba(130, 150, 210, 0.08);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.about-section::before {
  width: 115vw;
  aspect-ratio: 3.5 / 1;
  transform:
    translate(-50%, -50%) rotate(-15deg);
}

.about-section::after {
  width: 90vw;
  aspect-ratio: 3.8 / 1;
  transform:
    translate(-50%, -50%) rotate(-15deg);
}

.interests {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 18px;
  font-size: .8rem;
  color: #b9c4da;
}

.interests li {
  display: flex;
  gap: 12px;
  align-items: center;
}

.interests b {
  color: #9fa7d1;
  font-size: 1rem;
  font-weight: 400;
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-bottom: 40px;
}

.project {
  border: 1px solid #364055;
  border-radius: 8px;
  overflow: hidden;
  background: #101721;
}

.project.featured {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
}

.project-body {
  padding: 30px;
}

.project-body p {
  margin-top: 15px;
  font-size: .9rem;
}

.project-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}

.project-top .tag {
  color: #a5b8ff;
  background: #1d294b;
  border: 0;
}

.project-number {
  color: #7e8ba7;
  font-size: .85rem;
}

.project .text-link {
  margin-top: 24px;
}

.project-art {
  min-height: 220px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at 20% 30%, #3e5076, #121c2d 66%);
}

.featured .project-art {
  min-height: 350px;
}

.project-art:after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, #c6b2ff0b, transparent);
  pointer-events: none;
}

.art-caption {
  position: absolute;
  bottom: 14px;
  left: 18px;
  color: #a0acc4;
  font-size: .75rem;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.dashboard {
  width: 79%;
  padding: 18px;
  background: #101827;
  border: 1px solid #526080;
  box-shadow: 0 25px 50px #0008;
  transform: perspective(800px) rotateY(10deg) rotateZ(-5deg);
  border-radius: 6px;
}

.dash-top {
  height: 10px;
  width: 45%;
  background: #516489;
  margin-bottom: 20px;
}

.dash-layout {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 16px;
}

.dash-sidebar {
  border-right: 1px solid #36425b;
  background: repeating-linear-gradient(0deg, transparent 0 22px, #63749a55 22px 25px);
}

.dash-main {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.dash-main i {
  height: 32px;
  border: 1px solid #344864;
  background: #1a2a41;
  border-radius: 3px;
}

.dash-chart {
  grid-column: 1/-1;
  height: 90px;
  background: repeating-linear-gradient(0deg, transparent 0 21px, #2e405a 22px 23px);
  display: flex;
  align-items: end;
  gap: 9px;
  padding: 10px;
}

.dash-chart b {
  flex: 1;
  background: linear-gradient(#819ef0, #314c7b);
  border-radius: 2px 2px 0 0;
}

.flow-art {
  gap: 20px;
  background: radial-gradient(ellipse at center, #234452, #111c28 65%);
}

.flow-node {
  width: 68px;
  height: 76px;
  display: grid;
  place-items: center;
  border: 1px solid #628298;
  background: #172b37;
  border-radius: 9px;
  box-shadow: 0 10px 30px #0003;
  color: #bad5e7;
  font-size: 1.6rem;
}

.flow-line {
  height: 1px;
  width: 32px;
  background: #87b2bc;
}

.commerce-art {
  background: radial-gradient(ellipse at 70% 30%, #503d49, #151b2a 70%);
  gap: 14px;
}

.shop-tile {
  height: 110px;
  width: 80px;
  border: 1px solid #806471;
  border-radius: 7px;
  background: linear-gradient(135deg, #6b4b56, #272634);
  display: grid;
  place-items: center;
  font-size: 2rem;
  color: #d9b3b9;
  transform: rotate(-9deg);
}

.shop-tile:nth-child(2) {
  height: 140px;
  transform: rotate(6deg);
  background: linear-gradient(135deg, #997b6d, #352d3b);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;

  img {
    width: 100%;
    max-width: 40px;
    margin: auto;
  }
}

.tech {
  padding: 24px 12px;
  text-align: center;
  border-right: 1px solid #263042;
  border-bottom: 1px solid #263042;
  display: flex;
  flex-direction: column;
  justify-content: center;
  justify-items: center;
  align-items: center;
}

.tech:nth-child(5n) {
  border-right: 0;
}

.tech:nth-child(n+6) {
  border-bottom: 0;
}

.tech-mark {
  display: block;
  height: 38px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--tech-color, #9cacf8);
  letter-spacing: -.05em;
}

.tech-name {
  font-size: .8rem;
}

.games-section {
  position: relative;
  background: linear-gradient(90deg, #0a1019ee, #101827c7), url('../assets/images/horizon.svg') center/cover;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.game-cover {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 7;
  object-fit: contain;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
}

.game-art {
  aspect-ratio: 4/4.7;
  border-radius: 7px;
  overflow: hidden;
  position: relative;
  background: radial-gradient(ellipse at 50% 25%, var(--glow), transparent 60%), var(--base);
  border: 1px solid #ffffff20;
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-art:before {
  content: '';
  width: 65%;
  height: 65%;
  border: 1px solid #ffffff40;
  border-radius: 50%;
  transform: rotate(-30deg) scaleX(.45);
  box-shadow: 0 0 50px #ffffff0a, inset 0 0 30px #ffffff0a;
}

.game-art.control:before {
  border-radius: 0;
  transform: rotate(45deg) scale(.65);
}

.game-art.red:before {
  border-radius: 50%;
  transform: scale(.8);
  background: linear-gradient(0deg, #5b242c, #d3926255);
}

.game-art.death:before {
  width: 1px;
  height: 80%;
  border: 0;
  border-radius: 0;
  background: #b8c2d6;
  transform: rotate(12deg);
  box-shadow: 20px 0 #b8c2d655, -20px 0 #b8c2d655, 40px 0 #b8c2d633, -40px 0 #b8c2d633;
}

.game-art span {
  position: absolute;
  bottom: 22px;
  left: 18px;
  right: 18px;
  font-size: 1.1rem;
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  text-shadow: 0 2px 10px #000;
}

.game-name {
  font-size: .95rem;
  margin-top: 15px;
  letter-spacing: 0;
  line-height: 1.4;
}

.game-note {
  font-size: .75rem;
  margin-top: 6px;
  color: #a1adc2;
}

#music {
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(5, 13, 25, .48), rgba(5, 13, 25, .34) 40%, rgba(5, 13, 25, .92)),
    url('../assets/images/concert2.png') center 48% / cover no-repeat;
}

.music-grid {
  display: block;
}

.music-copy {
  max-width: 620px;
}

.music-copy p {
  margin-top: 20px;
  max-width: 520px;
}

.record {
  position: relative;
  left: 50%;
  width: 100vw;
  margin-top: 30px;
  transform: translateX(-50%);
}

.music-toolbar {
  display: none;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  width: min(var(--width), calc(100% - 80px));
  margin: 0 auto 14px;
}

.js .music-toolbar {
  display: flex;
}

.music-navigation {
  display: flex;
  gap: 8px;
}

.music-arrow {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid #9eb6dc88;
  border-radius: 50%;
  background: #071627c7;
  color: var(--text);
  font-size: 1.25rem;
  cursor: pointer;
}

.music-arrow:hover,
.music-arrow:focus-visible,
.music-sound:hover:not(:disabled),
.music-sound:focus-visible {
  border-color: #d0dfff;
  background: #1e395c;
}

.music-arrow:focus-visible,
.music-sound:focus-visible,
.music-card:focus-visible,
.music-viewport:focus-visible {
  outline: 2px solid #d4e1ff;
  outline-offset: 2px;
}

.music-sound {
  display: grid;
  place-items: center;
  width: 38px;
  min-height: 38px;
  padding: 0;
  border: 1px solid #9eb6dc88;
  border-radius: 50%;
  background: #071627c7;
  color: var(--text);
  cursor: pointer;
}

.music-sound [hidden] {
  display: none;
}

.music-sound:disabled {
  color: #b8c5d8;
  cursor: default;
}

.music-viewport {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.music-viewport::-webkit-scrollbar {
  display: none;
}

.music-slides {
  display: flex;
  gap: 16px;
  width: max-content;
  min-width: 100%;
  padding: 8px max(32px, calc((100vw - var(--width)) / 2)) 24px;
}

.music-slide {
  flex: 0 0 clamp(198px, 18.5vw, 248px);
  opacity: .76;
  transition: opacity 220ms ease, transform 220ms ease;
}

.music-slide.is-active {
  opacity: 1;
  transform: translateY(-4px);
}

.music-card {
  display: block;
  width: 100%;
  min-height: 306px;
  padding: 12px;
  border: 1px solid #738bad6b;
  border-radius: 10px;
  background: #071322e0;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 18px 35px #0006;
}

.music-slide.is-active .music-card {
  border-color: #a9c4ff;
  box-shadow: 0 0 0 1px #a9c4ff55, 0 20px 38px #0008;
}

.music-cover {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 5px;
  background: #17273c;
}

.music-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.record-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 13px 4px 2px;
}

.record-info strong {
  color: var(--text);
  font-size: .94rem;
  line-height: 1.3;
}

.record-info span {
  color: #b5c5dd;
  font-size: .82rem;
  line-height: 1.35;
}

.music-audio-note {
  width: min(var(--width), calc(100% - 80px));
  margin: 0 auto;
  color: #c2cee0;
  font-size: .72rem;
  text-align: right;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 760px) {
  #music {
    background:
      linear-gradient(180deg, rgba(5, 13, 25, .73), rgba(5, 13, 25, .5) 46%, rgba(5, 13, 25, .96)),
      url('../assets/images/concert2.png') 52% center / cover no-repeat;
  }

  .music-toolbar,
  .music-audio-note {
    width: calc(100% - 64px);
    margin-left: 20px;
    margin-right: 44px;
  }

  .music-slides {
    gap: 12px;
    padding-inline: 20px 44px;
  }

  .record {
    left: -20px;
    width: calc(100% + 40px);
    transform: none;
  }

  .music-slide {
    flex-basis: min(68vw, 228px);
  }

  .music-card {
    min-height: 282px;
  }
}

.contact {
  background: radial-gradient(ellipse at 90% 100%, #28324b70, transparent 65%);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.contact p {
  max-width: 500px;
  margin-top: 20px;
}

.contact-details {
  border-top: 1px solid #414d65;
}

.contact-row {
  padding: 20px 0;
  border-bottom: 1px solid #414d65;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: .875rem;
}

.contact-row span {
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 30px 0;
}

.footer-inner {
  display: flex;
  gap: 25px;
  justify-content: space-between;
  align-items: center;
}

.footer-inner p {
  font-size: .75rem;
}

.footer-inner a:last-child {
  font-size: .8rem;
  color: var(--muted);
}

/* Interior pages */
.page-intro {
  padding: 85px 0 60px;
  background: radial-gradient(ellipse at 90% 0%, #29345466, transparent 65%);
}

.page-intro h1 {
  font-size: clamp(2.9rem, 5.5vw, 4.8rem);
  max-width: 860px;
}

.page-intro .lead {
  margin-top: 25px;
}

.page-section {
  padding-top: 55px;
}

.story-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 70px;
  align-items: start;
}

.story-copy p {
  margin: 14px 0;
}

.story-copy h2 {
  font-size: 2rem;
}

.story-copy h2:not(:first-child) {
  margin-top: 26px;
}

.story-grid .portrait {
  max-width: 400px;
}

.service-list {
  display: grid;
  gap: 0;
}

.service-row {
  display: grid;
  grid-template-columns: 80px 1fr 1fr;
  gap: 32px;
  padding: 38px 0;
  border-bottom: 1px solid var(--line);
}

.service-row:first-child {
  padding-top: 0;
}

.service-row .number {
  color: var(--accent);
  font-size: .9rem;
}

.service-row h2 {
  font-size: 1.7rem;
}

.service-row p {
  font-size: .95rem;
}

.note {
  margin-top: 32px;
  padding-left: 18px;
  border-left: 2px solid #6d7eb0;
  font-size: .875rem;
  max-width: 760px;
}

.projects-full .project-body {
  padding: 35px;
}

.projects-full .project-body p+p {
  font-size: .85rem;
}

.reveal {
  opacity: 1;
}

.reveal.is-entering {
  animation: enter .65s ease both;
}

@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media(max-width:1050px) {
  .nav {
    gap: 18px;
  }

  .hero-orbit {
    display: none;
  }

  .about-grid {
    grid-template-columns: 1.3fr 1fr;
    gap: 30px;
  }

  .interests {
    grid-column: 1/-1;
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
  }

  .music-grid {
    gap: 30px;
  }

  .container {
    width: calc(100% - 56px);
  }
}

@media(max-width:760px) {

  .container {
    width: calc(100% - 40px);
  }

  .site-header {
    height: auto;
    min-height: 76px;
  }

  .header-inner {
    min-height: 76px;
    flex-wrap: wrap;
    gap: 14px;
    padding: 16px 0;
  }

  .brand {
    margin-right: auto;
  }

  .nav {
    order: 4;
    width: 100%;
    margin: 0;
    flex-wrap: wrap;
    gap: 10px 22px;
  }

  .js .menu-toggle {
    display: block;
  }

  .js .nav {
    display: none;
  }

  .js .nav.is-open {
    display: flex;
  }

  .hero-art {
    opacity: .75;
  }

  .hero-art .layer {
    object-position: 62% center;
  }

  .hero-content {
    padding: 60px 0 45px;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 9.5vw, 4.4rem);
  }

  .hero .role {
    max-width: 320px;
    font-size: .9rem;
  }

  .hero .lead {
    font-size: 1rem;
    max-width: 400px;
  }

  .hero-bottom {
    margin-top: 55px;
  }

  .section {
    padding: 10px 0;
  }

  section.full-scroll {
    padding-top: 60px;
    padding-bottom: 100px;
  }

  .section-head {
    display: block;
  }

  .section-head .text-link,
  .section-head p {
    margin-top: 20px;
  }

  .intro-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    padding: 25px;
  }

  .service-icon {
    margin-bottom: 20px;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .portrait {
    width: 100%;
    max-width: 340px;
    aspect-ratio: 4/4;
  }

  .interests {
    gap: 20px;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .project.featured {
    grid-template-columns: 1fr;
  }

  .featured .project-art {
    min-height: 260px;
  }

  .project-body {
    padding: 25px;
  }

  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tech:nth-child(n) {
    border-right: 1px solid #263042;
    border-bottom: 1px solid #263042;
  }

  .tech:nth-child(2n) {
    border-right: 0;
  }

  .tech:nth-last-child(-n+2) {
    border-bottom: 0;
  }

  .games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 14px;
  }

  .game-art span {
    font-size: .9rem;
    left: 13px;
    bottom: 16px;
  }

  .music-grid,
  .contact-grid,
  .story-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .contact-row {
    font-size: .8rem;
  }

  .footer-inner {
    flex-wrap: wrap;
    gap: 16px;
  }

  .footer-inner p {
    order: 3;
    width: 100%;
  }

  .page-intro {
    padding: 60px 0 40px;
  }

  .page-intro h1 {
    font-size: 2.8rem;
  }

  .about-intro h1 {
    font-size: 2.8rem;
  }

  .page-section.about-section {
    gap: 36px;
    padding-top: 60px;
    padding-bottom: 100px;
  }

  .service-row {
    grid-template-columns: 35px 1fr;
    gap: 18px;
  }

  .service-row p {
    grid-column: 2;
  }

  .service-row h2 {
    font-size: 1.5rem;
  }

  .story-grid .portrait {
    grid-row: 1;
  }

  .page-section {
    padding-top: 35px;
  }

  .prevent_text_2_lines {
    min-height: 2lh;
  }

}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }

  .button:hover {
    transform: none;
  }
}

/* Services landing: typographic grids extending the existing site layout. */

.services-page .page-intro {
  display: flex;
  align-items: center;
  padding-block: 48px;
}

.services-page .text-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
}

.services-page .actions {
  align-items: center;
}

.service-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  padding-top: 30px;
  margin-top: 48px;
  border-top: 1px solid var(--line);
  font-size: .875rem;
  color: var(--muted);
}

.services-page .service-row {
  grid-template-columns: 55px minmax(0, 1fr) minmax(0, 1.5fr);
  gap: 32px;
  padding: 42px 0;
}

.services-page .service-row:first-child {
  padding-top: 0;
}

.service-heading h3 {
  font-size: clamp(1.5rem, 2.3vw, 2rem);
}

.services-page .service-heading p {
  margin-top: 20px;
  max-width: 330px;
}

.services-page .service-detail p {
  font-size: 1rem;
}

.service-detail ul {
  padding-left: 20px;
  margin: 22px 0;
  color: var(--muted);
}

.service-detail li {
  margin: 8px 0;
  padding-left: 4px;
}

.service-detail li::marker {
  color: var(--accent);
}

.services-page .service-tools {
  font-size: .875rem;
  color: var(--text);
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.service-tools span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.solution-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding: 1px;
  margin: 0;
  background: var(--line);
}

.solution-grid li {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 25px 20px;
  background: var(--bg);
}

.solution-grid li span {
  color: var(--accent);
  font-size: .75rem;
}

.services-problems {
  background: var(--surface);
}

.services-problems .section-head h2 {
  max-width: 780px;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 65px;
}

.problem-row {
  border-top: 1px solid var(--line);
  padding: 30px 0;
}

.problem-row h3 {
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  line-height: 1.4;
  letter-spacing: -.025em;
}

.problem-row p {
  margin-top: 14px;
}

.technology-table {
  margin: 0;
  border-top: 1px solid var(--line);
}

.technology-table>div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 30px;
  padding: 25px 0;
  border-bottom: 1px solid var(--line);
}

.technology-table dt {
  font-weight: 600;
}

.technology-table dd {
  margin: 0;
  color: var(--muted);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}

.process-grid li {
  padding: 30px 22px 0;
  border-left: 1px solid var(--line);
}

.process-grid li:first-child {
  border-left: 0;
  padding-left: 0;
}

.process-grid h3 {
  margin-bottom: 18px;
}

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

.service-case {
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.service-case h3 {
  font-size: 1.6rem;
}

.service-case p {
  margin: 20px 0;
}

.service-faq {
  border-top: 1px solid var(--line);
}

.service-faq details {
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
}

.service-faq summary {
  cursor: pointer;
  font-size: 1.125rem;
  font-weight: 500;
  padding-right: 16px;
}

.service-faq summary::marker {
  color: var(--accent);
}

.service-faq summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
}

.service-faq p {
  max-width: 780px;
  margin-top: 18px;
  padding-left: 22px;
}

.services-closing h2 {
  font-size: clamp(2rem, 4.5vw, 4rem);
}

.services-closing .lead {
  margin-top: 28px;
  max-width: 660px;
}

@media (max-width: 1050px) {
  .process-grid {
    grid-template-columns: 1fr;
  }

  .process-grid li,
  .process-grid li:first-child {
    display: grid;
    grid-template-columns: 45px 140px minmax(0, 1fr);
    gap: 22px;
    border-left: 0;
    border-bottom: 1px solid var(--line);
    padding: 24px 0;
  }

  .process-grid .eyebrow,
  .process-grid h3 {
    margin: 0;
  }

  .solution-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .services-page .service-row {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 18px;
    padding: 32px 0;
  }

  .service-detail {
    grid-column: 2;
  }

  .problem-grid,
  .service-cases {
    grid-template-columns: 1fr;
  }

  .technology-table>div {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .process-grid li,
  .process-grid li:first-child {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 12px 18px;
  }

  .process-grid p {
    grid-column: 2;
  }
}

@media (max-width: 480px) {
  .solution-grid {
    grid-template-columns: 1fr;
  }

  .solution-grid li {
    padding: 18px;
  }
}

/* The landing hero owns one viewport; its footer aligns to the screen, not the text column. */
.hero {
  height: auto;
  padding-bottom: 92px;
}

.hero-content {
  padding: 56px 0 0;
}

.hero-footer {
  position: absolute;
  z-index: 2;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: end;
  gap: 20px;
}

.hero-footer-line {
  height: 1px;
  margin-bottom: 17px;
  background: #65738d88;
}

.hero-footer .hero-bottom {
  grid-column: 2;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  min-width: 60px;
  color: #d4ddec;
  font-size: .75rem;
  letter-spacing: .12em;
  line-height: 1.2;
}

.hero-footer .hero-bottom::before {
  content: none;
}

.hero-footer .hero-bottom svg,
.hero-down-arrow {
  width: 24px;
  height: 24px;
  font-size: 1.35rem;
  line-height: 24px;
  text-align: center;
  animation: hero-scroll-bounce 3.2s ease-in-out infinite;
  transition: transform 180ms ease;
}

@keyframes hero-scroll-bounce {

  0%,
  68%,
  100% {
    transform: translateY(0);
  }

  76% {
    transform: translateY(10px);
  }

  84% {
    transform: translateY(0);
  }

  90% {
    transform: translateY(5px);
  }
}

.hero-footer .hero-bottom:hover svg,
.hero-footer .hero-bottom:focus-visible svg,
.hero-footer .hero-bottom:hover .hero-down-arrow,
.hero-footer .hero-bottom:focus-visible .hero-down-arrow {
  animation: none;
  transform: translateY(3px);
}

.hero-availability {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 5px;
  padding-bottom: 6px;
  white-space: nowrap;
  color: #d4ddec;
  font-size: .75rem;
}

.hero-location,
.hero-status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 10px;
  border: 1px solid #43516988;
  border-radius: 999px;
  background: #0a111bc7;
}

.hero-location {
  gap: 8px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #42e5a4;
  box-shadow: 0 0 0 3px #42e5a422;
}

@media (max-width: 1050px) {
  .hero-footer {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 12px;
  }

  .hero-footer-line {
    max-width: 160px;
  }
}

@media (max-width: 760px) {

  .hero,
  .main-about,
  .services-page .page-intro {
    padding-bottom: 125px;
  }

  .hero-content {
    padding: 42px 0 0;
  }

  .hero-footer {
    bottom: 18px;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 10px;
  }

  .hero-footer-line {
    display: none;
  }

  .hero-footer .hero-bottom,
  .hero-availability {
    grid-column: 1;
  }

  .hero-availability {
    justify-self: center;
    padding: 0;
  }
}

@media (max-width: 360px) {
  .hero-availability {
    font-size: .6875rem;
    gap: 4px;
  }

  .hero-location,
  .hero-status {
    padding-inline: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {

  .hero-footer .hero-bottom svg,
  .hero-down-arrow {
    animation: none;
    transition: none;
  }

  .text-link:hover svg,
  .text-link:focus-visible svg {
    transform: none;
  }
}

@media (max-width: 760px) {
  .section-dots {
    right: 2px;
    padding-block: 6px;
  }

  .section-dots::before {
    top: 22px;
    bottom: 22px;
  }

  .section-dots a {
    width: 30px;
    height: 30px;
  }

  .section-dots a span {
    width: 6px;
    height: 6px;
  }

  .section-dots a[aria-current="location"] span {
    box-shadow: 0 0 0 3px #172640, 0 0 0 4px #9cadd0;
  }

  main .section>.container:not(.hero-footer),
  main .page-intro>.container {
    width: calc(100% - 64px);
    /* margin-left: 20px;
    margin-right: 44px; */
  }
}

/* About page: editorial overview before music and games. */
.page-section.about-overview {
  display: block;
  padding: 40px 0 100px;
  background:
    radial-gradient(ellipse at 72% 0%, #14284380, transparent 42%),
    radial-gradient(ellipse at 12% 34%, #0c223c62, transparent 45%),
    #08111d;
}

.page-section.about-overview.main-about {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 40px;
}

.page-section.about-overview.full-scroll {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 40px;
}

.about-overview.full-scroll > .container:not(.hero-footer) {
  display: grid;
  row-gap: clamp(96px, 11svh, 160px);
  margin-block: auto;
}

.about-overview.full-scroll .about-band {
  padding-block: 8px;
}

.main-about .about-hero {
  padding: 0;
}

.about-overview>.container:first-child {
  position: relative;
  z-index: 1;
}

.about-overview .eyebrow {
  margin-bottom: 12px;
  color: #9ab9ff;
  font-size: .68rem;
}

.about-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: clamp(30px, 5vw, 80px);
  min-height: 360px;
  padding: 12px 0 48px;
}

.about-hero h1 {
  max-width: 670px;
  font-size: clamp(3.1rem, 5.5vw, 5rem);
}

.about-hero .lead {
  max-width: 570px;
  margin-top: 20px;
  font-size: 1rem;
  line-height: 1.55;
}

.about-facts {
  display: flex;
  gap: 22px;
  margin-top: 28px;
}

.about-fact {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.about-fact+.about-fact {
  padding-left: 22px;
  border-left: 1px solid #48608055;
}

.about-fact-icon {
  color: #8fb7ff;
  font-size: 1.65rem;
  line-height: 1;
}

.about-fact strong,
.about-fact span:last-child {
  display: block;
}

.about-fact strong {
  font-size: .8rem;
}

.about-fact span:last-child {
  color: var(--muted);
  font-size: .72rem;
  line-height: 1.45;
}

.about-hero-visual {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px;
  align-items: center;
  gap: 22px;
  max-width: 460px;
  margin-left: auto;
}

.about-photo-frame {
  position: relative;
  padding: 11px;
  border: 1px solid #6b85ba55;
  border-radius: 10px;
  background: #0b1b2c;
  box-shadow: 0 20px 50px #0007;
}

.about-photo-frame::after {
  content: '';
  position: absolute;
  inset: -11px;
  border: 1px solid #5f85c12b;
  border-radius: 13px;
  pointer-events: none;
}

.about-photo-frame img {
  width: 100%;
  max-height: 330px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 30%;
  border-radius: 5px;
}

.about-motto {
  align-self: start;
  margin-top: 48px;
  color: #c3d2ec;
  font-size: 1rem;
  line-height: 1.35;
}

.about-motto::after {
  content: '';
  display: block;
  width: 30px;
  height: 1px;
  margin-top: 12px;
  background: #85b6fa;
}

.about-visual-notes {
  grid-column: 2;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-top: -100px;
}

.about-visual-notes b,
.about-visual-notes small {
  display: block;
}

.about-visual-notes b {
  color: #8db8ff;
  font-size: 1.45rem;
  line-height: 1;
}

.about-visual-notes small {
  color: #a9bad5;
  font-size: .6rem;
}

.about-band {
  display: grid;
  grid-template-columns: minmax(240px, .75fr) minmax(0, 1.55fr);
  gap: clamp(36px, 5vw, 75px);
  padding: 100px 0;
  /* border-top: 1px solid #52627b5c; */
}

.about-band-intro h2 {
  font-size: clamp(1.85rem, 3vw, 2.55rem);
}

.about-band-intro p {
  max-width: 410px;
  margin-top: 15px;
  font-size: .87rem;
  line-height: 1.55;
}

.about-outline-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 40px;
  margin-top: 24px;
  padding: 8px 15px;
  border: 1px solid #5c83bc;
  border-radius: 5px;
  color: #b6d3ff;
  font-size: .78rem;
}

.about-outline-link:hover,
.about-outline-link:focus-visible {
  background: #183458;
}

.about-timeline {
  position: relative;
  display: grid;
  gap: 21px;
  padding: 0 0 0 44px;
  margin: 0;
  list-style: none;
  counter-reset: milestone;
}

.about-timeline::before {
  content: '';
  position: absolute;
  top: 7px;
  bottom: 13px;
  left: 6px;
  width: 1px;
  background: linear-gradient(#7ca5ff, #4e77bd68);
}

.about-timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  counter-increment: milestone;
}

.about-timeline li::before {
  content: '';
  position: absolute;
  top: 6px;
  left: -44px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #81aaff;
  box-shadow: 0 0 0 5px #142e4c, 0 0 12px #7ca5ff;
}

.about-timeline-icon,
.about-skill-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #4c73af66;
  border-radius: 7px;
  background: #152c49;
  color: #9ec3ff;
  font-size: 1.1rem;
}

.about-timeline strong,
.about-timeline span:not(.about-timeline-icon) {
  display: block;
}

.about-timeline strong {
  color: #9ec2ff;
  font-size: .83rem;
  line-height: 1.3;
}

.about-timeline span:not(.about-timeline-icon) {
  color: #d1d9eb;
  font-size: .72rem;
}

.about-timeline p {
  margin-top: 4px;
  font-size: .73rem;
  line-height: 1.45;
}

.about-profile {
  grid-template-columns: minmax(220px, .55fr) minmax(0, 1.8fr);
}

.about-skills {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}

.about-skill-group {
  min-width: 0;
  padding: 0 16px;
  border-left: 1px solid #4c658a66;
}

.about-skill-group h3 {
  margin-top: 9px;
  font-size: .88rem;
}

.about-skill-group ul {
  display: grid;
  gap: 7px;
  padding: 0;
  margin: 14px 0 0;
  list-style: none;
}

.about-skill-group li {
  color: #b8c8df;
  font-size: .72rem;
}

.about-skill-group li::before {
  content: '—';
  margin-right: 6px;
  color: #78a6f7;
}

.about-experience {
  grid-template-columns: minmax(220px, .55fr) minmax(0, 1.8fr);
}

.about-projects {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.about-project-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 190px;
  padding: 12px;
  border: 1px solid #506c966b;
  border-radius: 7px;
  background: #0b192b;
  transition: border-color 180ms ease, transform 180ms ease;
}

.about-project-card:hover,
.about-project-card:focus-visible {
  transform: translateY(-3px);
  border-color: #91b7ff;
}

.about-project-art {
  display: grid;
  place-items: center;
  min-height: 100px;
  margin-bottom: 10px;
  overflow: hidden;
  border-radius: 4px;
  background: radial-gradient(ellipse at center, #173654, #081523 75%);
}

.about-mini-dashboard {
  display: grid;
  grid-template-columns: repeat(2, 32px);
  gap: 5px;
  padding: 14px 20px;
  border: 1px solid #4976a9;
  border-radius: 4px;
  background: #13263b;
  box-shadow: 12px 10px #1b38576b;
  transform: perspective(400px) rotateY(-13deg) rotateZ(-5deg);
}

.about-mini-dashboard i {
  height: 12px;
  border: 1px solid #5d8bc5;
  border-radius: 2px;
  background: #244869;
}

.about-sheet-symbol,
.about-magento-symbol {
  display: grid;
  place-items: center;
  width: 57px;
  height: 66px;
  border-radius: 5px;
  color: #fff;
  font-size: 2.6rem;
  box-shadow: 0 15px 25px #0007;
}

.about-sheet-symbol {
  background: #13845c;
}

.about-magento-symbol {
  background: #9c3f23;
  font-weight: 700;
}

.about-project-card strong {
  font-size: .75rem;
  line-height: 1.3;
}

.about-project-meta {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 9px;
  color: #a9bddb;
  font-size: .63rem;
}

.about-project-meta b {
  color: #a9c7ff;
  font-size: 1rem;
  font-weight: 400;
}

@media (max-width: 900px), (max-height: 760px) {
  .page-section.about-overview.full-scroll {
    padding-bottom: 100px;
  }
}

@media (max-width: 900px) {
  .about-hero {
    grid-template-columns: minmax(0, 1fr) minmax(250px, .8fr);
    gap: 30px;
  }

  .about-hero-visual {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-motto,
  .about-visual-notes {
    display: none;
  }

  .about-band,
  .about-profile,
  .about-experience {
    grid-template-columns: 1fr;
    gap: 25px;
  }
}

@media (max-width: 640px) {
  .about-overview.full-scroll > .container:not(.hero-footer) {
    row-gap: 20px;
  }

  .about-overview.full-scroll .about-band {
    padding-block: 32px;
  }

  .page-section.about-overview.main-about {
    padding-bottom: 100px;
  }

  .about-hero {
    grid-template-columns: 1fr;
    padding-bottom: 35px;
  }

  .about-hero h1 {
    font-size: clamp(2.45rem, 10vw, 3.6rem);
  }

  .about-hero .lead {
    font-size: .92rem;
  }

  .about-facts {
    flex-wrap: wrap;
  }

  .about-fact+.about-fact {
    padding-left: 0;
    border: 0;
  }

  .about-hero-visual {
    width: min(100%, 320px);
    margin: 0 auto;
  }

  .about-photo-frame img {
    max-height: 330px;
  }

  .about-band {
    padding: 32px 0;
  }

  .about-skills {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 0;
  }

  .about-projects {
    grid-template-columns: 1fr;
  }

  .about-project-card {
    min-height: 170px;
  }
}

@media (prefers-reduced-motion: reduce) {

  .about-project-card:hover,
  .about-project-card:focus-visible {
    transform: none;
  }
}
