:root {
  --black: #080808;
  --white: #f0ede6;
  --red: #c0392b;
  --red-dim: #7a2218;
  --gold: #b8963e;
  --grey: #2a2a2a;
  --mid: #555;
  --film: rgba(240,237,230,0.04);
}

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

html { scroll-behavior: smooth; }

/* Offset para nav fijo al hacer scroll por ancla */
#hero, #profile, #projects, #live-reel, #strengths, #contact {
  scroll-margin-top: 100px;
}

body {
  background: var(--black);
  color: var(--white);
  font-family: 'Barlow', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
  cursor: none;
}

/* Custom cursor */
.cursor {
  position: fixed;
  width: 8px; height: 8px;
  background: var(--red);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%,-50%);
  transition: transform 0.1s;
}
.cursor-ring {
  position: fixed;
  width: 32px; height: 32px;
  border: 1px solid rgba(192,57,43,0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%,-50%);
  transition: transform 0.15s, width 0.2s, height 0.2s;
}

/* Film grain overlay */
body::before {
  content: '';
  position: fixed;
  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");
  pointer-events: none;
  z-index: 9000;
  opacity: 0.4;
}

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 800;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 48px;
  mix-blend-mode: normal;
}

nav::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(8,8,8,0.95) 0%, transparent 100%);
  z-index: -1;
  pointer-events: none;
}

.nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.3em;
  color: var(--white);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  font-family: 'Courier Prime', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--mid);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.3s;
}

.nav-links a:hover { color: var(--red); }

/* HERO */
#hero {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 48px 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 70% 40%, rgba(192,57,43,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 70%, rgba(184,150,62,0.06) 0%, transparent 60%),
    linear-gradient(180deg, #0d0d0d 0%, #080808 100%);
}

/* Animated scan lines */
.scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(255,255,255,0.012) 2px,
    rgba(255,255,255,0.012) 4px
  );
  pointer-events: none;
}

/* Hero photo — right side, full height, fades into background */
.hero-photo {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 40%;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.5) 25%, black 60%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.5) 25%, black 60%);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0.6;
  filter: brightness(0.8) contrast(1.1) saturate(0.75);
}

@media (max-width: 900px) {
  .hero-photo { width: 50%; opacity: 0.5; }
}

@media (max-width: 600px) {
  .hero-photo {
    display: block;
    width: 100%;
    left: 0;
    opacity: 0.38;
    -webkit-mask-image: linear-gradient(to bottom, black 25%, rgba(0,0,0,0.5) 60%, transparent 88%);
    mask-image: linear-gradient(to bottom, black 25%, rgba(0,0,0,0.5) 60%, transparent 88%);
  }
}

/* Vertical accent line */
.hero-line {
  position: absolute;
  left: 48px;
  top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent 0%, var(--red) 30%, var(--red-dim) 70%, transparent 100%);
  opacity: 0.4;
}

.hero-eyebrow {
  font-family: 'Courier Prime', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.4em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.3s;
}

.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(64px, 10vw, 140px);
  line-height: 0.92;
  letter-spacing: 0.02em;
  color: var(--white);
  opacity: 0;
  animation: fadeUp 0.9s ease forwards 0.5s;
}

.hero-title span {
  color: var(--red);
  display: block;
}

.hero-subtitle {
  margin-top: 28px;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: var(--mid);
  max-width: 520px;
  line-height: 1.7;
  opacity: 0;
  animation: fadeUp 0.9s ease forwards 0.7s;
}

.hero-cta {
  display: flex;
  gap: 24px;
  margin-top: 48px;
  opacity: 0;
  animation: fadeUp 0.9s ease forwards 0.9s;
}

.btn-primary {
  font-family: 'Courier Prime', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--red);
  border: none;
  padding: 14px 32px;
  text-decoration: none;
  display: inline-block;
  transition: background 0.3s, transform 0.2s;
}
.btn-primary:hover { background: #e74c3c; transform: translateY(-2px); }

.btn-secondary {
  font-family: 'Courier Prime', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--white);
  background: transparent;
  border: 1px solid rgba(240,237,230,0.2);
  padding: 14px 32px;
  text-decoration: none;
  display: inline-block;
  transition: border-color 0.3s, color 0.3s;
}
.btn-secondary:hover { border-color: var(--white); }

/* Frame counter */
.frame-counter {
  position: absolute;
  right: 48px;
  bottom: 80px;
  font-family: 'Courier Prime', monospace;
  font-size: 0.6rem;
  color: rgba(240,237,230,0.2);
  letter-spacing: 0.2em;
  writing-mode: vertical-rl;
}

/* SECTION base */
section {
  padding: 120px 48px;
  position: relative;
}

.section-label {
  font-family: 'Courier Prime', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.4em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 60px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--grey), transparent);
  max-width: 200px;
}

/* PROFILE */
#profile {
  display: grid;
  grid-template-columns: 1.2fr 0.65fr 1fr;
  gap: 60px;
  align-items: start;
}

.profile-img {
  position: relative;
  overflow: hidden;
}

.profile-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: brightness(0.9) contrast(1.05);
}

.profile-img::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40%;
  background: linear-gradient(to top, var(--black), transparent);
  pointer-events: none;
}

.profile-heading {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1;
  letter-spacing: 0.04em;
  margin-bottom: 32px;
}

.profile-text {
  font-size: 1rem;
  line-height: 1.85;
  color: rgba(240,237,230,0.7);
  margin-bottom: 20px;
}

.profile-text strong {
  color: var(--white);
  font-weight: 600;
}

.profile-right {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-left: 1px solid var(--grey);
  padding-left: 60px;
}

.stat-block {
  padding: 32px 0;
  border-bottom: 1px solid var(--grey);
}
.stat-block:first-child { padding-top: 0; }
.stat-block:last-child { border-bottom: none; }

.stat-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 56px;
  line-height: 1;
  color: var(--red);
}

.stat-label {
  font-family: 'Courier Prime', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  color: var(--mid);
  text-transform: uppercase;
  margin-top: 6px;
}

/* PROJECTS */
#projects { background: #0a0a0a; }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 0;
}

.project-card {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--grey);
  cursor: none;
}

.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(8,8,8,0.95) 100%);
  z-index: 1;
  transition: opacity 0.4s;
}

.project-card:hover::before {
  opacity: 0.6;
}

/* Visual placeholder backgrounds per project */
.project-card.p1 { background: linear-gradient(135deg, #1a0a0a 0%, #2d0f0f 40%, #0d0d1a 100%); }
.project-card.p2 { background: linear-gradient(135deg, #0a0a1a 0%, #1a1a2d 40%, #0a1a0a 100%); }
.project-card.p3 { background: linear-gradient(135deg, #1a1400 0%, #2d2200 40%, #0d0a00 100%); }
.project-card.p4 { background: linear-gradient(135deg, #000a1a 0%, #001a2d 40%, #000a0a 100%); }
.project-card.p5 { background: linear-gradient(135deg, #1a0014 0%, #2d0022 40%, #0d000a 100%); }
.project-card.p6 { background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 40%, #080808 100%); }

/* Abstract visual elements per card */
.card-visual {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.6s cubic-bezier(0.25,0.46,0.45,0.94);
}
.project-card:hover .card-visual { transform: scale(1.04); }

.card-visual svg {
  width: 70%;
  height: 70%;
  opacity: 0.25;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: opacity 0.4s;
}

/* Hover video inside project cards */
.card-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.project-card:hover .card-img { opacity: 0; }
.project-card:hover .card-video { opacity: 1; }

.project-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 32px;
  z-index: 2;
  transform: translateY(8px);
  transition: transform 0.4s;
}
.project-card:hover .project-info { transform: translateY(0); }

.project-tag {
  font-family: 'Courier Prime', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.35em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.project-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px;
  letter-spacing: 0.05em;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 8px;
}

.project-desc {
  font-size: 0.8rem;
  color: rgba(240,237,230,0.55);
  line-height: 1.5;
  max-width: 90%;
}

.project-link {
  display: inline-block;
  margin-top: 14px;
  font-family: 'Courier Prime', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  color: var(--gold);
  text-decoration: none;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.3s 0.1s;
}
.project-card:hover .project-link { opacity: 1; }

/* STRENGTHS / LIVE */
#strengths {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 0;
  align-items: start;
}

/* Helper layout classes (replace inline styles in HTML) */
.section-padded { padding: 120px 48px; }
.strengths-content { padding: 120px 48px; }
.strengths-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: start;
}

.strengths-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.strength-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 24px;
  align-items: start;
  padding: 28px 0;
  border-bottom: 1px solid var(--grey);
}
.strength-item:first-child { padding-top: 0; }

.strength-num {
  font-family: 'Courier Prime', monospace;
  font-size: 0.6rem;
  color: var(--red);
  letter-spacing: 0.1em;
  padding-top: 3px;
}

.strength-title {
  font-family: 'Barlow', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 6px;
  letter-spacing: 0.03em;
}

.strength-text {
  font-size: 0.85rem;
  color: rgba(240,237,230,0.5);
  line-height: 1.6;
}

.approach-img-col {
  overflow: hidden;
  min-height: 100%;
  padding-top: 120px;
}

.approach-img-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.live-block-img {
  width: calc(100% + 96px);
  margin: -48px -48px 32px;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.live-block-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: brightness(0.85) saturate(0.9);
  display: block;
}

.live-block {
  background: var(--grey);
  padding: 48px;
  border-top: 2px solid var(--red);
  position: sticky;
  top: 120px;
}

.live-subtitle {
  font-family: 'Courier Prime', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--mid);
  text-transform: uppercase;
  margin-top: -18px;
  margin-bottom: 28px;
}

.live-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  letter-spacing: 0.06em;
  margin-bottom: 28px;
  color: var(--white);
}

.live-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
  font-size: 0.85rem;
  color: rgba(240,237,230,0.65);
  line-height: 1.5;
}

.live-item::before {
  content: '▸';
  color: var(--red);
  font-size: 0.7rem;
  flex-shrink: 0;
  padding-top: 2px;
}

.live-specs-label {
  font-family: 'Courier Prime', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.live-specs {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid #444;
}

/* CONTACT */
#contact {
  background: linear-gradient(180deg, #0a0a0a 0%, #080808 100%);
  text-align: center;
  padding: 140px 48px;
}

.contact-heading {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(48px, 7vw, 100px);
  line-height: 0.9;
  letter-spacing: 0.03em;
  margin-bottom: 40px;
}

.contact-heading em {
  color: var(--red);
  font-style: normal;
  display: block;
}

.contact-sub {
  font-size: 0.95rem;
  color: var(--mid);
  max-width: 480px;
  margin: 0 auto 52px;
  line-height: 1.7;
  letter-spacing: 0.03em;
}

.contact-details {
  display: flex;
  gap: 60px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 60px;
}

.contact-item {
  text-align: center;
}

.contact-type {
  font-family: 'Courier Prime', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.35em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.contact-val {
  font-size: 0.95rem;
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s;
}
a.contact-val:hover { color: var(--gold); }

/* Horizontal rule */
.hr-accent {
  width: 60px;
  height: 1px;
  background: var(--red);
  margin: 0 auto 40px;
}

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes kenBurns {
  from { transform: scale(1.0) translateZ(0); }
  to   { transform: scale(1.07) translateZ(0); }
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Footer */
footer {
  padding: 32px 48px;
  border-top: 1px solid var(--grey);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer span {
  font-family: 'Courier Prime', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: rgba(240,237,230,0.2);
  text-transform: uppercase;
}

/* Back to main site — floating button (portfolio & CV pages) */
.back-link {
  position: fixed;
  bottom: 36px;
  right: 36px;
  z-index: 200;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: 'Courier Prime', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: rgba(240,237,230,0.6);
  text-decoration: none;
  text-transform: uppercase;
  border: 1px solid rgba(240,237,230,0.2);
  padding: 10px 20px;
  background: rgba(8,8,8,0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: color 0.25s, border-color 0.25s, background 0.25s, opacity 0.4s, transform 0.4s;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}
.back-link::before { content: '←'; font-size: 13px; }
.back-link.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-link:hover {
  color: var(--white);
  border-color: var(--red);
  background: rgba(192,57,43,0.12);
}
@media (max-width: 720px) {
  .back-link { bottom: 24px; right: 20px; }
}

/* Image placeholder with abstract visuals */
.img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* LIVE REEL */
#live-reel {
  background: #050505;
  padding: 80px 48px;
}

.reel-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 40px;
}

.reel-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 0.92;
  letter-spacing: 0.04em;
  color: var(--white);
}
.reel-title span { color: var(--red); }

.reel-sub {
  font-size: 0.9rem;
  color: var(--mid);
  line-height: 1.7;
  letter-spacing: 0.04em;
}

.reel-video {
  position: relative;
}

.live-video {
  width: 100%;
  display: block;
  aspect-ratio: 16/9;
  background: #000;
  outline: none;
}

/* ── Hamburger button (hidden on desktop) ─── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px 4px;
  cursor: pointer;
  z-index: 900;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--white);
  transition: transform 0.3s, opacity 0.3s, background 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(4px, 5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(4px, -5px); }

/* Language toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lang-btn {
  font-family: 'Courier Prime', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--mid);
  background: none;
  border: none;
  padding: 4px 2px;
  cursor: none;
  transition: color 0.3s;
  text-transform: uppercase;
}

.lang-btn:hover { color: var(--white); }
.lang-btn.active { color: var(--red); }

.lang-sep {
  font-family: 'Courier Prime', monospace;
  font-size: 0.65rem;
  color: var(--grey);
}

/* ── Touch devices: disable custom cursor ─── */
@media (hover: none) and (pointer: coarse) {
  body { cursor: auto; }
  .cursor, .cursor-ring { display: none !important; }
  .lang-btn, .project-card, .hub-card--active { cursor: pointer; }
}

/* ── Tablet / 900px ──────────────────────── */
@media (max-width: 900px) {
  nav { padding: 20px 24px; }

  /* Hamburger visible, nav becomes overlay */
  .nav-hamburger { display: flex; }
  .nav-links {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(8,8,8,0.97);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 36px;
    z-index: 750;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
    display: flex;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1rem; letter-spacing: 0.25em; color: rgba(240,237,230,0.7); }
  .nav-links a:hover { color: var(--red); }

  section { padding: 80px 24px; }
  .section-padded { padding: 80px 24px; }
  #hero { padding: 0 24px 60px; }
  #profile { grid-template-columns: 1fr; gap: 48px; }
  .profile-img { height: 360px; min-height: 0; max-height: none; overflow: hidden; }
  .profile-img img { width: 100%; height: 100%; object-fit: cover; }
  .profile-right { border-left: none; padding-left: 0; border-top: 1px solid var(--grey); padding-top: 48px; }
  .projects-grid { grid-template-columns: 1fr 1fr; }
  #live-reel { padding: 60px 24px; }
  .reel-header { grid-template-columns: 1fr; gap: 20px; }
  #strengths { grid-template-columns: 1fr; }
  .strengths-content { padding: 60px 24px; }
  .strengths-inner { grid-template-columns: 1fr; gap: 40px; }
  .approach-img-col { height: 380px; min-height: 0; overflow: hidden; padding-top: 0; }
  .approach-img-col img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
  .live-block { position: relative; top: auto; padding: 36px 28px; }
  footer { flex-direction: column; gap: 12px; text-align: center; }
}

/* ── Mobile / 600px ──────────────────────── */
@media (max-width: 600px) {
  /* Nav */
  nav { padding: 16px 20px; }

  /* Sections */
  section { padding: 60px 20px; }
  .section-padded { padding: 60px 20px; }
  .strengths-content { padding: 48px 20px; }
  #contact { padding: 80px 20px; }

  /* Hero */
  #hero { padding: 0 20px 56px; }
  .hero-title { font-size: clamp(52px, 16vw, 80px); }
  .hero-subtitle { font-size: 0.85rem; letter-spacing: 0.04em; }
  .hero-cta { flex-direction: column; gap: 12px; }
  .btn-primary, .btn-secondary { text-align: center; padding: 14px 24px; }
  .frame-counter { display: none; }
  .hero-line { left: 20px; }

  /* Profile */
  .profile-img { display: none; }

  /* Projects: 1 column, keep portrait ratio */
  .projects-grid { grid-template-columns: 1fr !important; }
  .project-card { aspect-ratio: 4/5; }

  /* Always show project info on mobile */
  .project-card::before {
    opacity: 1;
    background: linear-gradient(180deg, transparent 30%, rgba(8,8,8,0.92) 100%);
  }
  .project-info { transform: translateY(0); padding: 20px; }
  .project-link { opacity: 1; }

  /* Ken Burns on card images — makes static images feel alive */
  .project-card .card-img {
    animation: kenBurns 7s ease-in-out infinite alternate;
  }
  .project-card:nth-child(2) .card-img { animation-delay: -2.3s; }
  .project-card:nth-child(3) .card-img { animation-delay: -4.1s; }
  .project-card:nth-child(4) .card-img { animation-delay: -1.5s; }
  .project-card:nth-child(5) .card-img { animation-delay: -3.2s; }
  .project-card:nth-child(6) .card-img { animation-delay: -5.8s; }

  /* Tap feedback */
  .project-card:active { transform: scale(0.985); transition: transform 0.12s; }

  /* Approach image — tall portrait on mobile */
  .approach-img-col { height: 62vh; min-height: 300px; }
  .approach-img-col img { object-position: 50% 20%; }

  /* Mobile video: show video over image when playing */
  .project-card .card-video { transition: opacity 0.5s; }
  .project-card.video-playing .card-video { opacity: 1; }
  .project-card.video-playing .card-img   { opacity: 0; }
  .live-block { padding: 28px 20px; }

  /* Contact */
  .contact-details { flex-direction: column; gap: 28px; align-items: center; }
  .contact-val { font-size: 0.85rem; word-break: break-all; }

  /* Footer */
  footer { padding: 24px 20px; flex-direction: column; gap: 8px; }

  /* Back link */
  .back-link { bottom: 20px; right: 16px; padding: 9px 16px; font-size: 9px; }
}

/* ── Contact form ────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 60px;
  max-width: 960px;
  margin: 52px auto 0;
  text-align: left;
}

.form-group { margin-bottom: 18px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-label {
  display: block;
  font-family: 'Courier Prime', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  background: rgba(240,237,230,0.03);
  border: 1px solid rgba(240,237,230,0.1);
  color: var(--white);
  font-family: 'Barlow', sans-serif;
  font-size: 14px;
  font-weight: 300;
  padding: 12px 16px;
  outline: none;
  border-radius: 0;
  -webkit-appearance: none;
  transition: border-color 0.25s, background 0.25s;
}
.form-input:focus {
  border-color: rgba(192,57,43,0.7);
  background: rgba(240,237,230,0.05);
}
.form-input::placeholder { color: rgba(240,237,230,0.2); }

.form-textarea { resize: vertical; min-height: 130px; }

.form-btn { margin-top: 6px; }

.form-result {
  margin-top: 14px;
  font-family: 'Courier Prime', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  min-height: 18px;
}
.form-result--ok  { color: rgba(120,220,120,0.9); }
.form-result--err { color: var(--red); }

/* Contact details column (right side) */
.contact-layout .contact-details {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 0;
  justify-content: flex-start;
  flex-wrap: nowrap;
}
.contact-layout .contact-item {
  text-align: left;
  padding: 20px 0;
  border-bottom: 1px solid var(--grey);
  width: 100%;
}
.contact-layout .contact-item:first-child { padding-top: 0; }
.contact-layout .contact-item:last-child  { border-bottom: none; }

@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; gap: 48px; max-width: 100%; }
  .contact-layout .contact-details { flex-direction: row; flex-wrap: wrap; gap: 32px; }
  .contact-layout .contact-item { border-bottom: none; padding: 0; width: auto; }
}
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
  .contact-layout .contact-details { flex-direction: column; gap: 20px; align-items: center; }
  .contact-layout .contact-item { text-align: center; }
}

/* ── Small phones / 400px ─────────────────── */
@media (max-width: 400px) {
  .hero-title { font-size: clamp(44px, 18vw, 64px); }
  .profile-heading { font-size: 28px; }
  .stat-num { font-size: 44px; }
  .nav-links a { font-size: 0.9rem; gap: 28px; }
}
