:root {
  --bg: #030303;
  --surface: #0a0a0a;
  --surface-2: #111111;
  --surface-3: #151515;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.1);
  --text: #f5f1ea;
  --muted: #b8b8b8;
  --muted-2: #777777;
  --label: #a7a7a7;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  --radius: 28px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: #030303;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

button:focus-visible,
a:focus-visible {
  outline: 2px solid rgba(255, 140, 90, 0.75);
  outline-offset: 4px;
}

.site-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px) top left / 100% 36px,
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.03), transparent 25%),
    radial-gradient(circle at 50% 10%, rgba(255, 87, 34, 0.03), transparent 10%),
    radial-gradient(circle at 50% 90%, rgba(99, 102, 241, 0.02), transparent 10%);
  opacity: 0.4;
  mix-blend-mode: screen;
}

.site-bg::before,
.site-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.6) 72%, rgba(0, 0, 0, 0.9) 100%);
}

.site-bg::after {
  background:
    radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.7) 100%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.03), transparent 20%);
  opacity: 0.4;
}

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

main {
  display: flex;
  flex-direction: column;
  gap: clamp(56px, 7vw, 96px);
}

.section {
  position: relative;
  padding: 0;
  scroll-margin-top: 120px;
}

html {
  scroll-padding-top: 120px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--label);
  text-transform: uppercase;
  letter-spacing: 0.45em;
  font-size: 0.74rem;
}

.section-label::before {
  content: '';
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: linear-gradient(90deg, #f5a27d, #6e6a93);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.18);
}

.nav-wrap {
  position: fixed;
  top: 22px;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  pointer-events: none;
  transition:
    transform 0.36s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.36s ease;
  transform: translateY(0);
  opacity: 1;
}

.nav-wrap.nav-hidden {
  transform: translateY(-130%);
  opacity: 0;
}

.nav-wrap.nav-visible {
  transform: translateY(0);
  opacity: 1;
}

.nav-shell {
  pointer-events: auto;
  width: min(calc(100% - 48px), 1120px);
  min-height: 66px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 10px 14px 10px 20px;
  border-radius: 999px;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  background: #070707;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 22px 70px rgba(0, 0, 0, 0.62),
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    inset 0 -14px 28px rgba(0, 0, 0, 0.42);
  transition:
    transform 0.34s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.34s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.34s ease;
}

.nav-shell:hover {
  transform: translateY(-2px) translateZ(16px);
  border-color: rgba(255, 255, 255, 0.13);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.72),
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    inset 0 -16px 32px rgba(0, 0, 0, 0.48);
}

.nav-shell::before {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  top: 1px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.12),
    transparent
  );
  opacity: 0.55;
  pointer-events: none;
}

.nav-shell::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 4px;
  height: 18px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  filter: blur(12px);
  opacity: 0.55;
  pointer-events: none;
}

.nav-shell > * {
  position: relative;
  z-index: 2;
}

.brand {
  justify-self: start;
  position: relative;
  z-index: 2;
  transform: translateZ(24px);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.035em;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.82rem;
  text-transform: uppercase;
  pointer-events: auto;
}

.brand::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  flex: 0 0 auto;
  background: var(--accent-orange, #f97316);
  box-shadow:
    0 0 0 4px rgba(249, 115, 22, 0.08),
    0 0 18px rgba(249, 115, 22, 0.18);
}

.brand:hover::before {
  transform: scale(1.12);
}

.nav-links {
  justify-self: center;
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.055);
  box-shadow:
    inset 0 1px 8px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.nav-links a {
  position: relative;
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 0.82rem;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.72);
  opacity: 0.84;
  transform-style: preserve-3d;
  transition:
    transform 0.24s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.24s ease,
    background 0.24s ease;
}

.nav-links a:hover {
  opacity: 1;
  transform: translateY(-2px) translateZ(16px);
  background: rgba(255, 255, 255, 0.05);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  transform: translateX(-50%);
  background: var(--accent-orange, #f97316);
  opacity: 0;
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  opacity: 1;
}

.nav-links a.active {
  opacity: 1;
  background: rgba(255, 255, 255, 0.075);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 8px 22px rgba(0, 0, 0, 0.32);
}

.nav-cta,
.btn {
  justify-self: end;
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  transform-style: preserve-3d;
  transition:
    transform 0.26s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.26s ease,
    border-color 0.26s ease;
}

.nav-cta {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 10px 22px rgba(0, 0, 0, 0.18);
}

.nav-cta:hover {
  transform: translateY(-3px) translateZ(24px);
  box-shadow:
    0 16px 42px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  flex-direction: column;
  gap: 0.3rem;
  cursor: pointer;
  pointer-events: auto;
}

.nav-toggle span {
  display: block;
  width: 1rem;
  height: 1px;
  background: rgba(255, 255, 255, 0.92);
  transition: transform 0.25s ease;
  transform-origin: center;
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.03), transparent 18%),
    radial-gradient(circle at 50% 50%, rgba(68, 31, 121, 0.04), transparent 20%),
    #030303;
  min-height: 720px;
  perspective: 1200px;
  transform-style: preserve-3d;
}

.hero-blackhole-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 62%;
  height: 100%;
  min-height: 720px;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  will-change: transform;
  transform: translate3d(calc(var(--hero-mx, 0) * -5px), calc(var(--hero-my, 0) * -4px), 0);
}

.hero-blackhole-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0.9;
  filter: saturate(0.92) brightness(0.76) contrast(1.06);
  transform: scale(1.06);
  animation: driftSlow 18s ease-in-out infinite alternate;
  backface-visibility: hidden;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.98) 0%,
      rgba(0, 0, 0, 0.94) 28%,
      rgba(0, 0, 0, 0.72) 45%,
      rgba(0, 0, 0, 0.28) 67%,
      rgba(0, 0, 0, 0.10) 100%
    ),
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.55) 0%,
      rgba(0, 0, 0, 0.00) 35%,
      rgba(0, 0, 0, 0.55) 100%
    );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: clamp(155px, 18vh, 190px);
  padding-bottom: clamp(80px, 12vh, 140px);
  transform-style: preserve-3d;
  will-change: transform;
  transform: translate3d(calc(var(--hero-mx, 0) * 4px), calc(var(--hero-my, 0) * 3px), 0);
}

.hero-text {
  max-width: 560px;
  margin-left: clamp(16px, 3.8vw, 58px);
  transform-style: preserve-3d;
  will-change: transform;
}

.hero-text > * {
  opacity: 0;
  animation: heroContentIn 0.75s ease forwards;
}

.hero-text > *:nth-child(1) {
  animation-delay: 0.05s;
}

.hero-text > *:nth-child(2) {
  animation-delay: 0.12s;
}

.hero-text > *:nth-child(3) {
  animation-delay: 0.20s;
}

.hero-text > *:nth-child(4) {
  animation-delay: 0.28s;
}

.hero-content,
.hero-content *,
.hero-actions a,
.hero-actions button,
.hero-stat-card {
  transition: transform 0.25s ease, opacity 0.25s ease;
}

@media (prefers-reduced-motion: reduce) {
  .hero-content,
  .hero-content *,
  .hero-actions a,
  .hero-actions button,
  .hero-stat-card {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}

@media (max-width: 768px) {
  .hero-content,
  .hero-blackhole-bg {
    transform: none !important;
  }

  .hero-actions .btn:hover,
  .hero-actions a:hover,
  .hero-stat-card:hover {
    transform: translateY(-2px) !important;
  }
}

.hero-intro-line {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  margin-bottom: 1.1rem;
}

.animated-name {
  display: inline-flex;
  gap: 0.06em;
}

.letter {
  display: inline-block;
  color: var(--text);
  opacity: 0.6;
  transform: translateY(0);
  animation: name-pop 1.6s ease-out infinite;
}

.letter-1 { animation-delay: 0.05s; }
.letter-2 { animation-delay: 0.12s; }
.letter-3 { animation-delay: 0.19s; }
.letter-4 { animation-delay: 0.26s; }
.letter-5 { animation-delay: 0.33s; }
.letter-6 { animation-delay: 0.40s; }
.letter-7 { animation-delay: 0.47s; }
.letter-8 { animation-delay: 0.54s; }

@keyframes name-pop {
  0%, 80%, 100% {
    opacity: 0.6;
    transform: translateY(0);
    color: var(--text);
  }
  20% {
    opacity: 1;
    transform: translateY(-2px);
    color: #ff7a59;
  }
}

@media (prefers-reduced-motion: reduce) {
  .letter {
    animation: none;
    opacity: 1;
    color: var(--text);
  }
}

.hero-icon {
  width: 0.78rem;
  height: 0.78rem;
  display: inline-block;
  border-radius: 50%;
  background: #f28a54;
  box-shadow: 0 0 0 0.18rem rgba(242, 138, 84, 0.08);
}

.hero-text h1 {
  margin: 0 0 1rem;
  font-size: clamp(3.8rem, 5vw, 6rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  max-width: 12ch;
}

.hero-text p {
  color: var(--muted);
  font-size: 1rem;
  max-width: 54ch;
  margin: 0;
  transform: translateZ(20px);
  will-change: transform;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.8rem;
}

.hero-text h1 {
  transform: translateZ(36px);
  text-shadow: 0 22px 60px rgba(0, 0, 0, 0.42);
  will-change: transform;
}

.hero-meta {
  transform: translateZ(22px);
  will-change: transform;
}

.hero-stat-card {
  transition: transform 0.25s ease, opacity 0.25s ease;
  will-change: transform;
}

.hero-stat-card:hover {
  transform: translateY(-3px) translateZ(16px);
}

.hero-actions .btn,
.hero-actions a {
  transform-style: preserve-3d;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  will-change: transform;
}

.hero-actions .btn:hover,
.hero-actions a:hover {
  transform: translateY(-3px) translateZ(18px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.38);
}

@keyframes heroContentIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes capabilityFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

@keyframes capabilityCardIn {
  from {
    opacity: 0;
    transform: translateY(12px) translateZ(0);
  }
  to {
    opacity: 1;
    transform: translateY(0) translateZ(0);
  }
}

.btn {
  min-height: 3rem;
  padding: 0.82rem 1.05rem;
  border: 1px solid var(--line);
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
  border-color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.btn-primary:hover {
  background: #ffffff;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.09);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.8rem;
}

.hero-stat-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 140px;
}

.hero-stat-number {
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1;
  letter-spacing: -0.06em;
  color: var(--text);
  transition: color 0.8s ease;
}

.hero-stat-text {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.55;
  max-width: 14ch;
}

.skills-panel,
.process-panel,
.about-panel,
.cta-panel,
.clarity-panel {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, rgba(7, 7, 7, 0.98), rgba(10, 10, 10, 0.92));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.skills-section {
  position: relative;
  overflow: hidden;
  background: #030303;
  isolation: isolate;
}

.skills-panel {
  position: relative;
  overflow: hidden;
  min-height: clamp(560px, 68vh, 720px);
  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.98) 0%,
      rgba(0, 0, 0, 0.94) 24%,
      rgba(0, 0, 0, 0.84) 40%,
      rgba(0, 0, 0, 0.58) 56%,
      rgba(0, 0, 0, 0.22) 76%,
      rgba(0, 0, 0, 0.10) 100%
    );
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.skills-content,
.skill-cards-grid {
  transform-style: preserve-3d;
}

.skills-bg-visual {
  position: absolute;
  top: 0;
  left: -6%;
  width: 62%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  will-change: transform;
}

.skills-bg-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    270deg,
    rgba(0, 0, 0, 0.96) 0%,
    rgba(0, 0, 0, 0.78) 18%,
    rgba(0, 0, 0, 0.36) 40%,
    rgba(0, 0, 0, 0.00) 72%
  );
  z-index: 1;
  pointer-events: none;
}

.skills-bg-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0.88;
  filter: saturate(0.95) brightness(0.82) contrast(1.02);
  transform: scale(1.04);
  animation: driftSlow 18s ease-in-out infinite alternate;
  backface-visibility: hidden;
}

.skills-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      270deg,
      rgba(0, 0, 0, 0.98) 0%,
      rgba(0, 0, 0, 0.94) 24%,
      rgba(0, 0, 0, 0.84) 40%,
      rgba(0, 0, 0, 0.58) 56%,
      rgba(0, 0, 0, 0.22) 76%,
      rgba(0, 0, 0, 0.10) 100%
    ),
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.48) 0%,
      rgba(0, 0, 0, 0.00) 34%,
      rgba(0, 0, 0, 0.56) 100%
    );
}

.skills-content {
  position: relative;
  z-index: 2;
  max-width: 52%;
  margin-left: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(80px, 10vh, 120px) clamp(24px, 6vw, 72px);
  transform-style: preserve-3d;
}

.skills-copy {
  position: relative;
  z-index: 2;
  max-width: 520px;
  padding-right: 1rem;
}

.skills-intro-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.62rem 0.9rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.92rem;
  margin-bottom: 1rem;
  width: fit-content;
  transform: translateZ(24px);
  transition: transform 0.25s ease;
}

.skills-intro-pill:hover {
  transform: translateY(-2px) translateZ(30px);
}

.skills-copy h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
  margin: 0.9rem 0;
  transform: translateZ(30px);
  text-shadow: 0 22px 60px rgba(0, 0, 0, 0.38);
  will-change: transform;
}

.skills-copy p {
  color: var(--muted);
  max-width: 54ch;
  font-size: 0.96rem;
  transform: translateZ(16px);
  will-change: transform;
}

.skill-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 1.4rem;
  max-width: 680px;
  transform-style: preserve-3d;
}

.skill-card,
.process-card,
.output-card,
.workflow-grid span,
.clarity-card,
.project-card,
.project-feature {
  background: linear-gradient(180deg, rgba(18, 18, 18, 0.95), rgba(10, 10, 10, 0.92));
  border: 1px solid var(--line);
  border-radius: 18px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.skill-card {
  position: relative;
  overflow: hidden;
  padding: 16px 18px;
  min-height: 145px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease, background 0.25s ease;
  transform-style: preserve-3d;
  will-change: transform;
  animation: capabilityFloat 8s ease-in-out infinite, capabilityCardIn 0.75s ease forwards;
  animation-delay: 0s, 0s;
}

.skill-card:nth-child(1) {
  animation-duration: 8s, 0.75s;
  animation-delay: 0s, 0.06s;
}

.skill-card:nth-child(2) {
  animation-duration: 9s, 0.75s;
  animation-delay: 0.4s, 0.12s;
}

.skill-card:nth-child(3) {
  animation-duration: 8.5s, 0.75s;
  animation-delay: 0.8s, 0.18s;
}

.skill-card:nth-child(4) {
  animation-duration: 9.5s, 0.75s;
  animation-delay: 1.2s, 0.24s;
}

.skill-card:nth-child(5) {
  animation-duration: 8.8s, 0.75s;
  animation-delay: 1.6s, 0.30s;
}

.skill-card:nth-child(6) {
  animation-duration: 9.2s, 0.75s;
  animation-delay: 2s, 0.36s;
}

.skill-card::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background:
    radial-gradient(
      circle at 24% 0%,
      rgba(255,255,255,0.08),
      transparent 34%
    );
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
}

.skill-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 140, 90, 0.1), transparent 24%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.skill-card:hover {
  transform: translateY(-6px) rotateX(3deg) rotateY(-3deg) translateZ(22px);
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.045);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.skill-card:hover::before {
  opacity: 1;
}

.skill-card:hover::after {
  opacity: 1;
}

.skill-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  transform: translateZ(26px);
  will-change: transform;
}

.skill-card h3 {
  margin: 0.75rem 0 0.45rem;
  font-size: 0.98rem;
  letter-spacing: -0.03em;
  transform: translateZ(20px);
  will-change: transform;
}

.skill-card p {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
  transform: translateZ(12px);
  will-change: transform;
}

.process-panel {
  position: relative;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  min-height: clamp(460px, 62vh, 620px);
  max-height: 620px;
  overflow: hidden;
  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.98) 0%,
      rgba(0, 0, 0, 0.94) 28%,
      rgba(0, 0, 0, 0.78) 43%,
      rgba(0, 0, 0, 0.38) 62%,
      rgba(0, 0, 0, 0.10) 100%
    ),
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.48) 0%,
      rgba(0, 0, 0, 0.00) 35%,
      rgba(0, 0, 0, 0.55) 100%
    ),
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.04), transparent 10%);
}

.process-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.96) 0%,
    rgba(0, 0, 0, 0.72) 18%,
    rgba(0, 0, 0, 0.28) 42%,
    rgba(0, 0, 0, 0.00) 70%
  );
  pointer-events: none;
  z-index: 1;
}

.process-copy {
  position: relative;
  z-index: 2;
  padding: 4.2rem 3.6rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.process-visual {
  position: relative;
  overflow: hidden;
  height: 100%;
  min-height: 100%;
  max-height: 620px;
  z-index: 0;
}

.process-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.96) 0%,
    rgba(0, 0, 0, 0.72) 18%,
    rgba(0, 0, 0, 0.28) 42%,
    rgba(0, 0, 0, 0.00) 70%
  );
  z-index: 1;
  pointer-events: none;
}

.process-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 58%;
  filter: grayscale(1) brightness(0.78) contrast(1.08);
  position: relative;
  z-index: 0;
}

.process-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.process-card {
  position: relative;
  overflow: hidden;
  padding: 2rem;
}

/* Process - 3D depth, hover lift, and workflow signal animation */
.process-cards-grid {
  perspective: 1100px;
  transform-style: preserve-3d;
}

/* Process cards entrance animation */
.process-card {
  transform-style: preserve-3d;
  will-change: transform, opacity;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  opacity: 0;
  animation: processCardReveal 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.process-card:nth-child(1) {
  animation-delay: 0.08s;
}

.process-card:nth-child(2) {
  animation-delay: 0.16s;
}

.process-card:nth-child(3) {
  animation-delay: 0.24s;
}

@keyframes processCardReveal {
  from {
    opacity: 0;
    transform: translateY(14px) translateZ(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0) translateZ(0);
  }
}

/* Workflow signal pulse on badge numbers */
.process-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateZ(30px);
  animation: processNumberPulse 6s ease-in-out infinite;
}

.process-card:nth-child(1) .process-badge {
  animation-delay: 0s;
}

.process-card:nth-child(2) .process-badge {
  animation-delay: 0.8s;
}

.process-card:nth-child(3) .process-badge {
  animation-delay: 1.6s;
}

@keyframes processNumberPulse {
  0%, 100% {
    transform: translateZ(30px) scale(1);
    box-shadow: none;
  }
  35% {
    transform: translateZ(42px) scale(1.045);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
  }
}

/* Process card hover lift */
.process-card:hover {
  transform: translateX(6px) translateY(-3px) translateZ(22px) rotateY(-2deg);
  box-shadow: 0 20px 58px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

/* Process title and paragraph depth */
.process-card h3 {
  transform: translateZ(20px);
}

.process-card p {
  transform: translateZ(10px);
}

/* Subtle card light sweep */
.process-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(115deg, transparent 0%, transparent 43%, rgba(255,255,255,0.075) 50%, transparent 57%, transparent 100%);
  opacity: 0;
  transform: translateX(-120%);
  transition: opacity 0.28s ease, transform 0.55s ease;
  pointer-events: none;
}

.process-card:hover::after {
  opacity: 1;
  transform: translateX(120%);
}

/* Mobile and accessibility rules */
/* Process + Clarity mobile rules */
@media (max-width: 768px) {
  .process-card,
  .clarity-content {
    transform: none !important;
    perspective: none !important;
  }

  .process-card:hover,
  .clarity-principle:hover,
  .clarity-row:hover,
  .clarity-card:hover {
    transform: translateY(-2px);
    box-shadow: none;
  }

  .clarity-bg-image::after {
    animation-duration: 14s;
    opacity: 0.25;
  }
}

@media (prefers-reduced-motion: reduce) {
  .process-card,
  .process-card *,
  .about-content,
  .about-content *,
  .clarity-content,
  .clarity-content *,
  .clarity-bg-image::after {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}

.about-panel {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  isolation: isolate;
  background: #030303;
}

.about-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  right: auto;
  width: 68%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.about-bg-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0.92;
}

.about-bg-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    270deg,
    rgba(0, 0, 0, 0.96) 0%,
    rgba(0, 0, 0, 0.76) 18%,
    rgba(0, 0, 0, 0.34) 40%,
    rgba(0, 0, 0, 0.00) 70%
  );
  z-index: 1;
  pointer-events: none;
}

.about-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      270deg,
      rgba(0, 0, 0, 0.98) 0%,
      rgba(0, 0, 0, 0.95) 24%,
      rgba(0, 0, 0, 0.84) 40%,
      rgba(0, 0, 0, 0.58) 56%,
      rgba(0, 0, 0, 0.24) 74%,
      rgba(0, 0, 0, 0.10) 100%
    ),
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.48) 0%,
      rgba(0, 0, 0, 0.00) 34%,
      rgba(0, 0, 0, 0.56) 100%
    );
}

.about-content {
  position: relative;
  z-index: 2;
  max-width: 560px;
  margin-left: auto;
  padding-right: clamp(0px, 1vw, 16px);
  display: flex;
  justify-content: flex-end;
}

.about-copy {
  position: relative;
  z-index: 2;
  padding: 4.2rem 3.6rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 500px;
  margin-left: auto;
  margin-right: 0;
}
/* About perspective and content reveal */
.about-content {
  perspective: 1200px;
  transform-style: preserve-3d;
  will-change: transform;
}

.about-content > * {
  opacity: 0;
  animation: aboutEditorialReveal 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.about-content > *:nth-child(1) {
  animation-delay: 0.08s;
}

.about-content > *:nth-child(2) {
  animation-delay: 0.18s;
}

.about-content > *:nth-child(3) {
  animation-delay: 0.30s;
}

@keyframes aboutEditorialReveal {
  from {
    opacity: 0;
    transform: translateY(14px) translateZ(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0) translateZ(0);
  }
}

/* About pill lift */
.about-content .section-pill,
.about-pill {
  transform: translateZ(30px);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-content .section-pill:hover,
.about-pill:hover {
  transform: translateY(-2px) translateZ(42px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.32);
}

/* About heading breathing depth */
.about-content h2 {
  transform: translateZ(40px);
  text-shadow: 0 26px 74px rgba(0, 0, 0, 0.44);
  animation: aboutHeadingBreathe 7s ease-in-out infinite;
}

@keyframes aboutHeadingBreathe {
  0%, 100% {
    transform: translateZ(40px) translateY(0);
    text-shadow: 0 26px 74px rgba(0, 0, 0, 0.44);
  }
  50% {
    transform: translateZ(48px) translateY(-2px);
    text-shadow: 0 32px 86px rgba(0, 0, 0, 0.48);
  }
}

/* About paragraph breathing depth */
.about-content p {
  transform: translateZ(20px);
  animation: aboutParagraphBreathe 7s ease-in-out infinite;
  animation-delay: 0.4s;
}

@keyframes aboutParagraphBreathe {
  0%, 100% {
    transform: translateZ(20px) translateY(0);
  }
  50% {
    transform: translateZ(26px) translateY(-1px);
  }
}

/* Optional static depth frame on About image wrapper */
.about-visual::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), inset 0 -1px 0 rgba(0, 0, 0, 0.18);
}
/* Mobile and reduced-motion fallbacks */
@media (max-width: 768px) {
  .about-content .section-pill:hover,
  .about-pill:hover {
    transform: translateY(-2px);
    box-shadow: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .about-content,
  .about-content * {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}

.about-intro-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.62rem 0.9rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.92rem;
  margin-bottom: 1rem;
  width: fit-content;
}

.about-visual {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent);
  z-index: 0;
  width: 100%;
  height: 100%;
}

.about-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.96) 0%,
    rgba(0, 0, 0, 0.74) 18%,
    rgba(0, 0, 0, 0.32) 42%,
    rgba(0, 0, 0, 0.00) 72%
  );
  pointer-events: none;
  z-index: 1;
}

.about-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  filter: grayscale(1) brightness(0.78) contrast(1.08);
  position: relative;
  z-index: 0;
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.15) 10%,
    rgba(0, 0, 0, 0.55) 24%,
    black 42%
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.15) 10%,
    rgba(0, 0, 0, 0.55) 24%,
    black 42%
  );
}

.output-panel {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background:
    radial-gradient(circle at 75% 25%, rgba(255, 255, 255, 0.08), transparent 28%),
    radial-gradient(circle at 20% 80%, rgba(255, 140, 90, 0.06), transparent 30%),
    rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 24px 80px rgba(0, 0, 0, 0.45);
  padding: 2rem;
}

.output-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 0%,
    transparent 38%,
    rgba(255, 255, 255, 0.06) 48%,
    transparent 58%,
    transparent 100%
  );
  transform: translateX(-120%);
  animation: outputScan 7s ease-in-out infinite;
  pointer-events: none;
}

.output-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.12;
  mask-image: radial-gradient(circle at 70% 40%, black, transparent 70%);
  pointer-events: none;
}

.output-content,
.output-board,
.output-card {
  position: relative;
  z-index: 2;
}

.output-orb {
  position: absolute;
  right: 8%;
  top: 18%;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 60%);
  filter: blur(2px);
  opacity: 0.55;
  animation: outputPulse 6s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

.output-content {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: start;
}

.output-head {
  padding: 1rem 0 1rem 0.2rem;
  max-width: 430px;
}

.output-intro-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.62rem 0.9rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.92rem;
  margin-bottom: 1rem;
  width: fit-content;
}

.output-head h2 {
  margin: 0;
  font-size: clamp(2.4rem, 3.8vw, 4rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
}

.output-head p {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
  max-width: 42ch;
}

.output-board {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
  margin-top: 1.25rem;
}

.output-board::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 50%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.10),
    transparent
  );
  z-index: 0;
}

.output-card {
  position: relative;
  z-index: 1;
  overflow: hidden;
  min-height: 260px;
  height: 100%;
  padding: 26px 22px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.06),
      rgba(255, 255, 255, 0.025)
    );
  backdrop-filter: blur(10px);
  transition:
    transform 0.28s ease,
    border-color 0.28s ease,
    background 0.28s ease,
    box-shadow 0.28s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}

.output-card::before {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  top: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 140, 90, 0.65),
    transparent
  );
  opacity: 0;
  transform: translateX(-30%);
  transition: opacity 0.25s ease, transform 0.35s ease;
}

.output-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.085),
      rgba(255, 255, 255, 0.032)
    );
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.output-card:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.output-card-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 12px;
  margin-bottom: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.66);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.output-card h3 {
  margin: 0 0 14px;
  min-height: 46px;
  color: rgba(255, 255, 255, 0.95);
  font-size: 20px;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-align: left;
}

.output-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 15px;
  line-height: 1.55;
  text-align: left;
}

.output-card--large {
  min-height: 260px;
}

.output-card--final {
  min-height: 260px;
}

.output-card:nth-child(1) { animation: outputFloat 7s ease-in-out infinite; }
.output-card:nth-child(2) { animation: outputFloat 8s ease-in-out infinite; animation-delay: 0.6s; }
.output-card:nth-child(3) { animation: outputFloat 7.5s ease-in-out infinite; animation-delay: 1.1s; }
.output-card:nth-child(4) { animation: outputFloat 8.5s ease-in-out infinite; animation-delay: 1.5s; }

.output-card:hover {
  animation: none;
}

@keyframes outputScan {
  0% {
    transform: translateX(-120%);
    opacity: 0;
  }
  18% {
    opacity: 1;
  }
  45% {
    transform: translateX(120%);
    opacity: 0;
  }
  100% {
    transform: translateX(120%);
    opacity: 0;
  }
}

@keyframes outputFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

@keyframes outputPulse {
  0%, 100% {
    transform: scale(0.96);
    opacity: 0.35;
  }
  50% {
    transform: scale(1.06);
    opacity: 0.65;
  }
}

.clarity-panel {
  position: relative;
  overflow: hidden;
  min-height: clamp(460px, 58vh, 620px);
  isolation: isolate;
  background: #030303;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.clarity-bg-image {
  position: absolute;
  top: 0;
  right: 0;
  width: 66%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  max-height: 620px;
}

.clarity-bg-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 52%;
  opacity: 0.92;
  filter: grayscale(1) brightness(0.78) contrast(1.08);
}

.clarity-bg-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.96) 0%,
    rgba(0, 0, 0, 0.76) 18%,
    rgba(0, 0, 0, 0.34) 40%,
    rgba(0, 0, 0, 0.00) 70%
  );
  z-index: 1;
  pointer-events: none;
}

.clarity-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.98) 0%,
      rgba(0, 0, 0, 0.95) 24%,
      rgba(0, 0, 0, 0.84) 40%,
      rgba(0, 0, 0, 0.58) 56%,
      rgba(0, 0, 0, 0.24) 74%,
      rgba(0, 0, 0, 0.10) 100%
    ),
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.48) 0%,
      rgba(0, 0, 0, 0.00) 34%,
      rgba(0, 0, 0, 0.56) 100%
    );
}

.clarity-content {
  position: relative;
  z-index: 2;
  max-width: 560px;
}

.clarity-main {
  position: relative;
  z-index: 2;
  padding: 5rem 3.6rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.clarity-intro-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.62rem 0.9rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.92rem;
  margin-bottom: 1rem;
  width: fit-content;
}

.clarity-main p {
  color: var(--muted);
  max-width: 54ch;
}

.clarity-principles {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 30px;
  max-width: 540px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.clarity-principle {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.clarity-principle:hover {
  transform: translateX(4px);
}

.clarity-number {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.clarity-principle:first-child .clarity-number {
  border-color: rgba(255, 140, 90, 0.38);
  box-shadow: 0 0 24px rgba(255, 140, 90, 0.08);
}

.clarity-principle h3 {
  margin: 0 0 6px;
  color: rgba(255, 255, 255, 0.95);
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.clarity-principle p {
  margin: 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 15px;
  line-height: 1.5;
  max-width: 420px;
}

.clarity-principle:hover h3 {
  color: rgba(255, 255, 255, 1);
}

.clarity-principle:hover .clarity-number {
  border-color: rgba(255, 255, 255, 0.18);
}

/* Clarity focus lens and section animations */
.clarity-content {
  perspective: 1100px;
  transform-style: preserve-3d;
}

.clarity-principles {
  transform-style: preserve-3d;
}

/* Clarity number focus pulse */
.clarity-number {
  animation: clarityNumberFocus 8s ease-in-out infinite;
  transform: translateZ(28px);
}

.clarity-principle:nth-child(1) .clarity-number {
  animation-delay: 0s;
}

.clarity-principle:nth-child(2) .clarity-number {
  animation-delay: 1s;
}

.clarity-principle:nth-child(3) .clarity-number {
  animation-delay: 2s;
}

@keyframes clarityNumberFocus {
  0%, 100% {
    transform: translateZ(28px) scale(1);
    box-shadow: 0 0 24px rgba(255, 140, 90, 0.08);
  }
  40% {
    transform: translateZ(38px) scale(1.04);
    box-shadow: 0 0 32px rgba(255, 140, 90, 0.18);
  }
}

/* Clarity principle hover lift */
.clarity-principle:hover {
  transform: translateX(6px) translateY(-2px) translateZ(22px) rotateY(-2deg);
}

/* Clarity text depth */
.clarity-principle h3 {
  transform: translateZ(20px);
}

.clarity-principle p {
  transform: translateZ(10px);
}

/* Clarity focus lens pulse on background image */
.clarity-bg-image::after {
  content: "";
  position: absolute;
  inset: -20%;
  border-radius: inherit;
  z-index: 2;
  animation: clarityLensPulse 9s ease-in-out infinite;
  pointer-events: none;
}

@keyframes clarityLensPulse {
  0%, 100% {
    opacity: 0;
    transform: scale(0.85);
    background: radial-gradient(circle, transparent 0%, transparent 100%);
  }
  25% {
    opacity: 0.42;
    transform: scale(1);
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.06) 40%, transparent 70%, transparent 100%);
  }
  55% {
    opacity: 0.12;
    transform: scale(1.12);
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 50%, transparent 80%, transparent 100%);
  }
  80%, 100% {
    opacity: 0;
    transform: scale(1.2);
    background: radial-gradient(circle, transparent 0%, transparent 100%);
  }
}

.projects-layout {
  display: block;
  margin-top: 2rem;
}

.projects-panel {
  position: relative;
  overflow: hidden;
  min-height: clamp(560px, 72vh, 720px);
  border-radius: 28px;
  background: #030303;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.projects-visual {
  position: absolute;
  left: 0;
  top: 0;
  width: 48%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.projects-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0.82;
  filter: grayscale(1) brightness(0.82) contrast(1.04);
}

.projects-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 0%,
    transparent 42%,
    rgba(255, 255, 255, 0.06) 50%,
    transparent 58%,
    transparent 100%
  );
  transform: translateX(-120%);
  animation: projectVisualScan 8s ease-in-out infinite;
  pointer-events: none;
}

.projects-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.10) 0%,
      rgba(0, 0, 0, 0.28) 32%,
      rgba(0, 0, 0, 0.72) 52%,
      rgba(0, 0, 0, 0.95) 78%,
      rgba(0, 0, 0, 0.98) 100%
    ),
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.45) 0%,
      rgba(0, 0, 0, 0.00) 35%,
      rgba(0, 0, 0, 0.55) 100%
    );
}

.projects-content {
  position: relative;
  z-index: 2;
  max-width: 560px;
  margin-left: auto;
  padding-right: clamp(24px, 6vw, 72px);
  padding-left: clamp(24px, 4vw, 48px);
  padding-top: clamp(80px, 10vh, 120px);
  padding-bottom: clamp(80px, 10vh, 120px);
  display: flex;
  align-items: center;
  min-height: 100%;
}

.projects-copy {
  width: 100%;
}

.project-intro-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.62rem 0.9rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.92rem;
  margin-bottom: 1rem;
  width: fit-content;
}

.projects-copy h2 {
  font-size: clamp(2.4rem, 3.5vw, 4rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
  margin: 1rem 0;
}

.projects-intro {
  max-width: 48ch;
  color: var(--muted);
  margin-top: 0.9rem;
  font-size: 0.98rem;
  line-height: 1.65;
}

.project-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
}

.project-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  min-height: 84px;
  padding: 18px 18px 18px 22px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(10px);
  text-decoration: none;
  overflow: hidden;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.project-row::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 0% 50%,
      rgba(255, 140, 90, 0.12),
      transparent 32%
    );
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.project-row:hover {
  transform: translateX(-4px);
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
}

.project-row:hover::before {
  opacity: 1;
}

.project-type {
  display: inline-flex;
  margin-bottom: 8px;
  color: rgba(255, 140, 90, 0.88);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.project-row h3 {
  margin: 0 0 6px;
  color: rgba(255, 255, 255, 0.96);
  font-size: 20px;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.project-row p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14.5px;
  line-height: 1.5;
  max-width: 420px;
}

.project-arrow {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease;
}

.project-row:hover .project-arrow {
  transform: translate(2px, -2px);
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.15);
}

@keyframes projectVisualScan {
  0% {
    transform: translateX(-120%);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  45% {
    transform: translateX(120%);
    opacity: 0;
  }
  100% {
    transform: translateX(120%);
    opacity: 0;
  }
}

.final-cta-section {
  position: relative;
  padding: 0 clamp(20px, 5vw, 72px);
}

.final-cta-panel {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 78% 35%, rgba(255, 255, 255, 0.08), transparent 28%),
    radial-gradient(circle at 20% 80%, rgba(255, 140, 90, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
    #030303;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 30px 100px rgba(0, 0, 0, 0.55);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 6vw, 90px);
  align-items: center;
  padding: clamp(42px, 7vw, 88px);
}

.final-cta-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 46px 46px;
  opacity: 0.10;
  mask-image: radial-gradient(circle at 72% 42%, black, transparent 68%);
  pointer-events: none;
}

.final-cta-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 0%,
    transparent 42%,
    rgba(255, 255, 255, 0.055) 50%,
    transparent 58%,
    transparent 100%
  );
  transform: translateX(-120%);
  animation: ctaScan 8s ease-in-out infinite;
  pointer-events: none;
}

.final-cta-content,
.final-cta-card {
  position: relative;
  z-index: 2;
}

.section-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.62rem 0.9rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.92rem;
  width: fit-content;
}

.section-pill span {
  width: 0.78rem;
  height: 0.78rem;
  display: inline-block;
  border-radius: 50%;
  background: #f28a54;
  box-shadow: 0 0 0 0.18rem rgba(242, 138, 84, 0.08);
}

.final-cta-content h2 {
  margin: 24px 0 18px;
  max-width: 620px;
  color: rgba(255, 255, 255, 0.96);
  font-size: clamp(42px, 6vw, 78px);
  line-height: 0.92;
  letter-spacing: -0.065em;
}

.final-cta-content p {
  max-width: 540px;
  color: rgba(255, 255, 255, 0.68);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.6;
}

.final-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.primary-btn {
  background: rgba(255, 255, 255, 0.94);
  color: #050505;
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.045);
  color: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.primary-btn:hover,
.secondary-btn:hover {
  transform: translateY(-2px);
}

.final-cta-card {
  justify-self: end;
  width: min(100%, 360px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
  backdrop-filter: blur(14px);
  padding: 26px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 24px 70px rgba(0, 0, 0, 0.38);
  animation: ctaFloat 7s ease-in-out infinite;
}

.signal-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.signal-label::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #ff8c5a;
  box-shadow: 0 0 16px rgba(255, 140, 90, 0.6);
}

.final-cta-card h3 {
  margin: 28px 0 10px;
  color: rgba(255, 255, 255, 0.95);
  font-size: 28px;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.final-cta-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 15px;
  line-height: 1.5;
}

.signal-line {
  height: 1px;
  margin: 24px 0;
  background: linear-gradient(
    90deg,
    rgba(255, 140, 90, 0.45),
    rgba(255, 255, 255, 0.08),
    transparent
  );
}

.final-cta-card small {
  color: rgba(255, 255, 255, 0.52);
  font-size: 13px;
  line-height: 1.45;
}

@keyframes ctaScan {
  0% {
    transform: translateX(-120%);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  45% {
    transform: translateX(120%);
    opacity: 0;
  }
  100% {
    transform: translateX(120%);
    opacity: 0;
  }
}

@keyframes ctaFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes driftSlow {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to { transform: scale(1.18) translate3d(0, -18px, 0); }
}

@keyframes pulseGlow {
  from { transform: scale(0.96); opacity: 0.72; }
  to { transform: scale(1.04); opacity: 1; }
}

@keyframes focusPulse {
  0%, 100% { box-shadow: inset 0 0 0 rgba(255,255,255,0.06); }
  50% { box-shadow: inset 0 0 18px rgba(255,255,255,0.06); }
}

@keyframes scanner {
  0% { transform: translateX(-8%); opacity: 0.2; }
  50% { opacity: 1; }
  100% { transform: translateX(8%); opacity: 0.2; }
}

@keyframes pulseNode {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.7); opacity: 1; }
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.7; }
}

@keyframes shimmer {
  0% { transform: translateX(-10%); }
  100% { transform: translateX(10%); }
}

@keyframes navLightSweep {
  0%, 65% {
    transform: translateX(0);
    opacity: 0;
  }
  75% {
    opacity: 1;
  }
  100% {
    transform: translateX(460%);
    opacity: 0;
  }
}

@media (max-width: 1024px) {
  .skills-panel,
  .process-panel,
  .about-panel,
  .clarity-panel,
  .cta-panel,
  .projects-layout {
    grid-template-columns: 1fr;
  }

  .skills-copy,
  .process-copy,
  .about-copy,
  .clarity-main,
  .cta-copy {
    padding: 3.4rem 2.6rem;
  }

  .process-visual,
  .about-visual {
    min-height: 520px;
  }

  .skill-cards-grid,
  .output-grid,
  .workflow-grid,
  .process-cards-grid,
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .workflow-grid span {
    min-height: 110px;
  }
}

@media (max-width: 768px) {
  html {
    scroll-padding-top: 96px;
  }

  section,
  [id] {
    scroll-margin-top: 96px;
  }

  .container {
    width: min(100% - 24px, 100%);
  }

  .output-panel {
    padding: 1.5rem;
  }

  .output-content {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .output-head {
    max-width: 100%;
  }

  .output-head h2 {
    font-size: clamp(2rem, 7vw, 3rem);
  }

  .output-board {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .output-card,
  .output-card--large,
  .output-card--final {
    min-height: auto;
  }

  .output-panel::before {
    animation-duration: 9s;
  }

  .output-orb {
    width: 140px;
    height: 140px;
    right: 4%;
    top: 8%;
    opacity: 0.35;
  }

  .nav-shell {
    width: 100%;
    top: 14px;
    border-radius: 999px;
    padding: 8px 10px 8px 14px;
    grid-template-columns: 1fr auto;
    min-height: 58px;
  }

  .nav-toggle {
    display: flex;
    margin-left: auto;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-links.mobile-open {
    position: absolute;
    top: calc(100% + 0.65rem);
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0.7rem;
    background: rgba(7, 7, 7, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    box-shadow: 0 18px 54px rgba(0, 0, 0, 0.45);
  }

  .nav-links.mobile-open a {
    height: 44px;
    justify-content: center;
  }

  .brand {
    font-size: 0.95rem;
    letter-spacing: -0.035em;
    gap: 8px;
  }

  .nav-cta {
    min-height: 40px;
    padding: 0 14px;
    font-size: 0.8rem;
  }

  html {
    scroll-padding-top: 96px;
  }

  section,
  [id] {
    scroll-margin-top: 96px;
  }

  .hero {
    min-height: 600px;
  }

  .hero-content {
    padding-top: 130px;
  }

  .hero-blackhole-bg {
    width: 115%;
    right: -35%;
    opacity: 0.65;
  }

  .hero-bg-overlay {
    background:
      linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.98) 0%,
        rgba(0, 0, 0, 0.90) 45%,
        rgba(0, 0, 0, 0.55) 100%
      ),
      linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.75) 0%,
        rgba(0, 0, 0, 0.25) 45%,
        rgba(0, 0, 0, 0.75) 100%
      );
  }

  .hero-text {
    margin-left: 24px;
    max-width: 100%;
  }

  .hero-text h1 {
    max-width: 100%;
    font-size: clamp(3rem, 11vw, 4.5rem);
  }

  .hero-actions,
  .cta-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .btn,
  .cta-actions .btn {
    width: 100%;
  }

  .skills-copy,
  .process-copy,
  .about-copy,
  .clarity-main,
  .cta-copy {
    padding: 3rem 1.5rem;
  }

  .skills-content {
    padding: 3rem 1.5rem;
  }

  .skills-bg-visual {
    width: 120%;
    right: -45%;
    opacity: 0.45;
  }

  .skills-bg-overlay {
    background:
      linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.98) 0%,
        rgba(0, 0, 0, 0.94) 48%,
        rgba(0, 0, 0, 0.72) 100%
      ),
      linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.74) 0%,
        rgba(0, 0, 0, 0.18) 45%,
        rgba(0, 0, 0, 0.78) 100%
      );
  }

  .skill-cards-grid,
  .output-grid,
  .workflow-grid,
  .process-cards-grid,
  .footer-grid,
  .clarity-stack {
    grid-template-columns: 1fr;
  }

  .skill-card,
  .skill-card--feature,
  .skill-card:nth-child(2),
  .skill-card:nth-child(3),
  .skill-card:nth-child(4),
  .skill-card:nth-child(5),
  .skill-card:nth-child(6) {
    grid-column: 1;
    min-height: auto;
  }

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

  .project-preview.small {
    height: 160px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  html,
  body {
    overflow-x: hidden;
  }

  main {
    gap: 48px;
  }

  section {
    width: 100%;
  }

  .hero,
  .skills-section,
  .process,
  .about,
  .clarity,
  .projects,
  .final-cta-section {
    min-height: auto !important;
    height: auto !important;
  }

  .hero-blackhole-bg,
  .skills-bg-visual,
  .process-visual,
  .about-bg-image,
  .clarity-bg-image,
  .projects-visual {
    position: relative !important;
    inset: auto !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 260px;
    height: auto !important;
    overflow: hidden;
  }

  .hero-blackhole-bg img,
  .skills-bg-visual img,
  .process-visual img,
  .about-bg-image img,
  .clarity-bg-image img,
  .projects-visual img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
  }

  .hero-content,
  .skills-content,
  .process-copy,
  .about-content,
  .clarity-content,
  .projects-content,
  .final-cta-content {
    width: 100%;
    max-width: 100%;
    position: relative;
    z-index: 3;
    transform: none !important;
  }

  .hero-text,
  .skills-copy,
  .process-copy,
  .about-copy,
  .clarity-main,
  .projects-copy,
  .final-cta-content {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .hero-blackhole-bg {
    width: 100% !important;
    right: auto !important;
    left: 0 !important;
    opacity: 0.85;
  }

  .skills-bg-visual {
    width: 100% !important;
    right: auto !important;
    left: 0 !important;
    opacity: 0.85;
  }

  .process-panel,
  .about-panel,
  .clarity-panel,
  .projects-panel,
  .final-cta-panel {
    display: block !important;
    min-height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .process-visual,
  .about-bg-image,
  .clarity-bg-image,
  .projects-visual {
    min-height: 260px;
    max-height: none !important;
    width: 100% !important;
  }

  .final-cta-panel {
    display: flex !important;
    flex-direction: column !important;
    gap: 24px;
  }

  .final-cta-actions {
    flex-wrap: wrap;
  }

  .hero-actions,
  .final-cta-actions {
    gap: 12px;
  }

  .project-row {
    width: 100% !important;
    grid-template-columns: 1fr !important;
  }

  .clarity-principle {
    width: 100% !important;
    grid-template-columns: 48px 1fr !important;
  }

  .hero-text h1 {
    font-size: clamp(2.4rem, 12vw, 4rem);
    line-height: 0.95;
  }

  .hero-text p,
  .skills-copy p,
  .process-copy p,
  .about-copy p,
  .clarity-main p,
  .projects-intro,
  .final-cta-content p,
  .project-row p {
    font-size: 0.95rem;
    line-height: 1.65;
  }

  .skills-copy h2,
  .process-copy h2,
  .about-copy h2,
  .clarity-main h2,
  .projects-copy h2,
  .final-cta-content h2 {
    font-size: clamp(2rem, 9vw, 3.2rem);
    line-height: 1;
  }

  html {
    scroll-padding-top: 96px;
  }

  section,
  [id] {
    scroll-margin-top: 96px;
  }
}

@media (max-width: 480px) {
  .hero-blackhole-bg,
  .skills-bg-visual,
  .process-visual,
  .about-bg-image,
  .clarity-bg-image,
  .projects-visual {
    min-height: 220px;
  }

  .hero-text h1 {
    font-size: clamp(2.15rem, 13vw, 3.4rem);
  }

  .skills-copy h2,
  .process-copy h2,
  .about-copy h2,
  .clarity-main h2,
  .projects-copy h2,
  .final-cta-content h2 {
    font-size: clamp(1.8rem, 10vw, 2.8rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .nav-shell::after,
  .nav-cta::before {
    animation: none !important;
  }
}
