:root {
  --bg: #07080a;
  --bg-soft: #0d0f14;
  --text: #f2f2ee;
  --muted: #a0a3aa;
  --line: #2c2f37;
  --card: #12151b;
  --accent: #e9e9e1;
  --max: 1240px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  min-height: 100%;
  font-family: "Manrope", sans-serif;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  overflow-y: auto;
}

body {
  overflow: visible;
  line-height: 1.3;
}

.flip-container {
  position: relative;
  min-height: 100vh;
  perspective: 1600px;
  overflow: visible;
}

.flip-page {
  position: absolute;
  inset: 0;
  min-height: 100vh;
  overflow: visible;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  transition:
    transform 0.95s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.55s ease,
    visibility 0.55s ease;
}

.flip-page.active {
  position: relative;
  opacity: 1;
  visibility: visible;
  height: auto;
  overflow: visible;
  transform: rotateY(0deg);
  z-index: 2;
}

.galih-page:not(.active) {
  opacity: 0;
  visibility: hidden;
  height: 100vh;
  overflow: hidden;
  transform: rotateY(-180deg);
  pointer-events: none;
}

.prime-page {
  background:
    linear-gradient(140deg, rgba(27, 97, 86, 0.22), transparent 34%),
    linear-gradient(315deg, rgba(174, 183, 91, 0.16), transparent 42%),
    var(--bg);
}

.prime-page:not(.active) {
  opacity: 0;
  visibility: hidden;
  height: 100vh;
  overflow: hidden;
  transform: rotateY(180deg);
  pointer-events: none;
}

.prime-logo {
  display: grid;
  place-items: center;
  width: min(360px, 64vw);
  height: min(360px, 64vw);
  margin: 108px auto 0;
  color: #f2f2ee;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.04);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

.prime-logo svg {
  width: 68%;
  height: 68%;
}

.hero-subtitle {
  margin: 14px auto 0;
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.35rem);
}

.prime-hero {
  min-height: 92vh;
  padding-top: 132px;
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(420px, 1.06fr);
  gap: clamp(36px, 6vw, 86px);
  align-items: center;
}

.prime-hero-copy {
  text-align: left;
}

.prime-hero .hero-kicker {
  margin: 0;
  color: #87f5df;
  font-family: "Sora", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.prime-hero h1 {
  margin-top: 14px;
  font-size: clamp(2.7rem, 7.2vw, 6.9rem);
  line-height: 0.94;
  letter-spacing: -0.04em;
}

.prime-hero .hero-subtitle {
  margin: 24px 0 0;
  max-width: 680px;
  color: #c3cbd1;
  font-size: clamp(1.04rem, 1.45vw, 1.35rem);
  line-height: 1.7;
}

.prime-hero-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.prime-hero-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
}

.prime-primary-action {
  background: #e9fff9;
  color: #06110f !important;
  box-shadow: 0 16px 48px rgba(101, 255, 218, 0.18);
}

.prime-secondary-action {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.05);
}

.prime-system-visual {
  position: relative;
  min-height: 620px;
  margin-top: 0;
  border: 1px solid rgba(135, 245, 223, 0.14);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(135, 245, 223, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(135, 245, 223, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 50% 45%, rgba(135, 245, 223, 0.2), transparent 34%),
    rgba(7, 10, 12, 0.78);
  background-size: 34px 34px, 34px 34px, auto, auto;
  box-shadow: inset 0 0 90px rgba(135, 245, 223, 0.05), 0 34px 90px rgba(0, 0, 0, 0.38);
}

.prime-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(330px, 62%);
  aspect-ratio: 1;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(233, 255, 249, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(233, 255, 249, 0.13), rgba(13, 22, 24, 0.72)),
    rgba(11, 18, 20, 0.9);
  box-shadow: 0 0 0 1px rgba(135, 245, 223, 0.06), 0 30px 80px rgba(0, 0, 0, 0.42);
  transform: translate(-50%, -50%);
}

.prime-core-label,
.prime-node,
.prime-process-track span {
  font-family: "Sora", sans-serif;
  letter-spacing: 0.08em;
}

.prime-core-label {
  color: #87f5df;
  font-size: 0.78rem;
  font-weight: 800;
}

.prime-core strong {
  max-width: 220px;
  font-family: "Sora", sans-serif;
  font-size: clamp(1.8rem, 3.6vw, 3.1rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.prime-core-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.prime-core-grid span {
  height: 10px;
  border-radius: 999px;
  background: rgba(135, 245, 223, 0.26);
}

.prime-core-grid span:nth-child(3n + 1) {
  background: rgba(233, 255, 249, 0.78);
}

.prime-node {
  position: absolute;
  display: grid;
  place-items: center;
  min-width: 76px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(135, 245, 223, 0.36);
  border-radius: 999px;
  background: rgba(4, 12, 14, 0.82);
  color: #e9fff9;
  font-size: 0.78rem;
  font-weight: 800;
  box-shadow: 0 0 36px rgba(135, 245, 223, 0.12);
}

.node-api {
  left: 12%;
  top: 22%;
}

.node-ai {
  right: 13%;
  top: 28%;
}

.node-cloud {
  left: 10%;
  bottom: 20%;
}

.node-iot {
  right: 15%;
  bottom: 18%;
}

.prime-orbit {
  position: absolute;
  inset: 16%;
  border: 1px solid rgba(135, 245, 223, 0.18);
  border-radius: 50%;
  transform: rotate(-22deg);
}

.orbit-two {
  inset: 26%;
  border-color: rgba(233, 255, 249, 0.2);
  transform: rotate(32deg);
}

.prime-scanline {
  position: absolute;
  left: 0;
  right: 0;
  top: 18%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(135, 245, 223, 0.82), transparent);
  box-shadow: 0 0 18px rgba(135, 245, 223, 0.5);
  animation: primeScan 5.5s ease-in-out infinite;
}

@keyframes primeScan {
  0%,
  100% {
    top: 18%;
    opacity: 0.22;
  }

  50% {
    top: 82%;
    opacity: 0.84;
  }
}

.prime-profile {
  margin-top: 52px;
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: end;
  padding: clamp(28px, 5vw, 58px) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.prime-profile h2,
.prime-process h2,
.prime-contact h2 {
  font-size: clamp(2rem, 4.4vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.prime-profile > p {
  margin: 0;
  color: #c1c9d0;
  font-size: clamp(1.05rem, 1.65vw, 1.32rem);
  line-height: 1.78;
}

.prime-capabilities {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.prime-capabilities article,
.prime-process-track article {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.prime-capabilities article {
  min-height: 190px;
  padding: 24px;
}

.prime-capabilities span {
  color: #87f5df;
  font-family: "Sora", sans-serif;
  font-weight: 800;
}

.prime-capabilities h3 {
  margin-top: 34px;
  font-size: 1.35rem;
}

.prime-capabilities p,
.prime-process-track p,
.prime-contact p {
  color: var(--muted);
  line-height: 1.65;
}

.prime-process {
  margin-top: 130px;
}

.prime-running-apps {
  margin-top: 112px;
}

.prime-section-heading {
  max-width: 820px;
}

.prime-section-heading h2 {
  font-size: clamp(2rem, 4.4vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.prime-section-heading > p:not(.eyebrow) {
  margin: 18px 0 0;
  color: #c1c9d0;
  font-size: clamp(1rem, 1.45vw, 1.22rem);
  line-height: 1.7;
}

.prime-apps-grid {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.prime-app-card {
  min-height: 360px;
  padding: clamp(24px, 3.5vw, 38px);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(135, 245, 223, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(135, 245, 223, 0.1), rgba(255, 255, 255, 0.035) 42%, rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.prime-app-meta {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: #87f5df;
  font-family: "Sora", sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.prime-app-card h3 {
  margin-top: 44px;
  font-size: clamp(1.7rem, 3vw, 3rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.prime-app-card p {
  margin: 18px 0 0;
  color: #c1c9d0;
  font-size: 1.03rem;
  line-height: 1.7;
}

.prime-app-card ul {
  margin: 24px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.prime-app-card li {
  padding: 7px 10px;
  color: #e9fff9;
  border: 1px solid rgba(135, 245, 223, 0.24);
  border-radius: 999px;
  background: rgba(135, 245, 223, 0.07);
  font-size: 0.84rem;
  font-weight: 800;
}

.prime-app-card a {
  width: fit-content;
  margin-top: auto;
  padding: 12px 16px;
  color: #06110f;
  text-decoration: none;
  border-radius: 8px;
  background: #e9fff9;
  font-weight: 900;
}

.prime-process h2 {
  max-width: 760px;
}

.prime-process-track {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.prime-process-track article {
  min-height: 220px;
  padding: 22px;
  position: relative;
  overflow: hidden;
}

.prime-process-track article::before {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  top: 70px;
  height: 1px;
  background: linear-gradient(90deg, rgba(135, 245, 223, 0.8), transparent);
}

.prime-process-track span {
  color: #e9fff9;
  font-weight: 800;
  text-transform: uppercase;
}

.prime-process-track p {
  margin-top: 54px;
}

.prime-contact {
  margin-top: 96px;
  margin-bottom: clamp(28px, 4vw, 48px);
  padding: clamp(30px, 4.6vw, 56px);
  text-align: center;
  border: 1px solid rgba(135, 245, 223, 0.18);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 0, rgba(135, 245, 223, 0.16), transparent 42%),
    rgba(255, 255, 255, 0.045);
}

.prime-contact h2 {
  max-width: 820px;
  margin: 0 auto;
}

.prime-contact > p {
  max-width: 720px;
  margin: 14px auto 0;
  font-size: 1.1rem;
}

.prime-contact .contact-actions {
  margin-top: 22px;
}

.flip-btn {
  position: fixed;
  top: 50%;
  z-index: 30;
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  background: rgba(10, 12, 15, 0.78);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(12px);
  cursor: pointer;
  transform: translateY(-50%);
  transition:
    transform 0.24s ease,
    background 0.24s ease,
    border-color 0.24s ease,
    opacity 0.24s ease;
}

.flip-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.48);
  transform: translateY(-50%) scale(1.08);
}

.flip-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: 4px;
}

.flip-btn-left {
  left: clamp(10px, 2vw, 28px);
}

.flip-btn-right {
  right: clamp(10px, 2vw, 28px);
}

.flip-btn-icon {
  font-size: 1.45rem;
  line-height: 1;
}

.show-prime .flip-btn-right,
.show-galih .flip-btn-left {
  opacity: 0.42;
}

.binary-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.3;
  background-image:
    radial-gradient(circle at 10% 10%, rgba(255, 255, 255, 0.04), transparent 35%),
    radial-gradient(circle at 80% 0, rgba(255, 255, 255, 0.03), transparent 40%),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.04) 0 1px,
      transparent 1px 26px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.03) 0 1px,
      transparent 1px 18px
    );
}

.topbar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 20px clamp(16px, 4vw, 30px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
  background: rgba(6, 8, 10, 0.64);
}

.brand {
  color: var(--text);
  text-decoration: none;
  font-family: "Sora", sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 1rem;
}

.topbar-location {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-location .dot {
  transform: translateY(-1px);
}

.topbar-clock {
  display: inline-block;
  min-width: 15ch;
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.resume-link {
  margin-left: 6px;
  padding-left: 14px;
  border-left: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.section {
  position: relative;
  z-index: 1;
  width: min(var(--max), 100% - 40px);
  margin: 0 auto;
}

.hero {
  padding-top: 145px;
  text-align: center;
}

.hero-kicker {
  margin: 70px 0 0;
  font-size: clamp(0.9rem, 1.35vw, 1.2rem);
  color: #e6e6df;
}

h1,
h2,
h3,
.eyebrow {
  font-family: "Sora", sans-serif;
  margin: 0;
}

.hero h1 {
  font-size: clamp(0.85rem, 4.1vw, 1.6rem);
  letter-spacing: -0.04em;
  margin-top: 10px;
}

.spark {
  font-size: 0.5em;
  vertical-align: middle;
  margin: 0 10px;
}

.hero-art {
  margin-top: 26px;
  min-height: 560px;
  position: relative;
  perspective: 960px;
  transform-style: preserve-3d;
}

.profile-photo-img {
  display: block;
  width: min(420px, 70vw);
  height: auto;
  margin: 100px auto 0;
  object-fit: contain;
  filter: drop-shadow(0 22px 62px rgba(0, 0, 0, 0.52));
  transform: translateZ(30px);
  transition: translate 0.34s cubic-bezier(0.22, 1, 0.36, 1), filter 0.45s ease;
}

.shape {
  position: absolute;
  pointer-events: none;
  opacity: 0.94;
  transition: translate 0.34s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: translate, transform;
}

.shape-star {
  width: 60px;
  height: 60px;
  background: #f0efe7;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}

.shape-star.left {
  left: -6px;
  top: 180px;
}

.shape-scribble {
  left: 20%;
  top: 270px;
  width: 140px;
  height: 80px;
  border: 6px solid #f0efe7;
  border-radius: 100px;
  transform: rotate(-17deg);
  border-left-color: transparent;
  border-right-color: transparent;
}

.shape-pill {
  right: 16%;
  top: 320px;
  width: 120px;
  height: 56px;
  border-radius: 200px;
  border: 8px solid #f0efe7;
}

.shape-orb {
  left: 10%;
  bottom: 40px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background:
    linear-gradient(45deg, #e8e7df 0 52%, rgba(232, 231, 223, 0.6) 52% 100%);
}

.shape-diamond {
  right: 23%;
  top: 180px;
  width: 42px;
  height: 42px;
  border: 5px solid #ecebe4;
  transform: rotate(45deg);
}

.shape-cross {
  left: 29%;
  bottom: 110px;
  width: 56px;
  height: 56px;
}

.shape-cross::before,
.shape-cross::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  background: #ecebe4;
  border-radius: 999px;
}

.shape-cross::before {
  width: 56px;
  height: 7px;
}

.shape-cross::after {
  width: 7px;
  height: 56px;
}

.shape-orbit {
  right: 8%;
  bottom: 145px;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  border: 4px solid rgba(236, 235, 228, 0.95);
}

.shape-orbit::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ecebe4;
  top: -7px;
  left: calc(50% - 7px);
}

.framed {
  margin-top: 120px;
  min-height: 420px;
  display: grid;
  place-items: center;
  padding: clamp(28px, 8vw, 80px);
}

.corner {
  position: absolute;
  width: 30px;
  height: 30px;
  border-color: #8d9199;
  border-style: solid;
  opacity: 0.75;
}

.top-left {
  left: 0;
  top: 0;
  border-width: 4px 0 0 4px;
  border-top-left-radius: 13px;
}

.top-right {
  right: 0;
  top: 0;
  border-width: 4px 4px 0 0;
  border-top-right-radius: 13px;
}

.bottom-left {
  left: 0;
  bottom: 0;
  border-width: 0 0 4px 4px;
  border-bottom-left-radius: 13px;
}

.bottom-right {
  right: 0;
  bottom: 0;
  border-width: 0 4px 4px 0;
  border-bottom-right-radius: 13px;
}

.about-content {
  max-width: 840px;
}

.about-content .lead {
  font-family: "Sora", sans-serif;
  font-size: clamp(1.8rem, 3.8vw, 3.4rem);
  line-height: 1.16;
  letter-spacing: -0.03em;
}

.about-content p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 2.4vw, 1.34rem);
}

.about-content p + p {
  margin-top: 26px;
}

.split-section {
  margin-top: 140px;
  display: grid;
  grid-template-columns: 1.05fr 1px 1fr;
  gap: 48px;
  align-items: start;
}

.split-left {
  position: sticky;
  top: 116px;
  opacity: 0.34;
  transition: opacity 0.55s ease;
}

.split-left.reveal.show {
  opacity: 0.34;
}

.split-section.active-panel .split-left {
  opacity: 1;
}

.split-section.active-panel .split-left.reveal.show {
  opacity: 1;
}

.split-divider {
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  min-height: 520px;
}

.eyebrow {
  font-size: 1.6rem;
  color: #d5d8dd;
  margin-bottom: 10px;
}

.split-left h2 {
  font-size: clamp(2.5rem, 7.5vw, 5rem);
  letter-spacing: -0.04em;
}

.split-left p {
  margin-top: 14px;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.4rem);
  max-width: 560px;
}

.stats {
  margin-top: 180px;
  display: flex;
  gap: clamp(20px, 6vw, 80px);
}

.stats h3 {
  font-size: clamp(2.4rem, 6vw, 4.3rem);
}

.stats span {
  color: #9ba1ad;
  font-size: 1.1rem;
}

.skill-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0 42px 0 22px;
  overflow: hidden;
}

.skill-list li {
  font-family: "Sora", sans-serif;
  font-size: clamp(0.725rem, 1.55vw, 1.3rem);
  margin: 9px 0;
  color: #c7cdd8;
  white-space: nowrap;
  cursor: pointer;
  opacity: 0;
  transform: translateX(82px);
  filter: blur(0);
  letter-spacing: -0.01em;
  will-change: transform, opacity;
  transition:
    color 0.44s ease,
    transform 0.62s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.44s ease,
    filter 0.44s ease,
    text-shadow 0.44s ease;
}

.skill-list li:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.42);
  outline-offset: 2px;
}

.skill-list li.passed {
  color: #dee4ee;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.14);
}

.skill-list li.active {
  color: #ffffff;
  opacity: 1;
  transform: translateX(0) scale(1.01);
  filter: blur(0);
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.38);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0));
  border-left: 3px solid rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  padding: 6px 10px;
}

.skill-list.in-view li {
  opacity: 0.9;
  transform: translateX(0);
  filter: blur(0);
}

.skill-list li.main-skill {
  margin-top: 16px;
  color: #f4f7fc;
  font-size: clamp(0.82rem, 1.7vw, 1.42rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
  border-left: 3px solid rgba(255, 255, 255, 0.48);
  padding-left: 10px;
}

.skill-list li.sub-skill {
  padding-left: 26px;
  color: #c6ccd8;
}

.skill-list li .main-index {
  font-size: 0.75em;
  color: #9ca7ba;
  letter-spacing: 0.08em;
}

.skill-description {
  position: absolute;
  right: -150px;
  top: 0;
  width: min(300px, 28vw);
  margin: 0;
  padding: 12px 14px;
  min-height: 64px;
  color: #e8edf7;
  font-size: clamp(0.8rem, 1.35vw, 1rem);
  line-height: 1.45;
  border-left: 3px solid rgba(255, 255, 255, 0.82);
  border-radius: 8px;
  opacity: 0;
  transform: translateY(-50%);
  transition: top 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02)),
    rgba(12, 16, 24, 0.7);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.skill-description.show {
  opacity: 1;
}

.split-right {
  position: relative;
  min-height: 520px;
}

.split-right.has-inline-description .skill-list {
  padding-right: 34px;
}

@media (max-width: 1240px) {
  .skill-description {
    right: -90px;
    width: min(290px, 31vw);
  }
}

.alt {
  margin-top: 110px;
}

.projects {
  margin-top: 140px;
  padding-bottom: 120px;
}

.projects h2 {
  font-size: clamp(2.6rem, 8vw, 4.5rem);
  letter-spacing: -0.03em;
  text-align: center;
}

.projects > p {
  margin: 12px auto 0;
  text-align: center;
  color: var(--muted);
  max-width: 730px;
  font-size: clamp(1rem, 2vw, 1.3rem);
}

.projects-kpi {
  margin: 20px auto 0;
  width: fit-content;
  padding: 14px 22px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03)),
    rgba(10, 13, 18, 0.78);
  text-align: center;
}

.projects-kpi h3 {
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  letter-spacing: -0.02em;
  line-height: 1;
}

.projects-kpi h3.counter-boom {
  animation: counterBoom 0.46s cubic-bezier(0.2, 0.9, 0.2, 1);
}

@keyframes counterBoom {
  0% {
    transform: scale(1);
    text-shadow: 0 0 0 rgba(255, 255, 255, 0);
  }

  35% {
    transform: scale(1.18);
    text-shadow: 0 0 22px rgba(255, 255, 255, 0.52);
  }

  65% {
    transform: scale(0.96);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.28);
  }

  100% {
    transform: scale(1);
    text-shadow: 0 0 0 rgba(255, 255, 255, 0);
  }
}

.projects-kpi span {
  display: block;
  margin-top: 4px;
  color: #b7becc;
  font-size: clamp(0.82rem, 1.5vw, 1.02rem);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.project-card {
  margin-top: 42px;
  background: linear-gradient(145deg, #b7b8ba, #9fa3aa);
  border-radius: 28px;
  padding: clamp(16px, 3vw, 26px);
  box-shadow: 0 30px 120px rgba(0, 0, 0, 0.48);
}

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

.project-mini {
  position: relative;
  border-radius: 18px;
  padding: 18px 18px 16px;
  min-height: 226px;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(10, 12, 17, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.project-mini h3 {
  font-size: 1.2rem;
  line-height: 1.2;
  padding-right: 52px;
  min-height: calc(1.2em * 2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  letter-spacing: -0.01em;
}

.project-tags {
  margin-top: 10px;
  min-height: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.project-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(155, 171, 209, 0.35);
  background: rgba(48, 66, 110, 0.22);
  color: #d8e2ff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.project-tag.tag-machining {
  border-color: rgba(104, 195, 255, 0.52);
  background: rgba(26, 99, 150, 0.28);
  color: #b9e7ff;
}

.project-tag.tag-automation {
  border-color: rgba(113, 222, 196, 0.52);
  background: rgba(20, 126, 109, 0.26);
  color: #b8ffe8;
}

.project-tag.tag-mechanical-design {
  border-color: rgba(199, 173, 255, 0.52);
  background: rgba(94, 57, 150, 0.26);
  color: #e8dcff;
}

.project-tag.tag-branding {
  border-color: rgba(255, 177, 125, 0.52);
  background: rgba(148, 84, 41, 0.26);
  color: #ffe3cf;
}

.project-tag.tag-booth-design {
  border-color: rgba(255, 226, 121, 0.52);
  background: rgba(122, 104, 31, 0.26);
  color: #fff2bd;
}

.project-tag.tag-web-apps {
  border-color: rgba(136, 178, 255, 0.54);
  background: rgba(44, 74, 145, 0.28);
  color: #d5e4ff;
}

.project-tag.tag-project-management {
  border-color: rgba(244, 156, 255, 0.52);
  background: rgba(121, 46, 133, 0.26);
  color: #f5d9ff;
}

.project-tag.tag-data-automation {
  border-color: rgba(110, 255, 218, 0.52);
  background: rgba(21, 129, 109, 0.26);
  color: #c8fff0;
}

.project-tag.tag-budgeting {
  border-color: rgba(255, 209, 111, 0.52);
  background: rgba(146, 108, 28, 0.26);
  color: #ffeec1;
}

.project-tag.tag-document-management {
  border-color: rgba(142, 189, 255, 0.52);
  background: rgba(40, 86, 162, 0.26);
  color: #d7e8ff;
}

.project-tag.tag-data-science {
  border-color: rgba(123, 255, 238, 0.52);
  background: rgba(21, 120, 129, 0.26);
  color: #ccfffa;
}

.project-tag.tag-ai-rag {
  border-color: rgba(173, 159, 255, 0.52);
  background: rgba(69, 54, 150, 0.26);
  color: #e0daff;
}

.project-tag.tag-quality-control {
  border-color: rgba(255, 146, 146, 0.52);
  background: rgba(145, 43, 43, 0.26);
  color: #ffd8d8;
}

.project-tag.tag-kaizen {
  border-color: rgba(136, 255, 162, 0.52);
  background: rgba(34, 129, 60, 0.26);
  color: #d8ffe1;
}

.project-tag.tag-productivity {
  border-color: rgba(192, 202, 255, 0.52);
  background: rgba(72, 81, 140, 0.26);
  color: #e5e9ff;
}

.project-mini p {
  margin-top: 8px;
  color: #b9bfca;
  font-size: 0.95rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-media-btn {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(170, 190, 233, 0.4);
  border-radius: 10px;
  background: rgba(33, 43, 68, 0.45);
  color: #d7e3ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease;
}

.project-media-btn:hover {
  transform: translateY(-1px);
  background: rgba(54, 72, 116, 0.55);
}

.project-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(4, 8, 14, 0.72);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.project-modal-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.project-modal {
  position: relative;
  width: min(1500px, 96vw);
  height: min(90vh, 940px);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(8, 11, 18, 0.96);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.62);
  transform: scale(0.975);
  transition: transform 0.2s ease;
}

.project-modal-overlay.show .project-modal {
  transform: scale(1);
}

.project-modal-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  touch-action: none;
  cursor: zoom-in;
}

.project-modal img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  user-select: none;
  pointer-events: none;
  transform-origin: center center;
  will-change: transform;
  transition: none;
  background: rgba(8, 11, 18, 0.96);
}

.project-modal-close,
.project-modal-nav {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(8, 11, 18, 0.62);
  color: #f0f3fc;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  cursor: pointer;
}

.project-modal-close {
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.project-modal-nav {
  top: calc(50% - 18px);
  width: 36px;
  height: 36px;
  border-radius: 999px;
}

.project-modal-nav.prev {
  left: 10px;
}

.project-modal-nav.next {
  right: 10px;
}

.project-modal-counter {
  position: absolute;
  bottom: 10px;
  right: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 2;
  color: #f0f3fc;
  background: rgba(8, 11, 18, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.project-modal-zoom {
  position: absolute;
  left: 12px;
  bottom: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(8, 11, 18, 0.62);
}

.project-modal-zoom-btn {
  min-width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #f0f3fc;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}

.project-modal-zoom-btn.reset {
  min-width: 56px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.78rem;
}

.project-modal-zoom-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.project-modal-zoom-level {
  min-width: 52px;
  text-align: center;
  color: #f0f3fc;
  font-size: 0.8rem;
  font-weight: 700;
}

@media (max-width: 760px) {
  .project-modal {
    width: 96vw;
    height: 72vh;
  }

  .project-modal-nav.prev {
    left: 8px;
  }

  .project-modal-nav.next {
    right: 8px;
  }

  .project-modal-zoom {
    gap: 6px;
    padding: 4px;
    left: 8px;
    bottom: 8px;
  }

  .project-modal-zoom-btn {
    min-width: 28px;
    height: 28px;
  }
}

.browser-top {
  height: 26px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding-left: 10px;
  background: rgba(246, 248, 251, 0.8);
}

.browser-top span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(45, 46, 53, 0.55);
}

.project-screen {
  margin-top: 16px;
  border-radius: 18px;
  min-height: 470px;
  overflow: hidden;
  background:
    linear-gradient(180deg, #edf2fb 0%, #d9e3f9 65%, #f5f7fc 100%);
}

.screen-nav {
  height: 62px;
  border-bottom: 1px solid rgba(27, 35, 59, 0.14);
  background: rgba(255, 255, 255, 0.65);
}

.screen-content {
  padding: clamp(22px, 6vw, 80px);
  max-width: 800px;
}

.screen-content h3 {
  color: #1f3470;
  font-size: clamp(2.2rem, 5vw, 4rem);
  letter-spacing: -0.02em;
}

.screen-content p {
  margin-top: 10px;
  color: #293959;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
}

.screen-content button {
  margin-top: 24px;
  border: none;
  background: #2957d6;
  color: #f4f7ff;
  border-radius: 999px;
  padding: 14px 28px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
}

.project-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-primary {
  border: none;
  background: #2957d6;
  color: #f4f7ff;
  border-radius: 999px;
  padding: 14px 28px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 14px 24px;
  color: #2249ad;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(31, 52, 112, 0.26);
  font-weight: 700;
}

.testimonials {
  margin-top: 96px;
}

.testimonials h2 {
  margin-top: 8px;
  font-size: clamp(2rem, 6.5vw, 4.2rem);
  letter-spacing: -0.03em;
}

.testimonials-intro {
  margin: 14px 0 0;
  color: var(--muted);
  max-width: 780px;
  font-size: clamp(1rem, 1.9vw, 1.22rem);
}

.testimonials-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.testimonial-card {
  position: relative;
  border-radius: 16px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.01)),
    rgba(7, 10, 14, 0.88);
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 8px;
  right: 12px;
  color: rgba(255, 255, 255, 0.18);
  font-family: "Sora", sans-serif;
  font-size: 2.2rem;
  line-height: 1;
}

.testimonial-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Sora", sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #eff3fb;
  border: 1px solid rgba(174, 196, 241, 0.34);
  background:
    radial-gradient(circle at 30% 30%, rgba(115, 158, 255, 0.32), rgba(45, 65, 110, 0.44));
}

.testimonial-person h3 {
  margin: 0;
  font-size: 1.06rem;
  letter-spacing: -0.01em;
}

.testimonial-person span {
  display: block;
  margin-top: 2px;
  color: #9da6b6;
  font-size: 0.88rem;
}

.testimonial-card p {
  margin: 12px 0 0;
  color: #d2d9e5;
  line-height: 1.45;
  font-size: 0.99rem;
}

.contact {
  margin-top: 80px;
  margin-bottom: 70px;
  text-align: center;
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    rgba(8, 11, 15, 0.86);
}

.contact h2 {
  margin-top: 4px;
  font-size: clamp(2rem, 6vw, 4rem);
  letter-spacing: -0.03em;
}

.contact p {
  max-width: 760px;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.22rem);
}

.contact-actions {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-actions a {
  color: var(--text);
  text-decoration: none;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  transition: background 0.25s ease;
}

.contact-actions a:hover {
  background: rgba(255, 255, 255, 0.14);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.95s ease, transform 0.95s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .topbar {
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .brand {
    font-size: 1.25rem;
  }

  .topbar-right {
    font-size: 0.88rem;
    gap: 8px;
  }

  .hero {
    padding-top: 105px;
  }

  .prime-hero {
    min-height: auto;
    padding-top: 112px;
    grid-template-columns: 1fr;
  }

  .prime-system-visual {
    min-height: 500px;
  }

  .prime-profile,
  .prime-capabilities,
  .prime-apps-grid,
  .prime-process-track {
    grid-template-columns: 1fr;
  }

  .prime-running-apps {
    margin-top: 82px;
  }

  .prime-process {
    margin-top: 96px;
  }

  .prime-contact {
    margin-top: 72px;
    margin-bottom: 32px;
  }

  .hero-art {
    min-height: 460px;
  }

  .prime-logo {
    margin-top: 72px;
  }

  .shape-scribble,
  .shape-pill,
  .shape-orb,
  .shape-star.left,
  .shape-diamond,
  .shape-cross,
  .shape-orbit {
    transform: scale(0.75);
  }

  .shape-scribble {
    left: 8%;
  }

  .shape-pill {
    right: 8%;
  }

  .split-section {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 96px;
  }

  .split-left {
    position: static;
    top: auto;
    opacity: 1;
  }

  .split-divider {
    display: none;
  }

  .stats {
    margin-top: 56px;
  }

  .split-right {
    min-height: auto;
    padding: 0 34px 0 18px;
  }

  .split-right.has-inline-description .skill-list {
    padding-right: 42px;
  }

  .skill-description {
    position: static;
    width: auto;
    transform: none;
    margin: 16px 22px 0;
    opacity: 1;
    pointer-events: auto;
  }

  .skill-list li {
    white-space: normal;
  }

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

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

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

@media (max-width: 640px) {
  .section {
    width: min(var(--max), 100% - 24px);
  }

  .topbar-location {
    display: none;
  }

  .flip-btn {
    width: 44px;
    height: 44px;
  }

  .flip-btn-left {
    left: 8px;
  }

  .flip-btn-right {
    right: 8px;
  }

  .hero-kicker {
    margin-top: 36px;
  }

  .hero-art {
    min-height: 370px;
  }

  .prime-hero {
    padding-top: 96px;
  }

  .prime-hero h1 {
    font-size: clamp(2.3rem, 14vw, 4.2rem);
  }

  .prime-hero-actions a {
    width: 100%;
  }

  .prime-system-visual {
    min-height: 390px;
  }

  .prime-core {
    width: min(250px, 72%);
    padding: 20px;
  }

  .prime-node {
    min-width: 62px;
    height: 36px;
    font-size: 0.68rem;
  }

  .prime-profile {
    margin-top: 24px;
  }

  .prime-running-apps {
    margin-top: 58px;
  }

  .prime-app-card {
    min-height: auto;
  }

  .prime-capabilities article,
  .prime-process-track article {
    min-height: auto;
  }

  .prime-contact {
    margin-top: 54px;
    margin-bottom: 24px;
  }

  .profile-photo-img {
    width: min(300px, 78vw);
    margin-top: 34px;
  }

  .prime-logo {
    width: min(260px, 74vw);
    height: min(260px, 74vw);
    margin-top: 42px;
  }

  .shape-scribble,
  .shape-pill,
  .shape-star,
  .shape-orb,
  .shape-diamond,
  .shape-cross,
  .shape-orbit {
    display: none;
  }

  .framed {
    margin-top: 66px;
  }

  .skill-list li {
    font-size: clamp(0.6rem, 4vw, 1rem);
    margin: 8px 0;
  }

  .projects {
    margin-top: 88px;
    padding-bottom: 64px;
  }

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

  .contact {
    margin-top: 46px;
    margin-bottom: 52px;
  }
}
