/* ============================================
   Ken's Portfolio — Styles
   Desert sunset aesthetic with warm orange/teal
   ============================================ */

/* --- Theme Variables --- */
:root {
  --bg-primary: #fdf8f5;
  --bg-secondary: #f5ece7;
  --bg-card: #ffffff;
  --text-primary: #2d1f18;
  --text-secondary: #7a6358;
  --accent: #D4613A;
  --accent-light: #E8734A;
  --accent-hover: #C0502A;
  --accent-secondary: #1A8A96;
  --border: rgba(212, 97, 58, 0.12);
  --glass-bg: rgba(255, 255, 255, 0.65);
  --glass-border: rgba(212, 97, 58, 0.18);
  --glass-shadow: rgba(212, 97, 58, 0.08);
  --card-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --nav-bg: rgba(253, 248, 245, 0.8);
  --badge-bg: rgba(212, 97, 58, 0.08);
  --badge-text: #C0502A;
  --input-bg: #f8f2ee;
  --input-border: rgba(212, 97, 58, 0.15);
  --success: #16a34a;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  /* Inter self-hosted via @font-face in index.html */
}

[data-theme="dark"] {
  --bg-primary: #0f0a08;
  --bg-secondary: #1a1210;
  --bg-card: #231a16;
  --text-primary: #f0e6e0;
  --text-secondary: #a08878;
  --accent: #E8734A;
  --accent-light: #F0956E;
  --accent-hover: #D4613A;
  --accent-secondary: #2BA5B5;
  --border: rgba(232, 115, 74, 0.12);
  --glass-bg: rgba(35, 26, 22, 0.55);
  --glass-border: rgba(232, 115, 74, 0.2);
  --glass-shadow: rgba(232, 115, 74, 0.06);
  --card-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  --nav-bg: rgba(15, 10, 8, 0.8);
  --badge-bg: rgba(232, 115, 74, 0.12);
  --badge-text: #F0956E;
  --input-bg: #1a1210;
  --input-border: rgba(232, 115, 74, 0.2);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  transition: background-color 0.4s ease, color 0.4s ease;
}

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

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  color: inherit;
}

ul {
  list-style: none;
}

/* --- Skip Link --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  padding: 8px 16px;
  background: var(--accent);
  color: #fff;
  border-radius: 0 0 8px 8px;
  z-index: 10000;
  font-size: 0.875rem;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* --- Section Container --- */
.section-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
  overflow: hidden;
}

/* --- Section Header --- */
.section-header {
  margin-bottom: 48px;
  text-align: center;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-star {
  display: block;
  font-size: 1.25rem;
  color: var(--accent);
  margin-bottom: 12px;
  animation: starPulse 3s ease-in-out infinite;
}

@keyframes starPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* ============================
   NAVIGATION
   ============================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 24px;
  overflow: hidden;
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
  background: rgba(15, 10, 8, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.nav-container {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: auto;
  min-height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo-img {
  height: 120px;
  width: auto;
  padding: 8px 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-links li:not(:last-child)::after {
  content: '›';
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.8rem;
  margin-left: 2px;
  pointer-events: none;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #ffffff;
  border-radius: 8px;
  transition: color 0.2s, background-color 0.2s;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: #FFF0B3;
  background: rgba(255, 240, 179, 0.1);
}

.resume-link {
  color: #ffffff;
}

.resume-link:hover {
  color: #FFF0B3;
  background: rgba(255, 240, 179, 0.1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Phone Icon */
.nav-phone {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  color: #ffffff;
  transition: color 0.2s, background-color 0.2s;
}

.nav-phone:hover {
  color: #FFF0B3;
  background: rgba(255, 240, 179, 0.1);
}

/* Theme Toggle */
.theme-toggle {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #ffffff;
  transition: color 0.2s, background-color 0.2s;
}

.theme-toggle:hover {
  color: #FFF0B3;
  background: rgba(255, 240, 179, 0.1);
}

.icon-sun,
.icon-moon {
  position: absolute;
  transition: opacity 0.3s, transform 0.3s;
}

[data-theme="dark"] .icon-sun {
  opacity: 1;
  transform: rotate(0deg);
}

[data-theme="dark"] .icon-moon {
  opacity: 0;
  transform: rotate(-90deg);
}

[data-theme="light"] .icon-sun,
:root .icon-sun {
  opacity: 0;
  transform: rotate(90deg);
}

[data-theme="light"] .icon-moon,
:root .icon-moon {
  opacity: 1;
  transform: rotate(0deg);
}

/* Glass Contact Button */
.btn-glass {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  font-size: 0.875rem;
  font-weight: 600;
  background: rgba(0, 240, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 240, 255, 0.4);
  border-radius: 999px;
  color: #ffffff;
  transition: all 0.3s ease;
}

.btn-glass:hover {
  background: rgba(0, 240, 255, 0.25);
  border-color: rgba(255, 240, 179, 0.5);
  color: #FFF0B3;
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.2);
  transform: translateY(-1px);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

/* Mobile Contact Button */
.mobile-contact-btn {
  display: none;
  padding: 8px 16px !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  color: #1a1a1a !important;
  background: #00F0FF !important;
  border: none !important;
  border-radius: 8px !important;
  white-space: nowrap;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.mobile-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================
   HERO
   ============================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 120px 48px 80px;
  overflow: hidden;
  background: #0f0a08;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
}

.hero-bg img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(15, 10, 8, 0.4) 0%,
    rgba(15, 10, 8, 0.55) 40%,
    rgba(15, 10, 8, 0.88) 75%,
    rgba(15, 10, 8, 0.98) 100%
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 1200px;
  width: 100%;
  animation: fadeUp 0.8s ease-out;
  z-index: 2;
}

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

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

.hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-right .hero-proof {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 0;
  padding: 40px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hero-right .proof-item {
  text-align: center;
  padding: 12px 8px;
}

/* Hero text is always light over the image */
.hero .hero-name {
  color: #ffffff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero .hero-title {
  color: #ffffff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
}

.hero .hero-tagline {
  color: #ffffff;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}

.hero .hero-stack {
  color: rgba(255, 255, 255, 0.6);
}

.hero .status-badge {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero .btn-ghost {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero .btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.hero .scroll-indicator {
  color: rgba(255, 255, 255, 0.7);
}

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

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--badge-text);
  background: var(--badge-bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  margin-bottom: 32px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse 2s ease-in-out infinite;
}

.hero-name {
  font-size: clamp(3.5rem, 10vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 8px;
}

.hero-title {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.gradient-text {
  background: linear-gradient(135deg, #00F0FF, #66F7FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 0.95rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.03em;
  margin-bottom: 20px;
}

.hero .hero-subtitle {
  color: rgba(255, 255, 255, 0.65);
}

.hero-tagline {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 0 16px;
  line-height: 1.7;
}

.hero-stack {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.02em;
  margin: 0 0 40px;
}

.hero .hero-stack {
  color: rgba(255, 255, 255, 0.7);
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- Buttons --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1a1a1a;
  background: #00F0FF;
  border: none;
  border-radius: 12px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: #33F5FF;
  box-shadow: 0 8px 24px rgba(0, 240, 255, 0.35);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--badge-bg);
  transform: translateY(-2px);
}

/* Small Buttons (project cards) */
.btn-sm-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #1a1a1a;
  background: #00F0FF;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.btn-sm-primary:hover {
  transform: translateY(-1px);
  background: #33F5FF;
  box-shadow: 0 4px 16px rgba(0, 240, 255, 0.3);
}

.btn-sm-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.btn-sm-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--badge-bg);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-secondary);
  opacity: 0.5;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================
   ABOUT
   ============================ */
.about {
  padding: 100px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: start;
}

.about-image-wrapper {
  position: sticky;
  top: 100px;
}

.about-image {
  width: 280px;
  height: 320px;
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid var(--glass-border);
  box-shadow: var(--card-shadow);
  background: var(--bg-card);
}

.image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-secondary);
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-card));
}

.image-placeholder span {
  font-size: 0.8rem;
  font-weight: 500;
}

.about-content p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.about-content p strong {
  color: var(--text-primary);
}

.tech-stack {
  margin-top: 32px;
}

.tech-stack h3 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.tech-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-badge {
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--badge-text);
  background: var(--badge-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.tech-badge:hover {
  border-color: var(--accent);
  background: rgba(232, 115, 74, 0.15);
  transform: translateY(-1px);
}

/* ============================
   PROJECTS
   ============================ */
.projects {
  padding: 100px 0;
  background: var(--bg-secondary);
  position: relative;
}

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

.project-card {
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px var(--glass-shadow);
}

.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--card-shadow);
}

@supports not (backdrop-filter: blur(12px)) {
  .glass {
    background: var(--bg-card);
  }
}

.project-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.project-placeholder {
  width: 100%;
  height: 100%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  transition: transform 0.5s ease;
}

.project-card:hover .project-placeholder {
  transform: scale(1.05);
}

.project-content {
  padding: 24px;
}

.project-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.project-outcome {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: 12px;
}

.project-content > p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.project-features h4 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 8px;
}

.project-features ul {
  margin-bottom: 16px;
}

.project-features li {
  position: relative;
  padding-left: 16px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.project-features li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.project-tech span {
  padding: 4px 10px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--badge-text);
  background: var(--badge-bg);
  border-radius: 6px;
}

.project-links {
  display: flex;
  gap: 10px;
}

/* ============================
   HERO PROOF POINTS
   ============================ */
.proof-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.proof-number {
  font-size: 1.75rem;
  font-weight: 800;
  color: #00F0FF;
  letter-spacing: -0.02em;
}

.proof-label {
  font-size: 0.7rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Section Subtitle */
.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-top: 8px;
}

/* ============================
   SYSTEMS & CAPABILITIES
   ============================ */
.systems {
  padding: 100px 0;
}

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

.capability-card {
  padding: 32px;
  border-radius: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.capability-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px var(--glass-shadow);
}

.capability-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--badge-bg);
  color: #00F0FF;
  margin-bottom: 20px;
}

.capability-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.capability-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================
   CLAUDE CODE OPERATING SYSTEM
   ============================ */
.claude-os-section {
  padding: 100px 0;
  background: var(--bg-secondary);
}

.claude-os-eyebrow {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-secondary);
  margin-bottom: 8px;
}

.claude-os-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 56px;
}

.claude-os-image {
  position: sticky;
  top: 100px;
}

.claude-os-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 1835 / 1793;
  object-fit: contain;
  border-radius: 16px;
  display: block;
}

.claude-os-domains {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.domain-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px;
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--card-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.domain-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.domain-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 7px;
  box-shadow: 0 0 8px currentColor;
}

.domain-body h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.domain-body p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 8px;
}

.domain-body p:last-child {
  margin-bottom: 0;
}

.domain-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.domain-tags span {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 6px;
  background: var(--badge-bg);
  color: var(--badge-text);
  letter-spacing: 0.02em;
}

.claude-os-quote {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.85;
  border-left: 3px solid var(--accent-secondary);
  padding: 32px 40px;
  margin: 0 0 56px;
  background: var(--bg-card);
  border-radius: 0 14px 14px 0;
  font-style: italic;
  box-shadow: var(--card-shadow);
}

.claude-os-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .claude-os-grid {
    grid-template-columns: 1fr;
  }

  .claude-os-image {
    position: static;
    max-width: 480px;
    margin: 0 auto;
  }

  .claude-os-stats {
    grid-template-columns: 1fr;
  }

  .claude-os-quote {
    padding: 24px 28px;
  }
}

@media (max-width: 480px) {
  .claude-os-section {
    padding: 60px 0;
  }

  .domain-card {
    padding: 16px 20px;
  }

  .claude-os-quote {
    padding: 20px 24px;
    font-size: 0.85rem;
  }
}

/* ============================
   HOW I BUILD / PROCESS
   ============================ */
.process {
  padding: 100px 0;
  background: var(--bg-secondary);
}

.process-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  max-width: 1000px;
  margin: 0 auto;
}

.process-step {
  flex: 1;
  text-align: center;
  padding: 0 16px;
}

.step-number {
  font-size: 2rem;
  font-weight: 800;
  color: #00F0FF;
  opacity: 0.3;
  margin-bottom: 12px;
  letter-spacing: -0.03em;
}

.process-step h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.process-step p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.process-connector {
  width: 40px;
  min-width: 40px;
  height: 2px;
  background: var(--border);
  margin-top: 24px;
  position: relative;
}

.process-connector::after {
  content: '';
  position: absolute;
  right: -2px;
  top: -3px;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--border);
  border-top: 2px solid var(--border);
  transform: rotate(45deg);
}

/* ============================
   RESULTS / METRICS
   ============================ */
.results {
  padding: 100px 0;
}

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

.metric-card {
  padding: 32px 24px;
  border-radius: 16px;
  text-align: center;
  transition: transform 0.3s ease;
}

.metric-card:hover {
  transform: translateY(-3px);
}

.metric-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: #00F0FF;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.metric-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ============================
   WHERE I FIT BEST
   ============================ */
.fit {
  padding: 100px 0;
}

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

.fit-card {
  padding: 32px;
  border-radius: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fit-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px var(--glass-shadow);
}

.fit-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
  color: #00F0FF;
}

.fit-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================
   TOOLING
   ============================ */
/* ============================
   THE PLAYBOOK
   ============================ */
.playbook {
  padding: 100px 0;
}

.playbook-groups {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.playbook-group {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: border-color 0.3s ease, transform 0.2s ease;
}

.playbook-group:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.playbook-group h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.playbook-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.playbook-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.playbook-tags span {
  padding: 5px 12px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--badge-text);
  background: var(--badge-bg);
  border-radius: 6px;
  letter-spacing: 0.02em;
}

/* ============================
   PRODUCTION STACK
   ============================ */
.tooling {
  padding: 100px 0;
  background: var(--bg-secondary);
}

.tooling-groups {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.tool-group h3 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #00F0FF;
  margin-bottom: 12px;
}

.tool-group .tech-grid {
  gap: 6px;
}

/* ============================
   FOOTER
   ============================ */
.footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-links {
  display: flex;
  gap: 16px;
}

.footer-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent);
  background: var(--badge-bg);
  transform: translateY(-2px);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.footer-privacy {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 8px;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.footer-privacy:hover {
  opacity: 1;
  color: var(--accent);
}

/* ============================
   CONTACT PANEL
   ============================ */
.contact-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 998;
}

.contact-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.contact-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 420px;
  height: 100vh;
  height: 100dvh;
  background: var(--bg-primary);
  border-left: 1px solid var(--glass-border);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 999;
  padding: 0;
  overflow: hidden;
}

.contact-panel-inner {
  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 32px;
  display: flex;
  flex-direction: column;
}

.contact-panel.open {
  transform: translateX(0);
}

.contact-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.contact-close:hover {
  color: var(--text-primary);
  background: var(--badge-bg);
}

.contact-header {
  margin-bottom: 32px;
  padding-right: 40px;
}

.contact-header h2 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.contact-header p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-group select,
.form-group input,
.form-group textarea {
  padding: 12px 16px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text-primary);
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.4s;
  resize: vertical;
}

.form-group select:focus,
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232, 115, 74, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-secondary);
  opacity: 0.6;
}

.form-error {
  font-size: 0.75rem;
  color: #ef4444;
  display: none;
}

.form-group select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a08878' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
}

.form-group.error select,
.form-group.error input,
.form-group.error textarea {
  border-color: #ef4444;
}

.form-group.error .form-error {
  display: block;
}

/* Submit Button States */
.btn-submit {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
  position: relative;
}

.btn-loading,
.btn-success {
  display: none;
  align-items: center;
  gap: 8px;
}

.btn-submit.loading .btn-text { display: none; }
.btn-submit.loading .btn-loading { display: inline-flex; }

.btn-submit.success {
  background: var(--success);
}
.btn-submit.success .btn-text { display: none; }
.btn-submit.success .btn-success { display: inline-flex; }

.spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.contact-info {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.contact-info p {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.contact-email {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  margin: 8px 0;
  transition: color 0.2s;
}

.contact-email:hover {
  color: var(--accent-hover);
}

.response-time {
  font-size: 0.75rem;
  color: var(--text-secondary);
  opacity: 0.7;
}

.contact-success {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
  padding: 40px 0;
  color: var(--success);
}

.contact-success.visible {
  display: flex;
}

.contact-success h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.contact-success p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ============================
   SCROLL REVEAL
   ============================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-left {
    text-align: center;
  }

  .hero-left .hero-tagline {
    margin: 0 auto 16px;
  }

  .hero-left .hero-stack {
    margin: 0 auto 32px;
  }

  .hero-left .hero-ctas {
    justify-content: center;
  }

  .hero-right .hero-proof {
    max-width: 400px;
    margin: 0 auto;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin: 0 auto;
  }

  .capabilities-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin: 0 auto;
  }

  .playbook-groups {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin: 0 auto;
  }

  .fit-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin: 0 auto;
  }

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

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

  .process-steps {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .process-step {
    padding: 16px 0;
  }

  .process-connector {
    width: 2px;
    height: 24px;
    min-width: unset;
    margin-top: 0;
  }

  .process-connector::after {
    right: -3px;
    top: auto;
    bottom: -2px;
    transform: rotate(135deg);
  }

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

@media (max-width: 768px) {

  /* --- MOBILE NAV --- */
  .nav-container {
    padding: 0;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #0f0a08;
    padding: 16px 24px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 150;
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-link {
    width: 100%;
    padding: 16px;
    border-radius: 10px;
    font-size: 1.1rem;
    text-align: center;
    justify-content: center;
  }

  .nav-links li::after {
    display: none !important;
  }

  .nav-actions {
    gap: 8px;
  }

  .theme-toggle {
    width: 36px;
    height: 36px;
  }

  .nav-phone {
    width: 36px;
    height: 36px;
  }

  .mobile-toggle {
    display: flex;
    position: relative;
    z-index: 200;
  }

  .mobile-contact-btn {
    display: block;
  }

  .contact-trigger {
    display: none;
  }

  .contact-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    padding: 0;
    border-left: none;
    overflow: hidden;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0, 0, 0.2, 1);
  }

  .contact-panel.open {
    transform: translateX(0);
  }

  .contact-panel .contact-close {
    top: 16px;
    right: 16px;
  }

  .contact-panel-inner {
    padding: 24px;
  }

  .contact-header {
    margin-bottom: 16px;
    padding-right: 40px;
  }

  .contact-header h2 {
    font-size: 1.4rem;
  }

  .contact-header p {
    font-size: 0.85rem;
  }

  .contact-form {
    gap: 14px;
  }

  .form-group select,
  .form-group input,
  .form-group textarea {
    padding: 10px 14px;
    font-size: 16px;
  }

  .form-group textarea {
    min-height: 80px;
    resize: none;
  }

  .btn-submit {
    margin-top: 4px;
    margin-bottom: 24px;
  }

  /* --- MOBILE HERO --- */
  .hero {
    padding: 160px 20px 60px;
    min-height: 100vh;
    align-items: center;
  }

  .hero-content {
    padding: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-left {
    text-align: center;
  }

  .hero-left .hero-tagline {
    margin: 0 auto 16px;
  }

  .hero-left .hero-stack {
    margin: 0 auto 32px;
  }

  .hero-left .hero-ctas {
    justify-content: center;
  }

  .hero-name {
    font-size: clamp(2.5rem, 10vw, 3.5rem);
  }

  .hero-tagline {
    font-size: 0.95rem;
    padding: 0;
  }

  .hero-stack {
    font-size: 0.8rem;
  }

  .status-badge {
    display: none;
  }

  .hero-right .hero-proof {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 24px;
    width: 100%;
    box-sizing: border-box;
  }

  .proof-number {
    font-size: 1.3rem;
  }

  .proof-label {
    font-size: 0.65rem;
  }

  .hero-ctas {
    flex-direction: column;
    padding: 0;
    width: 100%;
  }

  .hero-ctas .btn-primary,
  .hero-ctas .btn-ghost {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }

  /* --- MOBILE SECTIONS --- */
  .about,
  .projects,
  .systems,
  .process,
  .results,
  .fit,
  .playbook,
  .tooling {
    padding: 64px 0;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin: 0 auto;
  }

  .metric-number {
    font-size: 2rem;
  }

  .tooling-groups {
    grid-template-columns: 1fr;
  }

  .section-header {
    margin-bottom: 32px;
  }
}

@media (max-width: 480px) {
  .section-container {
    padding: 0 16px;
  }

  .project-content {
    padding: 20px;
  }

  .hero {
    padding: 90px 16px 48px;
  }

  .hero-name {
    font-size: 2.5rem;
  }

  .contact-panel-inner {
    padding: 16px;
  }
}


/* --- Mobile Landscape --- */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: 80px 40px 40px;
    align-items: center;
  }

  .hero-name {
    font-size: 2.5rem;
    margin-bottom: 4px;
  }

  .hero-title {
    font-size: 1.1rem;
    margin-bottom: 12px;
  }

  .hero-tagline {
    font-size: 0.85rem;
    margin-bottom: 8px;
  }

  .hero-stack {
    font-size: 0.75rem;
    margin-bottom: 16px;
  }

  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

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

  .hero-right .hero-proof {
    gap: 16px;
    padding: 20px;
    margin-bottom: 0;
  }

  .proof-number {
    font-size: 1.1rem;
  }

  .proof-label {
    font-size: 0.6rem;
  }

  .hero-ctas {
    flex-direction: row;
    gap: 12px;
  }

  .hero-ctas .btn-primary,
  .hero-ctas .btn-ghost {
    width: auto;
    padding: 10px 20px;
    font-size: 0.85rem;
  }

  .scroll-indicator {
    display: none;
  }

  .status-badge {
    display: none;
  }

  .navbar {
    min-height: 50px;
  }

  .nav-logo-img {
    height: 60px;
    padding: 4px 0;
  }
}

/* --- Print --- */
@media print {
  .navbar,
  .contact-panel,
  .contact-overlay,
  .scroll-indicator,
  .mobile-contact-bar,
  .theme-toggle {
    display: none !important;
  }

  .hero {
    min-height: auto;
    padding: 40px 0;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}