/* code229 - code229.com.au - PHP/vanilla JS */

:root {
  --bg: #09090b;
  --fg: #fafafa;
  --orange: rgb(249, 115, 22);
  --coral-500: #fb923c;
  --coral-600: var(--orange);
  --cyan-400: #fb923c;
  --cyan-500: var(--orange);
  --violet-500: #fdba74;
  --violet-600: #fb923c;
  --zinc-400: #a1a1aa;
  --zinc-500: #71717a;
  --zinc-600: #52525b;
  --zinc-950: #09090b;
  --max-w: 80rem;
  --max-w-narrow: 64rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  margin: 0;
  line-height: 1.5;
}

html.menu-open,
body.menu-open {
  overflow: hidden;
}

body.menu-open {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background 0.3s, border-color 0.3s;
}

.navbar.scrolled {
  background: rgba(9, 9, 11, 0.8);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1002;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
}

.logo-label {
  font-family: 'DM Mono', 'JetBrains Mono', monospace;
  font-size: 1.125rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.logo-mark {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
}

.logo-animated {
  display: inline-flex;
  align-items: baseline;
  min-width: 8ch;
}

.logo-char {
  display: inline-block;
  width: 0.62em;
  text-align: center;
  transition: color 0.12s ease;
}

.logo-char.scrambling {
  color: rgba(251, 146, 60, 0.45);
}

.logo-char.locked {
  animation: logo-lock-in 0.2s ease-out;
}

.logo-cursor {
  display: inline-block;
  width: 1px;
  height: 0.85em;
  margin-left: 4px;
  background: var(--coral-500);
  vertical-align: baseline;
  position: relative;
  top: 0.1em;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.logo-cursor.visible {
  opacity: 1;
}

.logo-cursor-question {
  width: auto;
  height: auto;
  margin-left: 0.28em;
  background: transparent;
  top: 0;
  font-family: 'DM Mono', 'JetBrains Mono', monospace;
  font-size: 0.92em;
  font-weight: 500;
  line-height: 1;
  color: var(--coral-500);
  text-shadow: 0 0 14px rgba(251, 146, 60, 0.35);
  transform-origin: center;
}

.logo-cursor-question.visible {
  animation: question-pop 700ms cubic-bezier(0.2, 0.8, 0.2, 1) 1 both;
}

.logo-tagline {
  font-family: 'DM Mono', 'JetBrains Mono', monospace;
  font-size: 0.5rem;
  margin-top: 0.3rem;
  letter-spacing: 0.14em;
  color: rgba(249, 115, 22, 0.35);
  opacity: 0;
  transition: opacity 0.6s ease, color 0.3s ease;
  text-transform: lowercase;
}

.logo-tagline.visible {
  opacity: 1;
}

.logo-229 {
  background: linear-gradient(90deg, var(--coral-500), var(--coral-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-blink {
  animation: blink 1s step-end infinite;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.875rem;
  color: var(--zinc-400);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: white;
}

.nav-links a.btn-primary,
.mobile-menu a.btn-primary {
  color: white;
}

/* Funky mobile hamburger – morphing 3-line → X */
.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  cursor: pointer;
  padding: 0;
  position: relative;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

.mobile-menu-btn::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 16px;
  padding: 2px;
  background: linear-gradient(135deg, var(--cyan-500), var(--violet-600));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-menu-btn:hover {
  border-color: rgba(249, 115, 22, 0.4);
  box-shadow: 0 0 20px rgba(249, 115, 22, 0.15);
}

.mobile-menu-btn:hover::before {
  opacity: 0.6;
}

.mobile-menu-btn:active {
  transform: scale(0.96);
}

.hamburger-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 20px;
  height: 20px;
}

.hamburger-line {
  display: block;
  width: 18px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan-400), var(--zinc-400));
  border-radius: 2px;
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55),
              opacity 0.25s ease,
              background 0.3s ease;
  transform-origin: center;
}

.mobile-menu-btn:hover .hamburger-line {
  background: linear-gradient(90deg, var(--cyan-400), white);
}

/* Morph to X when open */
.mobile-menu-btn.is-open .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.is-open .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-menu-btn.is-open .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu-btn.is-open::before {
  opacity: 1;
}

.icon {
  width: 24px;
  height: 24px;
}

.icon-sm {
  width: 14px;
  height: 14px;
}

.hidden {
  display: none !important;
}

/* Funky mobile menu – full overlay with staggered links */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 4.5rem 1rem 1.25rem;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(9, 9, 11, 0.98) 0%, rgba(15, 15, 20, 0.97) 50%, rgba(9, 9, 11, 0.98) 100%);
  backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease, z-index 0s 0.35s;
}

.mobile-menu::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--cyan-500), var(--violet-600), transparent);
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}

.mobile-menu.open {
  z-index: 1001;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s ease, visibility 0.35s ease, z-index 0s 0s;
}

.mobile-menu.open::before {
  opacity: 1;
  transform: scaleX(1);
}

.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  width: min(100%, 22rem);
  margin: 0 auto;
}

.mobile-menu-link {
  color: var(--zinc-400);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  padding: 0.55rem 1rem;
  border-radius: 12px;
  opacity: 0;
  transform: translateY(12px);
  transition: color 0.25s ease,
              background 0.25s ease,
              opacity 0.4s ease,
              transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.mobile-menu.open .mobile-menu-link {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.open .mobile-menu-link:nth-child(1) { transition-delay: 0.08s; }
.mobile-menu.open .mobile-menu-link:nth-child(2) { transition-delay: 0.12s; }
.mobile-menu.open .mobile-menu-link:nth-child(3) { transition-delay: 0.16s; }
.mobile-menu.open .mobile-menu-link:nth-child(4) { transition-delay: 0.2s; }
.mobile-menu.open .mobile-menu-link:nth-child(5) { transition-delay: 0.24s; }
.mobile-menu.open .mobile-menu-link:nth-child(6) { transition-delay: 0.28s; }

.mobile-menu-link:hover {
  color: white;
  background: rgba(255, 255, 255, 0.06);
}

.mobile-menu a.btn-primary {
  color: white;
  margin-top: 0.25rem;
  padding: 0.6rem 1rem;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
  .mobile-menu-btn {
    display: none;
  }
}

/* Buttons */
.btn-primary {
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  background: linear-gradient(90deg, var(--cyan-500), var(--violet-600));
  color: white;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: linear-gradient(90deg, var(--cyan-400), var(--violet-500));
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.25);
}

.btn-secondary {
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #d4d4d8;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: scale(1.02);
}

.btn-lg {
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
}

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  opacity: 0.35;
}

.grid-bg {
  background-image:
    linear-gradient(rgba(34, 211, 238, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}

.hero-aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.3;
}

.hero-aurora-1 {
  top: -40%;
  left: -20%;
  width: 80%;
  height: 80%;
  background: linear-gradient(to bottom right, rgba(249, 115, 22, 0.08), transparent, transparent);
}

.hero-aurora-2 {
  bottom: -40%;
  right: -20%;
  width: 70%;
  height: 70%;
  background: linear-gradient(to top left, rgba(234, 88, 12, 0.06), transparent, transparent);
}

.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(ellipse, rgba(249, 115, 22, 0.08) 0%, rgba(234, 88, 12, 0.025) 48%, transparent 68%);
  border-radius: 50%;
  filter: blur(56px);
  pointer-events: none;
}

.hero-spark {
  --spark-color: rgba(249, 115, 22, 0.78);
  --spark-orb: rgba(249, 115, 22, 0.22);
  position: absolute;
  width: 14px;
  height: 14px;
  z-index: 3;
  opacity: 0.74;
  border-radius: 999px;
  background: radial-gradient(circle at center, var(--spark-orb) 0%, rgba(249, 115, 22, 0.08) 48%, transparent 78%);
  filter: drop-shadow(0 0 12px rgba(249, 115, 22, 0.24));
  animation: spark-drift var(--drift, 7s) ease-in-out infinite,
             spark-flicker var(--flicker, 2.4s) ease-in-out infinite;
  animation-delay: var(--delay, 0s), calc(var(--delay, 0s) * 0.6);
}

.hero-spark::before,
.hero-spark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 999px;
}

.hero-spark::before {
  width: 42%;
  height: 42%;
  background: var(--spark-color);
  box-shadow: 0 0 6px var(--spark-color);
}

.hero-spark::after {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.18) 0%, transparent 66%);
}

.hero-spark.spark-violet {
  --spark-color: rgba(251, 146, 60, 0.82);
  --spark-orb: rgba(251, 146, 60, 0.24);
  filter: drop-shadow(0 0 13px rgba(251, 146, 60, 0.28));
}

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

.hero-code-line {
  position: absolute;
  left: 0;
  font-family: 'JetBrains Mono', 'DM Mono', monospace;
  font-size: clamp(11px, 1.2vw, 14px);
  color: rgba(250, 250, 250, 0.14);
  white-space: nowrap;
  animation: code-drift linear infinite;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.03);
}

.hero-code-line.code-accent {
  color: rgba(249, 115, 22, 0.2);
  text-shadow: 0 0 10px rgba(249, 115, 22, 0.08);
}

.spark-1 { top: 7%; left: 14%; width: 10px; height: 10px; --delay: 0.4s; --drift: 6.2s; --flicker: 2.3s; }
.spark-2 { top: 16%; right: 22%; width: 15px; height: 15px; --delay: 1.8s; --drift: 7.8s; --flicker: 3.1s; }
.spark-3 { bottom: 14%; left: 29%; width: 9px; height: 9px; --delay: 2.9s; --drift: 6.7s; --flicker: 2.6s; }
.spark-4 { top: 39%; right: 8%; width: 8px; height: 8px; --delay: 1.1s; --drift: 5.3s; --flicker: 2.2s; }
.spark-5 { bottom: 27%; left: 9%; width: 13px; height: 13px; --delay: 3.4s; --drift: 8.1s; --flicker: 3.4s; }
.spark-6 { top: 24%; left: 63%; width: 11px; height: 11px; --delay: 0.9s; --drift: 6.9s; --flicker: 2.9s; }
.spark-7 { top: 67%; right: 27%; width: 7px; height: 7px; --delay: 2.2s; --drift: 5.6s; --flicker: 2.1s; }
.spark-8 { bottom: 15%; right: 43%; width: 14px; height: 14px; --delay: 0.6s; --drift: 7.4s; --flicker: 3s; }
.spark-9 { top: 13%; left: 43%; width: 8px; height: 8px; --delay: 2.7s; --drift: 5.1s; --flicker: 2.5s; }
.spark-10 { bottom: 33%; right: 6%; width: 16px; height: 16px; --delay: 3.8s; --drift: 8.6s; --flicker: 3.3s; }

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.875rem;
  color: var(--zinc-400);
  margin-bottom: 2rem;
}

.hero-badge .icon-sm {
  color: var(--cyan-400);
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0;
}

.gradient-text {
  background: linear-gradient(90deg, var(--cyan-400), var(--cyan-400), var(--violet-500));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.animate-gradient {
  animation: gradient-shift 8s ease infinite;
}

.hero-typing {
  margin: 1.5rem auto 0;
  font-size: 1.125rem;
  font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', Monaco, 'Cascadia Code', monospace;
  color: var(--zinc-500);
}

.hero-typing-prefix {
  color: var(--zinc-500);
}

.hero-typing-text {
  color: var(--cyan-400);
}

.hero-typing-cursor {
  color: var(--cyan-400);
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 45% { opacity: 1; }
  50%, 95% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes logo-lock-in {
  0% { transform: scale(1.1); filter: brightness(2); }
  100% { transform: scale(1); filter: brightness(1); }
}

.hero-typing-wrap {
  display: inline-block;
  min-width: 1ch;
  font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', Monaco, 'Cascadia Code', monospace;
}

.hero-title .hero-typing-cursor {
  color: var(--cyan-400);
  animation: blink 1s step-end infinite;
  display: inline-block;
  font-weight: 300;
  margin-left: -0.08em;
}

.hero-desc {
  margin: 1.5rem auto 0;
  font-size: 1.125rem;
  color: var(--zinc-400);
  max-width: 42rem;
  line-height: 1.6;
}

.hero-cta {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.hero-cta .btn-primary {
  box-shadow: 0 10px 40px rgba(249, 115, 22, 0.2);
}

.hero-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 8rem;
  background: linear-gradient(to top, var(--zinc-950), transparent);
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes spark-drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(0.96); }
  35% { transform: translate3d(10px, -12px, 0) scale(1); }
  68% { transform: translate3d(-8px, 8px, 0) scale(0.92); }
}

@keyframes spark-flicker {
  0%, 100% { opacity: 0.42; }
  30% { opacity: 0.85; }
  62% { opacity: 0.5; }
  82% { opacity: 0.95; }
}

@keyframes code-drift {
  0% { transform: translateX(110vw); }
  100% { transform: translateX(-170vw); }
}

@media (min-width: 640px) {
  .hero-cta {
    flex-direction: row;
    justify-content: center;
  }
}

/* Tech Stack */
.tech-stack-section {
  position: relative;
  padding: 6rem 1.5rem;
  overflow: hidden;
  content-visibility: auto;
  contain-intrinsic-size: auto 700px;
}

.tech-stack-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent, rgba(249, 115, 22, 0.015), transparent);
  pointer-events: none;
}

.tech-stack-section .section-header {
  margin-bottom: 3rem;
}

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

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

@media (max-width: 767px) {
  .tech-stack-nine {
    grid-template-columns: 1fr;
  }
}

.tech-stack-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 1.5rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.3s ease;
}

.tech-stack-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(34, 211, 238, 0.3);
}

.tech-stack-item:hover .tech-name {
  color: var(--cyan-400);
}

.tech-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 0.75rem;
  color: var(--cyan-400);
}

.tech-icon svg {
  width: 100%;
  height: 100%;
}

.tech-name {
  font-size: 1rem;
  font-weight: 600;
  color: #e4e4e7;
  transition: color 0.2s;
}

.tech-desc {
  font-size: 0.8125rem;
  color: var(--zinc-500);
  margin-top: 0.25rem;
  text-align: center;
}

.tech-cat {
  font-size: 10px;
  font-family: ui-monospace, monospace;
  color: var(--zinc-600);
  margin-top: 0.25rem;
}

@media (min-width: 640px) {
  .tech-stack-nine {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .tech-stack-nine {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
  .tech-stack-item {
    padding: 2rem 1.5rem;
  }
  .tech-icon {
    width: 48px;
    height: 48px;
  }
}

/* Scroll reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal[data-delay="1"] { transition-delay: 0.15s; }
.reveal[data-delay="2"] { transition-delay: 0.3s; }
.reveal[data-delay="3"] { transition-delay: 0.45s; }
.reveal[data-delay="4"] { transition-delay: 0.6s; }
.reveal[data-delay="5"] { transition-delay: 0.75s; }

/* Sections — defer layout/paint for below-fold content until near viewport */
.section {
  content-visibility: auto;
  contain-intrinsic-size: auto 700px;
  padding: 8rem 1.5rem;
  position: relative;
}

@media (max-width: 767px) {
  .section {
    padding: 5rem 1.25rem;
  }

  .tech-stack-section {
    padding: 5rem 1.25rem;
  }

  .section-header {
    margin-bottom: 2.5rem;
  }
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
}

.container-narrow {
  max-width: var(--max-w-narrow);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-label {
  font-size: 0.875rem;
  font-family: ui-monospace, monospace;
  color: var(--cyan-400);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-header h2,
.about-content h2 {
  margin: 0.75rem 0 0;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.section-heading-emphasis {
  font-size: clamp(2.15rem, 5.3vw, 3.2rem) !important;
}

.section-header p,
.about-content p {
  margin: 1rem 0 0;
  font-size: 1.125rem;
  color: var(--zinc-400);
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.section-note {
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  color: var(--zinc-500);
  font-style: italic;
}

/* Services */
.services-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

.service-card {
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  transform: translateY(0);
  overflow: hidden;
}

.services-split .service-card {
  display: grid;
  grid-template-rows: 140px 1fr;
}

.service-card-img {
  height: 140px;
  overflow: hidden;
}

.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.service-card:hover .service-card-img img {
  transform: scale(1.05);
}

.service-card-body {
  padding: 1.5rem 2rem;
}

.service-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(249, 115, 22, 0.15);
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 1.25rem;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.05), rgba(234, 88, 12, 0.05));
  opacity: 0;
  transition: opacity 0.2s;
}

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

.service-card-body .service-icon {
  margin-bottom: 1rem;
}

.service-icon {
  width: 24px;
  height: 24px;
  padding: 0.75rem;
  margin-bottom: 1.25rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.1), rgba(234, 88, 12, 0.1));
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--cyan-400);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.service-icon svg {
  width: 24px;
  height: 24px;
}

.service-card h3,
.service-card-body h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.service-card p,
.service-card-body p {
  color: var(--zinc-400);
  margin: 0;
  line-height: 1.6;
}

.hp-field-wrap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Projects carousel */
.projects-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.carousel-btn {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--zinc-400);
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.2s;
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.carousel-track-wrap {
  flex: 1;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.4s ease;
}

.project-slide {
  flex: 0 0 calc(100% - 2rem);
  min-width: 0;
}

@media (max-width: 639px) {
  .projects-carousel {
    gap: 0;
  }

  .carousel-track-wrap {
    width: 100%;
  }

  .project-slide {
    flex: 0 0 100%;
  }

  .carousel-btn {
    position: absolute;
    top: clamp(7rem, 36vw, 11rem);
    z-index: 3;
    width: 2.25rem;
    height: 2.25rem;
    font-size: 1.1rem;
    background: rgba(9, 9, 11, 0.7);
    backdrop-filter: blur(4px);
  }

  .carousel-prev {
    left: 0.5rem;
  }

  .carousel-next {
    right: 0.5rem;
  }

  .project-slide-inner .project-sector,
  .project-slide-inner .project-outcome,
  .project-slide-inner h3,
  .project-slide-inner p {
    padding-left: 1.125rem;
    padding-right: 1.125rem;
  }
}

@media (min-width: 640px) {
  .project-slide {
    flex: 0 0 calc(50% - 1rem);
  }
}

@media (min-width: 1024px) {
  .project-slide {
    flex: 0 0 calc(33.333% - 1.25rem);
  }
}

.project-slide-inner {
  padding: 0;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  height: 100%;
  transition: all 0.3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.project-slide-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.04);
}

.project-slide-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}

.project-slide-inner:hover .project-slide-img img {
  transform: scale(1.05);
}

.project-slide-inner .project-sector,
.project-slide-inner .project-outcome,
.project-slide-inner h3,
.project-slide-inner p {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.project-slide-inner .project-sector {
  padding-top: 1.25rem;
}

.project-slide-inner h3 {
  padding-bottom: 0.5rem;
}

.project-slide-inner p {
  padding-bottom: 1.5rem;
  flex: 1;
}

.project-slide-inner:hover {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.project-sector {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cyan-400);
  margin-bottom: 0.25rem;
}

.project-outcome {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--coral-600);
  margin-bottom: 0.5rem;
}

.project-slide-inner h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.project-slide-inner p {
  font-size: 0.9375rem;
  color: var(--zinc-400);
  margin: 0;
  line-height: 1.5;
}

/* About */
.about-grid {
  display: grid;
  gap: 4rem;
  align-items: center;
  grid-template-columns: 1fr;
}

.about-heading h2 {
  margin: 0;
  font-size: clamp(2.4rem, 5.4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-align: center;
}

.about-mobile-break {
  display: inline;
}

.about-image {
  border-radius: 1rem;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.18), rgba(234, 88, 12, 0.1));
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-right {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.about-content p {
  margin-left: 0;
  margin-right: 0;
}

.about-content p + p {
  margin-top: 1rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}


.stat-card {
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.02);
  text-align: center;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.stat-card:hover {
  border-color: rgba(34, 211, 238, 0.2);
  background: rgba(34, 211, 238, 0.03);
}

.stat-icon {
  width: 28px;
  height: 28px;
  color: var(--cyan-400);
  margin: 0 auto 0.75rem;
  display: block;
}

.stat-value {
  font-size: 1.875rem;
  font-weight: 700;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--zinc-500);
  margin-top: 0.25rem;
}

@media (min-width: 768px) {
  .about-mobile-break {
    display: none;
  }

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

  .about-heading {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: 1.1fr 1fr;
  }
}

/* Differentiators */
.differentiators {
  margin-top: 6rem;
}

.differentiators-title {
  font-size: 1.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
  margin: 0 0 3rem;
}

.differentiators-logo-mark {
  align-items: baseline;
}

.differentiators-logo-animated {
  min-width: 8ch;
  font-family: 'DM Mono', 'JetBrains Mono', monospace;
  font-size: 1em;
  font-weight: 400;
  letter-spacing: 0.02em;
}

@keyframes question-pop {
  0% {
    opacity: 0;
    transform: translateY(-0.18em) rotate(-10deg) scale(0.88);
    filter: blur(1px);
  }
  60% {
    opacity: 1;
    transform: translateY(0.01em) rotate(2deg) scale(1.08);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotate(0deg) scale(1);
    filter: blur(0);
  }
}

.differentiators-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

.diff-card {
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.3s ease;
}

.diff-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(34, 211, 238, 0.2);
}

.diff-card:hover h4 {
  color: var(--cyan-400);
}

.diff-icon {
  width: 40px;
  height: 40px;
  padding: 0.5rem;
  margin-bottom: 1rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.1), rgba(234, 88, 12, 0.1));
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--cyan-400);
}

.diff-icon svg {
  width: 100%;
  height: 100%;
}

.diff-card h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  transition: color 0.2s;
}

.diff-card p {
  font-size: 0.875rem;
  color: var(--zinc-400);
  margin: 0;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .differentiators-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .differentiators-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Process */
.process-timeline {
  position: relative;
}

.process-line {
  position: absolute;
  left: 2rem;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, rgba(249, 115, 22, 0.25), rgba(234, 88, 12, 0.25), transparent);
}

.process-step {
  position: relative;
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  padding-left: 5rem;
  margin-bottom: 3rem;
}

.process-step:last-child {
  margin-bottom: 0;
}

.process-dot {
  position: absolute;
  left: 0;
  top: 0;
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.process-dot::before {
  content: '';
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan-400), var(--violet-500));
  box-shadow: 0 0 0 4px var(--zinc-950);
}

.process-card {
  flex: 1;
  padding: 2rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.process-card:hover {
  background: rgba(255, 255, 255, 0.04);
  transform: translateX(4px);
}

.process-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.process-icon-wrap {
  padding: 0.5rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.1), rgba(234, 88, 12, 0.1));
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.process-icon {
  width: 20px;
  height: 20px;
  color: var(--cyan-400);
  display: block;
}

.process-num {
  font-size: 0.875rem;
  font-family: ui-monospace, monospace;
  color: var(--zinc-600);
}

.process-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.process-card p {
  color: var(--zinc-400);
  margin: 0;
  line-height: 1.6;
}

@media (max-width: 767px) {
  .process-line {
    display: none;
  }
  .process-step {
    padding-left: 0;
  }
  .process-dot {
    display: none;
  }
}

/* Contact */
.contact-content {
  text-align: center;
}

.contact-image {
  width: 120px;
  height: 120px;
  margin: 0 auto 1.5rem;
  border-radius: 1rem;
  overflow: hidden;
  border: 2px solid rgba(34, 211, 238, 0.2);
}

.contact-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-icon-wrap {
  display: inline-flex;
  padding: 1rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.1), rgba(234, 88, 12, 0.1));
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 2rem;
}

.contact-icon {
  width: 32px;
  height: 32px;
  color: var(--cyan-400);
}

.contact-content h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0;
}

.contact-content p {
  margin: 1.5rem auto 0;
  font-size: 1.125rem;
  color: var(--zinc-400);
  max-width: 36rem;
}

.contact-form {
  margin-top: 2rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--fg);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--zinc-500);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--cyan-400);
}

.contact-form input {
  margin-bottom: 1rem;
}

.form-row input {
  margin-bottom: 1rem;
}

.contact-form textarea {
  margin-bottom: 1.5rem;
  resize: vertical;
  min-height: 100px;
}

.contact-form .btn-primary {
  margin-top: 0;
  width: 100%;
  justify-content: center;
}

.form-message {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  text-align: center;
}

.form-message.success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #4ade80;
}

.form-message.error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
}

/* Footer */
.footer {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 4rem 1.5rem 2.5rem;
  overflow: hidden;
}

.footer-glow {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 200px;
  background: radial-gradient(ellipse at center, rgba(249, 115, 22, 0.05) 0%, rgba(234, 88, 12, 0.02) 40%, transparent 70%);
  pointer-events: none;
}

.footer-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
}

.footer-copy {
  font-size: 0.8125rem;
  color: var(--zinc-500);
}

.footer-location {
  margin: 1.75rem 0 0;
  font-size: 0.8125rem;
  color: var(--zinc-500);
  line-height: 1.5;
}

.footer-copy .footer-brand {
  font-family: 'Space Mono', 'JetBrains Mono', monospace;
  color: var(--zinc-400);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-copy .footer-brand:hover {
  color: var(--cyan-400);
  text-decoration: underline;
}

.footer-logo-mark {
  align-items: flex-start;
  line-height: 1;
}

.footer-logo-animated {
  min-width: 8ch;
  font-size: 0.8125rem;
}

.footer-logo-tagline {
  font-size: 0.42rem;
  margin-top: 0.2rem;
  letter-spacing: 0.13em;
}

@media (min-width: 768px) {
  .footer {
    padding: 5rem 1.5rem 3rem;
  }
}
