:root {
  --ink: #242426;
  --red: #FF3131;
  --paper: #FBFAF7;
  --paper-pure: #FFFFFF;
  --muted: #76746E;
  --line: #E4E1DA;
  --soft: #F2EFE9;
  --warm1: #C66B4A;
  --warm2: #D89A5C;
  --warm3: #7C8A6B;
  --warm4: #A8554A;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Grain overlay on the whole page */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.mono { font-family: 'JetBrains Mono', monospace; }
.label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============ NAV ============ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 40px;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, padding 0.3s, backdrop-filter 0.3s;
}
nav.scrolled {
  background: rgba(251,250,247,0.85);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
  padding: 10px 40px;
}
nav .logo { position: relative; }
nav .logo img { height: 96px; width: auto; display: block; transition: height 0.3s, opacity 0.3s; }
nav .logo .logo-dark { position: absolute; top: 0; left: 0; opacity: 0; }
nav.scrolled .logo img { height: 80px; }
nav.scrolled .logo .logo-light { opacity: 0; }
nav.scrolled .logo .logo-dark { opacity: 1; }
nav .links { display: flex; gap: 34px; align-items: center; }
nav .links a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  position: relative;
  padding: 4px 0;
  transition: color 0.3s;
}
nav.scrolled .links a { color: var(--ink); }
nav .links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1.5px;
  background: var(--red);
  transition: width 0.25s ease;
}
nav .links a:hover::after { width: 100%; }
nav .links a.cta {
  background: var(--paper);
  color: var(--ink);
  padding: 9px 16px;
  border-radius: 4px;
}
nav.scrolled .links a.cta { background: var(--ink); color: var(--paper); }
nav .links a.cta::after { display: none; }
nav .links a.cta:hover { background: var(--red); color: var(--paper); }
nav.scrolled .links a.cta:hover { background: var(--red); }
@media (max-width: 760px) {
  nav { padding: 16px 22px; }
  nav .links a:not(.cta) { display: none; }
}

/* ============ HERO (full-bleed) ============ */
.hero {
  position: relative;
  height: 92vh;
  min-height: 640px;
  max-height: 920px;
  margin: 0;
  overflow: hidden;
}
.hero .hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 70% center;
  filter: saturate(1.05) contrast(1.02);
  opacity: 0;
  animation: fadeIn 1.1s ease 0.2s forwards;
}
.hero .photo-grain {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  opacity: 0.14;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.hero .scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(20,18,16,0.55) 0%, rgba(20,18,16,0.1) 45%, rgba(20,18,16,0) 70%),
    linear-gradient(to top, rgba(20,18,16,0.84) 0%, rgba(20,18,16,0.34) 42%, rgba(20,18,16,0.05) 72%);
  pointer-events: none;
}
.hero .hero-content {
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  max-width: 1320px;
  left: 50%; transform: translateX(-50%);
  padding: 0 40px 64px;
}
.hero .hero-inner { max-width: 780px; }
.hero .frame-tag-abs {
  position: absolute;
  bottom: 26px; right: 40px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.35);
  padding: 5px 10px;
  border-radius: 3px;
  backdrop-filter: blur(4px);
}
@media (max-width: 760px) { .hero .frame-tag-abs { display: none; } }
@media (max-width: 760px) {
  .hero { height: auto; min-height: 0; }
  .hero .hero-content { position: relative; left: auto; transform: none; padding: 120px 22px 50px; }
  .hero .hero-bg { position: absolute; }
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.4s forwards;
}
.hero-kicker .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); flex-shrink: 0; }
.hero-kicker .label { color: rgba(255,255,255,0.78); }

h1.hero-title {
  font-family: 'League Spartan', sans-serif;
  font-weight: 800;
  font-size: clamp(42px, 6.4vw, 92px);
  line-height: 0.96;
  letter-spacing: -0.03em;
  margin-bottom: 26px;
  color: var(--paper);
}
h1.hero-title .line { display: block; overflow: hidden; }
h1.hero-title .line span {
  display: block;
  transform: translateY(110%);
  animation: slideUp 0.85s cubic-bezier(0.16,1,0.3,1) forwards;
}
h1.hero-title .line:nth-child(1) span { animation-delay: 0.45s; }
h1.hero-title .line:nth-child(2) span { animation-delay: 0.56s; }
h1.hero-title em { font-style: normal; color: var(--red); }

.hero-sub {
  font-size: 18px;
  line-height: 1.55;
  max-width: 520px;
  color: rgba(255,255,255,0.9);
  margin-bottom: 34px;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.85s forwards;
}
.hero-sub .s2 { display: block; margin-top: 6px; color: #fff; font-weight: 500; }
.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.97s forwards;
}
.btn {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 22px;
  border-radius: 5px;
  transition: all 0.22s;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.btn-primary { background: var(--paper); color: var(--ink); }
.btn-primary:hover { background: var(--red); color: var(--paper); transform: translateY(-2px); }
.btn-ghost { color: var(--paper); border: 1px solid rgba(255,255,255,0.42); }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

/* legacy photo placeholder helpers (used in work cards / reel) */
.photo {
  position: relative;
  width: 100%; height: 100%;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.photo.warm-a { background: linear-gradient(165deg, #F4D3A8 0%, #E9AE73 40%, #D97F52 100%); }
.photo.warm-b { background: linear-gradient(160deg, #E9AE73 0%, #C25A41 70%, #8F3F32 100%); }
.photo.warm-c { background: radial-gradient(120% 110% at 60% 25%, #F0BE84 0%, #C66B4A 60%, #A8554A 100%); }
.photo.warm-d { background: linear-gradient(150deg, #D97F52, #8F3F32); }

/* Photo cards with real images (overrides gradient placeholder) */
.photo.photo-img { background: none; }
.photo.photo-img img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.photo.photo-img .grain-overlay {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  opacity: 0.13;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.photo.photo-img::after { display: none; }
.photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  opacity: 0.13;
  mix-blend-mode: overlay;
}
.photo .frame-tag {
  position: absolute;
  bottom: 14px; left: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.92);
  background: rgba(0,0,0,0.28);
  backdrop-filter: blur(4px);
  padding: 5px 9px;
  border-radius: 3px;
  text-transform: uppercase;
}
.photo .corner {
  position: absolute;
  top: 12px; right: 12px;
  width: 26px; height: 26px;
  border-top: 1.5px solid rgba(255,255,255,0.6);
  border-right: 1.5px solid rgba(255,255,255,0.6);
}

/* Sun-on-horizon divider: recurring brand motif */
.horizon {
  max-width: 1320px;
  margin: 36px auto 0;
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 0;
}
.horizon .ln { flex: 1; height: 1px; background: var(--line); }
.horizon .sun {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
  box-shadow: 0 0 0 6px rgba(255,49,49,0.10);
}
.horizon .sun.left { margin-right: -1px; }

/* ============ MARQUEE STRIP ============ */
.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  overflow: hidden;
  white-space: nowrap;
  margin-top: 30px;
}
.strip .track { display: inline-flex; gap: 50px; animation: marquee 28s linear infinite; }
.strip .track span {
  font-family: 'League Spartan', sans-serif;
  font-weight: 600;
  font-size: 19px;
  letter-spacing: 0.01em;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 50px;
}
.strip .track span::after { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }

/* ============ SECTIONS ============ */
section.block { max-width: 1320px; margin: 0 auto; padding: 110px 40px; }
@media (max-width: 760px) { section.block { padding: 70px 22px; } }

.sec-head {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 56px;
}
.sec-head .idx { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--red); }
.sec-head h2 {
  font-family: 'League Spartan', sans-serif;
  font-weight: 700;
  font-size: clamp(32px, 4.5vw, 52px);
  letter-spacing: -0.02em;
  line-height: 1;
}
.sec-head .meta { margin-left: auto; max-width: 280px; font-size: 14px; color: var(--muted); text-align: right; }
.sec-head .meta.stacked { font-family: 'League Spartan', sans-serif; font-weight: 600; font-size: 19px; line-height: 1.25; color: var(--ink); }
.sec-head .meta.stacked .decide { color: var(--red); }
@media (max-width: 760px) { .sec-head .meta { display: none; } }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
@media (max-width: 820px) { .services { grid-template-columns: 1fr; } }
.svc {
  padding: 40px 32px 48px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  position: relative;
  transition: background 0.3s;
}
.svc:last-child { border-right: none; }
@media (max-width: 820px) { .svc { border-right: none; } }
.svc:hover { background: var(--paper-pure); }
.svc .dot-mk { width: 10px; height: 10px; border-radius: 50%; background: var(--red); margin-bottom: 56px; display: block; }
.svc h3 { font-family: 'League Spartan', sans-serif; font-weight: 700; font-size: 26px; letter-spacing: -0.01em; margin-bottom: 14px; }
.svc p { font-size: 14.5px; color: var(--muted); line-height: 1.6; margin-bottom: 22px; }
.svc ul { list-style: none; }
.svc li { font-size: 13px; padding: 7px 0; border-top: 1px dashed var(--line); color: var(--ink); display: flex; gap: 9px; }
.svc li::before { content: '+'; color: var(--red); font-family: 'JetBrains Mono', monospace; }
.svc .arrow { position: absolute; top: 38px; right: 30px; color: var(--red); font-size: 18px; opacity: 0; transform: translateX(-6px); transition: all 0.3s; }
.svc:hover .arrow { opacity: 1; transform: translateX(0); }

/* Work */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .work-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .work-grid { grid-template-columns: 1fr; } }
.case {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 3/2;
  display: block;
}
.case.tall { aspect-ratio: 3/2; }
.case .photo { transition: transform 0.7s cubic-bezier(0.16,1,0.3,1); }
.case:hover .photo { transform: scale(1.04); }
.case .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20,19,15,0.78) 0%, rgba(20,19,15,0.1) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
}
.case .tags { display: flex; gap: 8px; margin-bottom: 12px; }
.case .tags span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper);
  border: 1px solid rgba(255,255,255,0.4);
  padding: 3px 8px;
  border-radius: 3px;
}
.case h3 { font-family: 'League Spartan', sans-serif; font-weight: 700; font-size: 30px; color: var(--paper); letter-spacing: -0.01em; line-height: 1; margin-bottom: 6px; }
.case .sub { font-size: 13.5px; color: rgba(255,255,255,0.82); }
.case .frame-tag { background: rgba(0,0,0,0.3); }
/* Text-based case cards */
.case.case-texto { aspect-ratio: 4/3; }
.case-outdoor { background: linear-gradient(145deg, #2B3C2D 0%, #16261A 60%, #0E1912 100%); }
.case-infantil { background: linear-gradient(145deg, #4E2218 0%, #311510 60%, #1E0E09 100%); }
.case-eventos  { background: linear-gradient(145deg, #252119 0%, #171410 60%, #0F0D0A 100%); }
.case.case-texto::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E") repeat;
  opacity: 0.04;
  pointer-events: none;
}
.case.case-texto .overlay {
  background: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px;
  z-index: 1;
}
.case-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.case-labels-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.38);
  line-height: 1.9;
  text-transform: uppercase;
  flex: 1;
}
.case-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: rgba(255,255,255,0.22);
  letter-spacing: 0.05em;
  flex-shrink: 0;
}
.case-sector-name {
  font-family: 'League Spartan', sans-serif;
  font-weight: 700;
  font-size: clamp(20px, 2vw, 26px);
  color: var(--paper);
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin-bottom: 9px;
}
.case.case-texto .sub { font-size: 13px; color: rgba(255,255,255,0.72); line-height: 1.55; }

/* Reel / contact sheet */
.reel-wrap { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 30px 0; overflow: hidden; }
.reel { display: flex; gap: 14px; padding: 0 40px; overflow-x: auto; scrollbar-width: none; }
.reel::-webkit-scrollbar { display: none; }
.reel .frame {
  flex: 0 0 auto;
  width: 200px;
  aspect-ratio: 4/5;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}
.reel .frame.wide { width: 280px; aspect-ratio: 16/10; }

/* Approach (dark) */
.approach { background: var(--ink); color: var(--paper); }
.approach .inner { max-width: 1320px; margin: 0 auto; padding: 110px 40px; }
@media (max-width: 760px) { .approach .inner { padding: 70px 22px; } }
.approach .sec-head h2 { color: var(--paper); }
.approach .sec-head .idx { color: var(--red); }
.approach-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 70px; align-items: center; }
@media (max-width: 820px) { .approach-grid { grid-template-columns: 1fr; gap: 40px; } }
.approach-statement {
  font-family: 'League Spartan', sans-serif;
  font-weight: 600;
  font-size: clamp(26px, 3.6vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.015em;
}
.approach-statement em { font-style: normal; color: var(--red); }
.approach-list { display: flex; flex-direction: column; gap: 0; }
.approach-list .item { padding: 22px 0; border-top: 1px solid rgba(255,255,255,0.14); }
.approach-list .item:last-child { border-bottom: 1px solid rgba(255,255,255,0.14); }
.approach-list .item .n { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--red); }
.approach-list .item h4 { font-family: 'League Spartan', sans-serif; font-weight: 600; font-size: 20px; margin: 6px 0; }
.approach-list .item p { font-size: 14px; color: rgba(255,255,255,0.66); }

/* Contact CTA */
.cta-block { max-width: 1320px; margin: 0 auto; padding: 130px 40px; text-align: center; }
@media (max-width: 760px) { .cta-block { padding: 80px 22px; } }
.cta-block .label { margin-bottom: 24px; display: block; }
.cta-block h2 {
  font-family: 'League Spartan', sans-serif;
  font-weight: 800;
  font-size: clamp(40px, 7vw, 92px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 36px;
}
.cta-block h2 em { font-style: normal; color: var(--red); }
.cta-block .big-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  background: var(--ink);
  color: var(--paper);
  padding: 18px 30px;
  border-radius: 6px;
  transition: all 0.22s;
}
.cta-block .big-btn:hover { background: var(--red); transform: translateY(-2px); }

/* Footer */
footer { background: var(--ink); color: var(--paper); }
footer .inner { max-width: 1320px; margin: 0 auto; padding: 70px 40px 40px; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { footer .inner { grid-template-columns: 1fr; gap: 30px; padding: 50px 22px 30px; } }
footer .brand img { height: 36px; margin-bottom: 18px; }
footer .brand p { font-size: 13.5px; color: rgba(255,255,255,0.6); max-width: 280px; }
footer .col h5 { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.55); margin-bottom: 16px; }
footer .col a { display: block; font-size: 14px; color: var(--paper); text-decoration: none; padding: 5px 0; transition: color 0.2s; }
footer .col a:hover { color: var(--red); }
footer .base { max-width: 1320px; margin: 0 auto; padding: 24px 40px; border-top: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
footer .base span { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: rgba(255,255,255,0.5); letter-spacing: 0.04em; }

/* Animations */
@keyframes slideUp { to { transform: translateY(0); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16,1,0.3,1); }
.reveal.in { opacity: 1; transform: translateY(0); }