:root {
  --ink: #000000;
  --paper: #ffffff;
  --grey-hover: #777777;
  --grey-dark-hover: #333333;
  --grey-600: #555555;
  --grey-400: #888888;
  --grey-300: #e5e5e5;
  --grey-200: #eeeeee;
  --grey-100: #f7f7f7;
  --black-panel: #000000;

  /* Kinetic & Animation Tokens */
  --ease-kinetic: cubic-bezier(0.12, 0.9, 0.18, 1);
  --ease-reveal: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --duration-fast: 0.2s;
  --duration-normal: 0.35s;
  --duration-reveal: 0.8s;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  animation: pageFadeIn 0.4s ease-out;
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

h1,
h2,
.display {
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.95;
}

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

.wrap {
  margin: 0 auto;
  padding: 60px 48px;
}

/* ---------- HEADER ---------- */
header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 28px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  animation: headerSlideDown 0.75s var(--ease-reveal) forwards;
}

@keyframes headerSlideDown {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.logo {
  display: inline-flex;
  align-items: center;
  position: relative;
  z-index: 102;
  transition: opacity var(--duration-fast) ease, transform var(--duration-fast) var(--ease-reveal);
}

.logo img {
  display: block;
  height: 24px;
  width: auto;
}

.logo:hover {
  opacity: 0.75;
  transform: scale(0.98);
}

.main-nav {
  display: flex;
  gap: 36px;
}

.main-nav a {
  position: relative;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.85;
  padding-bottom: 4px;
  transition: opacity var(--duration-fast) ease, color var(--duration-fast) ease;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--ink);
  transition: width 0.3s var(--ease-reveal);
}

.main-nav a:hover,
.main-nav a:focus-visible {
  opacity: 1;
  color: var(--grey-hover);
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  width: 100%;
}

/* Mobile menu button (2 lines) */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 36px;
  height: 36px;
  position: relative;
  z-index: 102;
  justify-content: center;
  align-items: center;
  -webkit-tap-highlight-color: transparent;
}

.menu-toggle .line {
  display: block;
  position: absolute;
  width: 44px;
  height: 2px;
  background-color: var(--ink);
  border-radius: 2px;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.2s ease;
}

.menu-toggle .line:nth-child(1) {
  transform: translateY(-7px);
}

.menu-toggle .line:nth-child(2) {
  transform: translateY(7px);
}

/* Two lines cross into X when active */
.menu-toggle.is-active .line:nth-child(1) {
  transform: translateY(0) rotate(45deg);
}

.menu-toggle.is-active .line:nth-child(2) {
  transform: translateY(0) rotate(-45deg);
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  overflow: hidden;
  background: var(--paper);
}

.hero-inner {
  padding: 0 48px 64px 48px;
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  position: relative;
  z-index: 3;
  min-height: 92vh;
}

.hero-title {
  grid-row: 2;
  align-self: center;
  font-size: clamp(44px, 5.5vw, 80px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--ink);
  max-width: 540px;
  animation: heroTitleReveal 0.9s var(--ease-reveal) 0.1s backwards;
}

.hero-title .dot {
  color: var(--ink);
  display: inline-block;
  animation: dotPop 0.6s var(--ease-spring) 0.5s backwards;
}

.hero-meta {
  grid-row: 3;
  align-self: end;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 40px;
  font-size: 16px;
  line-height: 1.5;
  max-width: 580px;
  animation: heroLeadReveal 0.9s var(--ease-reveal) 0.25s backwards;
}

.hero-meta p {
  color: var(--grey-600);
  font-weight: 500;
}

.hero-meta .services-mini {
  font-weight: 700;
  color: var(--ink);
}

.hero-meta .services-mini span {
  display: block;
  margin-bottom: 3px;
}

/* Right column effect & watermark */
.hero-visual {
  position: relative;
  height: 100%;
  overflow: hidden;
  opacity: 0;
  animation: heroVisualFadeIn 1.4s var(--ease-reveal) 0.15s forwards;
}

.hero-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: 800;
  font-size: clamp(90px, 12.5vw, 190px);
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.92);
  z-index: 1;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  text-shadow: 0 0 40px rgba(0, 0, 0, 0.06);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: url('../images/Effect.svg') no-repeat center right;
  background-size: cover;
  pointer-events: none;
}

@keyframes heroVisualFadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

/* ---------- GALLERY STRIP ---------- */
.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  height: min(44vw, 480px);
  min-height: 320px;
}

.gallery figure {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 24px 28px;
  background: var(--black-panel);
}

.gallery figcaption {
  font-weight: 600;
  font-size: 16px;
  color: #fff;
  position: relative;
  z-index: 3;
}

.gallery figure img,
.g-dental .g-img,
.g-font .g-coin-img,
.g-service .g-service-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  z-index: 1;
}

.g-dental {
  background: #111111;
}

.g-font {
  background: var(--black-panel);
}

.g-service {
  background: var(--black-panel);
  position: relative;
}

/* ---------- INTRO STATEMENT ---------- */
.statement-section {
  padding: 90px 48px 70px;
  display: grid;
  grid-template-columns: 1.05fr 1.95fr;
  gap: 32px;
}

.statement-text {
  text-indent: 16.25vw;
  grid-column: 2;
  font-size: clamp(22px, 2.3vw, 36px);
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}

/* ---------- SERVICIOS ---------- */
.servicios {
  padding: 70px 48px 90px;
}

.servicios h2 {
  font-size: clamp(40px, 4.8vw, 64px);
  font-weight: 800;
  margin-bottom: 52px;
  letter-spacing: -0.035em;
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 32px;
}

.servicios-grid ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.servicios-grid li {
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
  line-height: 1.4;
  letter-spacing: -0.02em;
}

/* ---------- IDEAS ---------- */
.ideas {
  padding: 40px 48px 100px;
}

.ideas h2 {
  font-size: clamp(40px, 4.8vw, 64px);
  font-weight: 800;
  margin-bottom: 48px;
  letter-spacing: -0.035em;
}

.idea-row {
  display: grid;
  grid-template-columns: 1fr 90px 130px;
  align-items: center;
  gap: 36px;
  padding: 28px 0;
  border-top: 1px solid var(--grey-300);
  transition: background-color .2s ease;
}

.idea-row:last-child {
  border-bottom: 1px solid var(--grey-300);
}

.idea-title {
  font-weight: 500;
  font-size: clamp(18px, 1.9vw, 25px);
  letter-spacing: -0.02em;
  color: var(--ink);
  transition: color .2s ease;
}

.idea-row:hover .idea-title {
  color: var(--grey-hover);
}

.idea-thumb {
  width: 76px;
  height: 76px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.idea-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.idea-meta {
  text-align: right;
  font-size: 11.5px;
  color: var(--grey-600);
  white-space: nowrap;
  line-height: 1.45;
}

.idea-meta .date {
  display: block;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
}

.idea-meta .read {
  display: block;
  color: var(--grey-600);
}

/* ---------- FOOTER ---------- */
footer {
  background: var(--black-panel);
  color: #fff;
  padding: 60px 48px 48px;
}

footer .foot-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

footer .logo {
  display: inline-flex;
  align-items: center;
  transition: opacity .2s ease;
}

footer .logo img {
  filter: invert(1);
}

footer .logo:hover {
  opacity: 0.7;
}

footer nav {
  gap: 28px;
  flex-wrap: wrap;
}

footer nav a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color .2s ease;
}

footer nav a:hover {
  color: #ffffff;
}

/* ---------- ACTIVE NAV STATE ---------- */
.main-nav a.active {
  color: var(--ink);
  opacity: 1;
}

.main-nav a.active::after {
  width: 100%;
}

footer nav a.active {
  color: #ffffff;
  opacity: 1;
  border-bottom: 1px solid #ffffff;
  padding-bottom: 2px;
}

/* ---------- SECONDARY PAGES HERO ---------- */
.page-hero {
  padding: 160px 48px 60px 48px;
  max-width: 1200px;
}

.page-hero-title {
  display: inline;
  font-size: clamp(38px, 4.8vw, 68px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin: 0 0.45em 0 0;
  animation: heroTitleReveal 0.85s var(--ease-reveal) 0.1s backwards;
}

.page-hero-title .dot {
  color: var(--ink);
  display: inline-block;
  animation: dotPop 0.6s var(--ease-spring) 0.45s backwards;
}

.page-hero-lead {
  display: inline;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.45;
  font-weight: 500;
  color: var(--ink);
  max-width: 820px;
  animation: heroLeadReveal 0.85s var(--ease-reveal) 0.22s backwards;
}

/* ---------- METRICS & STATS CROSS-GRID ---------- */
.stats-section {
  padding: 40px 48px 80px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 24px;
  border-top: 1px solid var(--grey-300);
  border-bottom: 1px solid var(--grey-300);
  padding: 48px 0;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat-number {
  font-size: clamp(36px, 4.2vw, 56px);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink);
  line-height: 1;
}

.stat-number .accent {
  color: var(--ink);
}

.stat-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--grey-600);
  line-height: 1.35;
}

/* ---------- MILESTONES & STORY SECTION ---------- */
.story-section {
  padding: 60px 48px 90px;
}

.story-section h2 {
  font-size: clamp(36px, 4.2vw, 56px);
  font-weight: 800;
  margin-bottom: 48px;
  letter-spacing: -0.035em;
}

.milestones-list {
  display: flex;
  flex-direction: column;
}

.milestone-row {
  display: grid;
  grid-template-columns: 140px 1.2fr 2fr;
  gap: 40px;
  padding: 36px 0;
  border-top: 1px solid var(--grey-300);
  align-items: flex-start;
}

.milestone-row:last-child {
  border-bottom: 1px solid var(--grey-300);
}

.milestone-tag {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey-600);
}

.milestone-name {
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.2;
}

.milestone-desc {
  font-size: 15px;
  line-height: 1.55;
  color: var(--grey-600);
  font-weight: 500;
}

/* ---------- PRINCIPLES & PHILOSOPHY (2-COLUMN) ---------- */
.philosophy-section {
  padding: 60px 48px 100px;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px 48px;
}

.philosophy-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.philosophy-card h3 {
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.philosophy-card p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--grey-600);
}

/* ---------- PROFILE & APPROACH SECTION (SOBRE MÍ) ---------- */
.profile-approach-section {
  padding: 60px 48px 100px;
}

.profile-approach-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px 56px;
  align-items: start;
}

.approach-col h2 {
  font-size: clamp(32px, 3.6vw, 48px);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin-bottom: 28px;
  line-height: 1.15;
}

.approach-text {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--grey-600);
  margin-bottom: 20px;
  font-weight: 450;
}

.work-principles-list {
  display: flex;
  flex-direction: column;
}

.principle-item {
  padding: 24px 0;
  border-top: 1px solid var(--grey-300);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.principle-item:last-child {
  border-bottom: 1px solid var(--grey-300);
}

.principle-item h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.015em;
}

.principle-item p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--grey-600);
  font-weight: 450;
}

/* ---------- TECH STACK SECTION (SOBRE MÍ) ---------- */
.tech-stack-section {
  padding: 80px 48px 100px;
  border-top: 1px solid var(--grey-300);
}

.tech-stack-section h2 {
  font-size: clamp(32px, 3.6vw, 48px);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin-bottom: 14px;
}

.tech-stack-lead {
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--grey-600);
  max-width: 720px;
  margin-bottom: 48px;
  font-weight: 450;
}

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

.tech-card {
  background: var(--grey-100, #f7f7f8);
  border: 1px solid var(--grey-300);
  border-radius: 12px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tech-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

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

/* ---------- TECH STACK PILLS ---------- */
.stack-section {
  padding: 70px 48px 90px;
}

.stack-section h2 {
  font-size: clamp(36px, 4.2vw, 56px);
  font-weight: 800;
  margin-bottom: 36px;
  letter-spacing: -0.035em;
}

.stack-group {
  margin-bottom: 36px;
}

.stack-group-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey-600);
  margin-bottom: 16px;
}

.pills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tech-pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  background: #ffffff;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.tech-pill:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: #ffffff;
}

/* ---------- QUICK CTA BLOCK ---------- */
.cta-banner {
  padding: 80px 48px 100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  border-top: 1px solid var(--grey-300);
}

.cta-banner-text h2 {
  font-size: clamp(32px, 3.8vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.cta-banner-text p {
  font-size: 16px;
  color: var(--grey-600);
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 9999px;
  background: var(--ink);
  color: #ffffff;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  transition: background-color 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.btn-pill:hover {
  background: var(--grey-dark-hover);
  color: #ffffff;
  transform: translateY(-2px);
}

/* ---------- SERVICES ACCORDION DROPDOWN LIST ---------- */
.services-accordion-section {
  padding: 20px 48px 100px;
}

.services-accordion-list {
  display: flex;
  flex-direction: column;
}

.service-accordion-item {
  border-top: 1px solid var(--grey-300);
  transition: background-color 0.2s ease;
}

.service-accordion-item:last-child {
  border-bottom: 1px solid var(--grey-300);
}

.service-accordion-header {
  display: grid;
  grid-template-columns: 80px 1fr 40px;
  align-items: center;
  padding: 32px 0;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.service-accordion-header::-webkit-details-marker {
  display: none;
}

.service-accordion-header::marker {
  display: none;
}

.service-acc-num {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--grey-400);
}

.service-acc-title {
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
  line-height: 1.2;
  transition: color 0.2s ease;
}

.service-accordion-header:hover .service-acc-title {
  color: var(--grey-hover);
}

.service-acc-icon {
  font-size: 28px;
  font-weight: 300;
  color: var(--ink);
  text-align: right;
  line-height: 1;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

.service-accordion-item[open] .service-acc-icon {
  transform: rotate(45deg);
}

.service-accordion-body {
  padding: 0 0 36px 80px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: accordionFadeIn 0.3s ease-out;
}

@keyframes accordionFadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.service-acc-desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--grey-600);
  max-width: 820px;
}

.service-acc-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--grey-300);
  max-width: 820px;
}

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

.service-acc-tags span {
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 12px;
  background: var(--grey-100);
  border-radius: 4px;
  color: var(--grey-600);
}

.service-acc-link {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.service-acc-link:hover {
  color: var(--grey-hover);
  transform: translateX(4px);
}

/* ---------- PROCESS SECTION ---------- */
.process-section {
  padding: 80px 48px 100px;
}

.process-section h2 {
  font-size: clamp(36px, 4.2vw, 56px);
  font-weight: 800;
  margin-bottom: 56px;
  letter-spacing: -0.035em;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px 28px;
}

.process-step {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-top: 1px solid var(--grey-300);
  padding-top: 24px;
}

.step-num {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--ink);
}

.step-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.25;
}

.step-desc {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--grey-600);
}

/* ---------- PROJECTS PORTFOLIO SECTION ---------- */
.projects-section {
  padding: 20px 48px 100px;
}

.filters-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 36px;
  margin-bottom: 56px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--grey-300);
}

.filter-pill-btn {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0 0 4px 0;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.75;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: opacity 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.filter-pill-btn:hover,
.filter-pill-btn:focus-visible {
  opacity: 1;
  color: var(--grey-hover);
}

.filter-pill-btn.active {
  background: transparent;
  opacity: 1;
  color: var(--ink);
  border-bottom: 2px solid var(--ink);
}

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

.project-card {
  display: flex;
  flex-direction: column;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.project-card.is-hidden {
  display: none;
}

.project-media-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 340px;
  background: var(--black-panel);
  overflow: hidden;
}

.project-media-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-media-wrap img {
  transform: scale(1.03);
}

.project-overlay-badges {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 4;
  pointer-events: none;
}

.project-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: #ffffff;
  color: var(--ink);
}

.project-badge.accent {
  background: var(--ink);
  color: #ffffff;
}

.project-info-block {
  padding: 20px 0 8px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--grey-300);
}

.project-title {
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
  line-height: 1.2;
  transition: color 0.2s ease;
}

.project-card:hover .project-title {
  color: var(--grey-hover);
}

.project-desc {
  font-size: 15px;
  line-height: 1.5;
  color: var(--grey-600);
}

.project-metrics-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  padding-top: 6px;
}

.project-metric-tag {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.project-metric-tag::before {
  content: "↗";
  font-size: 14px;
  color: var(--grey-hover);
}

.project-tech-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 4px;
}

.project-tech-item {
  font-size: 12px;
  font-weight: 600;
  color: var(--grey-600);
  background: var(--grey-100);
  padding: 4px 10px;
  border-radius: 4px;
}

/* ---------- DIRECT CONTACT SECTION (NO FORMS) ---------- */
.contact-direct-section {
  padding: 10px 48px 100px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink);
  position: relative;
}

.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  animation: pulseAnim 2s infinite;
}

@keyframes pulseAnim {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.8);
    opacity: 0.2;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.contact-channels-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-bottom: 80px;
}

.channel-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px 40px;
  background: #ffffff;
  border-radius: 0;
  gap: 32px;
  transition: border-color 0.2s ease;
}

.channel-card:hover {
  border-color: var(--ink);
}


.channel-type {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey-600);
}

.channel-badge {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  background: var(--grey-100);
  border-radius: 4px;
  color: var(--grey-600);
}

.channel-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.channel-value {
  font-size: clamp(24px, 2.6vw, 36px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.1;
  word-break: break-word;
}

.channel-desc {
  text-indent: 16.25vw;
  font-size: 15px;
  line-height: 1.5;
}

.channel-btn-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 28px;
  border-radius: 9999px;
  background: var(--ink);
  color: #ffffff;
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: 0.02em;
  transition: background-color 0.2s ease, transform 0.2s ease;
  width: fit-content;
}

.channel-btn-action:hover {
  background: var(--grey-dark-hover);
  color: #ffffff;
  transform: translateY(-2px);
}

.channel-btn-action.outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}

.channel-btn-action.outline:hover {
  background: var(--ink);
  color: #ffffff;
}

/* Commitments direct banner */
.commitments-section {
  padding: 70px 48px 90px;
}

.commitments-section h2 {
  font-size: clamp(32px, 3.8vw, 48px);
  font-weight: 800;
  margin-bottom: 48px;
  letter-spacing: -0.03em;
}

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

.commitment-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid var(--grey-300);
  padding-top: 24px;
}

.commitment-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
}

.commitment-desc {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--grey-600);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 960px) {
  header {
    padding: 20px 24px;
  }

  .menu-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: var(--paper);
    z-index: 101;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 32px;
    gap: 28px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s ease;
  }

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

  .main-nav a {
    font-size: clamp(32px, 8vw, 44px);
    font-weight: 700;
    letter-spacing: -0.03em;
    text-transform: none;
    color: var(--ink);
    opacity: 1;
    transition: color 0.2s ease, transform 0.2s ease;
  }

  .main-nav a:hover,
  .main-nav a:focus-visible {
    color: var(--grey-hover);
    transform: translateX(10px);
  }

  .hero {
    display: block;
    height: auto;
    min-height: auto;
    max-height: none;
    position: relative;
    overflow: hidden;
  }

  .hero-inner {
    height: auto;
    min-height: auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 125px 24px 48px 24px;
    box-sizing: border-box;
    gap: 40px;
  }

  .hero-title {
    margin: 0;
    max-width: 100%;
    width: 100%;
    font-size: clamp(38px, 10.5vw, 56px);
    line-height: 1.02;
    letter-spacing: -0.035em;
  }

  .hero-meta {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 100%;
    width: 100%;
    font-size: 15px;
    line-height: 1.45;
  }

  .hero-meta p {
    max-width: 100%;
  }

  .hero-meta .services-mini {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
  }

  .hero-meta .services-mini span {
    display: inline-block;
    margin-bottom: 0;
  }

  .hero-visual {
    display: none;
  }

  .gallery {
    grid-template-columns: 1fr;
    height: auto;
  }

  .gallery figure {
    height: 280px;
  }

  .statement-section {
    grid-template-columns: 1fr;
    padding: 60px 24px 40px;
  }

  .statement-text {
    grid-column: 1;
  }

  .servicios {
    padding: 50px 24px 70px;
  }

  .servicios-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px 28px;
  }

  .servicios-grid ul {
    gap: 16px;
  }

  .servicios-grid li {
    font-size: 16px;
  }

  .ideas {
    padding: 30px 24px 60px;
  }

  .idea-row {
    grid-template-columns: 1fr auto;
    gap: 18px;
  }

  .idea-thumb {
    display: none;
  }

  .page-hero {
    padding: 120px 24px 40px;
  }

  .stats-section {
    padding: 30px 24px 50px;
  }

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

  .story-section {
    padding: 50px 24px 70px;
  }

  .milestone-row {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 28px 0;
  }

  .philosophy-section {
    padding: 50px 24px 70px;
  }

  .philosophy-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .profile-approach-section {
    padding: 50px 24px 70px;
  }

  .profile-approach-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .tech-stack-section {
    padding: 50px 24px 70px;
  }

  .tech-category-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .stack-section {
    padding: 50px 24px 70px;
  }

  .cta-banner {
    padding: 60px 24px 80px;
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }

  .services-accordion-section {
    padding: 10px 24px 70px;
  }

  .service-accordion-header {
    grid-template-columns: 48px 1fr 32px;
    padding: 24px 0;
  }

  .service-acc-title {
    font-size: 19px;
  }

  .service-acc-icon {
    font-size: 24px;
  }

  .service-accordion-body {
    padding: 0 0 28px 48px;
    gap: 18px;
  }

  .process-section {
    padding: 50px 24px 70px;
  }

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

  .projects-section {
    padding: 10px 24px 70px;
  }

  .filters-bar {
    gap: 16px 24px;
    margin-bottom: 40px;
    padding-bottom: 20px;
  }

  .filter-pill-btn {
    font-size: 13px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .project-media-wrap {
    min-height: unset;
    aspect-ratio: 16 / 9.5;
    max-height: 220px;
  }

  .contact-direct-section {
    padding: 10px 24px 70px;
  }

  .contact-channels-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 50px;
  }

  .channel-card {
    padding: 36px 24px;
    gap: 24px;
  }

  .commitments-section {
    padding: 50px 24px 70px;
  }

  .commitments-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  footer {
    padding: 40px 24px 32px;
  }

  footer .foot-bottom {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 600px) {
  .process-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .servicios-grid {
    gap: 32px 20px;
  }

  .servicios-grid li {
    font-size: 15px;
  }
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* ==========================================================================
   CSS ANIMATION & KINETIC CHOREOGRAPHY SYSTEM
   ========================================================================== */

/* ---------- 1. HERO KEYFRAME REVEALS ---------- */
@keyframes heroTitleReveal {
  0% {
    opacity: 0;
    transform: translateY(28px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroLeadReveal {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes dotPop {
  0% {
    opacity: 0;
    transform: scale(0);
  }

  65% {
    transform: scale(1.35);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* ---------- 2. PROGRESSIVE SCROLL REVEAL SYSTEM ---------- */
.reveal-ready {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.75s var(--ease-reveal), transform 0.75s var(--ease-reveal);
  will-change: opacity, transform;
}

.reveal-ready.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Grids Stagger Delays */
.stats-grid .stat-item:nth-child(1) {
  transition-delay: 0.04s;
}

.stats-grid .stat-item:nth-child(2) {
  transition-delay: 0.12s;
}

.stats-grid .stat-item:nth-child(3) {
  transition-delay: 0.20s;
}

.stats-grid .stat-item:nth-child(4) {
  transition-delay: 0.28s;
}

.process-grid .process-step:nth-child(1) {
  transition-delay: 0.04s;
}

.process-grid .process-step:nth-child(2) {
  transition-delay: 0.12s;
}

.process-grid .process-step:nth-child(3) {
  transition-delay: 0.20s;
}

.process-grid .process-step:nth-child(4) {
  transition-delay: 0.28s;
}

.projects-grid .project-card:nth-child(odd) {
  transition-delay: 0.04s;
}

.projects-grid .project-card:nth-child(even) {
  transition-delay: 0.14s;
}

.contact-channels-grid .channel-card:nth-child(1) {
  transition-delay: 0.04s;
}

.contact-channels-grid .channel-card:nth-child(2) {
  transition-delay: 0.12s;
}

.contact-channels-grid .channel-card:nth-child(3) {
  transition-delay: 0.20s;
}

.commitments-grid .commitment-item:nth-child(1) {
  transition-delay: 0.04s;
}

.commitments-grid .commitment-item:nth-child(2) {
  transition-delay: 0.12s;
}

.commitments-grid .commitment-item:nth-child(3) {
  transition-delay: 0.20s;
}

.servicios-grid ul:nth-child(1) {
  transition-delay: 0.04s;
}

.servicios-grid ul:nth-child(2) {
  transition-delay: 0.12s;
}

.servicios-grid ul:nth-child(3) {
  transition-delay: 0.20s;
}

.servicios-grid ul:nth-child(4) {
  transition-delay: 0.28s;
}

.tech-category-grid .tech-card:nth-child(1) {
  transition-delay: 0.04s;
}

.tech-category-grid .tech-card:nth-child(2) {
  transition-delay: 0.12s;
}

.tech-category-grid .tech-card:nth-child(3) {
  transition-delay: 0.20s;
}

.milestones-list .milestone-row:nth-child(1) {
  transition-delay: 0.04s;
}

.milestones-list .milestone-row:nth-child(2) {
  transition-delay: 0.12s;
}

.milestones-list .milestone-row:nth-child(3) {
  transition-delay: 0.20s;
}

.gallery figure:nth-child(1) {
  transition-delay: 0.04s;
}

.gallery figure:nth-child(2) {
  transition-delay: 0.12s;
}

.gallery figure:nth-child(3) {
  transition-delay: 0.20s;
}

/* ---------- 3. MICRO-INTERACTIONS & HOVER DYNAMICS ---------- */

/* Buttons & CTA Links */
.btn-pill,
.channel-btn-action {
  transition: background-color var(--duration-fast) ease, color var(--duration-fast) ease, transform var(--duration-normal) var(--ease-reveal), box-shadow var(--duration-fast) ease;
}

.btn-pill:hover,
.channel-btn-action:hover {
  transform: translateY(-2px);
}

.btn-pill:active,
.channel-btn-action:active {
  transform: translateY(0) scale(0.98);
}

/* Project Cards Hover */
.project-card {
  transition: transform 0.4s var(--ease-reveal);
}

.project-card:hover {
  transform: translateY(-4px);
}

.project-media-wrap img {
  transition: transform 0.8s var(--ease-reveal);
}

.project-card:hover .project-media-wrap img {
  transform: scale(1.045);
}

.project-badge {
  transition: transform 0.3s ease;
}

.project-card:hover .project-badge {
  transform: translateY(-2px);
}

.project-metric-tag::before {
  content: "↗";
  font-size: 14px;
  color: var(--grey-hover);
  display: inline-block;
  transition: transform 0.25s ease, color 0.25s ease;
}

.project-card:hover .project-metric-tag::before {
  transform: translate(2px, -2px);
  color: var(--ink);
}

/* Gallery Figures Hover */
.gallery figure {
  transition: transform 0.4s var(--ease-reveal);
}

.gallery figure img {
  transition: transform 0.8s var(--ease-reveal);
}

.gallery figure:hover img {
  transform: scale(1.05);
}

.gallery figcaption {
  transition: transform 0.3s ease;
}

.gallery figure:hover figcaption {
  transform: translateY(-2px);
}

/* Ideas Rows Hover */
.idea-row {
  transition: background-color var(--duration-fast) ease, padding-left var(--duration-normal) var(--ease-reveal);
}

.idea-row:hover {
  background-color: rgba(0, 0, 0, 0.015);
  padding-left: 10px;
}

.idea-thumb img {
  transition: transform 0.4s var(--ease-reveal);
}

.idea-row:hover .idea-thumb img {
  transform: scale(1.08);
}

/* Service Accordions */
.service-accordion-item {
  transition: background-color var(--duration-fast) ease;
}

.service-accordion-item:hover {
  background-color: rgba(0, 0, 0, 0.012);
}

.service-acc-icon {
  transition: transform 0.35s var(--ease-reveal);
}

/* Tech Category Cards & Pills */
.tech-card {
  transition: transform 0.35s var(--ease-reveal), border-color 0.3s ease;
}

.tech-card:hover {
  transform: translateY(-4px);
  border-color: var(--grey-400);
}

.tech-pill {
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.tech-pill:hover {
  transform: translateY(-2px);
}

/* Channel Cards */
.channel-card {
  transition: transform 0.35s var(--ease-reveal), border-color 0.3s ease;
}

.channel-card:hover {
  transform: translateY(-4px);
}

/* Process Step Hover */
.process-step {
  transition: transform 0.3s var(--ease-reveal);
}

.process-step:hover {
  transform: translateY(-3px);
}

/* Stats Hover Accentuation */
.stat-item {
  transition: transform 0.3s var(--ease-reveal);
}

.stat-item:hover {
  transform: translateY(-2px);
}

/* Direct pulse animation */
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink);
  position: relative;
  display: inline-block;
}

.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  opacity: 0.7;
  animation: pulseRing 2.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
}

@keyframes pulseRing {
  0% {
    transform: scale(0.8);
    opacity: 0.8;
  }

  70% {
    transform: scale(2.4);
    opacity: 0;
  }

  100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

/* ---------- 4. REDUCED MOTION PREFERENCE ---------- */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal-ready {
    opacity: 1 !important;
    transform: none !important;
  }
}