/* Portfolio — plain CSS (no Node, no build step) */
:root {
  --background: #0a0a0b;
  --foreground: #fafafa;
  --card: #141416;
  --muted: #1c1c1f;
  --muted-fg: #a1a1aa;
  --border: #27272a;
  --accent: #ea5603;
  --accent-fg: #fff;
  --font: "Inter", system-ui, sans-serif;
  --font-heading: "Space Grotesk", var(--font);
}

html.light {
  --background: #fafafa;
  --foreground: #0a0a0b;
  --card: #ffffff;
  --muted: #f4f4f5;
  --muted-fg: #52525b;
  --border: #e4e4e7;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.2; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
::selection { background: rgba(234, 86, 3, 0.3); }

.container { max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 5rem 0; scroll-margin-top: 6rem; }
.section-alt { background: rgba(20, 20, 22, 0.5); }
html.light .section-alt { background: rgba(244, 244, 245, 0.8); }

.eyebrow {
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}
.section-title { font-size: clamp(1.75rem, 4vw, 2.25rem); font-weight: 700; }
.section-subtitle {
  color: var(--muted-fg);
  margin-top: 1rem;
  max-width: 42rem;
}
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header .section-subtitle { margin-left: auto; margin-right: auto; }

.glass {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}
html.light .glass {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(0, 0, 0, 0.06);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, filter 0.15s;
}
.btn:hover { transform: scale(1.02); filter: brightness(1.08); }
.btn-primary {
  background: var(--accent);
  color: var(--accent-fg);
  box-shadow: 0 8px 24px rgba(234, 86, 3, 0.35);
}
.btn-secondary {
  background: transparent;
  color: var(--foreground);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--accent); background: rgba(234, 86, 3, 0.1); }

.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  border: 1px solid var(--border);
  color: var(--muted-fg);
  background: rgba(28, 28, 31, 0.5);
}

/* Scroll progress */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--accent);
  z-index: 100;
  width: 0%;
  transition: width 0.1s;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 4px;
  left: 0;
  right: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s;
}
.navbar.scrolled {
  background: rgba(10, 10, 11, 0.9);
  border-color: var(--border);
  backdrop-filter: blur(16px);
}
html.light .navbar.scrolled { background: rgba(250, 250, 250, 0.9); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}
.logo { font-weight: 700; font-size: 1.125rem; }
.logo span { color: var(--accent); }
.nav-links { display: none; gap: 0.25rem; list-style: none; }
.nav-links a {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-fg);
  border-radius: 0.5rem;
}
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-actions { display: flex; align-items: center; gap: 0.5rem; }
.icon-btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: rgba(20, 20, 22, 0.5);
  color: var(--foreground);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.menu-btn { display: flex; }
@media (min-width: 768px) {
  .nav-links { display: flex; }
  .menu-btn { display: none; }
  .nav-inner { height: 5rem; }
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.mobile-menu.open { pointer-events: auto; opacity: 1; }
.mobile-menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}
.mobile-menu-panel {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: min(100%, 320px);
  background: var(--card);
  border-left: 1px solid var(--border);
  padding: 1.5rem;
  transform: translateX(100%);
  transition: transform 0.3s;
}
.mobile-menu.open .mobile-menu-panel { transform: translateX(0); }
.mobile-menu ul { list-style: none; margin-top: 2rem; }
.mobile-menu a {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  color: var(--muted-fg);
  font-weight: 500;
}
.mobile-menu a.active { background: rgba(234, 86, 3, 0.15); color: var(--accent); }

/* Hero */
.hero { padding-top: 7rem; padding-bottom: 5rem; position: relative; }
.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr 1fr; }
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  border: 1px solid rgba(234, 86, 3, 0.3);
  background: rgba(234, 86, 3, 0.1);
  color: var(--accent);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}
.hero-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}
@keyframes pulse { 50% { opacity: 0.5; } }
.hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; }
.hero-desc { color: var(--muted-fg); font-size: 1.125rem; margin-top: 1.5rem; max-width: 36rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.social-row { display: flex; gap: 0.75rem; margin-top: 2.5rem; }
.social-row a {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-fg);
}
.social-row a:hover { color: var(--accent); border-color: rgba(234, 86, 3, 0.5); }
.gradient-mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(234, 86, 3, 0.15), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(234, 86, 3, 0.08), transparent);
}

/* Business card (hero) */
.hero-card-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}
.business-card {
  position: relative;
  width: 100%;
  max-width: 380px;
  overflow: hidden;
  padding: 0;
  border-radius: 1.25rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.business-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(234, 86, 3, 0.15);
}
.business-card-accent {
  height: 6px;
  background: linear-gradient(90deg, var(--accent), #ff8c42);
}
.business-card-photo {
  padding: 1.75rem 1.75rem 0;
  display: flex;
  justify-content: center;
}
.business-card-photo img {
  width: 140px;
  height: 140px;
  border-radius: 1rem;
  object-fit: cover;
  object-position: center top;
  border: 3px solid rgba(234, 86, 3, 0.35);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}
.business-card-body {
  padding: 1.25rem 1.75rem 1.75rem;
  text-align: center;
}
.business-card-eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.business-card-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 0.35rem;
  letter-spacing: -0.02em;
}
.business-card-roles {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--muted-fg);
  margin-top: 0.5rem;
}
.business-card-contact {
  list-style: none;
  margin-top: 1.25rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.business-card-contact li {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 0.5rem;
  align-items: start;
  font-size: 0.8rem;
}
.business-card-label {
  font-weight: 600;
  color: var(--muted-fg);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.business-card-contact a {
  color: var(--foreground);
  word-break: break-word;
}
.business-card-contact a:hover {
  color: var(--accent);
}
html.light .business-card-photo img {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

/* Stats */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
@media (min-width: 768px) { .stats-bar { grid-template-columns: repeat(4, 1fr); } }
.stat-value { font-size: 2.25rem; font-weight: 700; color: var(--accent); }
.stat-label { font-size: 0.875rem; color: var(--muted-fg); margin-top: 0.5rem; }

/* Marquee */
.marquee-wrap { overflow: hidden; padding: 2rem 0; border-bottom: 1px solid var(--border); }
.marquee {
  display: flex;
  gap: 2rem;
  width: max-content;
  animation: marquee 35s linear infinite;
}
.marquee:hover { animation-play-state: paused; }
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee span {
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--muted-fg);
  white-space: nowrap;
}

/* Grids */
.grid-2 { display: grid; gap: 2rem; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.grid-3 { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.grid-skills { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

.card { padding: 1.5rem; }
.card h3 { font-size: 1.125rem; margin-top: 0.75rem; }
.card p { font-size: 0.875rem; color: var(--muted-fg); margin-top: 0.25rem; }
.skill-bar {
  height: 6px;
  background: var(--muted);
  border-radius: 9999px;
  margin-top: 1rem;
  overflow: hidden;
}
.skill-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 9999px;
  width: 0;
  transition: width 1s ease;
}

/* Projects */
.filter-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-bottom: 2.5rem; }
.filter-tabs button {
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted-fg);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
}
.filter-tabs button.active {
  background: var(--accent);
  color: var(--accent-fg);
  border-color: var(--accent);
}
.project-card { overflow: hidden; padding: 0; }
.project-img {
  aspect-ratio: 16/9;
  background: var(--muted);
  overflow: hidden;
}
.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.project-body { padding: 1.5rem; }
.project-tech { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.project-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

/* RCA Capital design gallery */
.projects-intro {
  max-width: 42rem;
  margin: 0 auto 2rem;
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(234, 86, 3, 0.25);
  background: rgba(234, 86, 3, 0.08);
  text-align: center;
  color: var(--muted-fg);
  font-size: 0.9rem;
}
.projects-intro strong { color: var(--accent); }

#projects-grid.design-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}
#projects-grid.design-gallery.grid-2 {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.design-card { overflow: hidden; padding: 0; }
.design-img {
  background: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  padding: 0.5rem;
}
.design-img img {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  border-radius: 0.5rem;
}
.design-body { padding: 1rem 1.25rem 1.25rem; }
.design-body h3 { font-size: 1rem; margin-top: 0.5rem; }
.design-label {
  font-size: 0.75rem;
  color: var(--muted-fg);
  margin-top: 0.25rem;
  line-height: 1.4;
}
.badge-rca {
  background: rgba(234, 86, 3, 0.15);
  border-color: rgba(234, 86, 3, 0.35);
  color: var(--accent);
  font-weight: 600;
}
.badge-nsrc {
  background: rgba(212, 175, 55, 0.15);
  border-color: rgba(212, 175, 55, 0.45);
  color: #d4af37;
  font-weight: 600;
}
html.light .badge-nsrc {
  color: #9a7b1a;
}
.badge-sb {
  background: rgba(236, 72, 153, 0.15);
  border-color: rgba(236, 72, 153, 0.4);
  color: #ec4899;
  font-weight: 600;
}
html.light .badge-sb {
  color: #be185d;
}

/* Timeline */
.timeline { max-width: 48rem; margin: 0 auto; position: relative; padding-left: 2rem; }
.timeline::before {
  content: "";
  position: absolute;
  left: 0.5rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}
.timeline-item { position: relative; margin-bottom: 2.5rem; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.65rem;
  top: 0.25rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--background);
}
.timeline-period { color: var(--accent); font-size: 0.875rem; font-weight: 600; }
.timeline-item ul { margin-top: 0.75rem; list-style: none; }
.timeline-item li { font-size: 0.875rem; color: var(--muted-fg); margin-top: 0.25rem; }
.timeline-item li::before { content: "• "; color: var(--accent); }

/* Contact */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.5rem; }
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: rgba(10, 10, 11, 0.5);
  color: var(--foreground);
  font-family: inherit;
  font-size: 1rem;
}
html.light .form-group input,
html.light .form-group textarea { background: #fff; }
.form-group input.error, .form-group textarea.error { border-color: #ef4444; }
.form-error { color: #ef4444; font-size: 0.875rem; margin-top: 0.25rem; }
.form-success { text-align: center; padding: 2rem; }
.form-success svg { color: var(--accent); margin: 0 auto; }

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0;
  background: rgba(20, 20, 22, 0.3);
}
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
.footer ul { list-style: none; }
.footer li { margin-top: 0.5rem; }
.footer a { color: var(--muted-fg); font-size: 0.875rem; }
.footer a:hover { color: var(--accent); }
.copyright {
  text-align: center;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--muted-fg);
}

#back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-fg);
  border: none;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(234, 86, 3, 0.4);
  z-index: 40;
}
#back-to-top.visible { display: flex; }

.hidden { display: none !important; }
