/* === Variables === */
:root {
  --guinda-50: #fdf2f4;
  --guinda-100: #fbe8eb;
  --guinda-200: #f5c6ce;
  --guinda-300: #ea9aa8;
  --guinda-400: #d85f77;
  --guinda-500: #c03a56;
  --guinda-600: #9b2335;
  --guinda-700: #7a1b2a;
  --guinda-800: #5a1a25;
  --guinda-900: #3d1119;
  --guinda-950: #22080d;

  --bg: #0a0a0a;
  --bg-elevated: #111111;
  --bg-card: #141414;
  --bg-panel: rgba(20, 20, 20, 0.88);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  --text: #f5f5f5;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --text-inverse: #0a0a0a;

  --accent: var(--guinda-500);
  --accent-light: var(--guinda-400);
  --accent-dark: var(--guinda-700);
  --accent-glow: rgba(192, 58, 86, 0.22);

  --success: #34d399;
  --error: #f87171;

  --radius-sm: 0.625rem;
  --radius: 0.875rem;
  --radius-lg: 1.25rem;
  --radius-xl: 1.75rem;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 25px 60px rgba(0, 0, 0, 0.5);

  --transition: 200ms ease;
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* === Reset === */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  width: 100%;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  width: 100%;
}

section {
  width: 100%;
}

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

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

button {
  font: inherit;
  cursor: pointer;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4, p, figure {
  margin: 0;
}

/* === Layout === */
.container {
  width: 100%;
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.section {
  padding-block: 5rem;
}

/* === Background canvas === */
.page-background {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.page-background canvas {
  width: 100% !important;
  height: 100% !important;
}

/* === Header === */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition), backdrop-filter var(--transition);
}

.site-header.scrolled {
  background: rgba(10, 10, 10, 0.82);
  border-color: var(--border);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-sm);
}

.logo-mark img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-sm);
}

.logo-text {
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition), background var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.nav-cta {
  background: var(--accent);
  color: white !important;
  margin-left: 0.5rem;
}

.nav-cta:hover {
  background: var(--accent-light);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 0.3rem;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0.4rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9375rem;
  border: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 10px 30px var(--accent-glow);
}

.btn-primary:hover {
  background: var(--accent-light);
  box-shadow: 0 14px 40px rgba(192, 58, 86, 0.32);
}

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

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

.btn-light {
  background: white;
  color: var(--text-inverse);
}

.btn-light:hover {
  background: var(--guinda-100);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--accent-light);
  transition: color var(--transition), gap var(--transition);
}

.link-arrow:hover {
  color: var(--guinda-300);
  gap: 0.6rem;
}

.link-arrow svg {
  transition: transform var(--transition);
}

.link-arrow:hover svg {
  transform: translateX(3px);
}

/* === Section headers === */
.section-header {
  max-width: 40rem;
  margin-bottom: 3rem;
}

.section-header.compact {
  margin-bottom: 2rem;
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-light);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text);
}

.section-title.small {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
}

.section-lead {
  margin-top: 1rem;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* === Hero === */
.hero {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: 7rem;
  padding-bottom: 5rem;
}

.hero-grid {
  display: grid;
  gap: 3.5rem;
  align-items: center;
}

.hero-content {
  max-width: 48rem;
}

.availability-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  border: 1px solid rgba(52, 211, 153, 0.2);
  background: rgba(52, 211, 153, 0.08);
  color: #6ee7b7;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.75rem;
}

.availability-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.15);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.hero-greeting {
  font-size: clamp(1.25rem, 3.5vw, 1.75rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hero-greeting-accent {
  color: var(--accent-light);
  font-weight: 600;
}

.hero-label {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-light);
  margin-bottom: 0.75rem;
}

.hero-title {
  font-size: clamp(2.25rem, 6vw, 4rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.045em;
  color: var(--text);
}

.hero-summary {
  margin-top: 1.75rem;
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 40rem;
}

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

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2.5rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.meta-item svg {
  color: var(--accent-light);
}

/* Hero card */
.hero-card {
  position: relative;
  max-width: 28rem;
  margin-inline: auto;
}

.card-glow {
  position: absolute;
  inset: -0.75rem;
  border-radius: 2rem;
  background: linear-gradient(135deg, rgba(192, 58, 86, 0.18), transparent 55%, rgba(216, 95, 119, 0.1));
  filter: blur(16px);
  z-index: -1;
}

.hero-panel {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--bg-panel);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
  overflow: hidden;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.panel-dots {
  display: flex;
  gap: 0.4rem;
}

.panel-dots span {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
}

.panel-dots span:nth-child(1) { background: rgba(248, 113, 113, 0.7); }
.panel-dots span:nth-child(2) { background: rgba(250, 204, 21, 0.7); }
.panel-dots span:nth-child(3) { background: rgba(52, 211, 153, 0.7); }

.panel-filename {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.panel-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.panel-profile {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.panel-photo {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(192, 58, 86, 0.3);
  flex-shrink: 0;
}

.panel-profile-info {
  min-width: 0;
}

.panel-section-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-light);
  margin-bottom: 0.75rem;
}

.panel-name {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.panel-sub {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.panel-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.panel-stat {
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.panel-stat dt {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.panel-stat dd {
  margin-top: 0.25rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
}

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

.panel-stack li {
  padding: 0.625rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(192, 58, 86, 0.15);
  background: rgba(192, 58, 86, 0.05);
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #fecdd3;
}

.panel-footer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.panel-status-dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: var(--success);
}

/* === Capabilities === */
.capabilities {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.capabilities-grid {
  display: grid;
  gap: 1rem;
}

.capability-card {
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color var(--transition), background var(--transition);
}

.capability-card:hover {
  border-color: rgba(192, 58, 86, 0.3);
  background: rgba(192, 58, 86, 0.04);
}

.capability-icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius);
  border: 1px solid rgba(192, 58, 86, 0.25);
  background: rgba(192, 58, 86, 0.08);
  color: var(--accent-light);
}

.capability-card h3 {
  margin-top: 1.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
}

.capability-card p {
  margin-top: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* === About === */
.about-hero {
  display: grid;
  gap: 2rem;
  align-items: end;
  margin-bottom: 5rem;
}

.about-intro {
  max-width: 50rem;
}

.about-summary {
  margin-top: 1.25rem;
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

.about-photo {
  display: flex;
  justify-content: center;
}

.about-photo-img {
  width: 100%;
  max-width: 16rem;
  height: auto;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  aspect-ratio: 1;
  object-fit: cover;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.about-stat {
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.about-stat dt {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.about-stat dd {
  margin-top: 0.375rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
}

/* Timeline */
.timeline-section {
  margin-bottom: 5rem;
}

.timeline {
  position: relative;
  display: grid;
  gap: 2rem;
  margin-top: 3rem;
}

.timeline-item {
  position: relative;
}

.timeline-card {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.timeline-card-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.tag-sector {
  border: 1px solid rgba(192, 58, 86, 0.2);
  background: rgba(192, 58, 86, 0.08);
  color: #fecdd3;
}

.tag-current {
  border: 1px solid rgba(52, 211, 153, 0.2);
  background: rgba(52, 211, 153, 0.08);
  color: #6ee7b7;
}

.tag-dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: #6ee7b7;
}

.timeline-period {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.timeline-role {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.timeline-org {
  margin-top: 0.375rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.timeline-summary {
  margin-top: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.timeline-highlights {
  margin-top: 1.25rem;
  display: grid;
  gap: 0.75rem;
}

.timeline-highlights li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #d4d4d8;
}

.timeline-highlights li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: var(--accent-light);
}

.timeline-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.timeline-tech li {
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Approach */
.approach-section {
  display: grid;
  gap: 3rem;
  margin-bottom: 5rem;
}

.approach-header {
  max-width: 30rem;
}

.approach-grid {
  display: grid;
  gap: 1rem;
}

.approach-card {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.approach-number {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent-light);
}

.approach-card h3 {
  margin-top: 1rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
}

.approach-card p {
  margin-top: 0.5rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Stack */
.stack-section {
  padding-top: 2rem;
}

.stack-header {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.stack-list {
  display: grid;
  gap: 0.75rem;
}

.stack-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.stack-name {
  font-weight: 600;
  color: var(--text);
}

.stack-category {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* === Services === */
.services-hero {
  display: grid;
  gap: 2rem;
  align-items: end;
  margin-bottom: 4rem;
}

.services-hero-content {
  max-width: 52rem;
}

.services-principle {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.principle-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.principle-text {
  margin-top: 0.75rem;
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.5;
  color: #e4e4e7;
}

.services-grid {
  display: grid;
  gap: 1.25rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  border-radius: 1.5rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color var(--transition), background var(--transition);
}

.service-card:hover {
  border-color: rgba(192, 58, 86, 0.25);
  background: rgba(192, 58, 86, 0.03);
}

.service-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.service-icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius);
  border: 1px solid rgba(192, 58, 86, 0.2);
  background: rgba(192, 58, 86, 0.07);
  color: var(--accent-light);
}

.service-number {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.service-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
}

.service-summary {
  margin-top: 0.75rem;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.service-ideal {
  margin-top: 1.25rem;
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
}

.service-ideal-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.service-ideal-text {
  margin-top: 0.5rem;
  line-height: 1.7;
  color: #d4d4d8;
}

.service-capabilities {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.75rem;
}

.service-capabilities li {
  display: flex;
  gap: 0.625rem;
  line-height: 1.6;
  color: #d4d4d8;
}

.service-capabilities li::before {
  content: '';
  flex-shrink: 0;
  margin-top: 0.45rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent-light);
}

.service-cta {
  margin-top: 1.5rem;
}

.service-process {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.service-process summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  list-style: none;
  cursor: pointer;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.service-process summary:hover {
  color: var(--accent-light);
}

.service-process summary svg {
  transition: transform var(--transition);
}

.service-process[open] summary svg {
  transform: rotate(180deg);
}

.service-process ol {
  margin-top: 1rem;
  padding-left: 1rem;
  border-left: 1px solid rgba(192, 58, 86, 0.25);
  display: grid;
  gap: 0.75rem;
}

.service-process li {
  display: grid;
  grid-template-columns: 1.5rem 1fr;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.service-process li span {
  font-family: var(--font-mono);
  color: var(--accent-light);
}

/* === Projects === */
.projects-hero {
  max-width: 52rem;
  margin-bottom: 3rem;
}

.projects-list {
  display: grid;
  gap: 1.5rem;
}

.project-card {
  display: grid;
  overflow: hidden;
  border-radius: 1.75rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color var(--transition), background var(--transition);
}

.project-card:hover {
  border-color: rgba(192, 58, 86, 0.25);
  background: rgba(192, 58, 86, 0.03);
}

.project-visual {
  position: relative;
  min-height: 18rem;
  background: linear-gradient(180deg, rgba(192, 58, 86, 0.08), transparent);
  border-bottom: 1px solid var(--border);
  padding: 1.75rem;
}

.project-visual-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  min-height: 14rem;
}

.project-visual-header,
.project-visual-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.project-visual-header {
  color: var(--text-muted);
}

.project-visual-footer {
  color: var(--accent-light);
}

.project-visual-dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: var(--success);
}

.project-visual-demo {
  margin-block: auto;
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
  box-shadow: var(--shadow-lg);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 2.75rem;
  padding: 0 0.875rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.search-box svg {
  color: var(--accent-light);
}

.search-bars {
  display: grid;
  gap: 0.5rem;
  margin-top: 1rem;
}

.search-bars span {
  display: block;
  height: 0.5rem;
  border-radius: 9999px;
}

.search-bars span:nth-child(1) { background: rgba(192, 58, 86, 0.75); }
.search-bars span:nth-child(2) { background: rgba(216, 95, 119, 0.45); }
.search-bars span:nth-child(3) { background: rgba(255, 255, 255, 0.1); }

.project-content {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.project-sector {
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  border: 1px solid rgba(192, 58, 86, 0.18);
  background: rgba(192, 58, 86, 0.06);
  font-size: 0.8125rem;
  font-weight: 500;
  color: #fecdd3;
}

.project-status {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.project-content h3 {
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
}

.project-summary {
  margin-top: 0.875rem;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.project-tech li {
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.project-content .btn {
  align-self: flex-start;
  margin-top: 1.75rem;
}

.projects-note {
  margin-top: 2rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
  text-align: center;
}

/* Project modal */
.project-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
}

.project-modal[hidden] {
  display: none;
}

.project-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
}

.project-modal-panel {
  position: relative;
  width: 100%;
  max-width: 75rem;
  margin-top: 4rem;
  margin-bottom: 2rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: modal-in 250ms ease-out;
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(1rem); }
  to { opacity: 1; transform: translateY(0); }
}

.project-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  transition: background var(--transition);
}

.project-modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.project-detail-header {
  padding: 2rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(192, 58, 86, 0.06), transparent);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  transition: color var(--transition);
}

.back-link:hover {
  color: var(--accent-light);
}

.project-detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.project-detail-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}

.project-detail-summary {
  margin-top: 0.875rem;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 50rem;
}

.project-detail-body {
  display: grid;
  gap: 2rem;
  padding: 2rem 1.5rem;
}

.project-detail-main {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.detail-block {
  display: grid;
  gap: 1rem;
}

.detail-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-light);
}

.detail-block h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
}

.detail-block p {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

.detail-box {
  margin-top: 1rem;
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.detail-box-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.detail-features {
  display: grid;
  gap: 0.75rem;
}

.detail-features li {
  display: flex;
  gap: 0.625rem;
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  line-height: 1.6;
  color: #d4d4d8;
}

.detail-features li::before {
  content: '';
  flex-shrink: 0;
  margin-top: 0.45rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent-light);
}

.detail-result {
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(52, 211, 153, 0.18);
  background: rgba(52, 211, 153, 0.05);
  line-height: 1.7;
  color: #a7f3d0;
}

.result-badge {
  display: inline-block;
  margin-right: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--success);
}

.project-detail-sidebar {
  align-self: flex-start;
}

.sidebar-card {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
}

.sidebar-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.sidebar-block + .sidebar-block {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.sidebar-block-title {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.sidebar-block p {
  color: var(--text-secondary);
  line-height: 1.6;
}

.sidebar-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.sidebar-tech li {
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(192, 58, 86, 0.15);
  background: rgba(192, 58, 86, 0.05);
  font-size: 0.8125rem;
  color: #fecdd3;
}

.sidebar-decisions {
  display: grid;
  gap: 0.875rem;
}

.sidebar-decisions li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.sidebar-decisions li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--accent-light);
}

/* === Contact === */
.contact-hero {
  display: grid;
  gap: 2rem;
  align-items: end;
  margin-bottom: 4rem;
}

.contact-hero-content {
  max-width: 52rem;
}

.contact-email {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.contact-email-icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius);
  border: 1px solid rgba(192, 58, 86, 0.2);
  background: rgba(192, 58, 86, 0.07);
  color: var(--accent-light);
  margin-bottom: 1rem;
}

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

.email-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-weight: 500;
  color: var(--accent-light);
  word-break: break-all;
  transition: color var(--transition);
}

.email-link:hover {
  color: var(--guinda-300);
}

.contact-grid {
  display: grid;
  gap: 3rem;
}

.contact-process {
  align-self: flex-start;
}

.process-list {
  margin-top: 1.5rem;
  padding-left: 1.25rem;
  border-left: 1px solid var(--border);
  display: grid;
  gap: 1.5rem;
}

.process-list li {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.875rem;
}

.process-number {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent-light);
}

.process-list h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #e4e4e7;
}

.process-list p {
  margin-top: 0.25rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.contact-privacy-note {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Form */
.contact-form-wrapper {
  min-width: 0;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2.5rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  box-shadow: var(--shadow);
}

.contact-card-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-card-icon {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(192, 58, 86, 0.2);
  background: rgba(192, 58, 86, 0.08);
  color: var(--accent-light);
}

.contact-card-text {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.contact-card-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-card-links .btn {
  justify-content: flex-start;
  font-size: 1rem;
  min-height: 3.5rem;
}

/* === Final CTA === */
.final-cta {
  padding-top: 0;
}

.final-cta-card {
  position: relative;
  display: grid;
  gap: 2rem;
  align-items: center;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(192, 58, 86, 0.18);
  background: linear-gradient(135deg, rgba(192, 58, 86, 0.14), var(--bg-elevated) 55%);
  padding: 2.5rem;
}

.final-cta-glow {
  position: absolute;
  top: -50%;
  right: -10%;
  width: 24rem;
  height: 24rem;
  border-radius: 50%;
  background: rgba(192, 58, 86, 0.12);
  filter: blur(80px);
  pointer-events: none;
}

.final-cta-content {
  position: relative;
  max-width: 42rem;
}

.final-cta-card .btn {
  position: relative;
  align-self: flex-start;
}

/* === Footer === */
.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
  padding-top: 3rem;
}

.footer-inner {
  display: grid;
  gap: 2rem;
  padding-bottom: 2.5rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.footer-brand .logo-mark {
  width: 2.5rem;
  height: 2.5rem;
}

.footer-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
}

.footer-title {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.footer-nav a:hover {
  color: var(--accent-light);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.footer-contact a {
  font-weight: 500;
  color: var(--accent-light);
  transition: color var(--transition);
}

.footer-contact a:hover {
  color: var(--guinda-300);
}

.footer-contact p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-note {
  font-size: 0.75rem;
}

.footer-verse {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.2);
  color: var(--text);
}

/* === Responsive === */
@media (min-width: 640px) {
  .section {
    padding-block: 6rem;
  }

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

  .capability-card {
    padding: 2rem;
  }

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

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

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

  .project-detail-main .detail-features {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .hero-grid {
    gap: 4rem;
  }

  .about-hero {
    gap: 3rem;
  }
}

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

@media (min-width: 768px) {
  .container {
    padding-inline: 2rem;
  }

  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .about-hero {
    grid-template-columns: 1fr 16rem;
    grid-template-rows: auto auto;
  }
  .about-photo {
    grid-row: 1 / 3;
    grid-column: 2;
  }
  .about-intro {
    grid-column: 1;
  }
  .about-stats {
    grid-column: 1;
  }

  .timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--border);
  }

  .timeline-item {
    padding-left: 2.5rem;
  }

  .timeline-item::before {
    content: '';
    position: absolute;
    left: -0.25rem;
    top: 2rem;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    border: 2px solid var(--accent-light);
    background: var(--bg);
  }

  .services-hero {
    grid-template-columns: 1fr 22rem;
  }

  .contact-hero {
    grid-template-columns: 1fr 22rem;
  }

  .contact-grid {
    grid-template-columns: 20rem 1fr;
  }

  .contact-card-links {
    flex-direction: row;
  }

  .contact-card-links .btn {
    flex: 1;
  }

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

  .project-visual {
    border-bottom: none;
    border-right: 1px solid var(--border);
  }

  .project-content {
    padding: 2.5rem;
  }

  .project-detail-header,
  .project-detail-body {
    padding-inline: 2.5rem;
  }

  .project-detail-body {
    grid-template-columns: minmax(0, 1fr) 20rem;
  }
}

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

  .approach-section {
    grid-template-columns: 0.75fr 1.25fr;
  }

  .stack-header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }

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

  .footer-inner {
    grid-template-columns: 1fr auto 1fr;
    align-items: start;
  }

  .footer-nav {
    justify-content: center;
  }

  .footer-contact {
    align-items: flex-end;
    text-align: right;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .final-cta-card {
    grid-template-columns: 1fr auto;
  }
}

@media (max-width: 767px) {
  .main-nav {
    position: fixed;
    top: 4.5rem;
    left: 1rem;
    right: 1rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 1rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: rgba(10, 10, 10, 0.96);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-lg);
    transform: translateY(-1rem);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition), opacity var(--transition);
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    padding: 0.875rem 1rem;
    text-align: center;
  }

  .nav-cta {
    margin-left: 0;
  }

  .menu-toggle {
    display: flex;
  }
}

@media (max-width: 639px) {
  .container {
    padding-inline: 1rem;
  }

  .section {
    padding-block: 3.5rem;
  }

  .hero {
    padding-top: 5.5rem;
    padding-bottom: 3rem;
  }

  .hero-grid {
    gap: 2.5rem;
  }

  .hero-greeting {
    font-size: 1.125rem;
  }

  .hero-title {
    font-size: clamp(1.75rem, 8vw, 2.25rem);
  }

  .hero-summary {
    font-size: 1rem;
  }

  .service-card {
    padding: 1.25rem;
  }

  .service-card h3 {
    font-size: 1.25rem;
  }

  .service-summary {
    font-size: 0.9375rem;
  }

  .contact-card {
    padding: 1.5rem;
  }

  .final-cta-card {
    padding: 1.5rem;
  }

  .project-content {
    padding: 1.25rem;
  }

  .project-content h3 {
    font-size: 1.375rem;
  }

  .project-visual {
    min-height: 14rem;
  }

  .project-detail-header {
    padding: 1.5rem 1.25rem;
  }

  .project-detail-body {
    padding: 1.5rem 1.25rem;
  }

  .project-detail-body {
    gap: 1.5rem;
  }

  .detail-block h3 {
    font-size: 1.25rem;
  }

  .capability-card {
    padding: 1.25rem;
  }

  .about-stat dd {
    font-size: 1.25rem;
  }

  .panel-body {
    padding: 1.25rem;
  }

  .panel-name {
    font-size: 1.25rem;
  }

  .contact-card-header {
    gap: 0.75rem;
  }

  .services-hero,
  .about-hero,
  .contact-hero,
  .projects-hero {
    margin-bottom: 2.5rem;
  }

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

  .site-footer {
    padding-top: 2rem;
  }

  .footer-inner {
    gap: 1.5rem;
    padding-bottom: 1.5rem;
  }

  .approach-card {
    padding: 1.25rem;
  }

  .timeline-card {
    padding: 1.25rem;
  }

  .panel-stats {
    gap: 0.5rem;
  }

  .panel-stat {
    padding: 0.75rem;
  }

  .panel-stat dd {
    font-size: 1rem;
  }
}

@media (max-width: 374px) {
  .container {
    padding-inline: 0.75rem;
  }

  .hero-title {
    font-size: clamp(1.375rem, 7vw, 1.75rem);
  }

  .hero-summary {
    font-size: 0.9375rem;
  }

  .hero-meta {
    flex-direction: column;
    gap: 0.75rem;
  }

  .service-card {
    padding: 1rem;
  }

  .service-card h3 {
    font-size: 1.125rem;
  }

  .service-summary {
    font-size: 0.875rem;
  }

  .project-content {
    padding: 1rem;
  }

  .project-content h3 {
    font-size: 1.25rem;
  }

  .project-summary {
    font-size: 0.9375rem;
  }

  .project-visual {
    min-height: 12rem;
  }

  .contact-card {
    padding: 1.25rem;
  }

  .final-cta-card {
    padding: 1.25rem;
  }

  .contact-card-links .btn {
    font-size: 0.875rem;
    min-height: 3rem;
  }

  .capability-card {
    padding: 1rem;
  }

  .capability-card h3 {
    font-size: 1.125rem;
  }

  .about-stat dd {
    font-size: 1.125rem;
  }

  .panel-stats {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

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

  .panel-name {
    font-size: 1.125rem;
  }

  .panel-body {
    padding: 1rem;
  }

  .process-list li {
    grid-template-columns: 1.5rem 1fr;
  }

  .approach-card {
    padding: 1rem;
  }

  .timeline-card {
    padding: 1rem;
  }

  .footer-contact a {
    word-break: break-all;
  }

  .btn {
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    min-height: 2.75rem;
  }
}

/* === Utilities === */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Animaciones de scroll */
.reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 600ms ease-out, transform 600ms ease-out;
}

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