/* ============================================================
   SASHA'S WORKSHOP — Redesign 2025
   Design: Dark editorial / refined brutalist
   Fonts: Bebas Neue (display) + Montserrat (body) + Space Mono (mono)
   ============================================================ */

:root {
  --bg:       #0a0a0a;
  --surface:  #111111;
  --border:   #222222;
  --muted:    #555555;
  --text:     #e8e8e2;
  --text-dim: #888888;
  --accent:   #f28e26;
  --accent2:  #fd644f;
  --white:    #ffffff;

  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'Montserrat', sans-serif;
  --font-mono:    'Space Mono', monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.87, 0, 0.13, 1);

  --header-h: 70px;
  --grad: linear-gradient(135deg, var(--accent), var(--accent2));
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { background: none; border: none; cursor: none; }

/* ===== CUSTOM CURSOR ===== */
.cursor {
  position: fixed;
  width: 36px; height: 36px;
  border: 1.5px solid rgba(242, 142, 38, 0.6);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.25s var(--ease-out), height 0.25s var(--ease-out), border-color 0.25s;
  mix-blend-mode: difference;
}
.cursor-dot {
  position: fixed;
  width: 5px; height: 5px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
}
body:has(a:hover) .cursor,
body:has(button:hover) .cursor {
  width: 60px; height: 60px;
  border-color: var(--accent);
}
@media (max-width: 768px) {
  .cursor, .cursor-dot { display: none; }
  body { cursor: auto; }
  button { cursor: pointer; }
  a { cursor: pointer; }
}

/* ===== LOADER ===== */
#loader {
  position: fixed; inset: 0;
  background: #000;
  display: flex; align-items: center; justify-content: center;
  z-index: 9990;
  transition: opacity 0.8s var(--ease-out);
}
#loader.hidden { opacity: 0; pointer-events: none; }
.loader-inner {
  display: flex; flex-direction: column; align-items: center; gap: 20px;
}
.loader-logo {
  width: 60px; height: auto;
  animation: pulse 2s ease-in-out infinite;
}
.loader-bar-wrap {
  width: 200px; height: 2px;
  background: #222; border-radius: 2px; overflow: hidden;
}
.loader-bar {
  height: 100%;
  background: var(--grad);
  width: 0%;
  transition: width 0.05s linear;
}
.loader-pct {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.1em;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.95); }
}

/* ===== HEADER ===== */
#header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px;
  z-index: 100;
  background: transparent;
  transition: background 0.4s, border-bottom 0.4s;
}
#header.scrolled {
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.logo-wrap {
  position: relative; width: 48px; height: 48px;
}
.logo-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  transition: opacity 0.4s;
}
.logo-dark { opacity: 1; }
.logo-light { opacity: 0; }
.logo-wrap:hover .logo-dark { opacity: 0; }
.logo-wrap:hover .logo-light { opacity: 1; }

.main-nav {
  display: flex; align-items: center; gap: 8px;
}
.nav-link {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 8px 14px;
  border-radius: 40px;
  transition: color 0.3s, background 0.3s;
}
.nav-link:hover, .nav-link.active { color: var(--white); }
.nav-cta {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text) !important;
}
.nav-cta:hover {
  background: var(--white);
  color: var(--bg) !important;
  border-color: var(--white);
}

/* Burger */
.burger {
  display: none;
  flex-direction: column; gap: 5px;
  padding: 10px; z-index: 101;
}
.burger span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s, width 0.3s;
  transform-origin: center;
}
.burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.open span:nth-child(2) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0;
  background: var(--bg);
  z-index: 99;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  transform: translateX(100%);
  transition: transform 0.5s var(--ease-out);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu nav { display: flex; flex-direction: column; gap: 0; text-align: center; }
.mob-link {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 10vw, 4rem);
  color: var(--muted);
  display: flex; align-items: center; gap: 16px;
  padding: 8px 24px;
  transition: color 0.3s;
}
.mob-link::before {
  content: attr(data-n);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
}
.mob-link:hover { color: var(--white); }
.mob-footer { position: absolute; bottom: 40px; font-size: 0.75rem; color: var(--muted); }

@media (max-width: 768px) {
  #header { padding: 0 20px; }
  .main-nav { display: none; }
  .burger { display: flex; }
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal-up {
  opacity: 0;
  transform: translateY(30px);
  animation: revealUp 0.8s var(--ease-out) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes revealUp {
  to { opacity: 1; transform: translateY(0); }
}

.reveal-img {
  opacity: 0; transform: scale(1.04);
  transition: opacity 1.2s var(--ease-out), transform 1.2s var(--ease-out);
}
.reveal-img.in-view { opacity: 1; transform: scale(1); }

/* ===== SHARED TYPOGRAPHY ===== */
.section-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
  color: var(--white);
  margin-bottom: 1.2rem;
}
.section-title em {
  font-style: italic;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 28px;
  background: var(--white);
  color: var(--bg);
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}
.btn-primary:hover {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(242, 142, 38, 0.25);
}
.btn-primary svg { flex-shrink: 0; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  height: 48px; padding: 0 28px;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  transition: border-color 0.3s, color 0.3s;
}
.btn-ghost:hover { border-color: var(--white); color: var(--white); }

.btn-text-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  transition: gap 0.3s;
}
.btn-text-link:hover { gap: 14px; }

/* ===== NOISE + GRID OVERLAY ===== */
.noise {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.4;
  pointer-events: none;
}
.grid-overlay {
  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 ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: flex-end;
  padding: 0 60px calc(80px + var(--header-h));
  overflow: hidden;
  background: var(--bg);
}
.hero-bg { position: absolute; inset: 0; }

/* Gradient blob */
.hero-bg::after {
  content: '';
  position: absolute;
  width: 60vw; height: 60vw;
  max-width: 800px; max-height: 800px;
  top: -10%; right: -15%;
  background: radial-gradient(circle, rgba(242,142,38,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative; z-index: 2;
  max-width: 900px;
}

.hero-tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}
.tag-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: blink 1.2s ease-in-out infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(5rem, 14vw, 12rem);
  line-height: 0.9;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
  display: block;
}
.title-line { display: block; color: var(--white); }
.title-accent {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  display: flex; align-items: center; gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.hero-name {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
}
.typewriter-wrap {
  display: flex; align-items: center;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
}
.typewriter-cursor {
  animation: blink 0.7s step-start infinite;
}

.hero-actions {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.hero-quote {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--muted);
  font-family: var(--font-mono);
  border-left: 2px solid var(--accent);
  padding-left: 16px;
  max-width: 400px;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 40px; left: 60px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  z-index: 2;
}
.scroll-line {
  width: 1px; height: 60px;
  background: var(--border);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { height: 60px; }
  50% { height: 40px; opacity: 0.4; }
}
.hero-scroll-hint span {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  writing-mode: vertical-rl;
}

.hero-counter {
  position: absolute;
  bottom: 40px; right: 60px;
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  z-index: 2;
}
.divider-v { width: 1px; height: 20px; background: var(--border); }

@media (max-width: 768px) {
  .hero { padding: 0 24px calc(60px + var(--header-h)); }
  .hero-scroll-hint { left: 24px; bottom: 20px; }
  .hero-counter { right: 24px; bottom: 20px; }
}

/* ===== FEATURED STRIP ===== */
.featured-strip {
  padding: 80px 0;
  overflow: hidden;
}
.strip-label {
  padding: 0 60px;
  margin-bottom: 28px;
}
.strip-label span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.strip-carousel {
  display: flex;
  gap: 16px;
  padding: 0 60px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.strip-carousel::-webkit-scrollbar { display: none; }

.strip-item {
  flex: 0 0 calc(40% - 8px);
  min-width: 300px;
  scroll-snap-align: start;
}
.strip-item:last-child { flex: 0 0 calc(20% - 8px); min-width: 200px; }

.strip-img-wrap {
  position: relative;
  aspect-ratio: 3/2;
  overflow: hidden;
  border-radius: 8px;
  background: var(--surface);
}
.strip-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(40%) brightness(0.7);
  transition: filter 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.strip-item:hover .strip-img-wrap img {
  filter: grayscale(0%) brightness(0.85);
  transform: scale(1.04);
}

.strip-overlay {
  position: absolute; inset: 0;
  padding: 24px;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
}
.strip-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.15em;
  margin-bottom: 4px;
}
.strip-title {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--white);
  line-height: 1;
}
.strip-cat {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  margin-top: 4px;
}

.strip-see-all {
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
}
.see-all-inner {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  color: var(--muted);
  transition: color 0.3s;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}
.strip-cta-item:hover .see-all-inner { color: var(--white); }
.strip-see-all img { display: none; }

@media (max-width: 768px) {
  .featured-strip { padding: 60px 0; }
  .strip-label, .strip-carousel { padding: 0 24px; }
  .strip-item { flex: 0 0 75%; }
  .strip-item:last-child { flex: 0 0 40%; min-width: 150px; }
}

/* ===== ABOUT SECTION (HOME) ===== */
.about-section {
  padding: 120px 60px;
  border-top: 1px solid var(--border);
}
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.about-visual { position: relative; }
.about-img-frame {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}
.about-img {
  width: 100%; height: 560px;
  object-fit: cover;
}
.about-img-deco {
  position: absolute;
  bottom: -20px; right: -20px;
  width: 80px; height: 80px;
  border: 1px solid var(--accent);
  border-radius: 2px;
  z-index: -1;
}

.about-stat-card {
  position: absolute;
  bottom: 30px; left: -30px;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 16px 20px;
  border-radius: 6px;
  backdrop-filter: blur(10px);
}
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.4rem;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.stat-label {
  font-size: 0.72rem;
  color: var(--muted);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.about-text-col { display: flex; flex-direction: column; }
.about-body {
  font-size: 0.97rem;
  color: var(--text-dim);
  line-height: 1.8;
  margin-bottom: 1rem;
  font-weight: 300;
}

.about-skills {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 0.5rem; margin-bottom: 1.5rem;
}
.skill-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 5px 12px;
  color: var(--muted);
  transition: border-color 0.3s, color 0.3s;
}
.skill-tag:hover { border-color: var(--accent); color: var(--accent); }

@media (max-width: 960px) {
  .about-inner { grid-template-columns: 1fr; gap: 48px; }
  .about-img { height: 420px; }
  .about-stat-card { left: 16px; bottom: 20px; }
}
@media (max-width: 768px) {
  .about-section { padding: 80px 24px; }
}

/* ===== PROCESS SECTION ===== */
.process-section {
  padding: 120px 60px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.process-inner { max-width: 1200px; margin: 0 auto; }
.process-header { margin-bottom: 60px; }
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.process-step {
  background: var(--surface);
  padding: 36px 28px;
  position: relative;
  transition: background 0.3s;
}
.process-step:hover { background: var(--bg); }
.step-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 16px;
}
.process-step h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--white);
  margin-bottom: 10px;
}
.process-step p {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.7;
  font-weight: 300;
}

@media (max-width: 960px) {
  .process-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .process-steps { grid-template-columns: 1fr; }
  .process-section { padding: 80px 24px; }
}

/* ===== CONTACT SECTION ===== */
.contact-section {
  padding: 120px 60px;
  border-top: 1px solid var(--border);
}
.contact-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: start;
}
.contact-left { }
.contact-desc {
  font-size: 0.95rem;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 2rem;
}
.contact-title { margin-bottom: 1rem; }

.contact-links { display: flex; flex-direction: column; gap: 2px; }
.contact-link-item {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 20px;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s;
}
.contact-link-item:hover {
  background: var(--surface);
  border-color: var(--border);
}
.cli-icon {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  flex-shrink: 0;
  color: var(--text-dim);
}
.contact-link-item:hover .cli-icon {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}
.cli-text {
  flex: 1; display: flex; flex-direction: column;
}
.cli-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}
.cli-value { font-size: 0.9rem; color: var(--text); }
.cli-arrow { color: var(--muted); opacity: 0; transition: opacity 0.3s, transform 0.3s; }
.contact-link-item:hover .cli-arrow { opacity: 1; transform: translateX(4px); }

.contact-location {
  display: flex; align-items: center; gap: 8px;
  padding: 18px 20px;
  font-size: 0.82rem;
  color: var(--muted);
}

@media (max-width: 960px) {
  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 768px) {
  .contact-section { padding: 80px 24px; }
}

/* ===== FOOTER ===== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 60px;
  background: var(--bg);
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1200px; margin: 0 auto;
  flex-wrap: wrap; gap: 16px;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.footer-copy { font-size: 0.75rem; color: var(--muted); }
.footer-links { display: flex; gap: 16px; }
.footer-links a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: var(--muted);
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--white); }

@media (max-width: 768px) {
  .site-footer { padding: 32px 24px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  padding: calc(var(--header-h) + 80px) 60px 80px;
  border-bottom: 1px solid var(--border);
}
.page-hero-inner { max-width: 800px; }
.page-title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 8rem);
  color: var(--white);
  line-height: 0.95;
  letter-spacing: 0.01em;
  margin-bottom: 16px;
}
.page-subtitle {
  font-size: 1rem;
  color: var(--text-dim);
  max-width: 500px;
  font-weight: 300;
}
@media (max-width: 768px) {
  .page-hero { padding: calc(var(--header-h) + 40px) 24px 48px; }
}

/* ===== PROJECTS SECTION (portfolio page) ===== */
.projects-section {
  padding: 60px 60px 120px;
}
.projects-grid {
  max-width: 1300px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.project-card {
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 0.4s, transform 0.4s var(--ease-out);
}
.project-card:hover {
  border-color: rgba(242,142,38,0.3);
  transform: translateY(-4px);
}
.project-card-inner {
  display: flex; flex-direction: column;
  height: 100%;
}

.project-featured { grid-column: 1 / -1; }
.project-featured .project-card-inner { flex-direction: row; }
.project-featured .project-img-wrap { flex: 1; }
.project-featured .project-card-info { flex: 0 0 40%; padding: 48px; justify-content: center; }

.project-img-wrap {
  position: relative; overflow: hidden;
  aspect-ratio: 16/9;
}

/* ✅ CORRECCIÓN: la imagen featured ahora usa aspect-ratio en lugar de min-height
   para que se comporte igual que las otras tarjetas y no se desborde */
.project-featured .project-img-wrap {
  aspect-ratio: 16/9;
  min-height: unset;
}

.project-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(30%) brightness(0.75);
  transition: filter 0.5s, transform 0.5s var(--ease-out);
}
.project-card:hover .project-img-wrap img {
  filter: grayscale(0%) brightness(0.85);
  transform: scale(1.04);
}
.project-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
}

.project-card-info {
  padding: 24px 28px;
  display: flex; flex-direction: column;
  gap: 10px;
}
.project-meta-top {
  display: flex; align-items: center; justify-content: space-between;
}
.project-num {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--accent);
}
.project-tag-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 4px 10px;
}
.soon-tag { color: var(--accent); border-color: rgba(242,142,38,0.3); }

.project-card-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  color: var(--white);
  line-height: 1;
  letter-spacing: 0.04em;
}
.project-card-desc {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.6;
  font-weight: 300;
}

.project-card-cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 8px;
  transition: gap 0.3s;
}
.project-card:hover .project-card-cta { gap: 14px; }

.cta-soon { color: var(--muted); }
.soon-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: blink 1.4s ease-in-out infinite;
}

.project-soon {
  opacity: 0.6;
  filter: grayscale(30%);
  cursor: default;
}
.project-soon:hover { transform: none; border-color: var(--border); }

@media (max-width: 960px) {
  .project-featured .project-card-inner { flex-direction: column; }
  .project-featured .project-card-info { padding: 24px 28px; }
  .project-featured .project-img-wrap { aspect-ratio: 16/9; }
}
@media (max-width: 768px) {
  .projects-section { padding: 40px 24px 80px; }
  .projects-grid { grid-template-columns: 1fr; }
  .project-featured { grid-column: auto; }
}

/* ===== ABOUT FULL (about page) ===== */
.about-full {
  padding: 80px 60px 120px;
}
.about-full-inner {
  max-width: 1300px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: start;
}
.about-text-wide { }
.about-visual-col { position: relative; }
.about-aside-stats {
  margin-top: 32px;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
.aside-stat {
  background: var(--surface);
  padding: 20px 18px;
  display: flex; flex-direction: column; gap: 4px;
}
.aside-stat:last-child { grid-column: 1 / -1; }

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

@media (max-width: 960px) {
  .about-full-inner { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 768px) {
  .about-full { padding: 60px 24px 80px; }
}

/* ===== ABOUT IMG2 SECTION ===== */
.about-img2-section {
  padding: 0 60px 120px;
}
.about-img2-inner {
  max-width: 1300px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr;
  gap: 40px; align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 60px;
}
.img2-frame .about-img { height: 500px; }
.about-img2-caption {
  padding: 20px;
}
.about-img2-caption p {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.8;
  color: var(--muted);
  font-style: italic;
}

@media (max-width: 960px) {
  .about-img2-inner { grid-template-columns: 1fr; }
  .img2-frame .about-img { height: 360px; }
}
@media (max-width: 768px) {
  .about-img2-section { padding: 0 24px 80px; }
}

/* ===== PROJECT PAGES (existing - improved) ===== */
.project-page {
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  padding-top: var(--header-h);
}

.project-hero {
  max-width: 1200px; margin: 0 auto;
  padding: 3rem 40px 4rem;
}
.project-hero-top {
  display: flex; align-items: center;
  justify-content: space-between; gap: 1rem;
  margin-bottom: 2rem;
}
.project-title-main {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  color: var(--white);
  letter-spacing: 0.08em;
}
.project-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
}
.project-hero-layout {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem;
  align-items: start;
}
.project-hero-text p {
  font-size: 0.96rem; line-height: 1.8; color: var(--text-dim); margin-bottom: 1rem;
}

.project-meta-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
  margin-top: 1.4rem;
}
.meta-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.1rem 1.2rem;
  transition: border-color 0.3s;
}
.meta-card:hover { border-color: rgba(242,142,38,0.4); }
.meta-card h3 {
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--accent); margin-bottom: 0.5rem;
  font-family: var(--font-mono);
}
.meta-card li { font-size: 0.88rem; color: var(--text-dim); margin-bottom: 0.2rem; list-style: none; }

.project-hero-media { display: flex; align-items: stretch; }
.project-media-card {
  width: 100%; border-radius: 12px; overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  transition: transform 0.35s var(--ease-out);
}
.project-media-card:hover { transform: translateY(-4px); }
.project-main-media { width: 100%; height: 100%; object-fit: cover; display: block; }

.project-section {
  max-width: 1200px; margin: 0 auto; padding: 3.5rem 40px;
  border-top: 1px solid var(--border);
}
.section-header { margin-bottom: 1.6rem; }
.section-header h2 {
  font-family: var(--font-display);
  font-size: 1.6rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--white);
}
.section-header p { font-size: 0.9rem; color: var(--text-dim); margin-top: 0.3rem; }

.section-content-two-cols {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem;
}
.section-text-block p { font-size: 0.95rem; color: var(--text-dim); line-height: 1.7; margin-bottom: 0.8rem; }
.section-text-block li { font-size: 0.92rem; color: var(--text-dim); margin-bottom: 0.4rem; }

.project-gallery-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
.gallery-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px; overflow: hidden;
  transition: transform 0.3s var(--ease-out), border-color 0.3s;
}
.gallery-item:hover { transform: translateY(-4px); border-color: rgba(242,142,38,0.3); }
.gallery-item img { width: 100%; height: 220px; object-fit: cover; transition: transform 0.4s; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item figcaption { padding: 0.8rem 1rem; font-size: 0.82rem; color: var(--text-dim); }

.project-cta-card {
  max-width: 800px; margin: 0 auto;
  text-align: center; padding: 3rem 2rem;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.project-cta-card h2 { font-family: var(--font-display); font-size: 2rem; margin-bottom: 0.7rem; }
.project-cta-card p { font-size: 0.95rem; color: var(--text-dim); margin-bottom: 1.5rem; }

.nav-arrow { background: transparent; border: none; color: var(--text-dim); padding: 8px; transition: color 0.3s; }
.nav-arrow:hover { color: var(--accent); }
.triangle-left { display: inline-block; width: 0; height: 0; border-top: 10px solid transparent; border-bottom: 10px solid transparent; border-right: 14px solid currentColor; }
.triangle-right { display: inline-block; width: 0; height: 0; border-top: 10px solid transparent; border-bottom: 10px solid transparent; border-left: 14px solid currentColor; }

.contact-button {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 32px;
  background: var(--white);
  color: var(--bg);
  border-radius: 100px;
  font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  transition: background 0.3s, transform 0.3s;
  border: none;
}
.contact-button:hover { background: var(--accent); color: var(--white); transform: translateY(-2px); }

/* award */
.award-item { display: grid; grid-template-columns: 70px 1fr; gap: 1.2rem; margin-top: 1.2rem; align-items: start; }
.award-icon { width: 70px; height: auto; object-fit: contain; }
.award-heading { font-weight: 700; font-size: 1.1rem; color: var(--white); margin-bottom: 0.3rem; }
.award-text p { font-size: 0.9rem; color: var(--text-dim); line-height: 1.5; }

.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.9); display: none; align-items: center; justify-content: center; z-index: 9999; }
.lightbox.active { display: flex; }
.lightbox-img, .lightbox-video { max-width: 90vw; max-height: 90vh; border-radius: 8px; }

.image-boxes { display: flex; gap: 8px; margin-bottom: 40px; }
.image-box { flex: 1; }
.image-box img { width: 100%; height: auto; }

/* Utility: spacer divs replaced */
.Principal { width: 100%; height: var(--header-h); }

@media (max-width: 1024px) {
  .project-hero-layout { grid-template-columns: 1fr; }
  .project-meta-grid { grid-template-columns: 1fr 1fr; }
  .project-gallery-grid { grid-template-columns: 1fr 1fr; }
  .section-content-two-cols { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .project-gallery-grid { grid-template-columns: 1fr; }
  .project-hero, .project-section { padding-inline: 24px; }
}

/* ===== SCROLL ANIMATIONS (Intersection Observer) ===== */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal-on-scroll.in-view { opacity: 1; transform: translateY(0); }