/* =========================================================
   GABRIELA REVATTA — PORTAFOLIO WEB
   Estilo: Minimalista / Behance / Bold Typography
   ========================================================= */

/* --- Variables & Reset --- */
:root {
  --clr-bg: #0a0a0a;
  --clr-bg2: #111111;
  --clr-bg3: #161616;
  --clr-surface: #1a1a1a;
  --clr-border: rgba(255,255,255,0.08);
  --clr-white: #ffffff;
  --clr-off-white: #f5f5f5;
  --clr-muted: #888888;
  --clr-accent: #F6C6D3;
  --clr-accent2: #F9DCE5;
  --clr-honda: #CC0000;
  --clr-mpf: #D98CA3;
  --font-sans: 'Inter', sans-serif;
  --font-display: 'Syne', sans-serif;
  --radius: 16px;
  --radius-sm: 8px;
  --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --shadow-card: 0 24px 64px rgba(0,0,0,0.6);
  --shadow-hover: 0 32px 80px rgba(0,0,0,0.8);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--clr-bg);
  color: var(--clr-white);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

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

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

::selection {
  background: var(--clr-accent);
  color: #000;
}

/* Scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--clr-bg); }
::-webkit-scrollbar-thumb { background: var(--clr-accent); border-radius: 2px; }

/* =========================================================
   CUSTOM CURSOR
   ========================================================= */
.custom-cursor {
  width: 12px; height: 12px;
  background: var(--clr-accent);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width .2s, height .2s, background .2s;
  mix-blend-mode: difference;
}

.custom-cursor-follower {
  width: 36px; height: 36px;
  border: 1.5px solid rgba(246,198,211,0.5);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: left .12s ease-out, top .12s ease-out;
}

body.cursor-hover .custom-cursor {
  width: 40px; height: 40px;
  background: rgba(246,198,211,0.2);
}

/* =========================================================
   LAYOUT UTILITIES
   ========================================================= */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}

@media(max-width:768px) { .container { padding: 0 20px; } }

/* =========================================================
   REVEAL ANIMATIONS
   ========================================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .7s ease, transform .7s ease;
  transition-delay: var(--delay, 0s);
}

[data-reveal="left"] { transform: translateX(-50px); }
[data-reveal="right"] { transform: translateX(50px); }
[data-reveal="up"] { transform: translateY(40px); }

[data-reveal].revealed {
  opacity: 1;
  transform: translate(0);
}

/* =========================================================
   NAVBAR
   ========================================================= */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--clr-border);
  padding: 14px 0;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--clr-white);
}

.nav-logo span { color: var(--clr-accent); }

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

.nav-links a {
  font-size: .85rem;
  font-weight: 500;
  color: var(--clr-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color .3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--clr-accent);
  transition: width .3s;
}

.nav-links a:hover { color: var(--clr-white); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  background: var(--clr-accent) !important;
  color: #000 !important;
  padding: 8px 20px !important;
  border-radius: 100px !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  transition: background .3s, transform .3s !important;
}

.nav-cta::after { display: none !important; }
.nav-cta:hover { transform: scale(1.05) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: none;
  padding: 4px;
}

.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--clr-white);
  border-radius: 2px;
  transition: var(--transition);
  display: block;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-bg-grid::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 50%, rgba(246,198,211,0.06) 0%, transparent 60%);
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
}

.hero-tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-accent);
  background: rgba(246,198,211,0.1);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
  border: 1px solid rgba(246,198,211,0.25);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 6vw, 6rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
}

.hero-title-accent {
  color: var(--clr-accent);
  display: block;
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--clr-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 28px;
}

.dot { color: var(--clr-accent); margin: 0 8px; }

.hero-phrase {
  font-size: 1.15rem;
  font-weight: 300;
  font-style: italic;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  border-left: 2px solid var(--clr-accent);
  padding-left: 16px;
  margin-bottom: 48px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--clr-accent);
  color: #000;
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: 0.03em;
  padding: 14px 32px;
  border-radius: 100px;
  transition: var(--transition);
}

.btn-primary:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(246,198,211,0.3);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--clr-white);
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: 0.03em;
  padding: 14px 32px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.2);
  transition: var(--transition);
}

.btn-outline:hover {
  border-color: var(--clr-accent);
  color: var(--clr-accent);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}

.stat { text-align: center; }
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--clr-white);
  letter-spacing: -0.03em;
}

.stat-label {
  display: block;
  font-size: .7rem;
  color: var(--clr-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 2px;
}

.stat-divider {
  width: 1px; height: 40px;
  background: var(--clr-border);
}

/* Hero Phone Mockup */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-phone-mockup {
  position: relative;
}

.phone-frame {
  width: 260px;
  background: linear-gradient(180deg, #6a6a74 0%, #4a4a54 45%, #35353f 100%);
  border-radius: 50px;
  padding: 14px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.28),
    inset 0 0 0 1px rgba(255,255,255,0.14),
    inset 0 1px 0 rgba(255,255,255,0.18),
    0 40px 120px rgba(0,0,0,0.78),
    0 0 80px rgba(246,198,211,0.12);
  position: relative;
  border: 1.5px solid rgba(255,255,255,0.24);
}

.phone-notch {
  width: 116px; height: 30px;
  background: #050505;
  border-radius: 999px;
  margin: 0 auto 12px;
  position: relative;
  z-index: 2;
}

.phone-screen {
  border-radius: 32px;
  overflow: hidden;
  aspect-ratio: 9/19;
  background: #000;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.phone-home-bar {
  width: 92px; height: 4px;
  background: rgba(255,255,255,0.38);
  border-radius: 999px;
  margin: 12px auto 0;
}

.hero-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 100px;
  padding: 8px 16px;
  font-size: .78rem;
  font-weight: 600;
  white-space: nowrap;
  animation: floatBadge 4s ease-in-out infinite;
}

.hero-badge i { color: var(--clr-accent); }

.badge-1 { top: 15%; right: -20%; animation-delay: 0s; }
.badge-2 { top: 50%; right: -25%; animation-delay: 1.5s; }
.badge-3 { bottom: 20%; right: -15%; animation-delay: 3s; }

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

.hero-scroll-hint {
  position: absolute;
  bottom: 40px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: .7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-muted);
  animation: fadeInUp 1s ease 1.5s both;
}

.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--clr-muted), transparent);
  animation: scrollPulse 2s ease infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* =========================================================
   ABOUT
   ========================================================= */
.about {
  padding: 120px 0;
  background: var(--clr-bg2);
  position: relative;
  overflow: hidden;
}

.about::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(ellipse, rgba(246,198,211,0.04) 0%, transparent 70%);
  pointer-events: none;
}

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

.section-label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: 20px;
  display: block;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 32px;
}

.section-title em {
  font-style: italic;
  color: var(--clr-accent);
}

.about-bio {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.85;
  margin-bottom: 20px;
}

.about-bio strong {
  color: var(--clr-white);
  font-weight: 600;
}

.about-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.tool-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--clr-white);
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  padding: 7px 14px;
  border-radius: 100px;
  transition: var(--transition);
}

.tool-tag i { color: var(--clr-accent); font-size: .7rem; }
.tool-tag:hover {
  background: rgba(246,198,211,0.1);
  border-color: rgba(246,198,211,0.3);
}

.about-right { position: relative; }

.about-img-wrapper {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3/4;
  box-shadow: var(--shadow-card);
}

.about-img-wrapper img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform .6s ease;
}

.about-img-wrapper:hover img { transform: scale(1.03); }

.about-img-overlay {
  position: absolute;
  bottom: 24px; left: 24px;
}

.about-pill {
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* =========================================================
   SERVICES
   ========================================================= */
.services {
  padding: 120px 0;
  background: var(--clr-bg);
}

.section-header {
  text-align: center;
  margin-bottom: 72px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--clr-muted);
  max-width: 560px;
  margin: 16px auto 0;
  line-height: 1.7;
}

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

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

.service-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 32px 24px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--clr-accent), transparent);
  transform: scaleX(0);
  transition: transform .4s ease;
  transform-origin: left;
}

.service-card:hover {
  background: var(--clr-bg3);
  border-color: rgba(246,198,211,0.2);
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(0,0,0,0.4);
}

.service-card:hover::before { transform: scaleX(1); }

.service-icon-wrap {
  width: 52px; height: 52px;
  background: rgba(246,198,211,0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.3rem;
  color: var(--clr-accent);
  transition: background .3s;
}

.service-card:hover .service-icon-wrap {
  background: rgba(246,198,211,0.2);
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
}

.service-card p {
  font-size: .85rem;
  color: var(--clr-muted);
  line-height: 1.7;
}

/* =========================================================
   PROJECT SECTIONS
   ========================================================= */
.project {
  padding-bottom: 120px;
}

.project-header-full {
  padding: 100px 0;
  margin-bottom: 80px;
  position: relative;
  overflow: hidden;
}

.honda-bg {
  background: linear-gradient(135deg, #1a0000 0%, #0a0a0a 50%, #1a0000 100%);
}

.honda-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(204,0,0,0.15) 0%, transparent 60%);
}

.mpf-bg {
  background: linear-gradient(135deg, #001a00 0%, #0a0a0a 50%, #001a0a 100%);
}

.mpf-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(217,140,163,0.15) 0%, transparent 60%);
}

.project-meta {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 20px;
}

.project-number {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-accent);
  background: rgba(246,198,211,0.1);
  border: 1px solid rgba(246,198,211,0.2);
  padding: 6px 14px;
  border-radius: 100px;
}

.project-category {
  font-size: .75rem;
  color: var(--clr-muted);
  letter-spacing: 0.05em;
}

.project-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin-bottom: 20px;
}

.project-tagline {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.55);
  max-width: 560px;
  line-height: 1.7;
}

.project-block {
  margin-bottom: 80px;
}

.block-header {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 48px;
}

.block-icon {
  width: 48px; height: 48px;
  min-width: 48px;
  background: rgba(246,198,211,0.1);
  border: 1px solid rgba(246,198,211,0.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--clr-accent);
  margin-top: 4px;
}

.block-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.block-desc {
  font-size: .95rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.8;
  max-width: 680px;
}

/* =========================================================
   PHONE VIDEO MOCKUP GALLERY
   ========================================================= */
.phone-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  justify-items: center;
}

.phone-video-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.phone-frame-video {
  width: 204px;
  background: linear-gradient(180deg, #6a6a74 0%, #4a4a54 45%, #35353f 100%);
  border-radius: 42px;
  padding: 13px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.28),
    inset 0 0 0 1px rgba(255,255,255,0.14),
    inset 0 1px 0 rgba(255,255,255,0.18),
    0 32px 80px rgba(0,0,0,0.72);
  border: 1.5px solid rgba(255,255,255,0.24);
  transition: transform .4s ease, box-shadow .4s ease;
}

.phone-frame-video:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 48px 100px rgba(0,0,0,0.8), 0 0 40px rgba(232,255,87,0.12);
}

.phone-frame-video .phone-screen {
  aspect-ratio: 9/16;
  border-radius: 28px;
  overflow: hidden;
}

.phone-frame-video .phone-screen video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-label {
  font-size: .82rem;
  color: rgba(255,255,255,0.72);
  text-align: center;
  letter-spacing: 0.04em;
}

/* =========================================================
   GRAPHICS GRID — HONDA
   ========================================================= */
.graphics-grid {
  display: grid;
  gap: 16px;
}

.honda-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: auto auto;
  align-items: start;
  gap: 18px;
}

.honda-grid .graphic-wide {
  grid-column: 1 / -1;
  grid-row: 1;
}

.honda-grid .graphic-lower {
  grid-row: 2;
  margin-top: 6px;
}

.honda-grid .graphic-lower:nth-child(2) {
  grid-column: 2;
}

.honda-grid .graphic-lower:nth-child(3) {
  grid-column: 3;
}

.graphic-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--clr-surface);
  cursor: none;
}

.graphic-item img, .graphic-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
  display: block;
}

.graphic-item:hover img,
.graphic-item:hover video {
  transform: scale(1.04);
}

.graphic-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
  padding: 24px 20px 16px;
  transform: translateY(100%);
  transition: transform .35s ease;
}

.graphic-item:hover .graphic-overlay {
  transform: translateY(0);
}

.graphic-overlay span {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--clr-white);
}

.graphic-wide {
  min-height: 100%;
}

/* =========================================================
   MPF VIDEO GRID
   ========================================================= */
.mpf-video-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  align-items: end;
}

/* Laptop Mockup */
.laptop-mockup-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.laptop-frame {
  width: 100%;
  max-width: 580px;
}

.laptop-lid {
  background: #1c1c1e;
  border-radius: 12px 12px 0 0;
  padding: 10px 10px 0;
  position: relative;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.1);
  border-bottom: none;
}

.laptop-bezel {
  background: #111;
  border-radius: 8px;
  padding: 8px;
  position: relative;
}

.laptop-cam {
  width: 6px; height: 6px;
  background: #333;
  border-radius: 50%;
  margin: 0 auto 8px;
}

.laptop-display {
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #000;
}

.laptop-display video,
.laptop-display img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.laptop-base {
  background: #222;
  border-radius: 0 0 8px 8px;
  padding: 8px 16px 12px;
  border: 1px solid rgba(255,255,255,0.08);
  border-top: none;
}

.laptop-keyboard {
  height: 32px;
  background: repeating-linear-gradient(
    90deg,
    #2a2a2a 0, #2a2a2a 6px,
    #1e1e1e 6px, #1e1e1e 8px
  );
  border-radius: 4px;
  margin-bottom: 6px;
}

.laptop-trackpad {
  width: 60px; height: 14px;
  background: #2a2a2a;
  border-radius: 4px;
  margin: 0 auto;
}

.laptop-hinge {
  height: 4px;
  background: #1a1a1a;
}

.mpf-vertical {
  align-self: end;
}

/* =========================================================
   SUB-BLOCKS (Photos / Composition)
   ========================================================= */
.sub-block {
  margin-bottom: 56px;
}

.sub-block-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: 28px;
  padding: 8px 18px;
  background: rgba(246,198,211,0.07);
  border: 1px solid rgba(246,198,211,0.15);
  border-radius: 100px;
}

/* Photo Masonry Grid */
.photo-masonry {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto;
  gap: 14px;
}

.photo-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--clr-surface);
  aspect-ratio: 1/1;
}

.photo-item.photo-tall {
  grid-row: span 1;
  aspect-ratio: 1/1;
}

.photo-item img, .photo-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.photo-item:hover img { transform: scale(1.05); }

/* Composition Grid */
.composition-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.comp-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--clr-surface);
  aspect-ratio: 1/1;
  cursor: none;
}

.comp-item img, .comp-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
  display: block;
}

.comp-item:hover img,
.comp-item:hover .comp-video {
  transform: scale(1.05);
}

/* =========================================================
   UX/UI SECTION
   ========================================================= */
.uxui {
  padding: 120px 0;
  background: var(--clr-bg2);
  position: relative;
}

.uxui::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--clr-accent), transparent);
  opacity: 0.3;
}

.case-study {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 80px 0;
}

.case-reverse {
  direction: rtl;
}

.case-reverse > * { direction: ltr; }

.case-visual {
  position: relative;
}

/* Full laptop mockup (UX/UI section) */
.laptop-mockup {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  filter: drop-shadow(0 32px 64px rgba(0,0,0,0.7));
  transition: filter .4s ease, transform .4s ease;
}

.laptop-mockup:hover {
  filter: drop-shadow(0 48px 80px rgba(0,0,0,0.8));
  transform: translateY(-8px);
}

.laptop-lid {
  background: #252525;
  border-radius: 16px 16px 0 0;
  padding: 12px 12px 0;
  border: 1px solid rgba(255,255,255,0.12);
  border-bottom: none;
}

.laptop-bezel {
  background: #0e0e0e;
  border-radius: 8px;
  padding: 10px 10px 6px;
}

.laptop-cam {
  width: 6px; height: 6px;
  background: #2a2a2a;
  border-radius: 50%;
  margin: 0 auto 8px;
}

.laptop-display {
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #000;
}

.laptop-display img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.laptop-mockup:hover .laptop-display img {
  transform: scale(1.03);
}

.laptop-body {
  background: #2a2a2a;
  border-radius: 0 0 12px 12px;
  padding: 10px 20px 14px;
  border: 1px solid rgba(255,255,255,0.08);
  border-top: 2px solid #1a1a1a;
}

.laptop-keyboard {
  height: 40px;
  background: repeating-linear-gradient(
    90deg,
    #333 0, #333 7px,
    #222 7px, #222 9px
  );
  border-radius: 4px;
  margin-bottom: 8px;
}

.laptop-trackpad {
  width: 80px; height: 18px;
  background: #333;
  border-radius: 6px;
  margin: 0 auto;
}

/* Case Content */
.case-number {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 900;
  color: rgba(255,255,255,0.04);
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: -20px;
}

.case-tag {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-accent);
  background: rgba(246,198,211,0.1);
  border: 1px solid rgba(246,198,211,0.2);
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.case-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 24px;
}

.case-desc {
  font-size: .95rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.85;
  margin-bottom: 28px;
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.case-tags span {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--clr-muted);
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  padding: 5px 12px;
  border-radius: 100px;
}

.case-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--clr-white);
  color: #000;
  font-weight: 700;
  font-size: .9rem;
  padding: 14px 28px;
  border-radius: 100px;
  transition: var(--transition);
  letter-spacing: 0.02em;
}

.case-btn i { font-size: .8rem; }

.case-btn:hover {
  background: var(--clr-accent);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(246,198,211,0.2);
}

.mpf-btn:hover {
  box-shadow: 0 16px 40px rgba(217,140,163,0.3);
}

.case-divider {
  height: 1px;
  background: var(--clr-border);
  margin: 0;
}

/* =========================================================
   CONTACT / FOOTER
   ========================================================= */
.contact {
  padding: 160px 0;
  position: relative;
  overflow: hidden;
  background: var(--clr-bg);
  text-align: center;
}

.contact::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 800px; height: 800px;
  background: radial-gradient(ellipse, rgba(232,255,87,0.05) 0%, transparent 65%);
  pointer-events: none;
}

.contact-inner { position: relative; }

.contact-label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: 24px;
  display: block;
}

.contact-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.95;
  margin-bottom: 24px;
}

.contact-title em {
  font-style: italic;
  color: var(--clr-accent);
}

.contact-desc {
  font-size: 1.05rem;
  color: var(--clr-muted);
  margin-bottom: 48px;
  max-width: 480px;
  margin-left: auto; margin-right: auto;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--clr-accent);
  color: #000;
  font-weight: 700;
  font-size: .95rem;
  padding: 16px 36px;
  border-radius: 100px;
  transition: var(--transition);
  letter-spacing: 0.02em;
}

.contact-btn:hover {
  background: #fff;
  transform: translateY(-3px);
  box-shadow: 0 20px 48px rgba(246,198,211,0.25);
}

.contact-btn-outline {
  background: transparent;
  color: var(--clr-white);
  border: 1px solid rgba(255,255,255,0.2);
}

.contact-btn-outline:hover {
  background: var(--clr-surface);
  border-color: rgba(255,255,255,0.4);
  box-shadow: none;
}

.footer {
  background: var(--clr-bg2);
  border-top: 1px solid var(--clr-border);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.footer-logo span { color: var(--clr-accent); }

.footer-copy {
  font-size: .78rem;
  color: var(--clr-muted);
}

.footer-social {
  display: flex;
  gap: 20px;
}

.footer-social a {
  color: var(--clr-muted);
  font-size: 1.1rem;
  transition: color .3s, transform .3s;
}

.footer-social a:hover {
  color: var(--clr-accent);
  transform: translateY(-2px);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media(max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  .hero-visual { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-actions { justify-content: center; }
  .hero-badge { display: none; }

  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-right { max-width: 400px; margin: 0 auto; }

  .honda-grid {
    grid-template-columns: 1fr 1fr;
  }
  .graphic-wide { grid-column: span 2; }

  .mpf-video-grid { grid-template-columns: 1fr; }
  .laptop-mockup-wrap { max-width: 460px; margin: 0 auto; }

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

  .case-study, .case-reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 40px;
  }

  .case-divider { margin: 0; }
}

@media(max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-inner { padding: 0 20px; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10,10,10,0.97);
    backdrop-filter: blur(20px);
    justify-content: center;
    align-items: center;
    gap: 40px;
    z-index: 999;
  }

  .nav-links.open a {
    font-size: 1.5rem;
    color: var(--clr-white);
  }

  .phone-gallery { grid-template-columns: 1fr; gap: 32px; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .photo-masonry { grid-template-columns: 1fr 1fr; }
  .composition-grid { grid-template-columns: 1fr 1fr; }
  .honda-grid { grid-template-columns: 1fr; }
  .graphic-wide { grid-column: auto; }

  body { cursor: auto; }
  .custom-cursor, .custom-cursor-follower { display: none; }

  .hero-container { padding: 0 20px; }
  .case-number { font-size: 3rem; }
}

@media(max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .photo-masonry { grid-template-columns: 1fr; }
  .composition-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .stat-divider { width: 40px; height: 1px; }
  .phone-gallery { grid-template-columns: 1fr; }
}

/* =========================================================
   EXTRA POLISH
   ========================================================= */

/* Ensure graphic items have proper height */
.honda-grid .graphic-item {
  min-height: 280px;
  aspect-ratio: auto;
}

.honda-grid .graphic-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 280px;
}

.honda-grid .graphic-wide {
  min-height: 420px;
  aspect-ratio: 16/7;
}

.honda-grid .graphic-wide img {
  height: 100%;
  min-height: 420px;
}

.honda-grid .graphic-lower {
  max-width: 360px;
  justify-self: center;
}

/* Photo masonry items */
.photo-masonry .photo-item {
  min-height: 220px;
}

.photo-masonry .photo-item.photo-tall {
  min-height: 460px;
}

/* Composition grid items */
.composition-grid .comp-item {
  min-height: 220px;
}

/* MPF Section BG */
.mpf-section {
  background: var(--clr-bg);
}

/* Smooth transition for all interactive elements */
.graphic-item, .comp-item, .photo-item {
  will-change: transform;
}

/* Project header container position */
.project-header-full .container { position: relative; z-index: 1; }

/* About section — ensure image covers */
.about-img-wrapper img {
  min-height: 500px;
}

/* Service card last item centered on odd grid */
@media(min-width:1100px) {
  .services-grid .service-card:last-child:nth-child(5n+1) {
    grid-column: 3;
  }
}

/* Active nav link */
.nav-links a.active-link {
  color: var(--clr-white) !important;
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 32px; right: 32px;
  z-index: 500;
  width: 48px; height: 48px;
  background: var(--clr-accent);
  color: #000;
  border: none;
  border-radius: 50%;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none;
  transition: var(--transition);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  box-shadow: 0 8px 24px rgba(246,198,211,0.3);
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  background: #fff;
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(246,198,211,0.4);
}

@media(max-width:768px) {
  .back-to-top { cursor: pointer; }
}

/* =========================================================
   LOADING
   ========================================================= */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--clr-bg);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  transition: opacity .6s ease, visibility .6s ease;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-name {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.loader-name span { color: var(--clr-accent); }

.loader-bar {
  width: 200px; height: 2px;
  background: rgba(255,255,255,0.1);
  border-radius: 1px;
  overflow: hidden;
}

.loader-progress {
  height: 100%;
  background: var(--clr-accent);
  border-radius: 1px;
  animation: loadProgress 1.5s ease forwards;
}

@keyframes loadProgress {
  from { width: 0; }
  to { width: 100%; }
}


/* Ajustes finos portfolio */
.phone-frame-video .phone-notch,
.phone-frame .phone-notch {
  box-shadow: 0 1px 0 rgba(255,255,255,0.04);
}

/* Ocultar descripción solo en bloque Honda de piezas gráficas cuando quede vacío */
.block-header .block-desc:empty {
  display: none;
}


/* MPF redesign screenshot */
.case-study.case-reverse .laptop-display img {
  object-fit: cover;
  object-position: center top;
}


.contact-links { flex-wrap: wrap; }
