:root {
  --ink: #0d0f14;
  --muted: #5d6470;
  --line: rgba(255, 255, 255, 0.58);
  --glass: rgba(255, 255, 255, 0.46);
  --glass-strong: rgba(255, 255, 255, 0.68);
  --black: #050507;
  --white: #ffffff;
  --cyan: #69d7ff;
  --green: #56e89a;
  --rose: #ff8fb8;
  --shadow: 0 24px 80px rgba(18, 24, 38, 0.16);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: linear-gradient(135deg, #f8fbff 0%, #eef4f8 42%, #f9f9fb 100%);
  overflow-x: hidden;
  overscroll-behavior-y: contain;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::-webkit-scrollbar {
  width: 10px;
}

body::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.38);
}

body::-webkit-scrollbar-thumb {
  border: 2px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  background: rgba(13, 15, 20, 0.28);
}

body::-webkit-scrollbar-thumb:hover {
  background: rgba(13, 15, 20, 0.42);
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(13, 15, 20, 0.32) rgba(255, 255, 255, 0.28);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(12, 16, 24, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(12, 16, 24, 0.045) 1px, transparent 1px);
  background-size: 42px 42px;
  background-position: 0 0;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 78%);
  animation: grid-drift 2s linear infinite;
}

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

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

#scene3d {
  position: fixed;
  inset: 0;
  z-index: -2;
  display: none;
  pointer-events: none;
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 20;
  width: min(1120px, calc(100% - 32px));
  min-height: 58px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px) saturate(150%);
  transform: translateX(-50%);
}

.top-scroll-progress {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 5px;
  height: 2px;
  border-radius: 999px;
  background: black;
  opacity: 0.78;
  transform: scaleX(var(--page-progress, 0));
  transform-origin: left center;
  transition: transform 0.08s linear;
}

.brand,
.header-actions,
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.brand,
.header-actions {
  flex: 0 0 auto;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--white);
  background: var(--black);
  overflow: hidden;
}

.brand-mark img,
.avatar-core img,
.tool-icon img,
.review-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.header-actions,
.status-pill {
  padding: 10px 14px;

  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  color: #18202b;
  font-size: 0.9rem;
}

.availability-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(86, 232, 154, 0.16), 0 0 18px rgba(86, 232, 154, 0.85);
  animation: status-pulse 1.8s ease-in-out infinite;
}

.is-unavailable .availability-dot {
  background: #ff6b6b;
  box-shadow: 0 0 0 6px rgba(255, 107, 107, 0.14), 0 0 18px rgba(255, 107, 107, 0.7);
}

main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 80px 0 80px;
}

.section {
  min-height: auto;
  padding: 42px 0;
  scroll-margin-top: 112px;
}

.hero-section {
  min-height: 76vh;
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  padding-top: 24px;
}

#showcases,
#prices,
#work,
#tos,
#reviews,
#contact {
  padding-top: 30px;
  padding-bottom: 30px;
}

.glass-panel {
  border: 1px solid var(--line);
  border-radius: 34px;
  background: var(--glass);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(26px) saturate(165%);
}

.reveal-item {
  opacity: 0;
  transform: translateY(26px) scale(0.98);
  filter: blur(8px);
  transition:
    opacity 0.58s ease var(--reveal-delay, 0ms),
    transform 0.58s ease var(--reveal-delay, 0ms),
    filter 0.58s ease var(--reveal-delay, 0ms),
    background 0.25s ease,
    box-shadow 0.22s ease;
}

.reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.btn-special.reveal-item:hover,
.tab-special.reveal-item:hover,
.contact-button.btn-special.reveal-item:hover {
  transform: translate3d(var(--magnet-x, 0px), var(--magnet-y, 0px), 0) scale(1.06);
}

.code-card.reveal-item:hover,
.project-card.reveal-item:hover {
  transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(-6px) scale(1);
}

.tool-chip.reveal-item:hover {
  transform: translateY(0) scale(1.04);
}

.hero-copy {
  width: min(860px, 100%);
  min-height: 660px;
  text-align: center;
  padding: clamp(28px, 4vw, 46px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  overflow: hidden;
}

.hero-profile {
  position: relative;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 14px;
  margin-top: 14px;
  color: #2f5b73;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
}

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

h1 {
  max-width: 700px;
  margin-bottom: 0;
  font-size: clamp(2rem, 2vw, 3rem);
  line-height: 1;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  font-size: 1.35rem;
}

p {
  color: var(--black);
  line-height: 1.7;
}

.hero-copy p {
  max-width: 700px;
  margin-bottom: 0;
  font-size: 1rem;
}

.hero-actions,
.contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin-top: auto;
  align-self: center;
}

.hero-actions .btn {
  min-height: 58px;
  padding: 0 28px;
  font-size: 1rem;
}

.btn,
.contact-button {
  position: relative;
  isolation: isolate;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  font-weight: 600;
  overflow: hidden;
  cursor: pointer;
  white-space: nowrap;
}

.btn-plain,
.contact-button {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 0 0 1px rgba(13, 15, 20, 0.08);
}

.btn-special,
.tab-special {
  --magnet-x: 0px;
  --magnet-y: 0px;
  color: var(--white);
  background: var(--black);
  transform: translate3d(var(--magnet-x), var(--magnet-y), 0);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.btn-special::after,
.tab-special::after,
.contact-button.btn-special::after {
  position: absolute;
  inset: -40% auto -40% -70%;
  z-index: -1;
  width: 55%;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: skewX(-18deg);
  transition: left 0.55s ease;
}

.btn-special:hover::after,
.tab-special:hover::after,
.contact-button.btn-special:hover::after {
  left: 120%;
}

.btn-special:hover,
.tab-special:hover,
.contact-button.btn-special:hover {
  transform: translate3d(var(--magnet-x), var(--magnet-y), 0) scale(1.06);
  box-shadow: 0 16px 34px rgba(5, 5, 7, 0.22);
}

.identity-card {
  min-height: 500px;
  padding: 26px;
  display: grid;
  align-content: start;
  gap: 20px;
  overflow: hidden;
}

.hero-section > .glass-panel {
  height: auto;
}

.avatar-orbit {
  position: relative;
  min-height: 230px;
  width: min(360px, 100%);
  display: grid;
  place-items: center;
  perspective: 900px;
}

.avatar-core {
  width: 170px;
  height: 170px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: linear-gradient(145deg, #08090d, #2a303b);
  box-shadow: 0 28px 68px rgba(0, 0, 0, 0.16);
  font-size: 2.3rem;
  font-weight: 700;
  transform: none;
  animation: none;
  transition: box-shadow 0.28s ease, transform 0.28s ease;
}

.avatar-orbit:hover .avatar-core {
  box-shadow: 0 30px 86px rgba(5, 5, 7, 0.32), 0 0 0 10px rgba(5, 5, 7, 0.08), 0 0 44px rgba(5, 5, 7, 0.28);
  transform: scale(1.04);
}

.avatar-orbit span {
  display: none;
}

.avatar-orbit span:nth-child(2) {
  width: 260px;
  height: 118px;
  animation: orbit-a 8s linear infinite;
}

.avatar-orbit span:nth-child(3) {
  width: 232px;
  height: 232px;
  animation: orbit-b 11s linear infinite;
}

.avatar-orbit span:nth-child(4) {
  width: 300px;
  height: 86px;
  animation: orbit-a 13s linear reverse infinite;
}

.status-card {
  width: min(360px, 100%);
  padding: 0;
  border-radius: 24px;
  background: transparent;
  align-self: center;
}

.status-card .status-pill {
  width: auto;
  min-height: 38px;
  padding: 6px 10px;
  justify-content: center;
  background: transparent;
  box-shadow: none;
  animation: none;
  font-size: 0.92rem;
}

.status-card .availability-dot {
  width: 10px;
  height: 10px;
  box-shadow: none;
  animation: none;
}

.tool-chip {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  color: #25303d;
  background: rgba(255, 255, 255, 0.62);
  font-size: 0.84rem;
  font-weight: 500;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 22px;
  text-align: center;
}

.section-heading .eyebrow {
  justify-content: center;
}

.skills-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  align-items: stretch;
  gap: 18px;
}

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

.code-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: stretch;
  gap: 14px;
}

.price-grid {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.32);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(24px) saturate(150%);
}

.code-gallery {
  height: 100%;
  padding: 18px;
  display: grid;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.32);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(24px) saturate(150%);
}

.code-card {
  min-height: 100%;
  padding: 18px;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease;
}

.code-card:hover {
  transform: translateY(-6px);
  background: var(--glass-strong);
}

.project-card:hover {
  transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(-6px);
  background: var(--glass-strong);
  box-shadow: 0 18px 42px rgba(18, 24, 38, 0.14);
}

.code-visual {
  position: relative;
  height: auto;
  aspect-ratio: 16 / 10;
  margin-bottom: 18px;
  display: block;
  gap: 10px;
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.code-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  border-radius: 0;
}

.code-visual i {
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), rgba(255, 255, 255, 0.92));
}

.code-visual i:nth-child(2) {
  width: 72%;
  background: linear-gradient(90deg, var(--rose), rgba(255, 255, 255, 0.86));
}

.code-visual i:nth-child(3) {
  width: 84%;
}

.code-visual i:nth-child(4) {
  width: 54%;
  background: linear-gradient(90deg, var(--green), rgba(255, 255, 255, 0.86));
}

.code-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.code-card small {
  color: var(--muted);
  line-height: 1.55;
}

.stack-panel {
  padding: 24px;
  height: 100%;
  align-self: stretch;
  position: static;
}

.tool-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.tool-chip {
  min-height: 58px;
  justify-content: flex-start;
  gap: 10px;
  transition: transform 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.tool-chip:hover {
  transform: scale(1.04);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 30px rgba(18, 24, 38, 0.12);
}

.tool-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--ink);
  background: transparent;
  font-size: 0.9rem;
  font-weight: 700;
  overflow: visible;
}

.tool-icon img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 0;
}

.tool-chip > span:last-child {
  min-width: 0;
  text-align: left;
}

.project-card,
.project-stack-card,
.price-system,
.review-card,
.showcase-link {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  transform-style: preserve-3d;
  will-change: transform;
}

.project-card,
.showcase-link {
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

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

.project-stack {
  position: relative;
  min-height: 490px;
  perspective: 1200px;
}

.project-stack-card {
  position: absolute;
  inset: 0;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transform:
    perspective(1100px)
    translateY(calc(var(--stack-index) * 18px))
    translateX(calc((var(--stack-index) - 1) * 72px))
    scale(calc(1 - var(--stack-index) * 0.045))
    rotateZ(calc((var(--stack-index) - 1) * 3deg))
    rotateX(var(--tilt-x))
    rotateY(var(--tilt-y));
  transform-origin: center bottom;
  opacity: calc(1 - var(--stack-index) * 0.14);
  filter: blur(calc(var(--stack-index) * 0.8px));
  transition: transform 0.36s ease, opacity 0.36s ease, filter 0.36s ease, background 0.25s ease;
}

.project-stack-card:nth-child(1) {
  z-index: 3;
}

.project-stack-card:nth-child(2) {
  z-index: 2;
}

.project-stack-card:nth-child(3) {
  z-index: 1;
}

.project-stack:hover .project-stack-card,
.project-grid.is-open .project-stack-card {
  opacity: 1;
  filter: blur(0);
}

.project-stack:hover .project-stack-card:nth-child(1),
.project-grid.is-open .project-stack-card:nth-child(1) {
  transform: perspective(1100px) translateX(-26%) rotateZ(-5deg) scale(0.92) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
}

.project-stack:hover .project-stack-card:nth-child(2),
.project-grid.is-open .project-stack-card:nth-child(2) {
  transform: perspective(1100px) translateY(10px) rotateZ(0deg) scale(0.96) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
}

.project-stack:hover .project-stack-card:nth-child(3),
.project-grid.is-open .project-stack-card:nth-child(3) {
  transform: perspective(1100px) translateX(26%) rotateZ(5deg) scale(0.92) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
}

.project-stack-copy {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 2;
  padding: 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(16px);
}

.project-stack-card .project-art {
  height: 100%;
}

.project-stack-card .project-art::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(to top, rgba(5, 5, 7, 0.24), transparent 52%);
}

.project-stack-copy span,
.project-stack-copy strong {
  display: block;
}

.project-stack-copy span {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 500;
}

.project-stack-copy strong {
  font-size: clamp(1.35rem, 3vw, 2.2rem);
  font-weight: 600;
}

.project-stats {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.project-stats span {
  min-width: 0;
  min-height: 58px;
  padding: 8px;
  display: grid;
  justify-items: center;
  align-content: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.56);
  text-align: center;
}

.project-stats strong {
  margin: 0;
  min-height: auto;
  font-size: 1rem;
  line-height: 1;
  font-weight: 600;
}

.project-stats small {
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.15;
}

.project-list {
  max-height: 0;
  display: grid;
  gap: 18px;
  padding: 0;
  border: 0 !important;
  outline: 0;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  transform: translateY(-18px);
  transition: max-height 0.45s ease, opacity 0.32s ease, transform 0.35s ease;
}

.project-grid.is-open .project-list {
  display: contents;
  max-height: 1700px;
  padding: 0;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.project-list::before,
.project-list::after {
  display: none;
  content: none;
}


.project-collapse {
  justify-self: center;
  min-width: 210px;
  min-height: 52px;
}

.project-card {
  display: grid;
  grid-template-columns: minmax(340px, 0.95fr) minmax(0, 1fr);
  align-items: stretch;
  overflow: hidden;
}

.project-art {
  min-height: 330px;
  height: 100%;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 24% 24%, rgba(105, 215, 255, 0.72), transparent 26%),
    radial-gradient(circle at 74% 36%, rgba(255, 143, 184, 0.64), transparent 25%),
    linear-gradient(145deg, #151922, #eff7ff);
}

.project-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.project-stack-card .project-art {
  min-height: 100%;
}

.project-art span {
  position: absolute;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.48);
  transform: rotateX(58deg) rotateZ(-28deg);
}

.project-art span:nth-child(1) {
  width: 140px;
  height: 90px;
  left: 28px;
  bottom: 38px;
}

.project-art span:nth-child(2) {
  width: 100px;
  height: 130px;
  right: 36px;
  top: 42px;
}

.project-art span:nth-child(3) {
  width: 78px;
  height: 78px;
  left: 48%;
  top: 40%;
  border-radius: 50%;
}

.project-card-body {
  padding: 22px;
  min-height: 330px;
  display: flex;
  flex-direction: column;
}

.project-card p {
  min-height: 0px;
}

.project-card h3 {
  min-height: 0px;
}

.project-card-body .project-stats {
  margin: 4px 0 18px;
}

.project-action {
  align-self: stretch;
  margin-top: auto;
  width: 100%;
}

.showcase-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.showcase-link {
  position: relative;
  min-height: 0;
  padding: 0;
  display: block;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  border: 0;
  border-radius: 22px;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  overflow: visible;
  z-index: 1;
}

.showcase-art {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.42);
  display: flex;
  align-items: center;
  justify-content: center;
}

.showcase-art img,
.showcase-art video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  object-position: center center;
  transition: transform 0.32s ease, filter 0.32s ease;
}

.showcase-placeholder {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.play-badge {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(to top, rgba(5, 5, 7, 0.28), rgba(5, 5, 7, 0.02));
  pointer-events: none;
}

.play-badge::before {
  width: 54px;
  height: 54px;
  content: "";
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 44px rgba(5, 5, 7, 0.22);
  backdrop-filter: blur(12px);
}

.play-badge::after {
  position: absolute;
  width: 0;
  height: 0;
  margin-left: 5px;
  content: "";
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid var(--black);
}

.showcase-link:hover,
.showcase-link:focus-visible {
  z-index: 8;
  transform: translateY(-8px) scale(1.02);
  background: var(--glass-strong);
  box-shadow: 0 22px 60px rgba(18, 24, 38, 0.16);
}

.showcase-link:hover .showcase-art img,
.showcase-link:hover .showcase-art video,
.showcase-link:focus-visible .showcase-art img,
.showcase-link:focus-visible .showcase-art video {
  filter: saturate(1.08) contrast(1.04);
  transform: scale(1.05);
}

.reviews-section {
  overflow: hidden;
}

.reviews-slider {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
}

.reviews-slider::before,
.reviews-slider::after {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: min(110px, 12vw);
  content: "";
  pointer-events: none;
}

.reviews-slider::before {
  left: 0;
  background: linear-gradient(90deg, #f8fbff, transparent);
}

.reviews-slider::after {
  right: 0;
  background: linear-gradient(270deg, #f8fbff, transparent);
}

.reviews-track {
  width: max-content;
  display: flex;
  gap: 16px;
  padding: 8px 16px;
  animation: review-slide 32s linear infinite;
}

.reviews-slider:hover .reviews-track {
  animation-play-state: paused;
}

.review-card {
  width: min(360px, calc(100vw - 48px));
  min-height: 210px;
  padding: 22px;
  flex: 0 0 auto;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.review-card:hover {
  transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(-6px);
  box-shadow: 0 18px 42px rgba(18, 24, 38, 0.14);
}

.review-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.review-avatar {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 18px;
  color: var(--white);
  font-weight: 600;
  overflow: hidden;
}

.review-head strong,
.review-stars {
  display: block;
}

.review-head strong {
  margin-bottom: 4px;
  font-weight: 600;
}

.review-stars {
  color: #151922;
  font-size: 0.9rem;
}

.review-stars i {
  font-style: normal;
}

.review-card p {
  margin-bottom: 0;
  font-size: 0.94rem;
}

.price-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.price-tab {
  min-height: 48px;
  padding: 0 14px;
  border: 0;
  border-radius: 18px;
  color: #313945;
  background: rgba(255, 255, 255, 0.58);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.price-tab:hover {
  transform: scale(1.03);
  background: rgba(255, 255, 255, 0.82);
}

.price-tab.active {
  color: var(--white);
  background: var(--black);
}

.price-system {
  min-height: 390px;
  padding: clamp(22px, 4vw, 34px);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.52);
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.price-system:hover {
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 18px 38px rgba(18, 24, 38, 0.12);
}

.price-main span {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 600;
}

.price-main h3 {
  margin-bottom: 10px;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1;
}

.price-main p {
  margin-bottom: 0;
  font-size: 0.92rem;
}

.price-features {
  display: grid;
  gap: 10px;
}

.price-features span {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border-radius: 16px;
  color: #34404d;
  background: rgba(255, 255, 255, 0.62);
  font-size: 0.9rem;
  font-weight: 500;
}

.price-features i {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: var(--white);
  background: var(--black);
  font-style: normal;
  font-size: 0.75rem;
}

.price-features span span {
  min-width: 0;
  padding: 0;
  background: transparent;
}

.price-side {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(13, 15, 20, 0.08);
}

.price-side strong {
  margin-left: auto;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1;
  letter-spacing: 0;
}

.price-side .btn {
  min-width: 190px;
  min-height: 52px;
}

.work-flow {
  --work-progress: 0%;
  position: relative;
  min-height: 680px;
  padding: clamp(28px, 5vw, 52px);
  overflow: hidden;
}

.work-flow::before {
  position: absolute;
  inset: 18px;
  content: "";
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.72), transparent 44%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), transparent);
  pointer-events: none;
}

.work-path {
  position: absolute;
  top: 58px;
  bottom: 58px;
  left: 50%;
  z-index: 1;
  width: 86px;
  transform: translateX(-50%);
  pointer-events: none;
}

.work-path-base,
.work-path-progress {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  border-radius: 999px;
  transform: translateX(-50%);
}

.work-path-base {
  background: rgba(13, 15, 20, 0.12);
}

.work-path-progress {
  bottom: auto;
  height: var(--work-progress);
  background: linear-gradient(180deg, var(--black), rgba(13, 15, 20, 0.22));
  box-shadow: 0 0 28px rgba(13, 15, 20, 0.18);
}

.work-marker {
  position: absolute;
  top: var(--work-progress);
  left: 50%;
  width: 24px;
  height: 24px;
  border: 5px solid var(--white);
  border-radius: 50%;
  background: var(--black);
  box-shadow: 0 14px 36px rgba(5, 5, 7, 0.26);
  transform: translate(-50%, -50%);
  transition: top 0.16s linear;
}

.work-steps {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 24px;
}

.work-step {
  position: relative;
  min-height: 142px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 86px minmax(0, 1fr);
  align-items: center;
  opacity: 0.7;
  transition: opacity 0.28s ease;
}

.work-step::before {
  position: absolute;
  top: 50%;
  z-index: 0;
  height: 2px;
  content: "";
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(13, 15, 20, 0.22), rgba(13, 15, 20, 0.04));
  transform: translateY(-50%) scaleX(0.64);
  transition: transform 0.32s ease, opacity 0.32s ease;
  opacity: 0.46;
}

.work-step.is-left::before {
  left: calc(50% - min(330px, 36vw));
  right: calc(50% + 42px);
  transform-origin: right;
}

.work-step.is-right::before {
  left: calc(50% + 42px);
  right: calc(50% - min(330px, 36vw));
  transform-origin: left;
}

.work-node {
  grid-column: 2;
  grid-row: 1;
  z-index: 2;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  justify-self: center;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 18px;
  color: var(--white);
  background: var(--black);
  box-shadow: 0 18px 42px rgba(5, 5, 7, 0.2);
  font-size: 0.86rem;
  font-weight: 600;
  transform: scale(0.9);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.work-card {
  width: min(100%, 420px);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 18px 48px rgba(18, 24, 38, 0.08);
  backdrop-filter: blur(18px) saturate(150%);
  transform: translateY(12px) scale(0.97);
  transition: transform 0.32s ease, background 0.32s ease, box-shadow 0.32s ease;
}

.work-step.is-left .work-card {
  grid-column: 1;
  grid-row: 1;
  justify-self: end;
}

.work-step.is-right .work-card {
  grid-column: 3;
  grid-row: 1;
  justify-self: start;
}

.work-card span {
  display: inline-flex;
  margin-bottom: 10px;
  color: #4a535f;
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
}

.work-card h3 {
  margin-bottom: 10px;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 600;
}

.work-card p {
  margin-bottom: 0;
  color: #29313c;
  font-size: 0.95rem;
}

.work-step.is-active {
  opacity: 1;
}

.work-step.is-active::before {
  transform: translateY(-50%) scaleX(1);
  opacity: 1;
}

.work-step.is-active .work-node {
  transform: scale(1);
  box-shadow: 0 18px 44px rgba(5, 5, 7, 0.26), 0 0 0 8px rgba(255, 255, 255, 0.55);
}

.work-step.is-active .work-card {
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 22px 60px rgba(18, 24, 38, 0.13);
  transform: translateY(0) scale(1);
}

.tos-preview {
  min-height: 240px;
  padding: clamp(24px, 5vw, 46px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.tos-preview .btn {
  min-width: 168px;
  min-height: 54px;
  padding: 0 24px;
}

.tos-preview p {
  max-width: 690px;
}

.contact-section {
  min-height: auto;
  padding: 42px clamp(18px, 4vw, 42px);
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.36);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(24px) saturate(150%);
}

.contact-section .section-heading {
  margin-left: auto;
  margin-right: auto;
}

.contact-grid {
  justify-content: center;
}

.contact-button {
  width: 68px;
  min-width: 68px;
  min-height: 68px;
  padding: 0 17px;
  gap: 0;
  border-radius: 24px;
  font-size: 1rem;
  transition: width 0.24s ease, min-width 0.24s ease, gap 0.24s ease, transform 220ms cubic-bezier(.2,.9,.2,1), box-shadow 220ms ease, background 220ms ease;
}

.contact-button:hover,
.contact-button:focus-visible {
  width: 168px;
  min-width: 168px;
  gap: 10px;
}

.contact-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--white);
  overflow: hidden;
  object-fit: contain;
}

.contact-icon img {
  width: 35px;
  height: 35px;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.contact-label {
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  transform: translateX(-6px);
  transition: max-width 0.24s ease, opacity 0.18s ease, transform 0.24s ease;
}

.contact-button:hover .contact-label,
.contact-button:focus-visible .contact-label {
  max-width: 90px;
  opacity: 1;
  transform: translateX(0);
}

.contact-button.btn-special .contact-icon {
  color: var(--black);
  background: var(--white);
}

/* Contact section: hover, focus and active animations for all contact buttons */
.contact-section .contact-button:hover,
.contact-section .contact-button:focus-visible {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 16px 40px rgba(18, 24, 38, 0.12);
}

.contact-section .contact-button:active {
  transform: translateY(-2px) scale(0.99);
  box-shadow: 0 8px 18px rgba(18, 24, 38, 0.08);
}

.bottom-tabs {
  position: static;
  z-index: 1;
  width: auto;
  min-width: 0;
  min-height: 44px;
  padding: 4px;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 24px;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  transform: none;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-padding-inline: 8px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
}

.bottom-tabs::-webkit-scrollbar {
  display: none;
}

.tab-link {
  position: relative;
  isolation: isolate;
  min-width: max-content;
  flex: 0 0 auto;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 11px;
  border-radius: 20px;
  color: #313945;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  scroll-snap-align: center;
}

.tab-link.active {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 0 0 1px rgba(13, 15, 20, 0.07);
}

.tab-special,
.tab-special.active {
  color: var(--white);
  background: var(--black);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  padding: 20px;
  place-items: center;
}

.modal[aria-hidden="false"] {
  display: grid;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 16, 0.44);
  backdrop-filter: blur(10px);
}

.modal-card {
  position: relative;
  width: min(760px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  padding: 28px;
  border-radius: 22px;
  overflow: auto;
  scrollbar-color: rgba(13, 15, 20, 0.32) transparent;
}

.modal-card::-webkit-scrollbar {
  width: 8px;
}

.modal-card::-webkit-scrollbar-track {
  background: transparent;
}

.modal-card::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(13, 15, 20, 0.28);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: var(--black);
  font-weight: 700;
  cursor: pointer;
}

.modal-media {
  margin-top: 18px;
}

.modal-media img,
.modal-media video {
  width: 100%;
  max-height: min(62vh, 620px);
  display: block;
  object-fit: contain;
  border-radius: 14px;
  background: #0d1117;
}

.media-placeholder {
  min-height: 240px;
  padding: 24px;
  display: grid;
  place-items: center;
  gap: 8px;
  text-align: center;
  border-radius: 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.5);
}

.media-placeholder strong {
  color: var(--ink);
  text-transform: capitalize;
}

.modal-markdown {
  margin-top: 18px;
  padding: 22px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--ink);
}

.modal-markdown:empty,
.modal-markdown[hidden] {
  display: none;
}

.modal-markdown h3,
.modal-markdown h4,
.modal-markdown h5 {
  margin: 18px 0 10px;
  line-height: 1.15;
}

.modal-markdown h3:first-child,
.modal-markdown h4:first-child,
.modal-markdown h5:first-child {
  margin-top: 0;
}

.modal-markdown p,
.modal-markdown li,
.modal-markdown blockquote {
  color: var(--muted);
  line-height: 1.72;
}

.modal-markdown ul {
  margin: 12px 0;
  padding-left: 20px;
}

.modal-markdown blockquote {
  margin: 14px 0;
  padding: 12px 14px;
  border-left: 3px solid var(--black);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.54);
}

.modal-markdown code {
  padding: 0.16em 0.38em;
  border-radius: 8px;
  color: #d8e6ff;
  background: #0d1117;
}

.modal-markdown pre {
  margin: 14px 0;
  padding: 16px;
  overflow: auto;
  border-radius: 12px;
  background: #0d1117;
}

.modal-markdown pre code {
  padding: 0;
  background: transparent;
}

.modal-markdown a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.markdown-error {
  margin-bottom: 0;
}

.tos-page main {
  padding-top: 34px;
  padding-bottom: 72px;
}

.tos-main {
  width: min(960px, calc(100% - 32px));
}

.tos-back {
  margin-bottom: 18px;
  min-width: 190px;
  min-height: 52px;
}

.tos-document {
  padding: clamp(24px, 5vw, 56px);
}

.tos-document h1 {
  font-size: clamp(2.4rem, 6vw, 5rem);
}

.tos-list {
  display: grid;
  gap: 14px;
  margin: 32px 0;
}

.tos-list article {
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.5);
}

.tos-list h2 {
  margin-bottom: 8px;
  font-size: 1.25rem;
}

@keyframes float-card {
  0%,
  100% {
    transform: translateY(0) rotateX(14deg) rotateY(-18deg);
  }
  50% {
    transform: translateY(-14px) rotateX(18deg) rotateY(14deg);
  }
}

@keyframes orbit-a {
  to {
    transform: rotateX(70deg) rotateZ(360deg);
  }
}

@keyframes orbit-b {
  to {
    transform: rotateY(68deg) rotateZ(360deg);
  }
}

@keyframes status-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.28);
  }
}

@keyframes status-float {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(86, 232, 154, 0);
  }
  50% {
    box-shadow: 0 12px 28px rgba(86, 232, 154, 0.16);
  }
}

@keyframes review-slide {
  to {
    transform: translateX(calc(-50% - 8px));
  }
}

@keyframes grid-drift {
  to {
    background-position: 42px 42px;
  }
}

@media (max-width: 920px) {
  main {
    width: min(100% - 24px, 720px);
    padding-top: 104px;
  }

  .hero-section,
  .skills-layout,
  .code-cards,
  .project-grid,
  .price-tabs {
    grid-template-columns: 1fr;
  }

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

  .price-side {
    align-items: flex-start;
    flex-direction: column-reverse;
  }

  .price-side strong {
    margin-left: 0;
  }

  .work-flow {
    min-height: auto;
    padding: 28px 18px;
  }

  .work-flow::before {
    inset: 10px;
  }

  .work-path {
    top: 44px;
    bottom: 44px;
    left: 45px;
    width: 54px;
  }

  .work-step {
    min-height: 0;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 14px;
  }

  .work-step::before,
  .work-step.is-left::before,
  .work-step.is-right::before {
    left: 27px;
    right: auto;
    width: 54px;
    transform-origin: left;
  }

  .work-node,
  .work-step.is-left .work-node,
  .work-step.is-right .work-node {
    grid-column: 1;
    align-self: start;
    margin-top: 16px;
  }

  .work-card,
  .work-step.is-left .work-card,
  .work-step.is-right .work-card {
    grid-column: 2;
    justify-self: stretch;
  }

  .project-stack {
    min-height: 360px;
  }

  .project-stack:hover .project-stack-card:nth-child(1),
  .project-grid.is-open .project-stack-card:nth-child(1) {
    transform: perspective(1100px) translateY(-28px) rotateZ(-3deg) scale(0.94) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  }

  .project-stack:hover .project-stack-card:nth-child(2),
  .project-grid.is-open .project-stack-card:nth-child(2) {
    transform: perspective(1100px) translateY(8px) rotateZ(0deg) scale(0.96) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  }

  .project-stack:hover .project-stack-card:nth-child(3),
  .project-grid.is-open .project-stack-card:nth-child(3) {
    transform: perspective(1100px) translateY(44px) rotateZ(3deg) scale(0.94) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  }

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

  .project-card .project-art {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .section {
    min-height: auto;
  }

  .identity-card {
    min-height: 420px;
  }

  .stack-panel {
    height: auto;
    position: static;
  }

  .hero-copy {
    min-height: auto;
  }

  .hero-section > .glass-panel {
    height: auto;
  }

  .code-gallery {
    height: auto;
    min-height: auto;
  }

  .tos-preview {
    align-items: flex-start;
    flex-direction: column;
  }

  .bottom-tabs {
    width: auto;
    min-height: 42px;
    padding: 4px;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    border-radius: 28px;
    scroll-padding-inline: 8px;
    scroll-snap-type: x proximity;
  }

  .tab-link {
    flex: 0 0 auto;
    min-width: max-content;
    min-height: 38px;
    padding: 0 11px;
    font-size: 0.78rem;
  }
}

@media (max-width: 560px) {
  .site-header {
    top: 10px;
    width: calc(100% - 20px);
    grid-template-columns: auto minmax(0, 1fr);
  }

  .header-actions {
    display: none;
  }

  main {
    padding-top: 88px;
    padding-bottom: 80px;
  }

  .bottom-tabs {
    min-height: 40px;
    gap: 5px;
    border-radius: 20px;
  }

  .tab-link {
    min-height: 36px;
    padding: 0 10px;
    border-radius: 18px;
    font-size: 0.74rem;
  }

  .showcase-track {
    grid-template-columns: 1fr;
  }

  .showcase-link {
    min-height: 190px;
  }

  .hero-copy,
  .identity-card,
  .tos-document {
    border-radius: 26px;
  }

  .contact-button {
    width: 68px;
    min-width: 68px;
  }

  .contact-button:hover,
  .contact-button:focus-visible {
    width: min(168px, 100%);
    min-width: min(168px, 100%);
  }

  .work-flow {
    padding: 24px 14px;
  }

  .work-path {
    left: 41px;
  }

  .work-card {
    padding: 20px;
    border-radius: 20px;
  }
}
